/* ============================================================
   MultiSpeakNow - 多语言学习工具 样式表
   简洁现代风格，响应式适配 PC/平板/手机
   ============================================================ */

/* 重置与基础 */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: #f5f7fa;
    color: #1a1a2e;
    line-height: 1.6;
    min-height: 100vh;
}
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; outline: none; font-family: inherit; }
input { outline: none; font-family: inherit; }

/* 顶部导航 */
.top-header {
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}
.logo-img {
    height: 34px;
    width: auto;
    display: block;
}
.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}
.lang-switcher select {
    padding: 6px 10px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 13px;
    background: #fff;
    cursor: pointer;
}
.user-area { display: flex; align-items: center; gap: 8px; }
.user-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    background: #f0f0ff;
    font-size: 13px;
}
.user-avatar {
    width: 24px; height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4F46E5, #7C3AED);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 600;
}
.btn-login, .btn-register, .btn-logout, .btn-back-learn {
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
}
.btn-login { background: #4F46E5; color: #fff; }
.btn-login:hover { background: #4338CA; }
.btn-register { border: 1px solid #4F46E5; color: #4F46E5; background: #fff; }
.btn-register:hover { background: #f0f0ff; }
.btn-logout { color: #666; background: transparent; }
.btn-logout:hover { color: #ef4444; }
.btn-back-learn { color: #4F46E5; font-size: 13px; }

/* 主内容 */
.main-content {
    max-width: 960px;
    margin: 0 auto;
    padding: 24px 20px 60px;
}
.container { width: 100%; }

/* 语言选择区 */
.lang-select-section { text-align: center; padding: 40px 0; }
.section-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #1a1a2e;
}
.lang-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
    max-width: 700px;
    margin: 0 auto;
}
.lang-card {
    background: #fff;
    border: 2px solid #eee;
    border-radius: 16px;
    padding: 24px 16px;
    cursor: pointer;
    transition: all 0.25s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.lang-card:hover {
    border-color: #4F46E5;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.12);
}
.lang-flag { font-size: 36px; }
.lang-name { font-size: 15px; font-weight: 600; color: #333; }

/* 统计栏 */
.stats-bar {
    background: #fff;
    border-radius: 16px;
    padding: 16px 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.stat-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.stat-label { font-size: 12px; color: #999; }
.stat-value { font-size: 18px; font-weight: 700; }
.correct-num { color: #10b981; }
.wrong-num { color: #ef4444; }
.btn-change-lang {
    margin-left: auto;
    padding: 6px 14px;
    background: #f0f0ff;
    color: #4F46E5;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
}
.btn-change-lang:hover { background: #e0e0ff; }

/* 图片卡片 */
.image-card {
    background: #fff;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    max-width: 400px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    background: #f8f9fc;
}
.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #aaa;
}
.placeholder-icon { font-size: 64px; opacity: 0.5; }
.image-placeholder p { font-size: 14px; }
.image-loading {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(255,255,255,0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
}
.spinner {
    width: 40px; height: 40px;
    border: 3px solid #e0e0ff;
    border-top-color: #4F46E5;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.image-loading p { font-size: 14px; color: #666; }

/* 答题面板 */
.quiz-panel {
    background: #fff;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.input-group { margin-bottom: 20px; }
.input-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}
.input-row {
    display: flex;
    gap: 10px;
}
.answer-input {
    flex: 1;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    transition: border-color 0.2s;
}
.answer-input:focus { border-color: #4F46E5; }
.btn-submit {
    padding: 14px 28px;
    background: #4F46E5;
    color: #fff;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s;
    white-space: nowrap;
}
.btn-submit:hover:not(:disabled) { background: #4338CA; }
.btn-submit:disabled { background: #c7c7e0; cursor: not-allowed; }

/* 反馈区域 */
.feedback-area { margin-top: 16px; }
.feedback {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border-radius: 12px;
}
.feedback.correct {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
}
.feedback.wrong {
    background: #fef2f2;
    border: 1px solid #fecaca;
}
.feedback-icon { font-size: 24px; flex-shrink: 0; }
.feedback-title { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.feedback.correct .feedback-title { color: #059669; }
.feedback.wrong .feedback-title { color: #dc2626; }
.feedback-desc { font-size: 14px; color: #555; line-height: 1.6; }
.explanation-text { color: #888; font-size: 13px; }

/* 操作按钮 */
.action-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}
.btn-generate, .btn-next, .btn-skip {
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}
.btn-generate {
    background: linear-gradient(135deg, #4F46E5, #7C3AED);
    color: #fff;
    flex: 1;
    justify-content: center;
}
.btn-generate:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(79,70,229,0.3); }
.btn-next {
    background: #10b981;
    color: #fff;
    flex: 1;
    justify-content: center;
}
.btn-next:hover { background: #059669; }
.btn-skip {
    background: #f3f4f6;
    color: #666;
}
.btn-skip:hover { background: #e5e7eb; }
.btn-icon { font-size: 18px; }

/* 底部 */
.site-footer {
    text-align: center;
    padding: 24px;
    color: #aaa;
    font-size: 13px;
}

/* Toast */
.toast {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 9999;
    max-width: 90%;
    text-align: center;
}
.toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* ============================================================
   登录/注册页
   ============================================================ */
.auth-body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.auth-container { width: 100%; max-width: 420px; }
.auth-card {
    background: #fff;
    border-radius: 24px;
    padding: 40px 32px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
    cursor: pointer;
}
.auth-logo-img {
    height: 56px;
    width: auto;
    display: block;
}
.auth-title {
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
}
.auth-subtitle {
    font-size: 14px;
    color: #888;
    text-align: center;
    margin-bottom: 28px;
}
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 6px;
}
.form-group input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    transition: border-color 0.2s;
}
.form-group input:focus { border-color: #4F46E5; }
.code-input-row { display: flex; gap: 10px; }
.code-input-row input { flex: 1; }
.btn-send-code {
    padding: 0 16px;
    background: #f0f0ff;
    color: #4F46E5;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}
.btn-send-code:disabled { color: #aaa; cursor: not-allowed; }
.btn-auth {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #4F46E5, #7C3AED);
    color: #fff;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    margin-top: 8px;
    transition: all 0.2s;
}
.btn-auth:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(79,70,229,0.3); }
.btn-auth:disabled { opacity: 0.6; cursor: not-allowed; }
.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #888;
}
.auth-footer a { color: #4F46E5; font-weight: 500; }
.auth-back {
    text-align: center;
    margin-top: 12px;
}
.auth-back a { color: #aaa; font-size: 13px; }

/* ============================================================
   个人中心
   ============================================================ */
.profile-card {
    background: linear-gradient(135deg, #4F46E5, #7C3AED);
    border-radius: 20px;
    padding: 28px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    color: #fff;
}
.profile-avatar {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; font-weight: 700;
}
.profile-name { font-size: 22px; font-weight: 700; }
.profile-email { font-size: 14px; opacity: 0.8; margin-top: 4px; }

.profile-section {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.section-header .section-title { margin-bottom: 0; }
.btn-view-all { color: #4F46E5; font-size: 13px; font-weight: 500; }
.btn-refresh {
    padding: 6px 14px;
    background: #f0f0ff;
    color: #4F46E5;
    border-radius: 8px;
    font-size: 13px;
}

.lang-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.lang-tab {
    padding: 8px 14px;
    background: #f5f5f5;
    border-radius: 20px;
    font-size: 13px;
    color: #666;
    transition: all 0.2s;
}
.lang-tab.active {
    background: #4F46E5;
    color: #fff;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}
.stat-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.stat-card-icon { font-size: 28px; margin-bottom: 8px; }
.stat-card-value { font-size: 24px; font-weight: 700; color: #1a1a2e; }
.stat-card-label { font-size: 12px; color: #999; margin-top: 4px; }

.wrong-preview { display: flex; flex-direction: column; gap: 8px; }
.wrong-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: #fafafa;
    border-radius: 10px;
    font-size: 14px;
}
.wrong-word { font-weight: 600; color: #333; min-width: 60px; }
.wrong-answer { color: #10b981; flex: 1; }
.wrong-count { color: #ef4444; font-size: 12px; }

.advice-card {
    background: #f8f9ff;
    border-radius: 12px;
    padding: 18px;
    min-height: 80px;
}
.advice-content {
    font-size: 14px;
    color: #444;
    line-height: 1.8;
    white-space: pre-wrap;
}
.empty-text { color: #aaa; font-size: 14px; text-align: center; padding: 20px; }

/* ============================================================
   错词本页
   ============================================================ */
.page-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 20px;
}
.filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}
.filter-info { font-size: 14px; color: #888; }
.filter-info span { color: #4F46E5; font-weight: 600; }

.wrong-list { display: flex; flex-direction: column; gap: 14px; }
.wrong-card {
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    display: flex;
    gap: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.wrong-card-img {
    width: 80px; height: 80px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f5f5f5;
}
.wrong-card-img img { width: 100%; height: 100%; object-fit: cover; }
.wrong-card-body { flex: 1; min-width: 0; }
.wrong-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}
.wrong-card-word { font-size: 18px; font-weight: 700; }
.wrong-card-badge {
    padding: 2px 8px;
    background: #f0f0ff;
    color: #4F46E5;
    border-radius: 6px;
    font-size: 11px;
}
.wrong-card-answer {
    font-size: 14px;
    margin-bottom: 8px;
}
.wrong-card-answer .label { color: #888; }
.correct-text { color: #10b981; font-weight: 600; }
.wrong-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: #aaa;
    flex-wrap: wrap;
}
.reviewed-badge {
    padding: 2px 8px;
    background: #ecfdf5;
    color: #10b981;
    border-radius: 6px;
}
.pending-badge {
    padding: 2px 8px;
    background: #fef3c7;
    color: #d97706;
    border-radius: 6px;
}
.empty-state {
    text-align: center;
    padding: 60px 20px;
}
.empty-icon { font-size: 64px; margin-bottom: 16px; }
.empty-state p { color: #888; font-size: 15px; }

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}
.page-btn {
    padding: 8px 16px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 13px;
    color: #555;
}
.page-btn:hover { border-color: #4F46E5; color: #4F46E5; }
.page-info { font-size: 13px; color: #888; }

/* ============================================================
   响应式适配
   ============================================================ */
@media (max-width: 768px) {
    .header-inner { padding: 10px 16px; }
    .logo-img { height: 28px; }
    .lang-switcher select { font-size: 12px; padding: 5px 8px; }
    .user-name { display: none; }

    .main-content { padding: 16px 14px 40px; }
    .section-title { font-size: 18px; }

    .lang-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; }
    .lang-card { padding: 18px 10px; }
    .lang-flag { font-size: 28px; }
    .lang-name { font-size: 13px; }

    .stats-bar { padding: 12px 14px; gap: 12px; }
    .stat-value { font-size: 16px; }
    .btn-change-lang { padding: 5px 10px; font-size: 12px; }

    .image-card { padding: 14px; border-radius: 16px; }
    .quiz-panel { padding: 18px; border-radius: 16px; }
    .input-row { flex-direction: column; }
    .btn-submit { width: 100%; }

    .action-buttons { flex-direction: column; }
    .btn-generate, .btn-next, .btn-skip { width: 100%; justify-content: center; }

    .auth-card { padding: 28px 20px; }
    .auth-title { font-size: 20px; }

    .profile-card { padding: 20px; gap: 14px; }
    .profile-avatar { width: 52px; height: 52px; font-size: 22px; }
    .profile-name { font-size: 18px; }

    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .stat-card { padding: 14px; }
    .stat-card-value { font-size: 20px; }

    .wrong-card { flex-direction: column; }
    .wrong-card-img { width: 100%; height: 160px; }

    .page-title { font-size: 22px; }
}

@media (max-width: 480px) {
    .lang-grid { grid-template-columns: repeat(3, 1fr); }
    .stats-bar { justify-content: space-between; }
    .stat-item:nth-child(4) { display: none; }
}

/* ============================================================
   V2 新增样式 - 句子学习模式
   ============================================================ */

/* 学习设置栏 */
.learn-settings {
    background: #fff;
    border-radius: 12px;
    padding: 12px 20px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.settings-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.timer {
    font-family: 'Courier New', monospace;
    font-size: 16px;
    font-weight: 600;
    color: #4F46E5;
    background: #EEF2FF;
    padding: 6px 12px;
    border-radius: 6px;
}
.switch-label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #555;
}
.switch-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}
.settings-right {
    display: flex;
    align-items: center;
}
.stats-text {
    font-size: 14px;
    color: #666;
}
.correct-count { color: #16a34a; font-weight: 600; }
.wrong-count { color: #dc2626; font-weight: 600; }
.divider { margin: 0 8px; color: #ddd; }

/* 场景选择 */
.scene-select-screen {
    text-align: center;
    padding: 40px 20px;
}
.scene-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: 800px;
    margin: 30px auto;
}
.scene-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px 16px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.scene-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.scene-icon { font-size: 36px; }
.scene-name { font-size: 14px; color: #333; font-weight: 500; }

/* 学习界面 */
.learn-screen {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* 进度条 */
.progress-bar {
    width: 100%;
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    margin-bottom: 20px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4F46E5, #7C3AED);
    border-radius: 2px;
    transition: width 0.3s;
    width: 0%;
}

/* 句子元信息 */
.sentence-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.scene-tag, .difficulty-tag, .review-tag {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 500;
}
.scene-tag { background: #EEF2FF; color: #4F46E5; }
.difficulty-tag { background: #FEF3C7; color: #D97706; }
.review-tag { background: #FCE7F3; color: #DB2777; }

/* 图片区域 */
.image-area {
    text-align: center;
    margin-bottom: 24px;
}
.image-area img {
    max-width: 320px;
    max-height: 240px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.image-placeholder {
    width: 320px;
    height: 200px;
    margin: 0 auto;
    background: #f9fafb;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #9ca3af;
}
.image-placeholder span { font-size: 48px; }
.image-placeholder p { font-size: 14px; }

/* 中文提示 */
.chinese-prompt {
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 30px;
    line-height: 1.5;
}

/* 单词输入区域 */
.word-input-area {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-end;
    gap: 12px;
    margin-bottom: 30px;
    min-height: 80px;
}
.word-input-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}
.word-input {
    width: 100px;
    height: 48px;
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    border: none;
    background: transparent;
    color: #333;
    letter-spacing: 1px;
}
.word-input:disabled {
    background: transparent;
    color: #16a34a;
}
.word-underline {
    width: 100%;
    height: 3px;
    background: #d1d5db;
    border-radius: 2px;
    margin-top: 4px;
    transition: background 0.2s;
}
.word-input:focus + .word-underline {
    background: #4F46E5;
}

/* 震动动画 */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}
.shake {
    animation: shake 0.3s ease-in-out;
}

/* 反馈区域 */
.feedback-area {
    text-align: center;
    margin-bottom: 20px;
}
.feedback {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
}
.feedback-success {
    background: #dcfce7;
    color: #16a34a;
}
.feedback-error {
    background: #fee2e2;
    color: #dc2626;
}
.correct-answer {
    margin-left: 10px;
    color: #16a34a;
    font-weight: 600;
}

/* 解析区域 */
.analysis-area {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e5e7eb;
}
.analysis-words {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
}
.analysis-word-card {
    background: #f9fafb;
    border-radius: 10px;
    padding: 14px 18px;
    text-align: center;
    min-width: 100px;
    border: 2px solid transparent;
    transition: all 0.2s;
}
.analysis-word-card:hover {
    border-color: #4F46E5;
    transform: translateY(-2px);
}
.word-phonetic {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 2px;
}
.word-pos {
    display: inline-block;
    font-size: 11px;
    background: #EEF2FF;
    color: #4F46E5;
    padding: 2px 8px;
    border-radius: 8px;
    margin-bottom: 6px;
}
.word-text {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 4px;
}
.word-meaning {
    font-size: 14px;
    color: #374151;
    margin-bottom: 2px;
}
.word-role {
    font-size: 12px;
    color: #6b7280;
    background: #f3f4f6;
    padding: 2px 8px;
    border-radius: 6px;
    display: inline-block;
}

/* 语法说明 */
.grammar-note {
    background: #fefce8;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 20px;
}
.grammar-title {
    font-size: 15px;
    font-weight: 600;
    color: #a16207;
    margin-bottom: 8px;
}
.grammar-content {
    font-size: 14px;
    color: #713f12;
    line-height: 1.7;
}

/* 操作按钮 */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 20px;
    flex-wrap: wrap;
}
.btn-icon {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: #f3f4f6;
    color: #374151;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}
.btn-icon:hover {
    background: #e5e7eb;
    transform: translateY(-1px);
}

/* 响应式 */
@media (max-width: 768px) {
    .learn-screen { padding: 20px 16px; }
    .learn-settings { padding: 10px 16px; }
    .settings-left { gap: 12px; }
    .timer { font-size: 14px; padding: 4px 10px; }
    .scene-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
    .scene-card { padding: 18px 12px; }
    .scene-icon { font-size: 28px; }
    .chinese-prompt { font-size: 20px; }
    .word-input { width: 70px; height: 40px; font-size: 18px; }
    .image-area img { max-width: 260px; max-height: 180px; }
    .image-placeholder { width: 260px; height: 160px; }
    .analysis-word-card { padding: 10px 12px; min-width: 80px; }
    .word-text { font-size: 18px; }
}

@media (max-width: 480px) {
    .scene-grid { grid-template-columns: repeat(2, 1fr); }
    .word-input { width: 55px; height: 36px; font-size: 16px; }
    .word-input-area { gap: 8px; }
    .action-buttons { gap: 10px; }
    .btn-icon { padding: 8px 14px; font-size: 13px; }
}

/* ============================================================
   V3 全新设计 - 干净、专业、科技感
   ============================================================ */

/* 基础重置 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: #f8fafc;
    color: #1e293b;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; outline: none; font-family: inherit; }
input { outline: none; font-family: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* 按钮 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.btn-sm { padding: 7px 16px; font-size: 13px; }
.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn-primary {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.25);
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
}
.btn-outline {
    background: transparent;
    color: #475569;
    border: 1px solid #e2e8f0;
}
.btn-outline:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

/* 顶部导航 */
.site-header {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.header-logo .logo-img {
    height: 36px;
    width: auto;
    display: block;
}
.header-nav {
    display: flex;
    align-items: center;
    gap: 16px;
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.user-profile-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 8px;
    transition: background 0.2s;
}
.user-profile-link:hover {
    background: #f1f5f9;
}
.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
}
.user-name {
    font-size: 14px;
    color: #334155;
    font-weight: 500;
}
.lang-switcher .lang-select {
    padding: 7px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    color: #475569;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}
.lang-switcher .lang-select:hover {
    border-color: #cbd5e1;
}

/* 主内容区 */
.main-content {
    flex: 1;
    padding: 32px 0;
}

/* 学习状态栏 */
.study-status-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding: 10px 16px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
}
.study-timer {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
    font-size: 14px;
    color: #94a3b8;
    font-weight: 500;
}
.timer-icon {
    width: 16px;
    height: 16px;
}

/* 语种选择界面 */
.lang-select-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
}
.lang-select-content {
    text-align: center;
    max-width: 700px;
    width: 100%;
}
.lang-select-badge {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 100%);
    color: #6366f1;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 24px;
}
.lang-select-title {
    font-size: 42px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #0f172a 0%, #475569 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.lang-select-subtitle {
    font-size: 17px;
    color: #64748b;
    margin-bottom: 48px;
}
.lang-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 56px;
}
.lang-card-v2 {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 32px 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.lang-card-v2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4f46e5, #7c3aed);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}
.lang-card-v2:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(79, 70, 229, 0.12);
    border-color: #c7d2fe;
}
.lang-card-v2:hover::before {
    transform: scaleX(1);
}
.lang-card-flag {
    font-size: 48px;
    margin-bottom: 16px;
}
.lang-card-name {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}
.lang-card-name-en {
    font-size: 14px;
    color: #94a3b8;
    margin-bottom: 12px;
}
.lang-card-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #64748b;
    transition: all 0.2s;
}
.lang-card-v2:hover .lang-card-arrow {
    background: #4f46e5;
    color: #fff;
}
.lang-card-arrow svg {
    width: 16px;
    height: 16px;
}

/* 特性展示 */
.lang-select-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    text-align: left;
}
.feature-item {
    display: flex;
    gap: 14px;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
}
.feature-icon {
    font-size: 28px;
    flex-shrink: 0;
}
.feature-text h4 {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
}
.feature-text p {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
}

/* 场景选择界面 */
.scene-select-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
}
.scene-select-content {
    text-align: center;
    max-width: 900px;
    width: 100%;
}
.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: transparent;
    color: #64748b;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 24px;
    transition: all 0.2s;
}
.btn-back:hover {
    background: #f1f5f9;
    color: #334155;
}
.btn-back svg {
    width: 16px;
    height: 16px;
}
.scene-select-title {
    font-size: 32px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
}
.scene-select-subtitle {
    font-size: 16px;
    color: #64748b;
    margin-bottom: 40px;
}
.scene-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.scene-card-v2 {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 24px 16px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
}
.scene-card-v2:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: #c7d2fe;
}
.scene-card-v2 .scene-icon {
    font-size: 36px;
    margin-bottom: 12px;
}
.scene-card-v2 .scene-name {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 6px;
}
.scene-card-v2 .scene-desc {
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.4;
}

/* 学习练习界面 */
.learn-screen {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    border: 1px solid #f1f5f9;
}
.sentence-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
}
.sentence-tags {
    display: flex;
    gap: 8px;
}
.tag {
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}
.tag-scene {
    background: #eef2ff;
    color: #6366f1;
}
.tag-difficulty {
    background: #fef3c7;
    color: #d97706;
}
.sentence-progress {
    font-size: 14px;
    color: #94a3b8;
    font-weight: 500;
}

/* 中文提示 */
.chinese-prompt {
    text-align: center;
    font-size: 28px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 40px;
    line-height: 1.5;
}

/* 单词输入区域 */
.word-input-area {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 32px;
    min-height: 80px;
}
.word-input-item-v2 {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.word-input-v2 {
    width: 110px;
    height: 52px;
    font-size: 26px;
    font-weight: 600;
    text-align: center;
    border: none;
    background: transparent;
    color: #1e293b;
    letter-spacing: 1px;
    transition: color 0.2s;
}
.word-input-v2:disabled {
    background: transparent;
    color: #059669;
}
.word-underline-v2 {
    width: 100%;
    height: 3px;
    background: #e2e8f0;
    border-radius: 2px;
    margin-top: 4px;
    transition: background 0.2s;
}
.word-input-v2:focus + .word-underline-v2 {
    background: #4f46e5;
}

/* 震动动画 */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}
.shake {
    animation: shake 0.35s ease-in-out;
}

/* 提示消息 */
.feedback-toast {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    z-index: 1000;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    animation: slideDown 0.3s ease;
}
@keyframes slideDown {
    from { opacity: 0; transform: translate(-50%, -20px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}
.toast-success {
    background: #059669;
    color: #fff;
}
.toast-error {
    background: #dc2626;
    color: #fff;
}
.toast-info {
    background: #2563eb;
    color: #fff;
}

/* 解析区域 */
.analysis-section {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid #f1f5f9;
}
.analysis-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 24px;
}
.analysis-title svg {
    width: 20px;
    height: 20px;
    color: #6366f1;
}
.analysis-words {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
}
.analysis-word-card-v2 {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    padding: 16px 20px;
    text-align: center;
    min-width: 100px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
}
.analysis-word-card-v2:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}
.aw-phonetic {
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 4px;
    font-family: 'SF Mono', monospace;
}
.aw-pos {
    display: inline-block;
    font-size: 11px;
    background: #eef2ff;
    color: #6366f1;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
    font-weight: 500;
}
.aw-word {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
}
.aw-meaning {
    font-size: 14px;
    color: #475569;
    margin-bottom: 4px;
}
.aw-role {
    display: inline-block;
    font-size: 11px;
    background: #f1f5f9;
    color: #64748b;
    padding: 2px 8px;
    border-radius: 4px;
}
.grammar-box {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 24px;
}
.grammar-label {
    font-size: 14px;
    font-weight: 600;
    color: #b45309;
    margin-bottom: 8px;
}
.grammar-content {
    font-size: 14px;
    color: #78350f;
    line-height: 1.7;
}
.next-sentence-bar {
    text-align: center;
    margin-top: 24px;
}
.next-sentence-bar .btn svg {
    width: 18px;
    height: 18px;
}

/* 操作工具栏 */
.action-toolbar {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #f1f5f9;
}
.tool-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: #f8fafc;
    color: #475569;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}
.tool-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #1e293b;
}
.tool-btn svg {
    width: 18px;
    height: 18px;
}

/* 底部版权 */
.site-footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 48px 0 24px;
    margin-top: auto;
}
.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 48px;
    margin-bottom: 32px;
}
.footer-brand .footer-logo {
    height: 32px;
    width: auto;
    margin-bottom: 16px;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}
.footer-desc {
    font-size: 14px;
    line-height: 1.7;
    color: #64748b;
    max-width: 320px;
}
.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.footer-column h4 {
    font-size: 14px;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 16px;
}
.footer-column ul {
    list-style: none;
}
.footer-column li {
    margin-bottom: 10px;
}
.footer-column a {
    font-size: 13px;
    color: #64748b;
    transition: color 0.2s;
}
.footer-column a:hover {
    color: #a5b4fc;
}
.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid #1e293b;
    text-align: center;
}
.footer-bottom p {
    font-size: 13px;
    color: #475569;
    margin-bottom: 6px;
}
.footer-gdpr {
    font-size: 12px !important;
    color: #334155 !important;
}

/* Cookie 同意横幅 */
.cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 700px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    z-index: 999;
    border: 1px solid #e2e8f0;
    animation: slideUp 0.4s ease;
}
@keyframes slideUp {
    from { opacity: 0; transform: translate(-50%, 30px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}
.cookie-content {
    padding: 20px 24px;
}
.cookie-content p {
    font-size: 13px;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 16px;
}
.cookie-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* 响应式 */
@media (max-width: 768px) {
    .container { padding: 0 16px; }
    .header-inner { height: 56px; }
    .header-logo .logo-img { height: 28px; }
    .main-content { padding: 20px 0; }
    .lang-select-title { font-size: 28px; }
    .lang-select-subtitle { font-size: 15px; margin-bottom: 32px; }
    .lang-cards { grid-template-columns: 1fr; gap: 14px; }
    .lang-card-v2 { padding: 24px 20px; }
    .lang-select-features { grid-template-columns: 1fr; gap: 12px; }
    .scene-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .scene-select-title { font-size: 24px; }
    .learn-screen { padding: 24px 16px; border-radius: 16px; }
    .chinese-prompt { font-size: 22px; margin-bottom: 28px; }
    .word-input-v2 { width: 70px; height: 44px; font-size: 20px; }
    .word-input-area { gap: 10px; }
    .analysis-words { gap: 10px; }
    .analysis-word-card-v2 { padding: 12px 14px; min-width: 80px; }
    .aw-word { font-size: 18px; }
    .action-toolbar { flex-wrap: wrap; gap: 8px; }
    .tool-btn { padding: 8px 14px; font-size: 13px; }
    .footer-content { grid-template-columns: 1fr; gap: 32px; }
    .footer-links { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .sentence-header { flex-direction: column; gap: 12px; align-items: flex-start; }
}

@media (max-width: 480px) {
    .lang-select-title { font-size: 24px; }
    .scene-grid { grid-template-columns: repeat(2, 1fr); }
    .word-input-v2 { width: 56px; height: 40px; font-size: 17px; }
    .word-input-area { gap: 8px; }
    .footer-links { grid-template-columns: 1fr; }
    .cookie-actions { flex-direction: column; }
    .cookie-actions .btn { width: 100%; }
}

/* ============================================================
   底部版权 Footer
   ============================================================ */
.site-footer {
    background: #1a1a2e;
    color: #a0a0b8;
    padding: 48px 0 0;
    margin-top: 60px;
}
.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 32px;
}
.footer-brand .footer-logo {
    height: 32px;
    margin-bottom: 16px;
    filter: brightness(0) invert(1);
}
.footer-desc {
    font-size: 13px;
    line-height: 1.7;
    color: #8888a0;
}
.footer-col h4 {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}
.footer-col ul {
    list-style: none;
}
.footer-col li {
    margin-bottom: 10px;
}
.footer-col a {
    color: #a0a0b8;
    font-size: 13px;
    transition: color 0.2s;
}
.footer-col a:hover {
    color: #667eea;
}
.footer-bottom {
    border-top: 1px solid #2a2a4a;
    padding: 20px 0;
    text-align: center;
    font-size: 12px;
    color: #666680;
}

/* ============================================================
   Cookie 同意横幅
   ============================================================ */
.cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    padding: 16px 24px;
    z-index: 99999;
    animation: slideUp 0.3s ease;
    border-radius: 12px;
    max-width: 600px;
    width: calc(100% - 40px);
}
@keyframes slideUp {
    from { transform: translateX(-50%) translateY(100%); opacity: 0; }
    to { transform: translateX(-50%) translateY(0); opacity: 1; }
}
.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.cookie-content p {
    font-size: 13px;
    color: #555;
    line-height: 1.6;
    flex: 1;
    margin: 0;
}
.cookie-content a {
    color: #667eea;
    text-decoration: underline;
}
.cookie-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition: transform 0.2s, box-shadow 0.2s;
    flex-shrink: 0;
}
.cookie-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

@media (max-width: 600px) {
    .cookie-banner {
        bottom: 16px;
        padding: 14px 16px;
    }
    .cookie-content {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .cookie-btn {
        width: 100%;
    }
}

/* ============================================================
   全局 Toast
   ============================================================ */
.toast {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: #333;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
}
.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.toast.success { background: #10b981; }
.toast.error { background: #ef4444; }
.toast.info { background: #3b82f6; }

/* ============================================================
   用户下拉菜单
   ============================================================ */
.user-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    min-width: 140px;
    padding: 8px 0;
    display: none;
    z-index: 100;
}
#userArea:hover .user-dropdown-menu {
    display: block;
}
.user-dropdown-menu a {
    display: block;
    padding: 10px 16px;
    font-size: 13px;
    color: #444;
    transition: background 0.2s;
}
.user-dropdown-menu a:hover {
    background: #f5f7fa;
    color: #667eea;
}

/* ============================================================
   单页内容样式
   ============================================================ */
.page-content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
}
.page-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    padding: 48px;
}
.page-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a2e;
    text-align: center;
    margin-bottom: 8px;
}
.page-subtitle {
    font-size: 14px;
    color: #999;
    text-align: center;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #f0f0f0;
}
.page-body {
    font-size: 15px;
    line-height: 1.8;
    color: #444;
}
.page-body h2 {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 32px 0 16px;
    padding-left: 12px;
    border-left: 4px solid #667eea;
}
.page-body h3 {
    font-size: 17px;
    font-weight: 600;
    color: #333;
    margin: 24px 0 12px;
}
.page-body p {
    margin-bottom: 16px;
}
.page-body ul, .page-body ol {
    margin: 12px 0 16px 24px;
}
.page-body li {
    margin-bottom: 8px;
}
.page-body a {
    color: #667eea;
    text-decoration: none;
}
.page-body a:hover {
    text-decoration: underline;
}
.page-body strong {
    color: #1a1a2e;
}

/* 联系表单 */
.contact-form-section {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid #f0f0f0;
}
.contact-form-section h2 {
    text-align: center;
    margin-bottom: 24px;
    border-left: none;
    padding-left: 0;
}
.contact-form {
    max-width: 560px;
    margin: 0 auto;
}
.contact-form .form-group {
    margin-bottom: 20px;
}
.contact-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s;
}
.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: #667eea;
}
.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}
.contact-submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.contact-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}
.contact-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* 响应式 */
@media (max-width: 768px) {
    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
    .footer-brand {
        grid-column: 1 / -1;
    }
    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
    }
    .page-card {
        padding: 24px 20px;
    }
    .page-title {
        font-size: 24px;
    }
}
@media (max-width: 480px) {
    .footer-inner {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   登录/注册页面样式
   ============================================================ */
.auth-body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}
.auth-body .site-header {
    background: #fff;
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
.auth-body .site-header .container {
    max-width: 100%;
    padding: 0 32px;
}
.auth-body .main-content {
    padding: 60px 0 80px;
}
.auth-body .site-footer {
    display: none;
}
.auth-page #guestArea {
    display: none !important;
}
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px);
}
.auth-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    padding: 48px 40px;
    width: 100%;
    max-width: 420px;
}
.auth-logo {
    text-align: center;
    margin-bottom: 24px;
    cursor: pointer;
}
.auth-logo-img {
    height: 48px;
}
.auth-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a2e;
    text-align: center;
    margin-bottom: 8px;
}
.auth-subtitle {
    font-size: 14px;
    color: #888;
    text-align: center;
    margin-bottom: 32px;
}
.auth-card .form-group {
    margin-bottom: 20px;
}
.auth-card label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}
.auth-card input {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    transition: border-color 0.3s;
}
.auth-card input:focus {
    outline: none;
    border-color: #667eea;
}
.code-input-group {
    display: flex;
    gap: 10px;
}
.code-input-group input {
    flex: 1;
}
.code-btn {
    padding: 0 16px;
    background: #f0f0f0;
    color: #667eea;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}
.code-btn:hover {
    background: #e8e8e8;
}
.code-btn:disabled {
    color: #999;
    cursor: not-allowed;
}
.btn-auth {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 8px;
}
.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}
.btn-auth:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}
.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: #888;
}
.auth-footer a {
    color: #667eea;
    font-weight: 600;
}
.auth-back {
    text-align: center;
    margin-top: 16px;
}
.auth-back a {
    color: #888;
    font-size: 13px;
}
.auth-back a:hover {
    color: #667eea;
}
@media (max-width: 480px) {
    .auth-card {
        padding: 32px 24px;
        margin: 0 16px;
    }
}
