* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #007AFF;
    --primary-dark: #0056CC;
    --primary-light: #5AC8FA;
    --secondary-color: #8E8E93;
    --accent-color: #34C759;
    --danger-color: #FF3B30;
    --bg-primary: #F8F9FA;
    --bg-secondary: #FFFFFF;
    --bg-tertiary: #E8EAED;
    --text-primary: #1D1D1F;
    --text-secondary: #636366;
    --text-muted: #9CA3AF;
    --border-color: #E5E7EB;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --shadow-md: 0 8px 32px rgba(0,0,0,0.06);
    --shadow-lg: 0 16px 48px rgba(0,0,0,0.08);
    --shadow-xl: 0 24px 72px rgba(0,0,0,0.1);
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --radius-full: 9999px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100dvh;
    height: 100dvh;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.page-container {
    min-height: 100dvh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.header {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(60px);
    -webkit-backdrop-filter: blur(60px);
    padding: 14px 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 
        0 1px 0 rgba(0, 0, 0, 0.04),
        0 4px 20px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.header-inner {
    max-width: 900px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 16px;
}

.logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    overflow: hidden;
    flex-shrink: 0;
}

.logo-icon svg {
    width: 18px;
    height: 18px;
}

.brand-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.3px;
    white-space: nowrap;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo-icon.has-custom-logo {
    background: transparent;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}



.nav {
    display: flex;
    gap: 12px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link:hover {
    background: rgba(26, 115, 232, 0.08);
    color: var(--primary-color);
}

.nav-icon {
    width: 18px;
    height: 18px;
}
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: calc(100dvh - 80px);
    overflow: hidden;
    padding: 8px 16px 0 16px;
    gap: 0;
}

.chat-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: transparent;
    padding-bottom: 20px;
    min-height: 0;
}

.chat-section-inner {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: var(--radius-xl);
    box-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.04),
        0 8px 32px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.6) inset;
    min-height: 0;
}

/* 商家资讯 + 清空对话 同行两端按钮 */
.merchant-link {
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 18px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    background: transparent;
    transition: all 0.2s;
    cursor: pointer;
}
.merchant-link:hover {
    background: rgba(0, 122, 255, 0.08);
    border-color: rgba(0, 122, 255, 0.3);
}

.chat-header {
    padding: 12px 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.025);
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    justify-content: space-between;
    flex-shrink: 0;
}

.messages-wrapper {
    flex: 1;
    display: flex;
    position: relative;
    overflow: hidden;
    min-height: 0;
}

.messages {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    scroll-behavior: smooth;
}

.scroll-buttons {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 10;
}

.scroll-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
    pointer-events: none;
}

.scroll-btn:hover {
    box-shadow: 0 6px 20px rgba(0, 122, 255, 0.25);
    background: white;
}

.scroll-btn:active {
    transform: scale(0.95);
}

.scroll-btn svg {
    width: 20px;
    height: 20px;
}

.messages::-webkit-scrollbar {
    width: 8px;
}

.messages::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 4px;
}

.messages::-webkit-scrollbar-thumb {
    background: rgba(0, 122, 255, 0.3);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.messages::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 122, 255, 0.5);
}

.messages::-webkit-scrollbar-corner {
    background: transparent;
}

.welcome-content {
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
    padding: 40px 20px;
}

.welcome-header {
    text-align: center;
    margin-bottom: 32px;
}

.welcome-header h1 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.welcome-header p {
    font-size: 0.9rem;
    color: #999;
    font-weight: 400;
    line-height: 1.6;
}

.quick-section {
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.02);
    flex-shrink: 0;
}

.quick-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

.quick-label {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    font-weight: 500;
}

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

.quick-btn {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.quick-btn:hover {
    background: rgba(0, 122, 255, 0.06);
    border-color: rgba(0, 122, 255, 0.2);
    color: var(--primary-color);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 122, 255, 0.08);
}

.input-section {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.03);
    padding: 0px 24px 16px 24px;
    flex-shrink: 0;
}

.input-container {
    max-width: 900px;
    margin: 0 auto;
}

.input-box {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-full);
    padding: 10px 16px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 2px 8px rgba(0,0,0,0.04),
        0 0 0 1px rgba(255, 255, 255, 0.8) inset;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.input-box:focus-within {
    border-color: rgba(0, 122, 255, 0.35);
    box-shadow: 
        0 4px 20px rgba(0, 122, 255, 0.1),
        0 0 0 4px rgba(0, 122, 255, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.9) inset;
}

.input-box.auto-focus {
    animation: focusPulse 2s ease-in-out;
}

@keyframes focusPulse {
    0%, 100% {
        box-shadow: 
            0 2px 8px rgba(0,0,0,0.04),
            0 0 0 1px rgba(255, 255, 255, 0.8) inset;
    }
    25% {
        box-shadow: 
            0 0 0 0 rgba(0, 122, 255, 0.4),
            0 0 0 8px rgba(0, 122, 255, 0.1),
            0 0 0 16px rgba(0, 122, 255, 0.05),
            0 0 0 1px rgba(255, 255, 255, 0.8) inset;
    }
    50% {
        box-shadow: 
            0 0 0 4px rgba(0, 122, 255, 0.2),
            0 0 0 12px rgba(0, 122, 255, 0.08),
            0 0 0 20px rgba(0, 122, 255, 0.03),
            0 0 0 1px rgba(255, 255, 255, 0.8) inset;
    }
    75% {
        box-shadow: 
            0 0 0 2px rgba(0, 122, 255, 0.15),
            0 0 0 6px rgba(0, 122, 255, 0.06),
            0 0 0 1px rgba(255, 255, 255, 0.8) inset;
    }
}

.input-box textarea {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 15px;
    color: var(--text-primary);
    resize: none;
    outline: none;
    max-height: 120px;
    min-height: 24px;
    line-height: 1.5;
    padding: 8px 0;
    font-family: inherit;
    -webkit-user-select: text;
    user-select: text;
}

.input-box textarea::placeholder {
    color: var(--text-muted);
}

.action-btn {
    height: 40px;
    padding: 0 14px;
    border: none;
    background: rgba(0, 0, 0, 0.04);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: var(--radius-full);
    color: #4B5563;
    flex-shrink: 0;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-size: 13px;
    font-weight: 500;
}

.action-btn:hover {
    background: rgba(0, 122, 255, 0.1);
    color: var(--primary-color);
    transform: scale(1.05);
}

.action-btn:active {
    transform: scale(0.95);
    background: rgba(0, 122, 255, 0.15);
}

.icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.btn-label {
    white-space: nowrap;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.upload-btn {
    background: rgba(34, 197, 94, 0.12);
    color: #16a34a;
    border: 1.5px solid rgba(34, 197, 94, 0.3);
}

.upload-btn:hover {
    background: rgba(34, 197, 94, 0.2);
    color: #15803d;
    border-color: rgba(34, 197, 94, 0.5);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2);
}

.upload-btn svg {
    stroke-width: 2.5;
}

.voice-btn {
    background: rgba(168, 85, 247, 0.12);
    color: #9333ea;
    border: 1.5px solid rgba(168, 85, 247, 0.3);
}

.voice-btn:hover {
    background: rgba(168, 85, 247, 0.2);
    color: #7c3aed;
    border-color: rgba(168, 85, 247, 0.5);
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.2);
}

.voice-btn.recording {
    background: rgba(239, 68, 68, 0.15);
    color: #dc2626;
    border-color: rgba(239, 68, 68, 0.5);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.05); }
}

.send-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--primary-color);
    color: white;
    border-radius: var(--radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(0, 122, 255, 0.35);
}

.send-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px) scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 122, 255, 0.45);
}

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

.send-btn:disabled {
    background: var(--bg-tertiary);
    color: var(--text-muted);
    cursor: not-allowed;
    box-shadow: none;
}

.btn-icon {
    width: 18px;
    height: 18px;
}

.input-hint {
    text-align: center;
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 8px;
}

.news-section-bottom {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.02);
    max-height: 120px;
    overflow-y: auto;
    flex-shrink: 0;
}

.news-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 8px 24px;
}

.section-header-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.section-header-bottom h2 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.news-list-bottom {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 8px;
}

.news-card {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.news-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(45,125,154,0.1);
}

.news-card-icon {
    width: 80px;
    height: 80px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    flex-shrink: 0;
}

.news-card-body {
    flex: 1;
    min-width: 0;
}

.news-card-title {
    font-size: 15px;
    margin: 0 0 6px;
    color: var(--text-primary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-summary {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0 0 6px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-time {
    font-size: 12px;
    color: var(--text-muted);
}

.news-image-wrapper {
    width: 120px;
    flex-shrink: 0;
    overflow: hidden;
}

.news-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0;
    border-radius: 0;
}

.news-content-bottom {
    padding: 10px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.news-content-bottom h3 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-content-bottom p {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 4px;
}

.news-time {
    font-size: 11px;
    color: var(--text-muted);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.section-header h2 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.more-link {
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    transition: all 0.2s ease;
}

.more-link:hover {
    color: var(--primary-color);
    background: rgba(26, 115, 232, 0.08);
}

.message {
    display: flex;
    gap: 12px;
    animation: fadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 85%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--bg-secondary);
    box-shadow: var(--shadow-sm);
    color: var(--text-secondary);
}

.avatar svg {
    width: 18px;
    height: 18px;
}

.bot-avatar {
    background: linear-gradient(135deg, #007AFF 0%, #5856D6 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.3);
}

.member-avatar {
    background: linear-gradient(135deg, #FFD700 0%, #FF8C00 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.guest-avatar {
    background: linear-gradient(135deg, #8E8E93 0%, #636366 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(142, 142, 147, 0.3);
}

.content {
    padding: 10px 16px;
    border-radius: var(--radius-lg);
    line-height: 1.6;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    max-width: 100%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: pre-wrap;
    hyphens: auto;
    overflow-x: hidden;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.content p,
.content span,
.content div {
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
}

.content img {
    max-width: 100%;
    max-height: 220px;
    border-radius: var(--radius-md);
    margin-top: 10px;
    object-fit: contain;
}

.user-message .content {
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.92) 0%, rgba(90, 200, 250, 0.9) 100%);
    color: white;
    border-bottom-right-radius: var(--radius-sm);
    box-shadow: 0 4px 16px rgba(0, 122, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.bot-message {
    flex-direction: column;
    align-items: flex-start;
}

.bot-message .content {
    border-bottom-left-radius: var(--radius-sm);
    background: #f0f4f8;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* 流式输出光标 */
.bot-message .content.streaming::after {
    content: '▍';
    animation: blink-cursor 1s step-end infinite;
    color: #007aff;
    margin-left: 1px;
}

@keyframes blink-cursor {
    50% { opacity: 0; }
}

/* 用户标识徽章 */
.user-badge {
    font-size: 11px;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    margin-bottom: 6px;
    display: inline-block;
    font-weight: 600;
    opacity: 0.9;
}

.user-badge.member {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
}

.user-badge.guest {
    background: rgba(23, 162, 184, 0.2);
    color: #17a2b8;
}

.user-message .user-badge.member {
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
}

.user-message .user-badge.guest {
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
}

.bot-name {
    color: #FF3B30;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    text-shadow: 0 0 10px rgba(255, 59, 48, 0.3);
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { 
        text-shadow: 0 0 10px rgba(255, 59, 48, 0.3);
    }
    50% { 
        text-shadow: 0 0 20px rgba(255, 59, 48, 0.6), 0 0 30px rgba(255, 149, 0, 0.4);
    }
}

.bot-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.bot-name-row {
    display: flex;
    align-items: center;
}

.bot-header .avatar {
    margin-left: 0;
}

.user-message .user-badge.member {
    color: #FFD700;
}

.user-message .user-badge.guest {
    color: #333333;
}

.user-message {
    align-self: flex-end;
    margin-left: auto;
    flex-direction: column;
    align-items: flex-end;
}

.user-message .user-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
    align-self: flex-end;
}

.user-message .user-badge {
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.user-message .avatar {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.user-message .user-header .avatar {
    margin-left: 4px;
}

/* 消息反馈按钮 */
.message-feedback {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    margin-left: 56px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.bot-message:hover .message-feedback {
    opacity: 1;
}

.feedback-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: var(--text-muted);
}

.feedback-btn:hover {
    background: var(--bg-primary);
}

.feedback-btn.positive:hover {
    color: #28a745;
}

.feedback-btn.negative:hover {
    color: var(--danger-color);
}

.feedback-btn svg {
    width: 16px;
    height: 16px;
}

.feedback-thanks {
    font-size: 12px;
    color: var(--text-muted);
    padding: 4px 12px;
    background: var(--bg-primary);
    border-radius: var(--radius-full);
    transition: opacity 0.3s ease;
}

.feedback-btn.edit:hover {
    color: var(--primary-color);
}

/* 修改答案模态框 */
.edit-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.edit-modal {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.2s ease;
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-primary);
}

.modal-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.modal-close {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 20px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.modal-body {
    padding: 24px;
    max-height: 50vh;
    overflow-y: auto;
}

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

.modal-body .form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.modal-body textarea,
.modal-body input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    color: var(--text-primary);
    background: var(--bg-primary);
    resize: vertical;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.modal-body textarea:focus,
.modal-body input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.readonly-textarea {
    background: var(--bg-secondary);
    color: var(--text-muted);
    cursor: not-allowed;
}

.modal-footer {
    display: flex;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-primary);
}

.modal-footer .btn {
    flex: 1;
    justify-content: center;
}

.clear-btn {
    padding: 8px 18px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.clear-btn:hover {
    background: rgba(234, 67, 53, 0.08);
    border-color: rgba(234, 67, 53, 0.3);
    color: var(--danger-color);
}

.clear-icon {
    width: 16px;
    height: 16px;
}

.news-section {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0,0,0,0.03);
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-item {
    display: flex;
    gap: 20px;
    padding: 16px;
    border-radius: var(--radius-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
    background: rgba(0,0,0,0.01);
}

.news-item:hover {
    background: rgba(0,0,0,0.01);
}

.news-item img {
    width: 160px;
    height: 110px;
    object-fit: cover;
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.news-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.news-content h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    transition: color 0.2s ease;
}

.news-item:hover .news-content h3 {
    color: var(--primary-color);
}

.news-content p {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-time {
    font-size: 12px;
    color: var(--text-muted);
}

.footer {
    text-align: center;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 0, 0, 0.03);
    font-size: 12px;
    color: rgba(102, 102, 102, 0.5);
}

.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 12px;
}

.typing-indicator span {
    width: 6px;
    height: 6px;
    background: var(--text-muted);
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(1) { animation-delay: 0s; }
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 60%, 100% { transform: scale(0.6); opacity: 0.5; }
    30% { transform: scale(1); opacity: 1; }
}

.typing-text {
    font-size: 13px;
    color: var(--text-muted);
    margin-left: 6px;
    white-space: nowrap;
}

.loading-row {
    display: flex;
    align-items: center;
    flex-direction: row;
}

.verified-badge {
    display: inline;
    background: linear-gradient(135deg, #ffd700 0%, #ffb700 100%);
    color: #8B4513;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(255, 215, 0, 0.3);
    animation: shimmer 2s ease-in-out infinite;
    cursor: help;
    position: relative;
}

.verified-badge:hover::after {
    content: attr(title);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    max-width: 300px;
}

.verified-badge:hover::before {
    content: '';
    position: absolute;
    bottom: calc(100%);
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #333;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

.verified-badge:hover::after,
.verified-badge:hover::before {
    opacity: 1;
    visibility: visible;
}

@keyframes shimmer {
    0%, 100% { box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3); }
    50% { box-shadow: 0 2px 12px rgba(255, 215, 0, 0.5); }
}

@media (max-width: 768px) {
    .header {
        padding: 8px 12px;
        position: sticky;
        top: 0;
        z-index: 100;
    }
    
    .header-inner {
        padding: 0;
        gap: 8px;
        flex-wrap: wrap;
    }
    
    .logo-area {
        flex-shrink: 0;
    }
    
    .logo-icon {
        width: 80px;
        height: 40px;
    }
    
    .logo-icon img {
        object-fit: contain;
    }
    
    .logo-text {
        font-size: 1.1rem;
        display: none;
    }
    
    .nav {
        gap: 6px;
        flex-wrap: wrap;
    }
    
    .nav-link {
        padding: 6px 10px;
        font-size: 12px;
        gap: 6px;
    }
    
    .nav-icon {
        width: 16px;
        height: 16px;
    }
    
    .nav-link span {
        display: none;
    }
    
    .user-panel {
        margin-right: 0;
        gap: 8px;
    }
    
    .user-name {
        font-size: 12px;
        display: none;
    }
    
    .login-btn,
    .logout-btn {
        padding: 4px 10px;
        font-size: 12px;
    }
    
    .main-content {
        height: calc(100dvh - 56px);
        padding-bottom: 85px;
    }
    
    .chat-section-inner {
        max-width: 100%;
        margin: 0;
        border-radius: 0;
        border-left: none;
        border-right: none;
        box-shadow: none;
        flex: 1;
        display: flex;
        flex-direction: column;
        min-height: 0;
    }
}

/* 手机端：紧凑样式 */
@media (max-width: 768px) {
    .chat-header {
        padding: 8px 12px;
    }
    .merchant-link {
        font-size: 12px;
        padding: 6px 12px;
    }
    .news-section-bottom {
        display: none;
    }
    .clear-btn {
        padding: 6px 12px;
        font-size: 12px;
        gap: 4px;
    }
    
    .clear-icon {
        width: 14px;
        height: 14px;
    }
    
    .messages-wrapper {
        flex: 1;
        min-height: 0;
    }
    
    .messages {
        padding: 12px 10px;
        gap: 12px;
        flex: 1;
        min-height: 0;
    }
    
    .welcome-content {
        padding: 24px 12px;
    }
    
    .welcome-header h1 {
        font-size: 1.1rem;
    }
    
    .welcome-header p {
        font-size: 0.8rem;
        line-height: 1.5;
    }
    
    .message {
        max-width: 92%;
        gap: 8px;
    }
    
    .avatar {
        width: 32px;
        height: 32px;
    }
    
    .avatar svg {
        width: 16px;
        height: 16px;
    }
    
    .content {
        padding: 10px 14px;
        font-size: 13px;
        line-height: 1.5;
    }
    
    .user-message .content {
        border-bottom-right-radius: 4px;
    }
    
    .bot-message .content {
        border-bottom-left-radius: 4px;
    }
    
    .user-badge {
        font-size: 10px;
        padding: 2px 8px;
        margin-bottom: 4px;
    }
    
    .quick-section {
        padding: 8px 12px;
        background: #f8f9fa;
    }
    
    .quick-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    .quick-label {
        font-size: 11px;
    }
    
    .quick-buttons {
        gap: 4px;
        flex-wrap: wrap;
    }
    
    .quick-btn {
        padding: 5px 10px;
        font-size: 11px;
        border-radius: 12px;
    }
    
    .input-section {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 50;
        padding: 8px 12px 12px 12px;
        background: white;
        border-top: 1px solid #eee;
    }
    
    .input-container {
        width: 100%;
        margin: 0 auto;
    }
    
    .input-box {
        padding: 6px 10px;
        gap: 4px;
        border-radius: 20px;
    }
    
    .input-box textarea {
        font-size: 14px;
        padding: 6px 0;
    }
    
    .action-btn {
        height: 34px;
        padding: 0 10px;
        font-size: 12px;
    }

    .icon {
        width: 18px;
        height: 18px;
    }

    .btn-label {
        font-size: 12px;
    }
    
    .send-btn {
        width: 34px;
        height: 34px;
        border-radius: 50%;
    }
    
    .btn-icon {
        width: 16px;
        height: 16px;
    }
    
    .input-hint {
        font-size: 10px;
        margin-top: 6px;
    }
    
    .news-section-bottom {
        max-height: 140px;
        padding-top: 8px;
        padding-bottom: 8px;
    }
    
    .news-container {
        padding: 8px 12px;
    }
    
    .section-header-bottom {
        margin-bottom: 4px;
    }
    
    .section-header-bottom h2 {
        font-size: 13px;
    }
    
    .more-link {
        font-size: 11px;
        padding: 4px 8px;
    }
    
    .news-list-bottom {
        gap: 8px;
        padding-bottom: 4px;
    }
    
    .news-item-bottom {
        min-width: 240px;
        padding: 8px;
    }
    
    .news-image-wrapper {
        width: 90px;
    }
    
    .news-item-bottom img {
        width: 100%;
        height: 65px;
        object-fit: cover;
        border-radius: 4px;
    }
    
    .news-content-bottom {
        padding: 6px 8px;
    }
    
    .news-content-bottom h3 {
        font-size: 12px;
        margin-bottom: 3px;
    }
    
    .news-content-bottom p {
        font-size: 10px;
        margin-bottom: 3px;
    }
    
    .news-time {
        font-size: 9px;
    }
    
    .footer {
        padding: 12px;
        font-size: 11px;
    }

    /* 手机端固定布局，隐藏底部资讯和页脚 */
    .news-section-bottom,
    .footer {
        display: none;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 6px 10px;
    }
    
    .header-inner {
        gap: 6px;
    }
    
    .logo-icon {
        width: 70px;
        height: 35px;
    }
    
    .logo-text {
        font-size: 0.9rem;
        display: none;
    }
    
    .nav-link {
        padding: 4px 8px;
        font-size: 11px;
    }
    
    .nav-icon {
        width: 14px;
        height: 14px;
    }
    
    .user-panel {
        gap: 6px;
    }
    
    .login-btn,
    .logout-btn {
        padding: 3px 8px;
        font-size: 11px;
    }
    
    .main-content {
        height: calc(100dvh - 44px);
        padding-bottom: 0;
    }

    /* 手机端固定布局：头部和输入框fixed */
    body, .page-container {
        height: 100dvh;
        overflow: hidden;
    }

    .header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 200;
    }

    .main-content {
        height: 100dvh;
        padding-top: 44px;
        padding-bottom: 62px;
        overflow: hidden;
    }

    .news-section-bottom {
        display: none !important;
    }

    .footer {
        display: none !important;
    }

    /* ===== 手机端输入栏 ===== */
    .input-section {
        position: fixed !important;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 200;
        background: #f5f5f5;
        padding: 8px 12px;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        flex-shrink: 0;
        border-top: none;
    }

    .input-box {
        display: grid;
        grid-template-columns: auto 1fr auto auto;
        align-items: center;
        gap: 4px;
        padding: 4px 4px 4px 8px;
        border-radius: 22px;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        flex-shrink: 0;
        background: #fff;
        border: 1px solid #e8e8e8;
        box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    }

    .input-box:focus-within {
        border-color: #ccc;
    }
    
    .input-box textarea {
        font-size: 14px;
        padding: 6px 0 6px 4px;
        min-width: 0;
        width: 100%;
        height: 24px;
        line-height: 22px;
        background: transparent;
        border: none;
        outline: none;
        resize: none;
    }
    
    .input-box textarea::placeholder {
        color: #bbb;
        font-size: 14px;
    }

    .action-btn {
        height: 30px;
        width: 30px;
        padding: 0;
        justify-content: center;
        gap: 0;
        border-radius: 50%;
        flex-shrink: 0;
        background: transparent;
        border: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        color: #666;
    }
    
    .btn-label {
        display: none;
    }
    
    .icon {
        width: 18px;
        height: 18px;
    }

    .send-btn {
        width: 30px;
        height: 30px;
        border-radius: 50%;
        flex-shrink: 0;
        padding: 0;
        background: #007AFF;
        border: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
    }
    
    .btn-icon {
        width: 14px;
        height: 14px;
    }
    
    .input-hint {
        display: none;
    }
    
    .chat-header {
        padding: 6px 10px;
    }
    
    .clear-btn {
        padding: 4px 10px;
        font-size: 11px;
    }
    
    .messages {
        padding: 10px 8px;
        gap: 10px;
    }
    
    .welcome-content {
        padding: 20px 10px;
    }
    
    .welcome-header h1 {
        font-size: 1rem;
    }
    
    .welcome-header p {
        font-size: 0.75rem;
        line-height: 1.5;
    }
    
    .message {
        max-width: 94%;
        gap: 6px;
    }
    
    .avatar {
        width: 28px;
        height: 28px;
    }
    
    .avatar svg {
        width: 14px;
        height: 14px;
    }
    
    .content {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .message-feedback {
        opacity: 1;
        margin-left: 36px;
    }
    
    .user-badge {
        font-size: 9px;
        padding: 1px 6px;
    }
    
    .quick-section {
        padding: 6px 10px;
    }
    
    .quick-label {
        font-size: 10px;
    }
    
    .quick-btn {
        padding: 4px 8px;
        font-size: 10px;
        border-radius: 10px;
    }
    
    .news-section-bottom {
        max-height: 120px;
    }
    
    .news-container {
        padding: 6px 10px;
    }
    
    .section-header-bottom h2 {
        font-size: 13px;
    }
    
    .news-item-bottom {
        padding: 8px;
    }
    
    .news-item-bottom img {
        width: 70px;
        height: 52px;
        border-radius: 4px;
    }
    
    .news-content-bottom h3 {
        font-size: 12px;
        margin-bottom: 3px;
    }
    
    .news-content-bottom p {
        font-size: 10px;
        margin-bottom: 3px;
    }
    
    .news-time {
        font-size: 9px;
    }
}

/* 用户面板样式 */
.user-panel {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-right: 16px;
}

.user-name {
    font-size: 14px;
    font-weight: 500;
    color: #666;
    transition: color 0.2s ease;
}

.login-btn,
.logout-btn {
    padding: 6px 16px;
    border: none;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.login-btn {
    background: rgba(26, 115, 232, 0.1);
    color: var(--primary-color);
}

.login-btn:hover {
    background: rgba(26, 115, 232, 0.2);
}

.logout-btn {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.logout-btn:hover {
    background: rgba(220, 53, 69, 0.2);
}

/* 认证模态框 */
.auth-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: modalFadeIn 0.3s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

@keyframes modalFadeIn {
    from { 
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to { 
        opacity: 1;
        backdrop-filter: blur(8px);
    }
}

.auth-modal {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 50%, #ffffff 100%);
    border-radius: 24px;
    width: 90%;
    max-width: 440px;
    overflow: visible;
    position: relative;
    animation: modalSlideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 
        0 25px 80px rgba(0, 122, 255, 0.25),
        0 15px 40px rgba(0, 0, 0, 0.15),
        0 5px 15px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.auth-modal::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, 
        #007AFF 0%, 
        #5AC8FA 25%, 
        #34C759 50%, 
        #FF9500 75%, 
        #FF3B30 100%);
    border-radius: 26px;
    z-index: -1;
    opacity: 0.8;
    filter: blur(1px);
}

.auth-modal::after {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(0, 122, 255, 0.15) 0%, transparent 70%);
    pointer-events: none;
    animation: glowPulse 3s ease-in-out infinite;
}

.auth-modal .modal-glow {
    position: absolute;
    top: -30px;
    left: -30px;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(90, 200, 250, 0.3) 0%, transparent 70%);
    pointer-events: none;
    animation: glowFloat 4s ease-in-out infinite;
}

@keyframes modalSlideUp {
    from { 
        transform: translateY(40px) scale(0.95);
        opacity: 0;
    }
    to { 
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

@keyframes glowFloat {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(10px, -10px); }
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.auth-tabs {
    display: flex;
    background: linear-gradient(145deg, #e8eaed 0%, #f5f5f7 100%);
    padding: 10px;
    margin: 20px;
    border-radius: 16px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.auth-tab {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    color: var(--text-secondary);
    position: relative;
    overflow: hidden;
}

.auth-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 12px;
}

.auth-tab.active {
    background: var(--bg-secondary);
    color: var(--primary-color);
    box-shadow: 
        0 4px 12px rgba(0, 122, 255, 0.2),
        0 2px 6px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.auth-tab.active::before {
    opacity: 0.05;
}

.auth-form {
    padding: 0 36px 36px;
}

.auth-form .form-group {
    margin-bottom: 24px;
}

.auth-form .form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 10px;
    letter-spacing: 0.3px;
}

.auth-form input,
.auth-form textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e8eaed;
    border-radius: 14px;
    font-size: 15px;
    color: var(--text-primary);
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    box-sizing: border-box;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.02),
        0 1px 2px rgba(0, 0, 0, 0.04);
}

.auth-form input:focus,
.auth-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #ffffff;
    box-shadow: 
        0 0 0 4px rgba(0, 122, 255, 0.1),
        0 4px 12px rgba(0, 122, 255, 0.15);
    transform: translateY(-1px);
}

.auth-form input:hover:not(:focus),
.auth-form textarea:hover:not(:focus) {
    border-color: #d0d3d8;
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.02),
        0 2px 8px rgba(0, 0, 0, 0.06);
}

.auth-btn {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056CC 100%);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 4px 15px rgba(0, 122, 255, 0.4),
        0 2px 6px rgba(0, 0, 0, 0.1);
}

.auth-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.auth-btn:hover {
    background: linear-gradient(135deg, #0056CC 0%, #003D99 100%);
    transform: translateY(-2px);
    box-shadow: 
        0 8px 25px rgba(0, 122, 255, 0.5),
        0 4px 12px rgba(0, 0, 0, 0.15);
}

.auth-btn:hover::before {
    left: 100%;
}

.auth-btn:active {
    transform: translateY(0);
    box-shadow: 
        0 2px 8px rgba(0, 122, 255, 0.4),
        0 1px 3px rgba(0, 0, 0, 0.1);
}

.auth-hint {
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 20px;
}

.modal-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    background: linear-gradient(145deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.08));
    border-radius: 50%;
    font-size: 22px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.modal-close-btn:hover {
    background: linear-gradient(145deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.15));
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: var(--danger-color);
}

.modal-close-btn:active {
    transform: rotate(90deg) scale(1);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .user-panel {
        margin-right: 8px;
        gap: 8px;
    }
    
    .user-name {
        font-size: 12px;
    }
    
    .login-btn,
    .logout-btn {
        padding: 4px 12px;
        font-size: 12px;
    }
    
    .auth-modal {
        width: 95%;
        margin: 16px;
    }
}

/* ========== 商家卡片 ========== */
.merchant-card-message .content {
    width: 100%;
}

.merchant-card {
    background: linear-gradient(135deg, #fffbe6 0%, #fff8d6 100%);
    border: 1px solid #f0d060;
    border-radius: 12px;
    padding: 16px;
    margin-top: 8px;
}

.merchant-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.merchant-card-icon {
    font-size: 24px;
}

.merchant-card-name {
    font-size: 16px;
    font-weight: 600;
    color: #8b6914;
}

.merchant-card .verified-badge {
    background: linear-gradient(135deg, #f5c518, #f0a800);
    color: #fff;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.merchant-card .verified-badge:hover {
    transform: scale(1.05);
}

.merchant-card-info {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
}

.merchant-card-btn {
    background: linear-gradient(135deg, #f5c518, #f0a800);
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
}

.merchant-card-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(240, 168, 0, 0.3);
}

/* ========== 商家详情弹窗(内部) ========== */
.merchant-detail-section {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f5;
    background: linear-gradient(145deg, #fafbfc 0%, #ffffff 100%);
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.merchant-detail-section:last-child {
    border-bottom: none;
}

.merchant-detail-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.merchant-detail-text {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    background: linear-gradient(145deg, #f8f9fa 0%, #ffffff 100%);
    padding: 12px;
    border-radius: 10px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.03);
}

.merchant-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 14px;
    border-bottom: 1px solid #f5f5f7;
    transition: background 0.2s ease;
}

.merchant-detail-row:last-child {
    border-bottom: none;
}

.merchant-detail-row:hover {
    background: linear-gradient(90deg, transparent, rgba(0, 122, 255, 0.03), transparent);
    margin: 0 -8px;
    padding: 10px 8px;
}

.merchant-detail-label {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.merchant-detail-value {
    color: var(--text-primary);
    text-align: right;
    max-width: 60%;
    font-weight: 500;
}

/* ========== 商梯队标 ========== */
.tier-badge {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    margin-right: 4px;
}

.tier-badge.tier-1 { background: linear-gradient(135deg, #ffd700, #ffb300); color: #5a3e00; }
.tier-badge.tier-2 { background: linear-gradient(135deg, #c0c0c0, #a0a0a0); color: #fff; }
.tier-badge.tier-3 { background: linear-gradient(135deg, #cd7f32, #b8860b); color: #fff; }
.tier-badge.tier-4 { background: linear-gradient(135deg, #87ceeb, #5f9ea0); color: #fff; }

/* ========== 文章内容页 ========== */
.content-page {
    background: #f8f9fa;
    min-height: 100vh;
    height: auto;
    overflow: visible;
}

.content-page .page-container {
    height: auto;
    min-height: 100vh;
}

.content-page .header {
    background: rgba(255,255,255,0.95);
    border-bottom: 1px solid #e8e8ec;
}

.content-page .nav-link {
    font-size: 13px;
    padding: 8px 16px;
}

.article-wrapper {
    max-width: 720px;
    margin: 0 auto;
    padding: 40px 24px 60px;
}

.article-wrapper .back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 32px;
    transition: color 0.2s;
}

.article-wrapper .back-link:hover {
    color: var(--primary-color);
}

.article-header {
    margin-bottom: 36px;
}

.article-header .tag-row {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.article-header .tag-row .tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-color);
    background: rgba(0,122,255,0.08);
    padding: 4px 12px;
    border-radius: 20px;
}

.article-header h1 {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.35;
    color: #1d1d1f;
    margin-bottom: 14px;
    letter-spacing: -0.5px;
}

.article-header .meta {
    display: flex;
    align-items: center;
    gap: 16px;
    color: #86868b;
    font-size: 14px;
}

.article-header .meta .date {
    display: flex;
    align-items: center;
    gap: 4px;
}

.article-body {
    font-size: 17px;
    line-height: 1.85;
    color: #2c2c2e;
}

.article-body p {
    margin-bottom: 20px;
}

.article-body h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 40px 0 16px;
    color: #1d1d1f;
    letter-spacing: -0.3px;
}

.article-body h3 {
    font-size: 19px;
    font-weight: 600;
    margin: 32px 0 12px;
    color: #1d1d1f;
}

.article-body ul,
.article-body ol {
    margin-bottom: 20px;
    padding-left: 24px;
}

.article-body li {
    margin-bottom: 8px;
}

.article-body strong {
    font-weight: 600;
    color: #1d1d1f;
}

.article-body blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 12px 20px;
    margin: 24px 0;
    background: rgba(0,122,255,0.04);
    border-radius: 0 8px 8px 0;
    color: #636366;
    font-style: normal;
}

.article-body blockquote p {
    margin-bottom: 0;
}

.article-cta {
    margin-top: 48px;
    padding: 32px;
    background: linear-gradient(135deg, #f0f4ff, #e8f0fe);
    border-radius: 16px;
    text-align: center;
}

.article-cta h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 8px;
}

.article-cta p {
    font-size: 14px;
    color: #636366;
    margin-bottom: 20px;
    line-height: 1.6;
}

.article-cta .chat-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: var(--primary-color);
    color: white;
    border-radius: 9999px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s;
    box-shadow: 0 4px 14px rgba(0,122,255,0.3);
}

.article-cta .chat-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0,122,255,0.4);
}

/* ========== 文章列表页 ========== */
.articles-page {
    background: #f8f9fa;
    min-height: 100vh;
    height: auto;
    overflow: visible;
}

.articles-page .page-container {
    height: auto;
    min-height: 100vh;
}

.articles-page .header {
    background: rgba(255,255,255,0.95);
    border-bottom: 1px solid #e8e8ec;
}

.articles-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 24px 60px;
}

.articles-header {
    margin-bottom: 36px;
}

.articles-header .back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 20px;
    transition: color 0.2s;
}

.articles-header .back-link:hover {
    color: var(--primary-color);
}

.articles-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 8px;
}

.articles-header .subtitle {
    font-size: 15px;
    color: #86868b;
}

.articles-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.articles-list .article-card {
    display: flex;
    gap: 24px;
    padding: 24px 0;
    border-bottom: 1px solid #e8e8ec;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

.articles-list .article-card:last-child {
    border-bottom: none;
}

.articles-list .article-card:hover {
    padding-left: 8px;
    padding-right: 8px;
    margin: 0 -8px;
    background: rgba(255,255,255,0.6);
    border-radius: 12px;
}

.articles-list .card-emoji {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    background: #f0f2f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    flex-shrink: 0;
}

.articles-list .card-info {
    flex: 1;
    min-width: 0;
}

.articles-list .card-info h2 {
    font-size: 18px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 8px;
    line-height: 1.4;
}

.articles-list .card-info .summary {
    font-size: 14px;
    color: #636366;
    line-height: 1.6;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.articles-list .card-info .meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #aeaeb2;
}

.articles-list .card-info .meta .tag {
    font-size: 11px;
    color: var(--primary-color);
    background: rgba(0,122,255,0.08);
    padding: 2px 10px;
    border-radius: 20px;
    font-weight: 500;
}

.articles-list .empty {
    text-align: center;
    padding: 80px 20px;
    color: #aeaeb2;
}

.articles-list .empty .icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.articles-list .empty p {
    font-size: 15px;
}

@media (max-width: 768px) {
    .article-wrapper { padding: 24px 16px 40px; }
    .article-header h1 { font-size: 24px; }
    .article-body { font-size: 16px; }

    .articles-wrapper { padding: 24px 16px 40px; }
    .articles-header h1 { font-size: 24px; }
    .articles-list .article-card { gap: 16px; }
    .articles-list .card-emoji { width: 60px; height: 60px; font-size: 24px; }  
}

/* ====================================
   Article Detail Page Styles
   ==================================== */

/* Article Page Base */
.article-page {
    background: var(--bg-primary);
}

.article-main {
    flex: 1;
    overflow-y: auto;
    padding: 32px 0 64px;
    -webkit-overflow-scrolling: touch;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 32px;
    width: 100%;
}

/* Breadcrumb Navigation */
.article-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 28px;
    padding: 0;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-item svg {
    width: 16px;
    height: 16px;
}

.breadcrumb-item:hover {
    color: var(--primary-color);
}

.breadcrumb-separator {
    color: var(--text-muted);
    font-size: 14px;
}

.breadcrumb-current {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
}

/* Article Detail Container */
.article-detail {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 32px;
}

/* Article Cover */
.article-cover {
    margin-bottom: 32px;
}

.cover-emoji {
    width: 88px;
    height: 88px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    box-shadow: var(--shadow-md);
}

/* Article Title */
.article-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

/* Article Meta Information */
.article-meta {
    display: flex;
    align-items: center;
    gap: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.meta-item svg {
    width: 18px;
    height: 18px;
    color: var(--secondary-color);
}

.article-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-left: auto;
}

.article-tag {
    font-size: 12px;
    color: var(--primary-color);
    background: rgba(0, 122, 255, 0.1);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-weight: 500;
    transition: all 0.2s;
}

.article-tag:hover {
    background: rgba(0, 122, 255, 0.15);
}

/* Article Divider */
.article-divider {
    height: 1px;
    background: var(--border-color);
    margin: 32px 0;
}

/* Article Body */
.article-body {
    font-size: 17px;
    line-height: 1.9;
    color: var(--text-primary);
    word-wrap: break-word;
}

.article-body p {
    margin-bottom: 24px;
}

.article-body h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 48px 0 20px;
    padding-top: 8px;
    line-height: 1.4;
    letter-spacing: -0.3px;
}

.article-body h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 32px 0 16px;
    line-height: 1.4;
}

.article-body ul,
.article-body ol {
    margin: 24px 0;
    padding-left: 28px;
}

.article-body li {
    margin-bottom: 12px;
    line-height: 1.8;
    color: var(--text-primary);
}

.article-body blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 20px 24px;
    margin: 32px 0;
    background: var(--bg-primary);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: normal;
    color: var(--text-secondary);
}

.article-body blockquote p:last-child {
    margin-bottom: 0;
}

/* Article Actions */
.article-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
}

.action-left,
.action-right {
    display: flex;
    gap: 12px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.share-btn {
    background: var(--bg-primary);
    color: var(--text-primary);
}

.share-btn:hover {
    background: var(--bg-tertiary);
}

.back-btn {
    background: var(--primary-color);
    color: white;
}

.back-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.action-btn svg {
    width: 18px;
    height: 18px;
}

/* AI CTA Section */
.article-cta {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 32px;
    display: flex;
    align-items: center;
    gap: 24px;
    box-shadow: var(--shadow-md);
    margin-bottom: 32px;
}

.cta-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cta-icon svg {
    width: 28px;
    height: 28px;
    color: white;
}

.cta-content {
    flex: 1;
}

.cta-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.cta-content p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

.cta-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-full);
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s;
    white-space: nowrap;
}

.cta-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 122, 255, 0.3);
}

.cta-button svg {
    width: 18px;
    height: 18px;
}

/* Related Articles Section */
.article-related {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
}

.related-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.related-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.view-all {
    font-size: 14px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.view-all:hover {
    color: var(--primary-dark);
}

.related-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .article-main {
        padding: 24px 0 48px;
    }

    .article-content {
        padding: 0 16px;
    }

    .article-detail {
        padding: 24px;
        border-radius: var(--radius-md);
    }

    .cover-emoji {
        width: 64px;
        height: 64px;
        font-size: 32px;
    }

    .article-title {
        font-size: 26px;
    }

    .article-meta {
        gap: 16px;
    }

    .article-tags {
        margin-left: 0;
        width: 100%;
    }

    .article-body {
        font-size: 16px;
    }

    .article-body h2 {
        font-size: 22px;
    }

    .article-body h3 {
        font-size: 18px;
    }

    .article-actions {
        flex-direction: column;
        gap: 16px;
    }

    .action-left,
    .action-right {
        width: 100%;
        justify-content: center;
    }

    .action-btn {
        width: 100%;
        justify-content: center;
    }

    .article-cta {
        flex-direction: column;
        text-align: center;
        padding: 24px;
    }

    .cta-icon {
        width: 48px;
        height: 48px;
    }

    .cta-button {
        width: 100%;
        justify-content: center;
    }

    .article-related {
        padding: 24px;
    }

    .related-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .article-title {
        font-size: 22px;
    }

    .meta-item {
        font-size: 13px;
    }

    .article-body {
        font-size: 15px;
    }
}

/* ========== 语音栏（TTS） ========== */
.voice-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 0 2px;
    margin-top: 4px;
}

.voice-btn {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #aeaeb2;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    padding: 0;
}

.voice-btn svg {
    width: 16px;
    height: 16px;
}

.voice-btn:hover {
    background: rgba(0,122,255,0.08);
    color: var(--primary-color);
}

.sound-btn.playing {
    color: var(--primary-color);
    background: rgba(0,122,255,0.1);
    animation: voice-pulse 1.2s ease-in-out infinite;
}

.sound-btn.loading {
    opacity: 0.5;
    pointer-events: none;
}

@keyframes voice-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0,122,255,0.3); }
    50% { box-shadow: 0 0 0 6px rgba(0,122,255,0); }
}

.gender-btn {
    opacity: 0.4;
}

.gender-btn.active {
    opacity: 1;
    color: var(--primary-color);
}

.gender-btn:hover {
    opacity: 0.8;
}