:root {
    --primary-blue: #2D63EE;
    --neon-green: #28FF3A;
    --green-ui: #22c55e;
    --bg-grey: #f3f4f6;
    --text-dark: #1f2937;
    --red-kill: #ef4444;
}

/* 字体设置：优先 MiSans，回退到系统黑体，全局 Semibold (600) */
body { 
    font-family: "MiSans", "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, sans-serif; 
    font-weight: 600; 
    background-color: var(--bg-grey); 
    color: var(--text-dark); 
    overflow-x: hidden; 
    margin: 0; padding: 0;
    -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

/* 动画 */
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideOutLeft { to { transform: translateX(-100vw); opacity: 0; } }
@keyframes slideOutDown { to { transform: translateY(100vh); opacity: 0; } }
@keyframes toastIn { from { transform: translate(-50%, -20px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
@keyframes toastOut { from { opacity: 1; } to { opacity: 0; } }

/* logo 荧光动画 */
@keyframes glow {
    0% { filter: drop-shadow(0 0 10px rgba(40, 255, 58, 0.5)); }
    100% { filter: drop-shadow(0 0 25px rgba(40, 255, 58, 0.8)); }
}

.animate-enter { animation: fadeIn 0.6s ease-out forwards; }

/* Toast 消息提示样式 */
.toast-container {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    pointer-events: none;
}
.toast {
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    margin-bottom: 10px;
    font-size: 1rem;
    white-space: nowrap;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    animation: toastIn 0.3s forwards;
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(5px);
}
.toast.success { background: rgba(34, 197, 94, 0.9); }
.toast.error { background: rgba(239, 68, 68, 0.9); }

/* Header */
.header { 
    background-color: var(--primary-blue); 
    padding: 15px 5%; 
    display: flex; 
    align-items: center; 
    justify-content: space-between;
    color: white; 
    font-size: 1.4rem; 
    position: fixed; top: 0; left: 0; right: 0; z-index: 100; 
    box-shadow: 0 4px 15px rgba(45, 99, 238, 0.3);
}
.header .logo span { color: var(--neon-green); }
.header a { color: white; text-decoration: none; font-size: 1rem; margin-left: 15px; }

/* 头部图标按钮容器 */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px; /* 图标之间的间距 */
}

/* 头部图标按钮基础样式 */
.header-icon-btn {
    color: white;
    font-size: 1.2rem;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.2s;
    display: flex; 
    align-items: center;
    justify-content: center;
}
.header-icon-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    opacity: 1; 
}

/* 滚动容器 */
.scroll-container { height: 100vh; overflow-y: scroll; scroll-snap-type: y mandatory; scroll-behavior: smooth; }
.section { height: 100vh; width: 100%; scroll-snap-align: start; display: flex; justify-content: center; align-items: center; position: relative; padding-top: 60px; }

/* 第一屏 Hero */
.hero-content { display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: 1000px; padding: 20px; }
.hero-text h1 { font-size: 4rem; line-height: 1.1; margin-bottom: 30px; color: #111; }

/* 去除斜体 transforms */
.highlight-green { background-color: var(--neon-green); color: #000; padding: 0 8px; display: inline-block; }
.highlight-yellow { background-color: #eab308; color: #fff; padding: 0 8px; display: inline-block; }

.hero-btn { 
    background-color: var(--primary-blue); color: white; padding: 12px 35px; 
    border-radius: 50px; text-decoration: none; display: inline-block; 
    margin-right: 15px; box-shadow: 0 5px 15px rgba(45, 99, 238, 0.4); 
    border: none; cursor: pointer; transition: transform 0.2s;
}
.hero-btn:active { transform: scale(0.95); }
.hero-btn.green { background-color: var(--neon-green); color: var(--primary-blue); }

/* Hero 图片区域 - 调整大小，作为 Logo 容器 */
.hero-img { 
    width: 400px; /* 调整大小 */
    height: 400px; /* 调整大小 */
    display: flex; justify-content: center; align-items: center; 
    position: relative;
    /* 移除旧的背景和阴影样式 */
}
/* logo.png 样式和荧光动画 */
.logo-icon {
    width: 100%; 
    height: 100%; 
    object-fit: contain;
    animation: glow 3s ease-in-out infinite alternate; 
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }
.globe-icon { font-size: 200px; color: white; }

/* 第二屏 Footer Info */
.footer-content { text-align: center; width: 100%; overflow: hidden; }
.footer-title { font-size: 2rem; color: #333; margin-bottom: 20px; padding: 0 20px; }

/* Footer Banner 去除斜体 */
.footer-banner { 
    background-color: var(--primary-blue); color: white; 
    padding: 60px 20px; width: 100%; margin: 40px 0;
}
.footer-banner h2 { font-size: 3rem; margin-bottom: 10px; }

/* 底部巨大滚动字 */
.scrolling-bar { background-color: var(--neon-green); padding: 0; overflow: hidden; white-space: nowrap; width: 100%; height: 250px; display: flex; align-items: center; }
.scrolling-text { 
    font-family: "MiSans", sans-serif; /* 确保这里也是 MiSans */
    font-size: 228px; /* 按要求设置巨大字号 */
    line-height: 1;
    font-weight: 600; 
    color: #3D3D3D; 
    display: inline-block; 
    animation: scrollText 20s linear infinite; 
}
@keyframes scrollText { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* 登录/背词卡片通用 */
.container-center { display: flex; justify-content: center; align-items: center; min-height: 100vh; padding-top: 60px; }
.login-card { background: white; padding: 40px; border-radius: 30px; width: 100%; max-width: 380px; text-align: center; box-shadow: 0 15px 35px rgba(0,0,0,0.08); }
.login-input { width: 100%; padding: 15px; margin: 10px 0; background: #f3f4f6; border: 2px solid transparent; border-radius: 12px; font-size: 1rem; transition: 0.3s; font-family: inherit; font-weight: 600; }
.login-input:focus { border-color: var(--primary-blue); background: white; outline: none; }.login-btn { width: 50px; height: 50px; background: var(--primary-blue); border-radius: 50%; border: none; color: white; font-size: 20px; margin-top: 10px; cursor: pointer; display: inline-flex; justify-content: center; align-items: center; }

/* 单词卡片 */
.word-card { text-align: center; width: 100%; max-width: 600px; padding: 20px; position: relative; }

/* 唯一保留 Times New Roman 的地方 */
.word-main { font-family: "Times New Roman", serif; font-size: 5rem; font-weight: bold; color: #333; margin: 20px 0; word-wrap: break-word; }

.word-meaning { font-size: 1.5rem; color: #555; margin-bottom: 60px; min-height: 50px; font-family: inherit; }

.btn-action { 
    width: 80px; height: 80px; border-radius: 50%; 
    display: flex; justify-content: center; align-items: center; 
    color: white; font-size: 35px; border: none; cursor: pointer; 
    transition: transform 0.1s; box-shadow: 0 10px 20px rgba(0,0,0,0.15); 
    text-decoration: none;
}
.btn-action:active { transform: scale(0.9); }
.btn-next { background: var(--primary-blue); }
.btn-kill { background: var(--red-kill); font-size: 1.2rem; font-weight: bold; }
.action-buttons { display: flex; flex-direction: column; align-items: center; gap: 25px; }

/* 上传 & 测试 */
.upload-box { background: white; padding: 30px; border-radius: 20px; width: 100%; max-width: 600px; box-shadow: 0 10px 25px rgba(0,0,0,0.05); }
.import-textarea { width: 100%; height: 180px; padding: 15px; border: 2px solid #eee; border-radius: 15px; margin: 15px 0; resize: none; font-size: 1rem; font-family: inherit; font-weight: 600; }
.import-textarea:focus { border-color: var(--primary-blue); outline: none; }

.quiz-options { 
    display: flex; 
    flex-direction: column; 
    gap: 15px; 
    width: 100%; 
    max-width: 500px; 
    margin: 0 auto; 
}
.quiz-btn { 
    background: white; padding: 20px; border-radius: 15px; 
    border: 2px solid transparent; box-shadow: 0 4px 10px rgba(0,0,0,0.05); 
    font-size: 1.1rem; cursor: pointer; transition: 0.2s; text-align: left; 
    font-family: inherit; font-weight: 600; color: var(--text-dark);
}
.quiz-btn:hover { border-color: var(--primary-blue); transform: translateY(-2px); }
.quiz-btn:active { transform: scale(0.98); }

/* 音乐控制按钮样式 */
.music-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    margin-left: 15px;
    transition: all 0.3s;
    font-size: 1rem;
}

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

/* 播放时的状态：绿色 + 旋转 */
.music-btn.playing {
    background: var(--neon-green);
    color: var(--primary-blue);
    border-color: var(--neon-green);
    animation: spin 3s linear infinite;
    box-shadow: 0 0 15px rgba(40, 255, 58, 0.6);
}

/* 旋转动画 */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 发音图标样式 (已修改居中和美观) */
.pron-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    justify-content: center; /* 确保发音按钮居中 */
    width: 100%; 
}
.pron-btn {
    background: none;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.2s;
    display: flex; /* 确保图标和文本对齐 */
    align-items: center;
}
.pron-btn:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.pron-btn:active {
    transform: translateY(0);
}
.pron-btn i {
    margin-right: 5px;
}

/* 个人主页专用样式（完全还原原始布局） */
.profile-page {
    padding-top: 100px;
    padding-bottom: 60px;
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.profile-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.profile-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--primary-blue);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    box-shadow: 0 5px 15px rgba(45, 99, 238, 0.2);
}

.profile-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
}

.profile-actions {
    display: flex;
    gap: 15px;
}

.stats-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-card {
    background-color: #f9fafb;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(45, 99, 238, 0.1);
}

.stat-card.today {
    background-color: #e0f2fe;
}

.stat-card.week {
    background-color: #f0fdf4;
}

.stat-card.mastered {
    background-color: #fee2e2;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.stat-card.today .stat-number {
    color: #0ea5e9;
}

.stat-card.week .stat-number {
    color: var(--green-ui);
}

.stat-card.mastered .stat-number {
    color: var(--red-kill);
}

.stat-desc {
    font-size: 1rem;
    color: var(--text-dark);
}

.functions-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.functions-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.tab-btn {
    padding: 10px 20px;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
}

.tab-btn.active {
    color: var(--primary-blue);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-blue);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.search-form, .translate-form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.func-input {
    flex-grow: 1;
    padding: 15px 20px;
    border: 2px solid #eee;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    transition: border-color 0.2s;
}

.func-input:focus {
    border-color: var(--primary-blue);
    outline: none;
}

.func-btn {
    background-color: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 0 20px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.func-btn:hover {
    background-color: #1e4bbd;
}

.result-card {
    background-color: #f9fafb;
    border-radius: 15px;
    padding: 20px;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.result-empty {
    color: #6b7280;
    font-size: 1.1rem;
    text-align: center;
}

.word-result {
    width: 100%;
    text-align: center;
}

.result-word {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.result-phonetic {
    font-size: 1rem;
    color: #6b7280;
    margin-bottom: 15px;
    display: flex;
    gap: 15px;
    justify-content: center;
}

.result-meaning {
    font-size: 1.2rem;
    color: var(--text-dark);
    line-height: 1.6;
}

.error-text {
    color: var(--red-kill);
    font-size: 1.1rem;
    text-align: center;
}

.wrong-questions-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.questions-list {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}

.questions-list::-webkit-scrollbar {
    width: 6px;
}

.questions-list::-webkit-scrollbar-thumb {
    background-color: #ddd;
    border-radius: 3px;
}

.wrong-item {
    background-color: #fff5f5;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    border-left: 4px solid var(--red-kill);
    transition: transform 0.2s;
}

.wrong-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.wrong-word {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--red-kill);
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wrong-meaning {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.wrong-options {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 0.9rem;
}

.wrong-selected {
    color: var(--red-kill);
}

.wrong-correct {
    color: var(--green-ui);
}

.wrong-time {
    font-size: 0.8rem;
    color: #9ca3af;
    margin-top: 10px;
}

.no-wrong-questions {
    color: #6b7280;
    font-size: 1.1rem;
    text-align: center;
    padding: 30px 0;
}

/* Mobile */
@media (max-width: 768px) {
    .hero-content { flex-direction: column-reverse; text-align: center; }
    .hero-text h1 { font-size: 3rem; margin-top: 30px; }
    .hero-img { 
        width: 300px; /* 调整移动端大小 */
        height: 300px; /* 调整移动端大小 */
        margin-bottom: 20px; 
    }
    .logo-icon { width: 100%; height: 100%; animation: glow 3s ease-in-out infinite alternate; } 
    .globe-icon { font-size: 140px; }
    .word-main { font-size: 3.5rem; }
    .footer-banner h2 { font-size: 2rem; }
    .scrolling-text { font-size: 150px; } 

    .quiz-btn {
        padding: 15px;
        font-size: 1rem;
    }
    .word-meaning {
        margin-bottom: 30px;
    }
    .search-form, .translate-form {
        flex-direction: column;
    }
    .result-word {
        font-size: 1.7rem;
    }
    .profile-card {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    .profile-info {
        flex-direction: column;
    }
    .profile-actions {
        justify-content: center;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }

    /* 桌面端导航样式优化 */
.desktop-nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.nav-link.logout-link {
    color: #ffd166;
}

.nav-link.logout-link:hover {
    background-color: rgba(255, 209, 102, 0.2);
}

/* 汉堡菜单样式（手机端） */
.hamburger {
    display: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.hamburger:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

/* 手机端菜单弹窗 */
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    z-index: 9999;
    display: flex;
    align-items: stretch;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s linear 0.3s, opacity 0.3s ease;
}

.mobile-menu.active {
    visibility: visible;
    opacity: 1;
    transition-delay: 0s;
}

.mobile-menu-overlay {
    flex: 1;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.mobile-menu-content {
    width: 80%;
    max-width: 300px;
    background-color: white;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
}

.close-btn {
    display: flex;
    justify-content: flex-end;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.close-btn i {
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn i:hover {
    background-color: #f5f5f5;
    color: var(--primary-blue);
}

.mobile-menu-links {
    padding: 20px 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.mobile-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 25px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    background-color: #fafafa;
    transition: all 0.2s ease;
}

.mobile-link i {
    font-size: 1.2rem;
    color: var(--primary-blue);
    width: 24px;
    text-align: center;
}

.mobile-link:hover {
    background-color: #f0f7ff;
    color: var(--primary-blue);
    padding-left: 30px;
}

.mobile-link.logout-link {
    color: #e63946;
}

.mobile-link.logout-link i {
    color: #e63946;
}

.mobile-link.logout-link:hover {
    background-color: #fff5f5;
}

/* Hero区域样式优化（保持原有基础上增强响应式） */
.hero-section {
    background-color: var(--bg-grey);
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
    margin: 0 auto;
}

.hero-text h1 {
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 30px;
    color: #111;
}

.round-highlight {
    padding: 4px 12px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.round-highlight::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.2;
    background: linear-gradient(45deg, rgba(255,255,255,0.3), rgba(255,255,255,0));
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.hero-text h1:hover .round-highlight::after {
    transform: translateX(100%);
}

/* 滚动动画样式 */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-animate.active {
    opacity: 1;
    transform: translateY(0);
}

/* 响应式适配（关键） */
@media (max-width: 768px) {
    /* 隐藏桌面端导航，显示汉堡菜单 */
    .desktop-nav {
        display: none;
    }
    
    .hamburger {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* 优化移动端Hero区域 */
    .hero-content {
        flex-direction: column-reverse;
        padding: 80px 20px 40px;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 3rem;
        margin-top: 30px;
    }
    
    .hero-img {
        width: 250px;
        height: 250px;
    }
    
    /* 移动端按钮样式 */
    .hero-btn {
        display: block;
        margin: 0 auto 15px !important;
        width: 80%;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .footer-banner h2 {
        font-size: 2rem !important;
    }
    
    .scrolling-text {
        font-size: 120px !important;
    }
}

/* 个人主页最终样式（统一变量+无重复+匹配原有风格） */
.profile-page {
    padding-top: 100px; /* 适配固定header */
    padding-bottom: 60px;
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* 个人信息卡片（匹配原有卡片风格） */
.profile-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.profile-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--primary-blue);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    box-shadow: 0 5px 15px rgba(45, 99, 238, 0.2);
}

.profile-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
}

.profile-desc {
    font-size: 1rem;
    color: #6b7280;
    margin-top: 5px;
}

.profile-actions {
    display: flex;
    gap: 15px;
}

/* 学习统计卡片（统一颜色变量） */
.stats-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.stats-card h3, .functions-card h3, .wrong-questions-card h3 {
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-card {
    background-color: #f9fafb;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(45, 99, 238, 0.1);
}

.stat-card.today {
    background-color: #e0f2fe;
}

.stat-card.week {
    background-color: #f0fdf4;
}

.stat-card.mastered {
    background-color: #fee2e2;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 5px;
}

.stat-card.today .stat-number {
    color: #0ea5e9;
}

.stat-card.week .stat-number {
    color: var(--green-ui);
}

.stat-card.mastered .stat-number {
    color: var(--red-kill);
}

.stat-desc {
    font-size: 1rem;
    color: var(--text-dark);
}

/* 单词工具卡片（统一输入框/按钮样式） */
.functions-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.functions-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.tab-btn {
    padding: 10px 20px;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
    font-family: inherit;
}

.tab-btn.active {
    color: var(--primary-blue);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-blue);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.search-form, .translate-form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.func-input {
    flex-grow: 1;
    padding: 15px 20px;
    border: 2px solid #eee;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    transition: border-color 0.2s;
    font-family: inherit;
}

.func-input:focus {
    border-color: var(--primary-blue);
    outline: none;
}

.func-btn {
    background-color: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 0 20px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    font-family: inherit;
}

.func-btn:hover {
    background-color: #1e4bbd;
}

.result-card {
    background-color: #f9fafb;
    border-radius: 15px;
    padding: 20px;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.result-empty {
    color: #6b7280;
    font-size: 1.1rem;
    text-align: center;
}

.word-result {
    width: 100%;
    text-align: center;
}

.result-word {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 10px;
    font-family: "Times New Roman", serif;
}

.result-phonetic {
    font-size: 1rem;
    color: #6b7280;
    margin-bottom: 15px;
    display: flex;
    gap: 15px;
    justify-content: center;
}

.result-meaning {
    font-size: 1.2rem;
    color: var(--text-dark);
    line-height: 1.6;
}

.error-text {
    color: var(--red-kill);
    font-size: 1.1rem;
    text-align: center;
}

/* 错题本卡片（统一错题样式） */
.wrong-questions-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.questions-list {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}

.questions-list::-webkit-scrollbar {
    width: 6px;
}

.questions-list::-webkit-scrollbar-thumb {
    background-color: #ddd;
    border-radius: 3px;
}

.wrong-item {
    background-color: #fff5f5;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    border-left: 4px solid var(--red-kill);
    transition: transform 0.2s;
}

.wrong-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.wrong-word {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--red-kill);
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: "Times New Roman", serif;
}

.wrong-meaning {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.wrong-options {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 0.95rem;
}

.wrong-selected {
    color: var(--red-kill);
}

.wrong-correct {
    color: var(--green-ui);
}

.wrong-time {
    font-size: 0.85rem;
    color: #9ca3af;
    margin-top: 10px;
}

.no-wrong-questions {
    color: #6b7280;
    font-size: 1.1rem;
    text-align: center;
    padding: 30px 0;
}

/* 响应式适配（和原有页面保持一致） */
@media (max-width: 768px) {
    .profile-card {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .profile-info {
        flex-direction: column;
    }

    .profile-actions {
        justify-content: center;
        width: 100%;
    }

    .profile-actions .hero-btn {
        flex: 1;
        margin: 0;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .search-form, .translate-form {
        flex-direction: column;
    }

    .func-btn {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 2rem;
    }

    .profile-actions {
        flex-direction: column;
    }

    .result-word {
        font-size: 1.7rem;
    }
}
}