/* Vue v-cloak 指令样式：在 Vue 挂载完成前隐藏模板 */
[v-cloak] {
    display: none !important;
}

/* 全局样式 */
:root {
    /* 高端简约配色方案 - 参考Anthropic风格 */
    --primary-color: #1a1a1a;           /* 主色：深黑色 */
    --secondary-color: #f5f3f0;         /* 次要色：浅灰米色 */
    --text-color: #1a1a1a;              /* 文本色：深黑色 */
    --text-secondary: #5a5a5a;          /* 次要文本：灰色 */
    --border-color: #d4d0cc;            /* 边框色：浅灰 */
    --success-color: #2d6a4f;           /* 成功色：深绿 */
    --error-color: #c1121f;             /* 错误色：深红 */
    --shadow-color: rgba(0, 0, 0, 0.08); /* 阴影：柔和 */
    --bg-main: #ebe8e3;                 /* 主背景：米白色 */
    --bg-card: #ffffff;                 /* 卡片背景：纯白 */
    --accent-color: #2c2c2c;            /* 强调色：深灰 */
}

@keyframes wave {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(10px);
    }
    100% {
        transform: translateY(0);
    }
}

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

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

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

@keyframes flowLight {
    0% {
        background-position: -100% center;
    }
    100% {
        background-position: 200% center;
    }
}


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

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--bg-main); /* 粉色渐变改为米白色 */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

#app {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

/* 页面布局容器 */
.page-container {
    flex: 1;
    display: flex;
    position: relative;
    height: 100vh;
    overflow: hidden;
}

/* 主要内容区域容器 */
.content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    transition: margin-left 0.3s ease;
    height: 100%;
    overflow: hidden;
}

/* ==================== 顶部导航栏样式 ==================== */
.top-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-main); /* 使用网页主题色：米白色 */
    z-index: 1000;
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.8rem 2rem; /* 进一步增加上下内边距，从0.5rem增加到0.8rem */
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 50px; /* 使用min-height代替固定height，允许内容撑开 */
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.navbar-logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-color);
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: color 0.3s ease;
}

.navbar-logo:hover {
    color: var(--accent-color);
}

.navbar-logo-img {
    height: 38px;
    width: auto;
    margin-right: 0.6rem;
    vertical-align: middle;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    letter-spacing: 0.01em;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--text-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Docs Dropdown Menu */
.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    padding: 0.5rem;
    min-width: 280px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: var(--secondary-color);
}

.dropdown-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.dropdown-content {
    display: flex;
    flex-direction: column;
}

.dropdown-title {
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-color);
}

.dropdown-desc {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* 移动端汉堡菜单按钮 */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    gap: 5px;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-color);
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* 汉堡菜单动画状态 */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* TODO: 临时促销标签样式，后期需要删除 */
.promo-badge {
    background: rgba(255, 255, 255, 0.7);
    color: var(--text-color);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    border: 2px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.promo-badge:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: #a8a4a0;
}

/* 导航栏中的Sign in按钮 */
.navbar-signin-btn {
    padding: 0.5rem 1.5rem;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 25px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px var(--shadow-color);
}

.navbar-signin-btn:hover {
    background: var(--text-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px var(--shadow-color);
}

/* 导航栏中的用户头像 */
.navbar-user-avatar {
    position: relative;
    cursor: pointer;
}

.navbar-avatar-img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    box-shadow: 0 2px 6px var(--shadow-color);
    transition: all 0.3s ease;
}

.navbar-avatar-img:hover {
    transform: scale(1.05);
    box-shadow: 0 3px 10px var(--shadow-color);
}

.navbar-default-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f5f3f0, #e8e5e0);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px var(--shadow-color);
    transition: all 0.3s ease;
}

.navbar-default-avatar svg {
    width: 22px;
    height: 22px;
    color: var(--text-secondary);
}

.navbar-default-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 3px 10px var(--shadow-color);
}

/* 导航栏中的用户下拉菜单 */
.navbar-user-avatar .user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
}

/* 页面容器增加顶部边距，留出导航栏空间 */
.page-container {
    padding-top: 50px; /* 与导航栏高度一致 */
}


/* 标题样式 */
.header {
    color: var(--text-color);
    padding: 0.2rem 1rem; /* 进一步缩小上边距，从0.5rem减少到0.2rem */
    padding-bottom: 0.3rem;
    text-align: center;
    margin-bottom: 0;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 10;
    overflow: visible;
}


/* 标题容器 */
.title-container {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.title {
    font-family: 'Outfit', sans-serif; /* 统一使用Outfit字体 */
    font-size: 2.8rem;
    font-weight: 600; /* 保持较粗字重 */
    margin-bottom: 0.2rem;
    color: var(--text-color);
    position: relative;
    z-index: 2;
    letter-spacing: 0.02em;
    margin: 0;
}

/* 域名样式 */
.domain-name {
    font-family: 'Outfit', sans-serif;
    font-size: 1.3rem;
    font-weight: 400; /* 较细字重形成对比 */
    color: var(--text-secondary);
    letter-spacing: 0.01em;
    position: relative;
    z-index: 2;
}

.subtitle {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    opacity: 0.85;
    letter-spacing: 0.03em;
}

/* ==================== 三步骤提示样式 ==================== */
.steps-guide {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 0;
    margin-bottom: 0.5rem;
    padding: 0.5rem 2rem;
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--accent-color); /* 改为深灰色 */
    color: white;
    border-radius: 50%;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    flex-shrink: 0;
}

.step-text {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-color); /* 保持深色 */
    white-space: nowrap;
}

.step-divider {
    color: var(--text-secondary); /* 改为灰色 */
    font-size: 1.2rem;
    font-weight: bold;
    opacity: 0.6;
}

/* ==================== 顶部右侧按钮区域样式（已废弃，用导航栏替代） ==================== */
.header-actions {
    display: none !important; /* 强制隐藏，已移至顶部导航栏 */
}

/* 联系我们按钮样式 */
.contact-us {
    padding: 0.6rem 1.2rem;
    background: var(--accent-color); /* 改为深灰色 */
    color: white;
    border-radius: 25px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px var(--shadow-color);
    border: none;
    text-align: center;
}

.contact-us:hover {
    background: var(--text-color); /* 悬停时更深 */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-color);
}

.contact-us:active {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px var(--shadow-color);
}

/* ==================== 用户头像区域样式 ==================== */
.user-avatar-container {
    position: relative;
    cursor: pointer;
    z-index: 999999;  /* 确保下拉菜单能覆盖页面其他元素 */
}

/* 用户头像（已登录状态） */
.user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.user-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* 默认头像（未登录状态） */
.default-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e0e5ec, #d1d9e6);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.default-avatar svg {
    width: 24px;
    height: 24px;
    color: #8e99a4;
}

.default-avatar:hover {
    background: linear-gradient(135deg, #d1d9e6, #c2ccd8);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* 已登录状态的默认头像（米白色/灰色系，与网站主题搭配） */
.default-avatar.logged-in {
    background: linear-gradient(135deg, #f5f3f0, #e8e5e0); /* 米白色渐变 */
    border: 2px solid #d4d0cc;
    box-shadow: 0 2px 8px var(--shadow-color);
}

.default-avatar.logged-in svg {
    color: var(--text-secondary); /* 灰色图标 */
}

.default-avatar.logged-in:hover {
    background: linear-gradient(135deg, #e8e5e0, #ddd9d4);
    transform: scale(1.05);
    box-shadow: 0 4px 12px var(--shadow-color);
}

/* Sign in 按钮样式 */
.sign-in-btn {
    padding: 0.6rem 1.5rem;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 25px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px var(--shadow-color);
    white-space: nowrap;
}

.sign-in-btn:hover {
    background: var(--text-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-color);
}

.sign-in-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px var(--shadow-color);
}

/* 用户下拉菜单 */
.user-dropdown {
    position: absolute;  /* 相对于父容器定位，吸附在头像下方 */
    top: 100%;           /* 紧贴在头像下方 */
    right: 0;            /* 与头像右对齐 */
    margin-top: 8px;     /* 与头像保持间距 */
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22);
    width: 420px;        /* 菜单宽度 */
    padding: 0;
    animation: fadeIn 0.2s ease;
    z-index: 999999;     /* 确保在所有元素之上，包括 sticky 元素 */
    overflow: hidden;
    max-height: calc(100vh - 120px);  /* 限制最大高度 */
    overflow-y: auto;
}

.user-info {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--secondary-color); /* 米白色背景 */
}

.user-email {
    font-size: 0.82rem;
    color: var(--text-color); /* 深色文本 */
    word-break: break-all;
    display: block;
    font-weight: 500;
}

/* ==================== 积分信息区域样式 ==================== */
.credits-section {
    padding: 0.8rem 1rem;
    background: #fafaf9; /* 淡米色 */
    border-bottom: 1px solid var(--border-color);
}

.credits-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.2rem;
}

.credits-label {
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    color: var(--text-secondary); /* 灰色 */
    font-weight: 500;
    letter-spacing: 0.01em;
}

.credits-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color); /* 深灰色 */
    background: linear-gradient(135deg, #2c2c2c, #1a1a1a); /* 深灰渐变 */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.credits-value.low-credits {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 推广期用户免费样式 */
.credits-value.promo-free {
    font-size: 1.1rem;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}

.credits-note {
    width: 100%;
    font-size: 0.75rem;
    color: #999;
    margin-top: 0.15rem;
    text-align: left;
}

.credits-note.promo-note {
    color: #27ae60;
    font-weight: 500;
}

/* 积分加载中样式 */
.loading-text {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    color: #888;
    font-weight: 500;
}

.loading-spinner-small {
    width: 14px;
    height: 14px;
    border: 2px solid #e0e0e0;
    border-top-color: var(--accent-color); /* 深灰色 */
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
}

/* 加载失败样式 */
.load-failed {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #e74c3c;
    font-weight: 500;
}

.retry-btn {
    padding: 0.25rem 0.6rem;
    background: transparent; /* 透明背景 */
    color: var(--text-color); /* 深灰色文字 */
    border: 1px solid var(--text-secondary); /* 深灰色边框 */
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.retry-btn:hover {
    background: var(--secondary-color); /* 悬停时浅灰色背景 */
    border-color: var(--text-color);
    color: var(--text-color); /* 确保文字颜色保持深色 */
}

/* 套餐状态样式 */
.subscription-info {
    margin-top: 0.5rem;
    padding: 0.5rem 0.7rem;
    background: rgba(235, 232, 227, 0.5); /* 淡米色背景 */
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.subscription-type {
    font-size: 0.8rem;
    color: var(--accent-color); /* 深灰色 */
    font-weight: 600;
    margin-bottom: 0.15rem;
}

.subscription-details {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.subscription-expire-date {
    font-size: 0.72rem;
    color: #666;
}

.subscription-reset-note {
    font-size: 0.65rem;
    color: #999;
    text-align: right;
}

.subscription-expired {
    font-size: 0.75rem;
    color: #e74c3c;
    font-weight: 500;
    background: #fff5f5;
    padding: 0.3rem 0.5rem;
    border-radius: 6px;
    margin-top: 0.2rem;
}

/* PAYG积分信息 */
.payg-info {
    margin-top: 0.5rem;
    padding: 0.5rem 0.7rem;
    background: rgba(230, 240, 250, 0.5);
    border-radius: 8px;
    border: 1px solid #d0e0f0;
}

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

.payg-label {
    font-size: 0.8rem;
    color: #4a90d9;
    font-weight: 600;
}

.payg-value {
    font-size: 0.9rem;
    font-weight: 700;
    color: #4a90d9;
}

.payg-value.expired {
    color: #999;
    text-decoration: line-through;
}

.payg-expire-date {
    font-size: 0.72rem;
    color: #666;
    margin-top: 0.15rem;
}

.payg-expired-notice {
    font-size: 0.75rem;
    color: #e74c3c;
    font-weight: 500;
    background: #fff5f5;
    padding: 0.3rem 0.5rem;
    border-radius: 6px;
    margin-top: 0.2rem;
}

/* 积分不足提示 */
.no-credits-alert {
    margin-top: 0.5rem;
    padding: 0.5rem 0.7rem;
    background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
    border: 1px solid #ffcccc;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.alert-icon {
    font-size: 1rem;
}

.alert-text {
    font-size: 0.75rem;
    color: #c0392b;
    font-weight: 500;
    line-height: 1.3;
}

/* 续费失败提示 */
.renewal-failed-alert {
    margin-top: 0.5rem;
    padding: 0.6rem 0.7rem;
    background: linear-gradient(135deg, #fef3f3 0%, #fde8e8 100%);
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
}

.renewal-failed-alert .alert-icon {
    font-size: 1rem;
    flex-shrink: 0;
}

.renewal-failed-alert .alert-text {
    font-size: 0.75rem;
    color: #a94442;
    font-weight: 500;
    line-height: 1.4;
}

/* ==================== 套餐购买区域样式 ==================== */
.plans-section {
    padding: 0.8rem 1rem;
    background: white;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}

.plans-title {
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #333;
    margin-bottom: 0.6rem;
}

/* 套餐卡片容器 - 并排显示 */
.plans-container {
    display: flex;
    gap: 0.6rem;
    padding-top: 12px;
}

.plan-card {
    position: relative;
    flex: 1;
    padding: 0.7rem 0.8rem;
    background: var(--secondary-color); /* 米白色 */
    border: 2px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
    overflow: hidden;
}

.plan-card:hover {
    border-color: #888888; /* 较深的银色 */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-color);
}

.plan-card:active {
    transform: translateY(0);
}

.plan-card.purchasing {
    opacity: 0.6;
    pointer-events: none;
}

/* 套餐卡片禁用状态（当前已订阅） */
.plan-card.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
    position: relative;
    background: #f0f0f0;
}

.plan-card.disabled:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--border-color);
}

.plan-card-yearly.disabled {
    background: linear-gradient(135deg, #e8e6e3 0%, #ddd 100%);
}

.plan-card-yearly.disabled:hover {
    border-color: #c9bfa5;
}

/* 当前套餐徽章 */
.current-plan-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    z-index: 10;
}

/* 升级徽章 - 左上角边框外侧 */
.upgrade-badge {
    position: absolute;
    top: -10px;
    left: -8px;
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    color: white;
    font-size: 0.6rem;
    font-weight: 600;
    padding: 0.15rem 0.4rem;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(46, 125, 50, 0.4);
    z-index: 10;
}

/* 升级状态的卡片样式 */
.plan-card.upgrade {
    border-color: #4CAF50;
    box-shadow: 0 0 0 1px rgba(76, 175, 80, 0.3);
    overflow: visible;
}

.plan-card.upgrade:hover {
    border-color: #2E7D32;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

/* 套餐卡片禁用状态（支付功能即将上线） - 保留旧类名兼容 */
.plan-card.plan-disabled {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
    position: relative;
}

.plan-card.plan-disabled:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--border-color);
}

.plan-card-yearly.plan-disabled:hover {
    border-color: #c9bfa5; /* 稍深的米色 */
}

/* "即将上线"提示文字（在标题后面） */
.plans-coming-soon {
    font-size: 0.72rem;
    color: #999;
    font-weight: 400;
    letter-spacing: 0.01em;
}

.plan-card-yearly {
    background: linear-gradient(135deg, #f5f3f0 0%, #ebe8e3 100%); /* 米色渐变 */
    border-color: #c9bfa5; /* 稍深的米色边框 */
}

.plan-card-yearly:hover {
    border-color: #a89e87; /* 悬停时更深的米色 */
    box-shadow: 0 4px 12px rgba(169, 158, 135, 0.25);
}

.plan-badge {
    position: absolute;
    top: -1px;
    right: 8px;
    background: linear-gradient(135deg, #8e8474, #6d6456); /* 深米色/棕色 */
    color: white;
    font-size: 0.6rem;
    font-weight: 600;
    padding: 0.15rem 0.4rem;
    border-radius: 0 0 5px 5px;
    box-shadow: 0 2px 4px rgba(109, 100, 86, 0.4);
}

.plan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.3rem;
}

.plan-name {
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #333;
}

.plan-price {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent-color); /* 深灰色 */
}

.plan-card-yearly .plan-price {
    color: #8e8474; /* 深米色 */
}

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

.plan-credits {
    font-size: 0.75rem;
    color: #666;
    font-weight: 500;
}

.plan-note {
    font-size: 0.65rem;
    color: #999;
    background: rgba(0, 0, 0, 0.05);
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
}

/* 购买中遮罩层 */
.purchasing-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #666;
}

.purchasing-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid #e0e0e0;
    border-top-color: var(--accent-color); /* 深灰色 */
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* 退出登录按钮 */
.user-menu-actions {
    padding: 0.4rem 0;
    background: #fafafa;
}

.logout-btn {
    width: 100%;
    padding: 0.6rem 1rem;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    color: #e74c3c;
    transition: background-color 0.2s;
    display: block;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.logout-btn:hover {
    background-color: #fff0f0;
}

/* 管理订阅按钮样式 */
.manage-subscription-btn {
    width: 100%;
    padding: 0.6rem 1rem;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    color: #2c3e50;
    transition: background-color 0.2s;
    display: block;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.manage-subscription-btn:hover {
    background-color: #f0f4f8;
}

.manage-subscription-btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

/* ==================== 移动端导航栏响应式样式 ==================== */
@media (max-width: 1024px) {
    /* 导航栏容器调整 */
    .navbar-container {
        padding: 0.6rem 1rem;
        min-height: 56px;
    }
    
    /* 显示汉堡菜单按钮 */
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* 导航链接区域 - 移动端全屏下拉 */
    .navbar-links {
        position: fixed;
        top: 56px;
        left: 0;
        right: 0;
        background: var(--bg-main);
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 1rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
        max-height: calc(100vh - 56px);
        overflow-y: auto;
    }
    
    /* 菜单展开状态 */
    .navbar-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    /* 单个导航链接样式 */
    .navbar-links .nav-link {
        display: block;
        width: 100%;
        padding: 0.9rem 0.5rem;
        font-size: 1rem;
        border-bottom: 1px solid var(--border-color);
    }
    
    .navbar-links .nav-link:last-of-type {
        border-bottom: none;
    }
    
    .nav-link::after {
        display: none;
    }
    
    /* Docs下拉菜单在移动端的样式 */
    .nav-dropdown {
        width: 100%;
    }
    
    .nav-dropdown .nav-link {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .nav-dropdown .nav-link::after {
        content: '▼';
        font-size: 0.7rem;
        transition: transform 0.3s ease;
    }
    
    .nav-dropdown.active .nav-link::after {
        transform: rotate(180deg);
    }
    
    /* 移动端下拉菜单 */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: transparent;
        min-width: auto;
        padding: 0.5rem 0 0.5rem 1rem;
        display: none;
        border-radius: 0;
    }
    
    .nav-dropdown.active .dropdown-menu {
        display: block;
    }
    
    .dropdown-item {
        padding: 0.7rem 0.5rem;
        border-radius: 6px;
    }
    
    .dropdown-title {
        font-size: 0.9rem;
    }
    
    .dropdown-desc {
        font-size: 0.75rem;
    }
    
    /* 促销标签在移动端隐藏 */
    .promo-badge {
        display: none;
    }
    
    /* 右侧区域只显示汉堡菜单和Sign in/头像 */
    .navbar-right {
        gap: 0.5rem;
    }
    
    /* 调整Logo大小 */
    .navbar-logo {
        font-size: 1.2rem;
    }
    
    .navbar-logo-img {
        height: 32px;
    }
    
    /* 页面容器顶部边距调整 */
    .page-container {
        padding-top: 56px;
    }
    
    .header-actions {
        top: 1rem;
        right: 1rem;
        gap: 0.5rem;
    }
    
    .contact-us {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .user-avatar,
    .default-avatar {
        width: 36px;
        height: 36px;
    }
    
    .default-avatar svg {
        width: 20px;
        height: 20px;
    }
    
    /* 移动端用户下拉菜单适配 */
    .user-dropdown {
        width: 340px;
        right: 0;
    }
    
    .credits-section,
    .plans-section,
    .user-info {
        padding: 0.7rem 0.85rem;
    }
    
    .credits-value {
        font-size: 1.3rem;
    }
    
    .plans-container {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .plan-card {
        padding: 0.6rem 0.75rem;
    }
    
    .plan-name {
        font-size: 0.82rem;
    }
    
    .plan-price {
        font-size: 0.88rem;
    }
}

/* 主容器样式 */
.main-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    overflow: hidden;
    position: relative;
}

/* 聊天区域样式 */
.chat-container {
    flex: 1;
    background: var(--bg-card); /* 纯白卡片 */
    border-radius: 12px;
    box-shadow: 0 2px 12px var(--shadow-color);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
    min-height: 400px;
    max-height: calc(100vh - 200px);
    position: relative;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    padding-bottom: 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

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

.chat-messages::-webkit-scrollbar-thumb {
    background-color: transparent;
    border-radius: 10px;
}

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

/* 示例公式样式 */
.example-formula-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    min-height: 150px;
    transition: all 0.3s ease;
}

.example-formula-content {
    text-align: center;
    animation: fadeIn 0.5s ease;
}

.example-formula-hint {
    position: absolute;
    top: -1.8rem;
    left: 0;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    color: var(--text-secondary);
    pointer-events: none;
}

.example-formula-hint .hint-text {
    font-weight: 500;
    letter-spacing: 0.02em;
}

.example-formula-image-wrapper {
    position: relative;
    background: var(--secondary-color);
    border-radius: 10px;
    padding: 0.8rem;
    box-shadow: 0 3px 10px var(--shadow-color);
    transition: all 0.3s ease;
    display: inline-block;
    cursor: pointer;
}

.example-formula-image-wrapper:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 18px var(--shadow-color);
    background: #ffffff;
}

.example-formula-image {
    max-width: 200px;
    height: auto;
    display: block;
    border-radius: 6px;
}

/* 波纹点击效果 */
.click-ripple {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    pointer-events: none;
}

.click-ripple::before,
.click-ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1.5px solid var(--accent-color);
    opacity: 0;
    animation: ripple 3s ease-out infinite;
}

.click-ripple::after {
    animation-delay: 1.5s;
}

@keyframes ripple {
    0% {
        width: 100%;
        height: 100%;
        opacity: 0.8;
    }
    100% {
        width: 200%;
        height: 200%;
        opacity: 0;
    }
}

.message-group {
    margin-bottom: 0.5rem;
}

.user-message {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0.5rem;
}

.uploaded-image {
    max-width: 300px;
    border-radius: 8px;
    box-shadow: 0 2px 4px var(--shadow-color);
}

.bot-message {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0;
}

.bot-avatar {
    margin-right: 1rem;
}

.bot-avatar img {
    width: 48px;  /* 从40px放大到48px */
    height: 48px;
    border-radius: 50%;
    box-shadow: 0 2px 4px var(--shadow-color);
}

.message-content {
    background-color: var(--secondary-color);
    padding: 0.4rem;
    border-radius: 12px;
    max-width: 70%;
    box-shadow: 0 2px 4px var(--shadow-color);
    position: relative;
    border: none; /* 确保没有边框 */
}

.message-content pre {
    margin: 0;
    padding: 0;
    background: none;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: inherit;
}

.message-content code {
    font-family: inherit;
    background: none;
}

.copy-btn {
    background: var(--accent-color); /* 深灰色 */
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.4rem 0.8rem;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 90px;
    height: 32px; /* 固定高度，确保 Copy 和 Copied 状态高度一致 */
    justify-content: center;
}

.copy-btn:hover {
    background: var(--text-color); /* 悬停时更深 */
    transform: translateY(-1px);
}

.copy-btn.copied {
    background: var(--success-color);
    pointer-events: none;
}

.copy-success {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background-color: var(--success-color);
    color: white;
    border: none;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s;
    display: inline-block;
    pointer-events: none;
}

.copy-success.show {
    opacity: 1;
}

.robot-avatar {
    width: 40px;
    height: 40px;
    margin-right: 1rem;
    border-radius: 50%;
    object-fit: cover;
}

.robot-message {
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.4;
}

/* 打字动画样式 */
.typing-message {
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
    /* 去掉外围的box-shadow，避免产生矩形边框效果 */
}

.typing-text {
    display: inline-block;
    color: var(--text-color);
}

.typing-cursor {
    display: inline-block;
    margin-left: 2px;
    font-weight: bold;
    animation: blink 1s infinite;
    color: var(--primary-color);
}

/* 公式格式区域样式 */
.format-section {
    background: var(--secondary-color);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.5rem;
    position: relative;
}

.format-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.format-header h4 {
    margin: 0;
    margin-right: 1rem; /* 确保标题和 Copy 按钮之间有最小间距 */
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: var(--primary-color);
}

.format-section pre {
    background: white;
    border-radius: 4px;
    padding: 0.8rem;
    margin: 0;
    overflow-x: auto;
}

.mathml-preview {
    background: white;
    border-radius: 4px;
    padding: 1rem;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: left;
}

.copy-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.4rem 0.8rem;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 90px;
    height: 32px; /* 固定高度，确保 Copy 和 Copied 状态高度一致 */
    justify-content: center;
}

.copy-btn:hover {
    background: var(--text-color); /* 悬停时更深 */
    transform: translateY(-1px);
}

.copy-btn.copied {
    background: var(--success-color);
    pointer-events: none;
}

.copy-success {
    display: none;
    color: var(--success-color);
    font-size: 0.85rem;
    margin-left: 0.5rem;
    position: absolute;
    background: white;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    animation: fadeIn 0.2s ease;
}

/* 侧边栏子项目样式 */
.sub-item {
    padding-left: 1.2rem;
    font-size: 0.9rem;
    color: #666;
}

/* 上传区域样式 */
.upload-container {
    background: white;
    border-radius: 0 0 12px 12px; /* 只保留底部圆角 */
    padding: 0.55rem; /* 从0.75rem缩小到0.55rem，约75% */
    box-shadow: none; /* 移除独立阴影 */
    flex-shrink: 0;
    border-top: 1px solid #e1e8ed; /* 添加顶部分隔线 */
    width: 100%;
    margin-top: 0;
}

.input-area {
    display: flex;
    gap: 0.55rem; /* 从0.75rem缩小到0.55rem */
    align-items: stretch;
    min-height: 60px; /* 从80px缩小到60px，正好75% */
    flex-wrap: wrap; /* 允许在小屏幕上换行 */
}

.upload-area {
    flex: 1;
    min-width: 200px; /* 设置最小宽度 */
    background: white;
    border: 2px dashed var(--border-color);
    border-radius: 10px; /* 从12px缩小到10px */
    padding: 0.55rem; /* 从0.75rem缩小到0.55rem */
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.upload-area:hover {
    border-color: var(--accent-color); /* 深灰色边框，与主题色搭配 */
}

.upload-icon img {
    width: 32px; /* 从40px缩小到32px，约80% */
    height: 20px; /* 从24px缩小到20px，约83% */
    margin-bottom: 0.35rem; /* 从0.5rem缩小到0.35rem */
    opacity: 0.6;
}

.upload-text {
    color: #666;
    font-family: 'Outfit', sans-serif;
    font-size: clamp(0.65rem, 2vw, 0.8rem); /* 从0.75-0.95rem缩小到0.65-0.8rem */
    font-weight: 400;
    letter-spacing: 0.01em;
    max-width: 100%; /* 确保文本不会溢出容器 */
    overflow: hidden; /* 隐藏溢出内容 */
    text-overflow: ellipsis; /* 文本溢出时显示省略号 */
    display: -webkit-box;
    -webkit-line-clamp: 2; /* 限制最多显示2行 */
    line-clamp: 2; /* 标准属性，提高兼容性 */
    -webkit-box-orient: vertical;
    word-wrap: break-word; /* 允许长单词换行 */
}

.preview-area {
    flex: 1;
    position: relative;
    background: white;
    border: 2px dashed var(--border-color);
    border-radius: 10px; /* 从12px缩小到10px */
    padding: 0.55rem; /* 从0.75rem缩小到0.55rem */
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-image {
    max-width: 100%;
    max-height: 68px; /* 从90px缩小到68px，约75% */
    border-radius: 8px;
}

.remove-btn {
    position: absolute;
    top: 0.4rem; /* 从0.5rem缩小到0.4rem */
    right: 0.4rem;
    background: var(--error-color);
    color: white;
    border: none;
    width: 20px; /* 从24px缩小到20px */
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem; /* 从1rem缩小到0.9rem */
    transition: background-color 0.2s;
}

.remove-btn:hover {
    background-color: #c0392b;
}

.action-buttons {
    display: flex;
    gap: 0.75rem; /* 从1rem缩小到0.75rem */
    align-items: stretch;
    flex-shrink: 0; /* 防止按钮区域收缩 */
    min-width: 200px; /* 从240px缩小到200px */
}

.send-btn {
    background: var(--accent-color); /* 深灰色 */
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
    min-width: 80px;
    white-space: normal;
    line-height: 1.3;
}

.send-btn:hover {
    background-color: var(--text-color); /* 悬停时更深 */
    transform: translateY(-1px);
}

.send-btn-disabled {
    background-color: #d4d0cc; /* 灰色 */
    cursor: not-allowed;
}

.send-btn-disabled:hover {
    background-color: #d4d0cc;
    transform: none;
}

.export-btn {
    background: white;
    color: var(--accent-color); /* 深灰色 */
    border: 2px solid var(--accent-color);
    padding: 0.5rem 1rem;
    border-radius: 10px;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
    min-width: 100px;
    white-space: normal;
    line-height: 1.3;
}

.export-btn:hover {
    background: var(--accent-color); /* 悬停时填充 */
    color: white;
}

/* ==================== 聊天区域底部固定提示样式 ==================== */
.chat-bottom-note {
    flex-shrink: 0;
    background: rgba(42, 42, 42, 0.05); /* 淡灰色背景 */
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 0.4rem 2.8rem 0.4rem 0.9rem;
    margin: 0.5rem auto;
    text-align: center;
    position: relative;
    box-shadow: 0 1px 6px var(--shadow-color);
    animation: slideIn 0.3s ease;
    width: fit-content;
    max-width: calc(100% - 2rem);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-bottom-note .note-text {
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    color: var(--text-secondary); /* 灰色文本 */
    font-weight: 500;
    line-height: 1.3;
    display: inline-block;
}

/* 关闭按钮样式 */
.note-close-btn {
    position: absolute;
    right: 0.6rem;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: none;
    background: rgba(0, 0, 0, 0.1); /* 淡灰色 */
    color: var(--text-secondary);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    line-height: 1;
    transition: all 0.2s ease;
    padding: 0;
}

.note-close-btn:hover {
    background: rgba(0, 0, 0, 0.2); /* 悬停时加深 */
    transform: translateY(-50%) scale(1.1);
}

.note-close-btn:active {
    transform: translateY(-50%) scale(0.95);
}

/* 识别中的提示样式 */
.analyzing-indicator {
    display: flex;
    align-items: center;
    background-color: var(--secondary-color);
    padding: 0.4rem 0.8rem;
    margin: 0;
    border-radius: 12px;
    box-shadow: 0 2px 4px var(--shadow-color);
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    margin-right: 8px;
    animation: spin 1s linear infinite;
}

.message-status {
    margin: 0;
    padding: 0;
}

.random-quote {
    margin: 0;
    padding-top: 0.1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* 作者信息样式 */
.author-note {
    margin-top: 0.7rem;
    padding: 0.8rem;
    font-size: 0.75rem;
    line-height: 1.5;
    color: #666;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    text-align: left;
    font-style: italic;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* 模态弹窗样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: relative;
    background: white;
    padding: 20px;
    border-radius: 8px;
    max-width: 90%;
    max-height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.modal-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    transform-origin: center;
    transition: transform 0.1s ease;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #333;
}

.modal-image {
    max-width: 100%;
    height: auto;
    display: block;
}


.clickable-text {
    cursor: pointer;
    transition: color 0.2s ease;
}

.clickable-text:hover {
    color: var(--primary-color);
}

.link-text {
    color: var(--primary-color);
    text-decoration: underline;
    margin-left: 0.3rem;
}

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

/* 响应式设计 */
@media (max-width: 1024px) {
    .page-container {
        height: auto;
        overflow: visible;
    }

    .content-wrapper {
        margin-left: 0;
    }

    .header {
        position: static;
    }

    .upload-container {
        padding: 0.5rem;
        margin-top: 0;
    }

    .chat-messages {
        position: static;
        max-height: 500px;
    }

    .content-wrapper {
        padding: 1rem;
    }

    .page-container {
        flex-direction: column;
    }

    .input-area {
        flex-direction: column;
        min-height: auto;
        gap: 0.5rem;
    }

    .action-buttons {
        flex-direction: row;
        width: 100%;
        margin-top: 0.5rem;
    }

    .send-btn, .export-btn {
        flex: 1;
        min-width: 0;
        padding: 0.75rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 1rem;
    }

    .title {
        font-size: 2rem;
    }
    
    .domain-name {
        font-size: 1rem; /* 移动端缩小域名 */
    }
    
    .subtitle {
        font-size: 0.9rem;
    }
    
    /* 三步骤提示响应式 */
    .steps-guide {
        flex-direction: column;
        gap: 0.75rem;
        padding: 0.75rem 1rem;
    }
    
    .step-divider {
        transform: rotate(90deg);
        font-size: 1rem;
    }

    .main-container {
        margin: 1rem auto;
    }

    .message-content {
        max-width: 85%;
    }
    
    .upload-text {
        font-size: clamp(0.7rem, 1.5vw, 0.9rem); /* 更小的字体尺寸范围 */
        -webkit-line-clamp: 3; /* 允许显示3行 */
        line-clamp: 3; /* 标准属性，提高兼容性 */
        -webkit-box-orient: vertical;
        word-wrap: break-word; /* 允许长单词换行 */
    }
    
    .action-buttons {
        min-width: 100%; /* 确保按钮区域占满宽度 */
    }
    
    /* 聊天区域底部Note响应式 */
    .chat-bottom-note {
        margin: 0.4rem auto;
        padding: 0.35rem 2.5rem 0.35rem 0.8rem;
        max-width: calc(100% - 1.6rem);
    }
    
    .chat-bottom-note .note-text {
        font-size: 0.75rem;
    }
    
    .note-close-btn {
        width: 18px;
        height: 18px;
        font-size: 1rem;
        right: 0.5rem;
    }
}

/* 添加小屏幕设备的额外适配 */
@media (max-width: 480px) {
    .title {
        font-size: 1.6rem;
    }
    
    .domain-name {
        font-size: 0.85rem; /* 小屏幕进一步缩小域名 */
    }
    
    .subtitle {
        font-size: 0.8rem;
    }
    
    /* 三步骤提示小屏幕适配 */
    .steps-guide {
        padding: 0.6rem 0.75rem;
        gap: 0.5rem;
    }
    
    .step-number {
        width: 24px;
        height: 24px;
        font-size: 0.8rem;
    }
    
    .step-text {
        font-size: 0.85rem;
    }
    
    .upload-container {
        padding: 0.4rem;
    }
    
    .input-area {
        gap: 0.4rem;
    }
    
    .send-btn, .export-btn {
        padding: 0.6rem;
        font-size: 0.85rem;
    }
    
    /* 聊天区域底部Note小屏幕适配 */
    .chat-bottom-note {
        margin: 0.35rem auto;
        padding: 0.3rem 2.2rem 0.3rem 0.7rem;
        border-radius: 16px;
        max-width: calc(100% - 1.2rem);
    }
    
    .chat-bottom-note .note-text {
        font-size: 0.7rem;
    }
    
    .note-close-btn {
        width: 16px;
        height: 16px;
        font-size: 0.9rem;
        right: 0.4rem;
    }

    /* 示例公式移动端适配 */
    .example-formula-container {
        padding: 0.8rem;
        min-height: 120px;
    }

    .example-formula-hint {
        font-size: 0.8rem;
        top: -1.5rem;
    }

    .example-formula-image-wrapper {
        padding: 0.6rem;
    }

    .example-formula-image {
        max-width: 160px;
    }

    .click-ripple {
        width: 10px;
        height: 10px;
        top: 6px;
        left: 6px;
    }

    .click-ripple::before,
    .click-ripple::after {
        border: 1px solid var(--accent-color);
    }
}

/* 随机句子样式 */
.random-quote {
    margin-top: 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.quote-text {
    font-size: 1.2rem;
    color: #666;
    opacity: 0;
    transition: opacity 0.5s ease;
    font-weight: bold;
    font-style: italic;
    position: relative;
}

.quote-text.fade-in {
    opacity: 1;
}

/* 亮光滑动效果 */
.quote-text.fade-in::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.8),
        transparent
    );
    animation: shine 7s ease-in-out;
}

@keyframes shine {
    0% {
        left: -100%;
    }
    100% {
        left: 200%;
    }
}

/* ==================== 页脚样式 ==================== */

/* 页脚整体容器 */
.site-footer {
    width: 100%;
    background-color: var(--secondary-color);
    margin-top: 0;
}

/* 页脚主内容区域（新增的上半部分） */
.footer-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3.5rem 2rem;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 5rem;
}

/* 左侧品牌区域 */
.footer-brand {
    flex: 1;
    max-width: 350px;
    min-width: 280px;
}

/* 右侧链接容器 */
.footer-links-wrapper {
    display: flex;
    gap: 5rem;
    margin-left: auto;
    margin-right: 5rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
    text-decoration: none;
}

.footer-logo-img {
    width: 42px;
    height: 42px;
    border-radius: 10px;
}

.footer-logo-text {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-color);
    letter-spacing: 0.02em;
}

.footer-description {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0;
}

/* 右侧链接区域 */
.footer-links-section {
    flex-shrink: 0;
}

.footer-links-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 1rem 0;
    letter-spacing: 0.02em;
}

.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-links-list li a {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links-list li a:hover {
    color: var(--text-color);
}

/* 页脚底部版权区域（原有的下半部分） */
.footer-bottom {
    background-color: transparent;
}

.footer {
    width: 100%;
    background-color: transparent;
    padding: 12px 0;
    text-align: center;
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: var(--text-secondary);
    border-top: none;
    margin-top: 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.footer p {
    margin: 0;
}

.footer a {
    color: #777;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    text-decoration: underline;
}

/* 页脚响应式样式 */
@media (max-width: 768px) {
    .footer-main {
        flex-direction: column;
        gap: 2rem;
        padding: 2rem 1.5rem;
        align-items: center;
        text-align: center;
    }
    
    .footer-brand {
        max-width: 100%;
        min-width: auto;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer-links-wrapper {
        flex-direction: column;
        gap: 2rem;
        margin-left: 0;
        width: 100%;
    }
    
    .footer-links-section {
        width: 100%;
    }
    
    .footer-links-title {
        text-align: center;
    }
    
    .footer-links-list {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .footer-main {
        padding: 1.5rem 1rem;
    }
    
    .footer-logo-img {
        width: 36px;
        height: 36px;
    }
    
    .footer-logo-text {
        font-size: 1.2rem;
    }
    
    .footer-description {
        font-size: 0.9rem;
    }
    
    .footer-links-title {
        font-size: 1rem;
    }
    
    .footer-links-list li a {
        font-size: 0.9rem;
    }
}

/* Footer 分隔符和法律链接样式 */
.footer-separator {
    margin: 0 0.5rem;
    color: #aaa;
}

.legal-link {
    color: #4a90e2 !important;
    text-decoration: underline !important;
    cursor: pointer;
    transition: color 0.2s ease;
}

.legal-link:hover {
    color: #357abd !important;
}

/* ==================== 法律条款弹窗样式 ==================== */
.legal-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3000;
    animation: fadeIn 0.2s ease;
}

.legal-modal-content {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    position: relative;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.25);
    animation: slideUp 0.25s ease;
    display: flex;
    flex-direction: column;
}

.legal-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    border: none;
    background: #f0f0f0;
    border-radius: 50%;
    font-size: 1.4rem;
    color: #888;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    line-height: 1;
    z-index: 10;
}

.legal-modal-close:hover {
    background: #e0e0e0;
    color: #333;
}

.legal-modal-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: #333;
    padding: 1.5rem 2rem;
    margin: 0;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}

.legal-modal-body {
    padding: 1.5rem 2rem 2rem;
    overflow-y: auto;
    flex: 1;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #444;
}

.legal-modal-body::-webkit-scrollbar {
    width: 8px;
}

.legal-modal-body::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 4px;
}

.legal-modal-body::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.legal-modal-body::-webkit-scrollbar-thumb:hover {
    background: #bbb;
}

.legal-effective-date {
    font-size: 0.85rem;
    color: #888;
    font-style: italic;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed #e0e0e0;
}

.legal-modal-body h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: #333;
    margin: 1.5rem 0 0.75rem;
    padding-left: 0.75rem;
    border-left: 3px solid #4a90e2;
}

.legal-modal-body h3:first-of-type {
    margin-top: 0;
}

.legal-modal-body p {
    margin: 0 0 1rem;
    text-align: justify;
}

.legal-modal-body ul {
    margin: 0 0 1rem;
    padding-left: 1.5rem;
}

.legal-modal-body li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.legal-modal-body a {
    color: #4a90e2;
    text-decoration: none;
    transition: color 0.2s ease;
}

.legal-modal-body a:hover {
    color: #357abd;
    text-decoration: underline;
}

.legal-modal-body strong {
    color: #333;
    font-weight: 600;
}

/* 移动端响应式样式 */
@media (max-width: 768px) {
    .legal-modal-content {
        width: 95%;
        max-height: 90vh;
        margin: 1rem;
    }
    
    .legal-modal-title {
        font-size: 1.3rem;
        padding: 1.25rem 1.5rem;
        padding-right: 3rem;
    }
    
    .legal-modal-body {
        padding: 1.25rem 1.5rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .legal-modal-body h3 {
        font-size: 1rem;
    }
    
    .footer-content p {
        font-size: 0.75rem;
        line-height: 1.5;
    }
}

@media (max-width: 480px) {
    .footer-content p {
        font-size: 0.7rem;
    }
    
    .footer-separator {
        display: block;
        margin: 0.25rem 0;
    }
    
    .legal-modal-content {
        border-radius: 12px;
    }
    
    .legal-modal-title {
        font-size: 1.15rem;
        padding: 1rem 1.25rem;
    }
    
    .legal-modal-body {
        padding: 1rem 1.25rem 1.25rem;
        font-size: 0.85rem;
    }
}

/* ==================== 登录弹窗样式 ==================== */
.login-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    animation: fadeIn 0.2s ease;
}

.login-modal-content {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    width: 90%;
    max-width: 340px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.2s ease;
}

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

/* 关闭按钮 */
.login-modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 28px;
    height: 28px;
    border: none;
    background: #f0f0f0;
    border-radius: 50%;
    font-size: 1.2rem;
    color: #888;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    line-height: 1;
}

.login-modal-close:hover {
    background: #e0e0e0;
    color: #333;
}

/* 弹窗标题 */
.login-modal-header {
    text-align: center;
    margin-bottom: 1.25rem;
}

.login-modal-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.3rem;
    color: #333;
    margin: 0;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* 登录选项容器 */
.login-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Google 登录按钮 */
.google-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.7rem 1rem;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
}

.google-login-btn:hover:not(:disabled) {
    border-color: #4285F4;
    background: #f8faff;
}

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

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

/* 分隔线 */
.login-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: #aaa;
    font-size: 0.75rem;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #eee;
}

.login-divider span {
    padding: 0 0.75rem;
}

/* 邮箱登录表单 */
.email-login-form {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

/* 登录输入框 */
.login-input {
    padding: 0.65rem 0.9rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    transition: all 0.2s ease;
    outline: none;
}

.login-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.1);
}

.login-input::placeholder {
    color: #aaa;
}

/* 错误提示 */
.login-error {
    padding: 0.5rem 0.75rem;
    background: #fff5f5;
    border: 1px solid #ffcdd2;
    border-radius: 6px;
    color: #e74c3c;
    font-size: 0.8rem;
    text-align: center;
}

/* 邮箱登录/注册按钮 */
.email-auth-buttons {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.email-login-btn,
.email-register-btn {
    flex: 1;
    padding: 0.65rem 0.75rem;
    border: none;
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: all 0.2s ease;
}

.email-login-btn {
    background: var(--accent-color); /* 深灰色，与页面主题一致 */
    color: white;
}

.email-login-btn:hover:not(:disabled) {
    background: var(--text-color); /* 悬停时更深 */
}

.email-register-btn {
    background: white;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.email-register-btn:hover:not(:disabled) {
    background: var(--secondary-color); /* 米白色，与页面主题一致 */
}

.email-login-btn:disabled,
.email-register-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 移动端响应式样式 */
@media (max-width: 480px) {
    .login-modal-content {
        padding: 1.25rem;
        margin: 0.75rem;
    }
    
    .login-modal-header h2 {
        font-size: 1.1rem;
    }
    
    /* 超小屏幕用户下拉菜单适配 */
    .user-dropdown {
        width: calc(100vw - 40px);
        max-width: 320px;
        right: 0;
        left: auto;
    }
    
    .credits-section,
    .plans-section,
    .user-info {
        padding: 0.6rem 0.75rem;
    }
    
    .credits-value {
        font-size: 1.1rem;
    }
    
    .plans-container {
        flex-direction: column;
        gap: 0.4rem;
    }
    
    .plan-card {
        padding: 0.55rem 0.65rem;
    }
    
    .plan-name {
        font-size: 0.78rem;
    }
    
    .plan-price {
        font-size: 0.82rem;
    }
    
    .plan-credits {
        font-size: 0.7rem;
    }
    
    .no-credits-alert {
        padding: 0.45rem 0.6rem;
    }
    
    .renewal-failed-alert {
        padding: 0.5rem 0.6rem;
    }
    
    .alert-text {
        font-size: 0.7rem;
    }
}

/* ==================== Landing Page Section ==================== */
.landing-section {
    width: 100%;
    background: rgba(255, 255, 255, 0.6); /* 简洁的白色背景 */
    padding: 4rem 2rem;
    margin-top: 2rem;
}

.landing-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Hero Section */
.landing-hero {
    text-align: center;
    margin-bottom: 4rem;
    padding: 2rem 1rem;
}

.landing-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.landing-subtitle {
    font-size: 1.2rem;
    color: #5a6c7d;
    font-weight: 400;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

/* Features Section */
.landing-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.feature-card {
    background: white;
    padding: 2rem 1.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(74, 144, 226, 0.15);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.8rem;
}

.feature-card p {
    font-size: 1rem;
    color: #5a6c7d;
    line-height: 1.6;
}

/* Benefits Section */
.landing-benefits {
    background: white;
    padding: 3rem 2rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    margin-bottom: 4rem;
}

.benefits-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    text-align: center;
    margin-bottom: 2.5rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.benefit-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.benefit-check {
    font-size: 1.5rem;
    color: var(--success-color);
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(46, 204, 113, 0.1);
    border-radius: 50%;
}

.benefit-content h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.benefit-content p {
    font-size: 0.95rem;
    color: #5a6c7d;
    line-height: 1.6;
}

/* CTA Section */
.landing-cta {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--accent-color); /* 深灰色背景 */
    border-radius: 20px;
    color: white;
}

.landing-cta h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.landing-cta p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-button {
    padding: 1rem 3rem;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    background: white;
    color: var(--accent-color); /* 深灰色文本 */
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
    background: var(--secondary-color); /* 悬停时变米色 */
}

/* Responsive Design for Landing Page */
@media (max-width: 768px) {
    .landing-section {
        padding: 3rem 1.5rem;
    }
    
    .landing-title {
        font-size: 1.8rem;
    }
    
    .landing-subtitle {
        font-size: 1rem;
    }
    
    .landing-features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .benefits-title {
        font-size: 1.6rem;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .landing-cta h2 {
        font-size: 1.6rem;
    }
    
    .landing-cta p {
        font-size: 1rem;
    }
    
    .cta-button {
        padding: 0.9rem 2.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .landing-section {
        padding: 2rem 1rem;
    }
    
    .landing-hero {
        margin-bottom: 2.5rem;
        padding: 1rem 0.5rem;
    }
    
    .landing-title {
        font-size: 1.5rem;
    }
    
    .landing-subtitle {
        font-size: 0.95rem;
    }
    
    .feature-card {
        padding: 1.5rem 1rem;
    }
    
    .feature-icon {
        font-size: 2.5rem;
    }
    
    .feature-card h3 {
        font-size: 1.1rem;
    }
    
    .feature-card p {
        font-size: 0.9rem;
    }
    
    .landing-benefits {
        padding: 2rem 1.5rem;
    }
    
    .benefits-title {
        font-size: 1.4rem;
        margin-bottom: 2rem;
    }
    
    .benefit-item {
        gap: 0.8rem;
    }
    
    .benefit-check {
        font-size: 1.2rem;
        width: 28px;
        height: 28px;
    }
    
    .benefit-content h4 {
        font-size: 1rem;
    }
    
    .benefit-content p {
        font-size: 0.85rem;
    }
    
    .landing-cta {
        padding: 2rem 1.5rem;
    }
    
    .landing-cta h2 {
        font-size: 1.4rem;
    }
    
    .landing-cta p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .cta-button {
        padding: 0.8rem 2rem;
        font-size: 0.95rem;
    }
}

/* ==================== 落地页示例聊天组件样式 ==================== */

/* 容器布局 */
.landing-demo-chat {
    background: var(--bg-card);
    border-radius: 12px;
    box-shadow: 0 2px 12px var(--shadow-color);
    display: flex;
    flex-direction: column;
    height: 450px;
    width: 100%;
    max-width: 600px;
    overflow: hidden;
    box-sizing: border-box;
}

/* 消息区域 */
.landing-demo-messages {
    flex: 1;
    overflow-y: auto;
    padding: 0.8rem;
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
    scrollbar-gutter: stable;
}

.landing-demo-messages::-webkit-scrollbar {
    width: 6px;
}

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

.landing-demo-messages::-webkit-scrollbar-thumb {
    background-color: transparent;
    border-radius: 10px;
}

.landing-demo-messages:hover::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
}

.landing-demo-message-group {
    margin-bottom: 0.5rem;
}

/* 用户消息 */
.landing-demo-user-message {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0.5rem;
}

.landing-demo-uploaded-image {
    max-width: 200px;
    border-radius: 8px;
    box-shadow: 0 2px 4px var(--shadow-color);
}

/* 机器人消息 */
.landing-demo-bot-message {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0;
    width: 100%;
    max-width: 100%;
}

.landing-demo-bot-avatar {
    margin-right: 0.8rem;
    flex-shrink: 0;
}

.landing-demo-bot-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 2px 4px var(--shadow-color);
}

.landing-demo-message-content {
    background-color: var(--secondary-color);
    padding: 0.6rem 0.8rem;
    border-radius: 12px;
    box-sizing: border-box;
    box-shadow: 0 2px 4px var(--shadow-color);
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.landing-demo-message-content.landing-demo-text-only {
    max-width: fit-content;
}

/* 格式区域 */
.landing-demo-format-section {
    background: var(--secondary-color);
    border-radius: 8px;
    padding: 0.8rem;
    margin-bottom: 0.5rem;
    position: relative;
    box-sizing: border-box;
    width: 100%;
    max-width: 450px;
}

.landing-demo-format-section:last-child {
    margin-bottom: 0;
}

.landing-demo-format-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.6rem;
}

.landing-demo-format-header h4 {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary-color);
}

.landing-demo-copy-btn {
    background: #e8e4df;
    color: #4a4a4a;
    border: 1px solid #d4ccc3;
    border-radius: 4px;
    padding: 0.4rem 0.8rem;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 90px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-sizing: border-box;
}

.landing-demo-copy-btn:hover {
    background: #d4ccc3;
    transform: translateY(-1px);
}

.landing-demo-copy-btn.copied {
    background: #c9c0b5;
    color: #3a3a3a;
    border-color: #b8ae9f;
    pointer-events: none;
}

.landing-demo-mathml-preview {
    background: white;
    border-radius: 4px;
    padding: 0.8rem;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: left;
}

.landing-demo-format-section pre {
    background: white;
    border-radius: 4px;
    padding: 0.8rem;
    margin: 0;
    overflow-x: auto;
}

.landing-demo-format-section code {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
}

/* 识别中提示 */
.landing-demo-analyzing {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem;
    background-color: var(--secondary-color);
    border-radius: 12px;
    width: 100%;
    max-width: 480px;
    box-sizing: border-box;
}

.landing-demo-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* 示例公式样式 */
.landing-demo-example-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem 1rem 1rem;
    min-height: 120px;
}

.landing-demo-example-content {
    text-align: center;
}

.landing-demo-example-wrapper {
    position: relative;
    background: var(--secondary-color);
    border-radius: 10px;
    padding: 0.8rem;
    box-shadow: 0 3px 10px var(--shadow-color);
    transition: all 0.3s ease;
    display: inline-block;
    cursor: pointer;
}

.landing-demo-example-wrapper:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 18px var(--shadow-color);
    background: #ffffff;
}

.landing-demo-example-hint {
    position: absolute;
    top: -1.5rem;
    left: 0;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    color: var(--text-secondary);
    pointer-events: none;
}

.landing-demo-example-image {
    max-width: 180px;
    height: auto;
    display: block;
    border-radius: 6px;
}

/* 波纹效果 */
.landing-demo-click-ripple {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    pointer-events: none;
}

.landing-demo-click-ripple::before,
.landing-demo-click-ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1.5px solid var(--accent-color);
    opacity: 0;
    animation: ripple 3s ease-out infinite;
}

.landing-demo-click-ripple::after {
    animation-delay: 1.5s;
}

/* 上传区域 */
.landing-demo-upload {
    border-top: 1px solid var(--border-color);
    padding: 0.8rem;
    background: var(--bg-card);
    flex-shrink: 0;
    box-sizing: border-box;
}

.landing-demo-upload-area {
    background: var(--secondary-color);
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 0.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 0.6rem;
}

.landing-demo-upload-area:hover {
    border-color: var(--accent-color);
    background: #ffffff;
}

.landing-demo-upload-icon img {
    width: 40px;
    height: 28px;
    margin-bottom: 0.2rem;
    opacity: 0.6;
}

.landing-demo-upload-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.landing-demo-upload-text strong {
    color: var(--text-color);
    font-weight: 600;
}

/* 导出按钮 */
.landing-demo-action-buttons {
    display: flex;
    gap: 0.8rem;
    box-sizing: border-box;
}

.landing-demo-export-btn {
    flex: 1;
    background: #e8e4df;
    color: #4a4a4a;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 0.7rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.landing-demo-export-btn:hover:not(:disabled) {
    background: #d4ccc3;
    transform: translateY(-1px);
}

.landing-demo-export-btn:disabled {
    background: #f0ece7;
    color: #a0a0a0;
    border-color: #e0dcd7;
    cursor: not-allowed;
    opacity: 0.7;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .landing-demo-chat {
        height: 400px;
        min-width: auto;
        max-width: 100%;
        width: 100%;
    }
    
    .landing-demo-messages {
        overflow-x: hidden;
    }
    
    .landing-demo-bot-message {
        max-width: 100%;
        overflow: hidden;
    }
    
    .landing-demo-message-content {
        max-width: calc(100% - 50px);
        overflow: hidden;
    }
    
    .landing-demo-format-section {
        max-width: 100%;
        width: 100%;
    }
    
    .landing-demo-mathml-preview {
        overflow-x: auto;
        max-width: 100%;
    }
    
    .landing-demo-format-section pre {
        overflow-x: auto;
        max-width: 100%;
    }
    
    .landing-demo-analyzing {
        max-width: calc(100% - 50px);
    }
    
    .landing-demo-example-image {
        max-width: 140px;
    }
    
    .landing-demo-uploaded-image {
        max-width: 150px;
    }
    
    .landing-demo-bot-avatar img {
        width: 36px;
        height: 36px;
    }
    
    .landing-demo-upload-icon img {
        width: 40px;
        height: 40px;
    }
    
    .landing-demo-upload-text {
        font-size: 0.85rem;
    }
    
    .landing-demo-export-btn {
        font-size: 0.85rem;
        padding: 0.7rem;
    }
    
    .landing-demo-click-ripple {
        width: 10px;
        height: 10px;
    }
    
    .landing-demo-click-ripple::before,
    .landing-demo-click-ripple::after {
        border: 1px solid var(--accent-color);
    }

    .landing-demo-copy-btn {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }
}