/* 基础样式重置与全局变量 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 固定居中的计时器和按钮 - 使用!important确保优先级 */
.fixed-center-timer {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 9999 !important;
    background: rgba(255, 255, 255, 0.95) !important;
    padding: 20px !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
    text-align: center !important;
    backdrop-filter: blur(10px) !important;
    border: none !important;
    margin: 0 !important;
}

/* 覆盖原有的countdown-container样式 */
.countdown-container.fixed-center-timer {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
}

/* 强制覆盖所有可能的冲突 */
.fixed-center-timer,
div.fixed-center-timer,
.browse-info + .fixed-center-timer {
    all: unset !important;
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 9999 !important;
    background: rgba(255, 255, 255, 0.95) !important;
    padding: 20px !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
    text-align: center !important;
    backdrop-filter: blur(10px) !important;
}

/* 自定义变量 - 便于主题维护和颜色统一 */
:root {
    --primary-color: #3498db;
    --primary-dark: #2980b9;
    --secondary-color: #2ecc71;
    --secondary-dark: #27ae60;
    --accent-color: #f39c12;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --background-light: #f5f7fa;
    --background-white: #ffffff;
    --danger-color: #e74c3c;
    --border-radius: 8px;
    --box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    --transition: all 0.3s ease;
    
    /* 告警框颜色变量 */
    --success-bg: #d4edda;
    --success-text: #155724;
    --success-border: #c3e6cb;
    --danger-bg: #f8d7da;
    --danger-text: #721c24;
    --danger-border: #f5c6cb;
    --warning-bg: #fff3cd;
    --warning-text: #856404;
    --warning-border: #ffeaa7;
    --info-bg: #d1ecf1;
    --info-text: #0c5460;
    --info-border: #bee5eb;
}

/* 基础样式设置 */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.65;
    color: var(--text-dark);
    background-color: var(--background-light);
    font-size: 16px;
}

.container {
    width: 92%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
}

/* 头部样式 */
.site-header {
    background: linear-gradient(135deg, var(--text-dark) 0%, #34495e 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    position: relative;
    z-index: 100;
}

.logo h1 {
    font-size: 1.8rem;
}

.logo a {
    color: white;
    text-decoration: none;
}

.main-nav {
    margin-top: 1rem;
}

.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav ul li {
    margin-right: 1.8rem;
    position: relative;
}

.main-nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    display: inline-block;
    font-size: 1.1rem;
}

.main-nav ul li a:hover {
    color: var(--accent-color);
    opacity: 0.8;
}

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

/* 搜索和筛选控件样式 */
.filter-controls {
    margin-bottom: 2rem;
    background-color: var(--background-white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.filter-controls form {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: end;
}

.search-container,
.difficulty-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.search-container {
    flex: 1;
    min-width: 250px;
}

.filter-controls label {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.filter-controls input[type="text"],
.filter-controls select {
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    width: 100%;
}

.filter-controls input[type="text"]:focus,
.filter-controls select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.filter-controls .btn {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
}

.filter-controls .primary-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.filter-controls .primary-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

/* 底部文章搜索功能样式 */
.article-search {
    margin-top: 3rem;
    padding: 2rem;
    background-color: var(--bg-color-secondary);
    border-radius: 8px;
    border-top: 2px solid var(--border-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.article-search h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    font-size: 1.25rem;
    font-weight: 600;
}

.article-search form {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
}

.article-search .search-container {
    flex: 1;
    min-width: 250px;
}

/* 简化的分页样式 - 确保横排显示 */
.pagination {
    display: flex !important;
    flex-wrap: wrap !important;
}

.pagination .page-item {
    display: inline-block !important;
    margin: 0 2px !important;
}

.pagination .page-link {
    display: block !important;
}

/* 告警框样式 */
.alert {
    font-weight: 500;
    border: 1px solid transparent;
    transition: opacity 0.3s ease;
}

.alert:hover {
    opacity: 0.95;
}

/* 成功告警框 */
.alert-success {
    background-color: var(--success-bg);
    color: var(--success-text);
    border-color: var(--success-border);
}

/* 危险/错误告警框 */
.alert-danger {
    background-color: var(--danger-bg);
    color: var(--danger-text);
    border-color: var(--danger-border);
}

/* 警告告警框 */
.alert-warning {
    background-color: var(--warning-bg);
    color: var(--warning-text);
    border-color: var(--warning-border);
}

/* 信息告警框 */
.alert-info,
.alert-default {
    background-color: var(--info-bg);
    color: var(--info-text);
    border-color: var(--info-border);
}

.article-search .search-container label {
    font-weight: 500;
    color: var(--text-color);
    font-size: 0.9rem;
}

.article-search .search-container input[type="text"] {
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    width: 100%;
}

.article-search .search-container input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

/* 主要内容区域样式 */
.site-content {
    padding: 2.5rem 0;
    min-height: calc(100vh - 180px);
}

/* 文章内容布局 */
.article-content {
    display: flex;
    gap: 4%;
    width: 100%;
    box-sizing: border-box;
}

.original-text, .translation-text {
    flex: 1;
    min-width: 0;
}

.original-text {
    background-color: #f8f9fa;
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    width: 49%;
    box-sizing: border-box;
    max-height: 600px; /* 设置最大高度 */
    overflow-y: auto; /* 启用垂直滚动 */
    scroll-behavior: smooth; /* 平滑滚动效果 */
}

/* 自定义滚动条样式 */
.original-text::-webkit-scrollbar {
    width: 8px;
}

.original-text::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.original-text::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.original-text::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.translation-text {
    background-color: #ffffff;
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    width: 51%;
    box-sizing: border-box;
}

.original-text .text-content, .translation-text .text-content {
    white-space: pre-line;
    line-height: 1.8;
}

.translation-text .text-content p {
    margin: 0.5rem 0;
}

.original-text h3, .translation-text h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    background-color: var(--background-light);
    padding-top: 0.5rem;
}

/* 表单样式 */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label, label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea,
input, select, textarea {
    width: 100%;
    padding: 0.9rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

textarea {
    min-height: 200px;
    resize: vertical;
}

.form-actions {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
}

/* 添加题目部分样式 */
.add-question-section {
    background-color: var(--background-color-light);
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.add-question-section h3 {
    margin-bottom: 1rem;
    color: var(--text-color-dark);
    font-size: 1.2rem;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
    gap: 0.5rem;
}

.form-group {
    flex: 1;
    min-width: 150px;
}

.form-group label {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 500;
    color: var(--text-color);
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.9rem;
}

.form-group textarea {
    resize: vertical;
    min-height: 60px;
}

.add-question-section button[type="submit"] {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* 表格样式 */
.table {
    width: 100%;
    min-width: 640px;
    table-layout: auto;
    border-collapse: collapse;
    margin: 1rem 0.5rem;
    background-color: var(--background-white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.vocabulary-table {
    min-width: 320px !important;
    table-layout: auto !important;
    margin: 0.5rem;
}

.vocabulary-table th:nth-child(1), .vocabulary-table td:nth-child(1) { min-width: 150px !important; }
.vocabulary-table th:nth-child(2), .vocabulary-table td:nth-child(2) { min-width: 120px !important; }
.vocabulary-table th:nth-child(3), .vocabulary-table td:nth-child(3) { min-width: 300px !important; }
.vocabulary-table th:nth-child(4), .vocabulary-table td:nth-child(4) { min-width: 130px !important; }
.vocabulary-table td { word-wrap: break-word; white-space: normal !important; }
.vocabulary-table th, .vocabulary-table td { border: 1px solid #000000 !important; }

.article-table, .user-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    table-layout: fixed;
}

.article-table th, .article-table td,
.user-table th, .user-table td {
    padding: 8px 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.article-table th:nth-child(1) { width: 10%; }  /* 行号列 */
.article-table th:nth-child(2) { width: 40%; } /* 标题列 */
.article-table th:nth-child(3) { width: 10%; } /* 年级 */
.article-table th:nth-child(4) { width: 20%; } /* 日期列 */
.article-table th:nth-child(5) { width: 20%; } /* 操作列 */

.user-table th:nth-child(1) { width: 5%; }  /* 行号列 */
.user-table th:nth-child(2) { width: 18%; } /* 用户名 */
.user-table th:nth-child(3) { width: 22%; } /* 密码 */
.user-table th:nth-child(4) { width: 15%; } /* 创建时间 */
.user-table th:nth-child(5) { width: 15%; } /* 用户类型 */
.user-table th:nth-child(6) { width: 25%; } /* 操作列 */

.table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    padding: 0.8rem;
    margin: 0 auto !important;
}

.table th,
.table td {
    padding: 1rem 1.2rem;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    border: 1px solid #ddd;
    box-sizing: border-box;
}

.table th {
    background-color: var(--text-dark);
    color: white;
    font-weight: 500;
}

.table tbody tr {
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.table tbody tr:last-child {
    border-bottom: none;
}

.table tbody tr:hover {
    background-color: rgba(52, 152, 219, 0.03);
}

/* 提示消息样式 */
.flash-messages {
    margin: 10px auto;
    text-align: center;
    max-width: 800px;
    padding: 0;
    list-style: none;
}

.flash-messages .alert {
    font-weight: bold !important;
    color: #0000FF !important;
    background-color: #FFFACD !important;
    line-height: 1.0 !important;
    padding: 10px !important;
    margin: 10px 0 !important;
    text-align: center !important;
    width: 100% !important;
    border: none !important;
}

.flash-messages .error {
    border-left-color: var(--danger-color);
}

/* 页面标题 */
.page-header {
    margin-bottom: 2.5rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-header h2 {
    font-size: 2rem;
    margin-bottom: 0;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 1.1rem 2.2rem;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.btn:active {
    transform: translateY(1px);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.primary-btn {
    background-color: #f33636;
    color: white;
    font-size: 1.1rem;
    background: linear-gradient(135deg, #f33636 0%, #d62525 100%);
}

.primary-btn:hover {
    background: linear-gradient(135deg, #d62525 0%, #b51717 100%);
}

.hero-primary-btn {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    font-size: 1.6rem;
    padding: 1.4rem 3rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.hero-primary-btn:hover {
    background: linear-gradient(135deg, #2980b9 0%, #1f6dad 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.45);
}

.secondary-btn {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-dark) 100%);
    color: white;
}

.secondary-btn:hover {
    background: linear-gradient(135deg, var(--secondary-dark) 0%, #2e9e5a 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(46, 204, 113, 0.4);
}

.article-actions {
    margin-left: 6rem;
}

/* 紧凑按钮组样式 */
.action-buttons {
    display: flex;
    gap: 8px;
}

.action-buttons .btn, .action-buttons a.btn {
    margin: 0;
    white-space: nowrap;
}

.btn-sm {
    padding: 8px 16px !important;
    font-size: 0.9rem !important;
    min-width: 70px;
}

/* 文章卡片样式 */
.article-card {
    display: flex;
    flex-direction: column;
    min-height: 280px;
    border-radius: var(--border-radius);
    background-color: var(--background-white);
    padding: 0.6rem 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--box-shadow)!important;
    transition: none !important;
}

.article-card:hover {
    transform: none;
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

.article-card h3 {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    line-height: 1.4;
    color: var(--text-dark);
    padding: 1rem;
    min-height: 50px;
    display: flex;
    align-items: center;
}

.article-card h3 a {
    color: #2c3e50;
    text-decoration: none;
}

.article-card .article-meta {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    font-weight: 400;
}

.article-card .secondary-btn {
    font-size: 0.9rem;
    padding: 0.7rem 0.7rem;
    margin-top: auto;
    padding-top: 1rem;
    align-self: flex-start;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* 英雄区域样式 */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="rgba(255,255,255,0.05)"/><path d="M0 50 L100 50 M50 0 L50 100" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></svg>');
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    line-height: 1;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem;
}

/* 特性区域样式 */
.features {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.feature-item {
    flex: 1;
    padding: 0.5rem;
    background-color: var(--background-white);
    margin: 0 1rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border-top: 4px solid var(--primary-color);
}

.feature-item:hover {
    transform: none;
    box-shadow: 0 12px 20px rgba(0,0,0,0.12);
}

.feature-item h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

/* 页脚样式 */
.site-footer {
    background-color: var(--text-dark);
    color: white;
    padding: 3rem 0 2rem;
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section {
    flex: 1;
    min-width: 200px;
}

.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

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

.footer-section a:hover {
    color: var(--accent-color);
}

.copyright {
    text-align: center;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    color: #aaa;
}

/* 排版优化 */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    line-height: 1.3;
    color: var(--text-dark);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
p { margin-bottom: 1rem; }

/* 年级文章统计样式 */
.grade-stats {
    background-color: var(--background-white);
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.grade-stats h3 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
    text-align: center;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.8rem;
}

.stat-item {
    background: linear-gradient(135deg, var(--background-white) 0%, var(--background-light) 100%);
    border-radius: 6px;
    padding: 0.8rem;
    text-align: center;
    border: 1px solid #e9ecef;
    transition: var(--transition);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 80px;
}

.stat-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.stat-item .grade {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.stat-item .count {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* 文章元数据与标签样式 */
.article-meta {
    padding: 0 1rem 1rem;
    color: #7f8c8d;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
}

.difficulty-tag {
    display: inline-block;
    padding: 0.3rem 0.6rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
}

.completed-tag {
    background-color: #27ae60;
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

/* 进度条样式 */
.progress-section { margin-bottom: 2rem; }

.progress-bar {
    height: 20px;
    background-color: #eee;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.progress-fill {
    height: 100%;
    background-color: #2ecc71;
    transition: width 0.3s;
}

/* 筛选控件样式 */
.filter-controls { margin-bottom: 1.5rem; }

#difficulty-filter {
    padding: 0.5rem;
    border-radius: 4px;
    border: 1px solid #ddd;
}

/* 无内容提示样式 */
.no-articles, .no-reports {
    text-align: center;
    padding: 3rem 0;
    color: #7f8c8d;
}

.no-reports {
    background: #f9f9f9;
    border-radius: 8px;
}

/* 高亮文本样式 */
.highlight { cursor: pointer; }

/* 生词本样式 */
.vocabulary-section {
    margin-top: 2rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}

#vocabularyList {
    margin-top: 1rem;
}

#vocabularyList li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    border-bottom: 1px solid #eee;
}

#vocabularyList li button {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    cursor: pointer;
}

/* 翻译练习区域样式 */
.translation-practice {
    background-color: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
}

.correct-translation-container {
    margin: 0.5rem -1rem;
    padding: 0.8rem;
    background-color: #f8f9fa;
    border-radius: 6px;
}

.translation-title {
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-size: 1rem;
    font-weight: 600;
}

.translation-content {
    color: #34495e;
    line-height: 1.5;
    font-size: 1rem;
}

.current-sentence-header {
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.sentence-display {
    white-space: pre-line;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 4px;
    min-height: 60px;
}

#currentEnglishSentence {
    font-size: 1.1rem;
    line-height: 1.5;
}

.user-input-section {
    margin-bottom: 1rem;
    text-align: right;
}

#userTranslationInput {
    width: 100%;
    min-height: 70px;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1.1rem;
    color: #27ae60;
    margin-bottom: 1rem;
}

.translation-feedback {
    margin-top: 1rem;
    padding: 0rem;
    border-radius: 4px;
    background-color: #f8f9fa;
}

#correctTranslation {
    border: 1px solid #ddd;
    padding: 8px;
    border-radius: 4px;
    font-size: 1.1rem;
    color: #27ae60;
    margin-bottom: 1rem;
    padding: 0.5rem;
    border-left: 3px solid #27ae60;
}

.progress-indicator {
    text-align: center;
    margin-top: 1rem;
    color: #7f8c8d;
}

.translation-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
}

/* 单词提示弹窗样式 */
.word-tooltip {
    position: absolute;
    padding: 12px 15px;
    background-color: var(--background-white);
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    font-size: 0.95rem;
    z-index: 1000;
    max-width: 300px;
    line-height: 1.5;
}

.word-tooltip h4 {
    margin-bottom: 8px;
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* 学习报告样式 */
.report-list {
    display: grid;
    gap: 1.5rem;
    padding: 1rem 0;
}

.report-item {
    display: block;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 0.5rem 1.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
}

.report-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

.report-title {
    margin: 0;
    font-size: 1.25rem;
    color: #2c3e50;
}

.report-date {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.report-summary {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.report-metric {
    display: flex;
    flex-direction: column;
}

.metric-label {
    font-size: 0.85rem;
    color: #7f8c8d;
}

.metric-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
}

/* 报告详情页样式 */
.report-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    background-color: var(--background-white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.report-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem 0;
    border-bottom: 1px dashed #eee;
}

.completion-date {
    color: var(--text-light);
    font-size: 1rem;
}

/* AI评分样式 */
.score-display {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.2);
}

.score-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.score-value {
    font-size: 2.5rem;
    font-weight: bold;
    line-height: 1;
}

.score-max {
    font-size: 1rem;
    opacity: 0.9;
}

/* 词汇列表样式 */
.vocabulary-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.vocab-item {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 6px;
}

.word { font-weight: 600; color: #2c3e50; margin-right: 0.5rem; }
.pronunciation { color: #7f8c8d; font-style: italic; margin-right: 0.5rem; }
.translation { color: #34495e; }

/* 翻译记录样式 */
.translation-records { margin-top: 2rem; }

.sentence-record {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.original-sentence { margin-bottom: 1rem; color: #2c3e50; }

.translation-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.user-translation, .correct-translation {
    padding: 1rem;
    border-radius: 6px;
}

.user-translation { background: #fef6e7; border-left: 4px solid #f59e0b; }
.correct-translation { background: #ecfdf5; border-left: 4px solid #10b981; }

.sentence-metrics {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #34495e;
}

.ai-score { font-weight: 600; }
.ai-feedback { color: #6366f1; font-style: italic; }

.report-actions { margin-top: 2rem; text-align: right; }

/* 题目文本样式 - 简化版本 */
.question-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .features {
        flex-direction: column;
    }
    
    .feature-item {
        margin: 1rem 0;
    }
    
    .main-nav ul {
        flex-direction: column;
    }
    
    .main-nav ul li {
        margin: 0.5rem 0;
    }
    
    .hero-content h2 {
        font-size: 2.2rem;
    }
    
    .table {
        font-size: 0.9rem;
    }
    
    .table th,
    .table td {
        padding: 0.8rem;
    }
    
    .article-content {
        flex-direction: column;
    }
    
    .original-text, .translation-text {
        width: 100%;
    }
}
