/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: #f0f0f0;
    height: 100vh;
    overflow: hidden;
}

/* 登录页面样式 */
.login-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    width: 100%;
    overflow: hidden;
    animation: slideInUp 0.3s ease;
}

.login-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
}

.login-header h1 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 8px;
}

.login-header p {
    font-size: 16px;
    opacity: 0.9;
}

.login-form-container {
    padding: 30px;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

.login-form input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    outline: none;
}

.login-form input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.login-submit-btn {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.login-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.login-submit-btn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.login-links {
    text-align: center;
    margin-top: 20px;
}

.back-link {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: #5a67d8;
}

.login-footer {
    background: #f8f9fa;
    padding: 20px 30px;
    text-align: center;
    border-top: 1px solid #e0e0e0;
}

.login-footer p {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}

/* 聊天容器 */
.chat-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    max-width: 400px;
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    position: relative;
}

/* 顶部导航 */
.chat-header {
    background: #393a3e;
    color: white;
    padding: 12px 16px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-header h1 {
    font-size: 16px;
    font-weight: 500;
}

.header-actions {
    display: flex;
    align-items: center;
}

.admin-info {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
}

.logout-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.login-prompt {
    font-size: 12px;
}

.login-link {
    color: white;
    text-decoration: none;
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.login-link:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* 消息区域 */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* 加载指示器 */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: #999;
}

.loading-dots {
    display: flex;
    gap: 4px;
    margin-bottom: 12px;
}

.loading-dots span {
    width: 8px;
    height: 8px;
    background: #ccc;
    border-radius: 50%;
    animation: bounce 1.4s ease-in-out infinite both;
}

.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* 消息项 */
.message-item {
    margin-bottom: 16px;
    /* 移除默认动画，只对新消息应用动画 */
}

/* 新消息动画 - 只对新添加的消息应用 */
.message-item.new-message {
    animation: fadeInUp 0.3s ease;
}

.message-bubble {
    max-width: 100%;
    padding: 10px 14px;
    border-radius: 18px;
    word-wrap: break-word;
    position: relative;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* 左侧消息（其他人） */
.message-item.left .message-bubble {
    background: #fff;
    margin-right: auto;
    border-bottom-left-radius: 6px;
}

.message-item.left .message-bubble::before {
    content: '';
    position: absolute;
    left: -6px;
    bottom: 6px;
    width: 0;
    height: 0;
    border: 6px solid transparent;
    border-right-color: #fff;
    border-left: 0;
}

/* 右侧消息（管理员） */
.message-item.right .message-bubble {
    background: #95ec69;
    margin-left: auto;
    border-bottom-right-radius: 6px;
}

.message-item.right .message-bubble::after {
    content: '';
    position: absolute;
    right: -6px;
    bottom: 6px;
    width: 0;
    height: 0;
    border: 6px solid transparent;
    border-left-color: #95ec69;
    border-right: 0;
}

/* 口令消息样式 */
.message-item.secret .message-bubble {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
}

/* 简洁图章样式 */
.secret-stamp {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #fff;
    border: 2px solid;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    z-index: 2;
    transform: rotate(15deg);
}

.secret-stamp.active {
    color: #10b981;
    border-color: #10b981;
}

.secret-stamp.warning {
    color: #f59e0b;
    border-color: #f59e0b;
}

.secret-stamp.expired {
    color: #ef4444;
    border-color: #ef4444;
}



/* 过期状态下的表态按钮 */
.reaction-buttons.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.reaction-buttons.disabled .reaction-btn {
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.05) !important;
}

.reaction-buttons.disabled .reaction-btn:not(.selected) {
    opacity: 0.4;
}

/* 历史消息中的图章样式 */
.message-item.history-message.secret .secret-stamp {
    color: #95a5a6;
    border-color: #95a5a6;
}

/* 移动端图章适配 */
@media (max-width: 768px) {
    .secret-stamp {
        font-size: 16px;
        padding: 1px 6px;
        top: 6px;
        right: 6px;
    }
}

.message-actions {
    display: flex;
    align-items: center;
    margin-top: 8px;
    gap: 8px;
}

.copy-btn {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    border: none;
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(66, 153, 225, 0.3);
}

.copy-btn:hover {
    background: linear-gradient(135deg, #3182ce 0%, #2c5282 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(66, 153, 225, 0.4);
}

.copy-btn.copied {
    background: #2ed573;
    box-shadow: 0 2px 4px rgba(46, 213, 115, 0.3);
}

.copy-btn.copied:hover {
    background: #2ed573;
    transform: none;
}

.copy-btn.link-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.copy-btn.link-btn:hover {
    background: linear-gradient(135deg, #218838 0%, #1ea085 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

/* 消息头部信息 */
.message-header {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
    font-size: 12px;
    color: #999;
}

.message-item.left .message-header {
    justify-content: flex-start;
}

.message-item.right .message-header {
    justify-content: flex-end;
}

/* 头像样式 */
.message-avatar {
    font-size: 16px;
    margin-right: 6px;
    display: inline-block;
    width: 20px;
    height: 20px;
    text-align: center;
    line-height: 20px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    padding: 2px;
}

.message-item.right .message-avatar {
    margin-right: 0;
    margin-left: 6px;
    order: 2;
}

.message-nickname {
    font-weight: 500;
    margin-right: 8px;
}

.message-item.right .message-nickname {
    margin-right: 0;
    margin-left: 8px;
    order: 1;
}

.message-time {
    font-size: 11px;
}

.message-item.right .message-time {
    order: 0;
    margin-right: 8px;
}

.message-content {
    font-size: 14px;
    line-height: 1.4;
    color: #333;
}

.message-item.secret .message-content {
    color: white;
    font-weight: 500;
}

/* 输入区域 */
.chat-input-area {
    background: #f9f9f9;
    border-top: 1px solid #e5e5e5;
    padding: 12px 16px;
}

.input-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* 消息模式选择器 */
.mode-selector {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.mode-btn {
    flex: 1;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.mode-btn.active {
    background: #667eea;
    border-color: #667eea;
    color: white;
}

.mode-btn:not(.active):hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.mode-icon {
    font-size: 14px;
}

/* 口令模式提示 */
.secret-mode-hint {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    font-size: 13px;
    color: #856404;
    margin-top: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.secret-mode-hint > div:first-child {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 口令类型选择器 */
.secret-type-selector {
    display: flex;
    gap: 20px;
    margin-top: 8px;
}

.secret-type-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: #856404;
    transition: all 0.2s ease;
}

.secret-type-option:hover {
    color: #6c5ce7;
}

.secret-type-option input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 16px;
    height: 16px;
    border: 2px solid #ddd;
    border-radius: 50%;
    position: relative;
    transition: all 0.2s ease;
    background: white;
}

.secret-type-option input[type="radio"]:checked + .radio-custom {
    border-color: #6c5ce7;
    background: #6c5ce7;
}

.secret-type-option input[type="radio"]:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
}

.option-text {
    font-weight: 500;
}

.hint-icon {
    font-size: 14px;
}

.message-input-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.message-input {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 14px;
    background: #fff;
    outline: none;
    transition: border-color 0.2s ease;
}

.message-input:focus {
    border-color: #07c160;
}

/* 口令模式下的输入框样式 */
.message-input.secret-mode {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
}

.message-input.secret-mode:focus {
    border-color: #5a67d8;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.send-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: #07c160;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(7, 193, 96, 0.3);
}

.send-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
}

.send-btn:not(:disabled):hover {
    background: #06ad56;
    transform: scale(1.05);
}

.send-btn:not(:disabled):active {
    transform: scale(0.95);
}

/* 口令模式下的发送按钮 */
.send-btn.secret-mode {
    background: #667eea;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
}

.send-btn.secret-mode:not(:disabled):hover {
    background: #5a67d8;
}

/* 访客提示 */
.guest-notice {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notice-content {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #856404;
}

.notice-icon {
    font-size: 16px;
}

.notice-login-btn {
    background: #667eea;
    color: white;
    text-decoration: none;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    transition: all 0.2s ease;
}

.notice-login-btn:hover {
    background: #5a67d8;
}

/* 系统消息 */
.system-message {
    text-align: center;
    margin: 16px 0;
    font-size: 12px;
    color: #999;
}

.system-message-content {
    background: rgba(0, 0, 0, 0.05);
    padding: 4px 12px;
    border-radius: 12px;
    display: inline-block;
}

/* 动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 滚动条样式 */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

/* 响应式设计 */
@media (max-width: 480px) {
    .login-container {
        margin: 10px;
        max-width: calc(100% - 20px);
    }

    .login-header {
        padding: 30px 24px;
    }

    .login-form-container {
        padding: 24px;
    }

    .chat-container {
        max-width: 100%;
        height: 100vh;
    }
    
    .chat-header {
        padding: 10px 12px;
    }
    
    .chat-messages {
        padding: 12px;
    }
    
    .chat-input-area {
        padding: 8px 12px;
    }
    
    .message-bubble {
        max-width: 100%;
    }

    .notice-content {
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }

    .mode-selector {
        gap: 6px;
    }

    .mode-btn {
        padding: 6px 8px;
        font-size: 11px;
    }
}

/* 管理员头像 */
.admin-avatar {
    font-size: 14px;
    margin-right: 6px;
    display: inline-block;
    width: 18px;
    height: 18px;
    text-align: center;
    line-height: 18px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    padding: 1px;
}

/* 日期分隔线样式 */
.date-divider {
    display: flex;
    align-items: center;
    margin: 20px 0 15px 0;
    font-size: 12px;
    color: #999;
}

.date-divider.today .date-divider-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 500;
}

.date-divider.history .date-divider-text {
    background: #f5f5f5;
    color: #666;
    font-weight: normal;
}

.date-divider-line {
    flex: 1;
    height: 1px;
    background: #e0e0e0;
}

.date-divider-text {
    padding: 4px 12px;
    border-radius: 12px;
    margin: 0 10px;
    font-size: 11px;
    white-space: nowrap;
}

/* 历史消息样式 */
.message-item.history-message {
    opacity: 0.75;
}

.message-item.history-message .message-bubble {
    background: #f8f9fa !important;
    color: #6c757d;
}

.message-item.history-message.right .message-bubble {
    background: #e9ecef !important;
    color: #6c757d;
}

.message-item.history-message.secret .message-bubble {
    background: linear-gradient(135deg, #d1d3d4 0%, #b8bcc0 100%) !important;
    color: #495057;
}

.message-item.history-message .copy-btn {
    background: #6c757d !important;
    opacity: 0.8;
}

.message-item.history-message .copy-btn:hover {
    background: #5a6268 !important;
    opacity: 1;
}

/* 历史消息标识 */
.history-badge {
    background: #6c757d;
    color: white;
    font-size: 9px;
    padding: 1px 4px;
    border-radius: 3px;
    margin-left: 4px;
    margin-right: 4px;
}

/* 历史消息的头像样式调整 */
.message-item.history-message .message-avatar {
    opacity: 0.7;
    filter: grayscale(30%);
}

/* 历史消息的时间显示样式 */
.message-item.history-message .message-time {
    color: #999;
    font-size: 10px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .date-divider {
        margin: 15px 0 10px 0;
        font-size: 11px;
    }
    
    .date-divider-text {
        padding: 3px 8px;
        margin: 0 8px;
        font-size: 10px;
    }
    
    .history-badge {
        font-size: 8px;
        padding: 1px 3px;
    }
    
    .message-item.history-message .message-time {
        font-size: 9px;
    }
}

/* 表态功能样式 */
.reaction-section {
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.reaction-buttons {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.reaction-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 3px;
    transition: all 0.2s ease;
    min-width: 60px;
    justify-content: center;
}

.reaction-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.reaction-btn:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.reaction-btn.selected {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.reaction-icon {
    font-size: 12px;
}

.reaction-text {
    font-size: 10px;
    white-space: nowrap;
}

.reaction-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 1px 4px;
    border-radius: 6px;
    font-size: 9px;
    min-width: 12px;
    text-align: center;
}

.reaction-btn.selected .reaction-count {
    background: rgba(255, 255, 255, 0.4);
    font-weight: 500;
}

.reaction-stats {
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 9px;
    text-align: center;
}

.reaction-loading {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 历史消息的表态样式调整 */
.message-item.history-message.secret .message-bubble {
    background: linear-gradient(135deg, #d1d3d4 0%, #b8bcc0 100%) !important;
}

.message-item.history-message.secret .reaction-btn {
    background: rgba(108, 117, 125, 0.15);
    border-color: rgba(108, 117, 125, 0.25);
    color: #6c757d;
}

.message-item.history-message.secret .reaction-btn:hover:not(:disabled) {
    background: rgba(108, 117, 125, 0.25);
}

.message-item.history-message.secret .reaction-btn.selected {
    background: rgba(108, 117, 125, 0.3);
    border-color: rgba(108, 117, 125, 0.5);
}

.message-item.history-message.secret .reaction-count {
    background: rgba(108, 117, 125, 0.2);
}

.message-item.history-message.secret .reaction-stats {
    color: rgba(108, 117, 125, 0.8);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .reaction-buttons {
        gap: 4px;
    }
    
    .reaction-btn {
        padding: 3px 6px;
        font-size: 9px;
        min-width: 50px;
    }
    
    .reaction-icon {
        font-size: 10px;
    }
    
    .reaction-text {
        font-size: 9px;
    }
    
    .reaction-count {
        font-size: 8px;
        padding: 1px 3px;
    }
    
    .reaction-stats {
        font-size: 8px;
    }
    
    .copy-btn {
        padding: 3px 6px;
        font-size: 10px;
    }
}

/* 顶部横幅样式 */
.top-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.banner-image {
    flex: 1;
    min-width: 0;
}

.banner-img {
    width: 100%;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.banner-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.copy-banner-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.copy-banner-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.copy-banner-btn.copied {
    background: #2ed573;
    border-color: #2ed573;
}

.copy-icon {
    font-size: 14px;
}

.copy-text {
    font-size: 11px;
    font-weight: 500;
}

.close-banner-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 12px;
}

.close-banner-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.close-icon {
    font-size: 12px;
    font-weight: bold;
}

/* 横幅关闭动画 */
.top-banner.closing {
    animation: slideUp 0.3s ease forwards;
}

@keyframes slideUp {
    from {
        opacity: 1;
        max-height: 84px;
        padding: 12px 16px;
    }
    to {
        opacity: 0;
        max-height: 0;
        padding: 0 16px;
    }
}

/* 横幅隐藏状态 */
.top-banner.hidden {
    display: none;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .top-banner {
        padding: 10px 12px;
    }
    
    .banner-img {
        height: 50px;
    }
    
    .copy-banner-btn {
        padding: 6px 10px;
        font-size: 11px;
    }
    
    .copy-text {
        font-size: 10px;
    }
    
    .close-banner-btn {
        width: 26px;
        height: 26px;
        font-size: 11px;
    }
    
    .banner-content {
        gap: 8px;
    }
}

/* 口令使用说明样式 */
.secret-instructions {
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f2ff 100%);
    border: 1px solid #d1e7ff;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #2c5282;
}

.instruction-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-weight: 600;
    color: #1a365d;
}

.instruction-icon {
    font-size: 16px;
}

.instruction-title {
    font-size: 14px;
    font-weight: 600;
}

.instruction-steps {
    display: flex;
    flex-direction: column;
    gap: 0px;
}

.instruction-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 1px 0;
    position: relative;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    color: white;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 600;
    flex-shrink: 0;
}

.step-text {
    color: #2d3748;
    font-size: 13px;
    line-height: 1.4;
    flex: 1;
}

/* 步骤复制按钮样式 */
.step-copy-btn {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    border: none;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(72, 187, 120, 0.3);
    flex-shrink: 0;
}

.step-copy-btn:hover {
    background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(72, 187, 120, 0.4);
}

.step-copy-btn.copied {
    background: #2ed573;
    box-shadow: 0 1px 3px rgba(46, 213, 115, 0.3);
}

.step-copy-btn.copied:hover {
    background: #2ed573;
    transform: none;
}

.step-copy-icon {
    font-size: 12px;
}

.step-copy-text {
    font-size: 12px;
    font-weight: 600;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .secret-instructions {
        padding: 12px;
        margin-bottom: 10px;
        font-size: 12px;
    }
    
    .instruction-header {
        margin-bottom: 0px;
    }
    
    .instruction-title {
        font-size: 13px;
    }
    
    .instruction-steps {
        gap: 0px;
    }
    
    .instruction-step {
        gap: 10px;
        padding: 1px 0;
    }
    
    .step-number {
        width: 18px;
        height: 18px;
        font-size: 10px;
    }
    
    .step-text {
        font-size: 12px;
    }
    
    /* 移动端高亮文字 */
    .highlight-text {
        font-size: 13px;
    }
    
    /* 移动端步骤复制按钮 */
    .step-copy-btn,
    .step-copy-btn.orange {
        padding: 5px 10px;
        font-size: 10px;
        gap: 3px;
    }
    
    .step-copy-icon {
        font-size: 11px;
    }
    
    .step-copy-text {
        font-size: 12px;
    }
}

/* 步骤中的高亮文字样式 */
.highlight-text {
    color: #ef4444;
    font-weight: 700;
    font-size: 14px;
}

/* 橙色复制按钮（第三步专用） */
.step-copy-btn.orange {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 1px 3px rgba(245, 158, 11, 0.3);
}

.step-copy-btn.orange:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.4);
}

.step-copy-btn.orange.copied {
    background: #f59e0b;
    box-shadow: 0 1px 3px rgba(245, 158, 11, 0.3);
}

/* 教程按钮样式 */
.tutorial-btn {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border: none;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
    margin-left: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
    vertical-align: middle;
}

.tutorial-btn:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    transform: translateY(-1px);
}

/* 教程模态框样式 */
.tutorial-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.tutorial-modal.show {
    opacity: 1;
    visibility: visible;
}

.tutorial-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.tutorial-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    max-width: 90vw;
    max-height: 80vh;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.tutorial-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.tutorial-header h3 {
    margin: 0;
    color: #1f2937;
    font-size: 18px;
    font-weight: 600;
}

.tutorial-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #6b7280;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.tutorial-close:hover {
    background: rgba(107, 114, 128, 0.1);
    color: #374151;
}

.tutorial-image {
    padding: 20px;
    text-align: center;
}

.tutorial-img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 管理员控制按钮样式 */
.admin-controls {
    display: flex;
    gap: 8px;
    margin: 8px 0;
    padding: 8px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.admin-status-btn {
    flex: 1;
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    color: #666;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.admin-status-btn:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

.admin-status-btn.active {
    background: #007aff;
    color: white;
    border-color: #007aff;
}

.admin-status-btn.sold-out.active {
    background: #ff3b30;
    border-color: #ff3b30;
}

.admin-delete-btn {
    padding: 6px 12px;
    border: 1px solid #ff3b30;
    border-radius: 6px;
    background: white;
    color: #ff3b30;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    min-width: 60px;
}

.admin-delete-btn:hover {
    background: #ff3b30;
    color: white;
}

.admin-controls.general {
    justify-content: flex-end;
    background: rgba(255, 59, 48, 0.05);
    border-color: rgba(255, 59, 48, 0.1);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .tutorial-btn {
        padding: 2px 6px;
        font-size: 11px;
        margin-left: 6px;
    }
    
    .tutorial-content {
        max-width: 95vw;
        max-height: 85vh;
    }
    
    .tutorial-header {
        padding: 12px 16px;
    }
    
    .tutorial-header h3 {
        font-size: 16px;
    }
    
    .tutorial-image {
        padding: 15px;
    }
    
    .tutorial-close {
        width: 28px;
        height: 28px;
        font-size: 16px;
    }
    
    .admin-controls {
        gap: 6px;
        margin: 6px 0;
        padding: 6px;
    }
    
    .admin-status-btn {
        padding: 4px 8px;
        font-size: 11px;
    }
}