/* Reset for this page */
* {
    box-sizing: border-box;
}

/* 页面整体布局优化 */
body {
    background: #f5f7fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    background: #f5f7fa;
}

/* 导航栏样式 */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 0;
    margin-bottom: 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-brand .logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-brand .logo-link i {
    font-size: 1.8rem;
    color: #ffd700;
}

.nav-menu {
    display: flex;
    gap: 20px;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* 页面头部 */
.page-header {
    text-align: center;
    padding: 50px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 0 -20px 40px -20px;
    color: white;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="rgba(255,255,255,0.1)"><polygon points="0,0 1000,0 1000,100"/></svg>');
    background-size: 100% 100%;
}

.page-header h1 {
    font-size: 2.8rem;
    color: white;
    margin-bottom: 15px;
    font-weight: bold;
    position: relative;
    z-index: 1;
}

.page-subtitle {
    color: rgba(255,255,255,0.9);
    font-size: 1.2rem;
    margin: 0;
    position: relative;
    z-index: 1;
}

/* 各板块通用样式 */
.latest-result,
.search-section,
.history-section,
.articles-section {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    border: 1px solid rgba(255,255,255,0.8);
}

/* 最新开奖结果区域 */
.latest-result {
    position: relative;
    overflow: hidden;
}

/* 统一的板块标题样式 */
.latest-result h2,
.search-section h2,
.history-section h2,
.articles-section h2 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;
}

.latest-result h2::after,
.search-section h2::after,
.history-section h2::after,
.articles-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 2px;
}

.latest-result h2 i {
    color: #ffd700;
    font-size: 1.6rem;
}

.result-card {
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    border-radius: 15px;
    padding: 25px;
    border: 2px solid #e8efff;
    margin-bottom: 20px;
    position: relative;
}

.result-display {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 30px;
    align-items: center;
}

.expect-info {
    text-align: center;
}

.expect-number {
    font-size: 2rem;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 5px;
}

.open-time {
    color: #666;
    font-size: 0.9rem;
}

.numbers-section {
    flex: 1;
}

.section-title {
    font-size: 1rem;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 600;
}

.numbers-display {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.number-ball {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    position: relative;
    transition: transform 0.3s ease;
}

.number-ball::before {
    content: '';
    position: absolute;
    top: 15%;
    left: 20%;
    width: 30%;
    height: 30%;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
}

.number-ball:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}

.number-ball.red { background: linear-gradient(45deg, #e74c3c, #c0392b); }
.number-ball.blue { background: linear-gradient(45deg, #3498db, #2980b9); }
.number-ball.green { background: linear-gradient(45deg, #27ae60, #229954); }

.zodiac-display,
.wave-display {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.zodiac-item,
.wave-item {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
}

.wave-item.red { background: linear-gradient(45deg, #e74c3c, #c0392b); }
.wave-item.blue { background: linear-gradient(45deg, #3498db, #2980b9); }
.wave-item.green { background: linear-gradient(45deg, #27ae60, #229954); }

.data-source {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    font-style: italic;
}

.result-info {
    text-align: center;
    color: #888;
    font-size: 0.9rem;
}

.result-info i {
    color: #667eea;
    margin-right: 5px;
}

/* 搜索区域 */
.search-section h2 i {
    color: #667eea;
    font-size: 1.6rem;
}

.search-container {
    background: linear-gradient(135deg, #f8fafe 0%, #ffffff 100%);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid #e8efff;
}

.search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

#expectInput {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e8e8e8;
    border-radius: 25px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

#expectInput:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-btn,
.load-btn {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
    font-size: 1rem;
}

.search-btn::before,
.load-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.search-btn:hover::before,
.load-btn:hover::before {
    left: 100%;
}

.search-btn:hover,
.load-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(102, 126, 234, 0.4);
}

.search-result {
    min-height: 50px;
}

/* 历史记录区域 */
.history-section h2 i {
    color: #667eea;
    font-size: 1.6rem;
}

.year-selector {
    background: linear-gradient(135deg, #f8fafe 0%, #ffffff 100%);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid #e8efff;
}

.year-selector label {
    font-weight: 600;
    color: #2c3e50;
}

#yearSelect {
    padding: 8px 16px;
    border: 2px solid #e8e8e8;
    border-radius: 20px;
    font-size: 1rem;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

#yearSelect:focus {
    outline: none;
    border-color: #667eea;
}

.history-table-container {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid #e8efff;
}

.table-wrapper {
    overflow-x: auto;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.history-table th {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 16px 14px;
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.history-table td {
    padding: 14px 12px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
    transition: background-color 0.3s ease;
}

.history-table tr:hover {
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
    transform: scale(1.001);
}

.no-data {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 40px 20px !important;
}

.no-data i {
    color: #667eea;
    margin-right: 8px;
}

/* 最新文章样式 */
.articles-section h2 i {
    color: #764ba2;
    font-size: 1.6rem;
}

.articles-section .section-subtitle {
    color: #7f8c8d;
    margin-bottom: 25px;
    font-size: 0.95rem;
    text-align: center;
}

.articles-container {
    position: relative;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.article-card {
    background: linear-gradient(135deg, #fafbff 0%, #ffffff 100%);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
    border: 1px solid #e8efff;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    height: fit-content;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.15);
    border-color: #667eea;
}

.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.article-card:hover::before {
    transform: scaleX(1);
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 0.85rem;
    color: #7f8c8d;
}

.article-category {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
}

.article-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em;
}

.article-excerpt {
    color: #5a6c7d;
    font-size: 0.9rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 18px;
    min-height: 4.5em;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #e8e8e8;
}

.article-stats {
    display: flex;
    gap: 15px;
    font-size: 0.8rem;
    color: #7f8c8d;
}

.article-stat {
    display: flex;
    align-items: center;
    gap: 4px;
}

.article-link {
    color: #667eea;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.article-link:hover {
    color: #764ba2;
    transform: translateX(3px);
}

.articles-more {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e8e8e8;
}

.more-articles-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.more-articles-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    color: white;
}

/* 文章加载动画 */
.article-card-skeleton {
    background: #f8f9ff;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e8e8e8;
    animation: pulse 1.5s ease-in-out infinite;
}

.skeleton-line {
    height: 12px;
    background: linear-gradient(90deg, #e8e8e8 25%, #f0f0f0 50%, #e8e8e8 75%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
    border-radius: 4px;
    margin-bottom: 10px;
}

.skeleton-line.short {
    width: 60%;
}

.skeleton-line.medium {
    width: 80%;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

/* 文章错误状态 */
.article-error {
    text-align: center;
    padding: 40px 20px;
    color: #7f8c8d;
    grid-column: 1 / -1;
}

.article-error i {
    font-size: 3rem;
    color: #e74c3c;
    margin-bottom: 15px;
}

.article-error p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.retry-btn {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.retry-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

/* 下载引导区域 */
.download-guide {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    color: white;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.3);
}

.download-guide::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(180deg); }
}

.guide-content h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    z-index: 2;
}

.guide-content h2 i {
    color: #ffd700;
}

.guide-content {
    position: relative;
    z-index: 2;
}

.guide-text {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.95;
    line-height: 1.6;
}

.features-highlight {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 25px;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.15);
}

.feature-item i {
    color: #ffd700;
    font-size: 1.2rem;
}

.download-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(45deg, #ffd700, #ffed4a);
    color: #333;
    padding: 18px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.download-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    background: linear-gradient(45deg, #ffed4a, #ffd700);
}

.download-note {
    margin: 0;
    opacity: 0.9;
    font-size: 0.95rem;
}

.download-note i {
    color: #ffd700;
    margin-right: 5px;
}

/* 底部样式 */
.footer {
    background: #2c3e50;
    color: white;
    padding: 30px 0;
    margin-top: 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ffd700;
}

/* 加载动画 */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 40px;
    color: #666;
}

.loading i {
    color: #667eea;
    font-size: 1.2rem;
}

/* 模态框 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #f0f0f0;
}

.modal-header h3 {
    margin: 0;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-header h3 i {
    color: #f39c12;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #666;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.modal-close:hover {
    background: #f0f0f0;
}

.modal-body {
    padding: 25px;
    color: #666;
    line-height: 1.6;
}

/* 下拉导航菜单 */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    padding: 8px 0;
    margin-top: 8px;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: #2c3e50;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.dropdown-item:hover {
    background: #f8f9ff;
    color: #667eea;
}

.dropdown-item i {
    width: 16px;
    text-align: center;
    color: #667eea;
}

/* 固定导航菜单 */
.fixed-nav {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    z-index: 999;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid #e8e8e8;
}

.fixed-nav-header {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}

.fixed-nav-links {
    padding: 5px 0;
}

.fixed-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: #2c3e50;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    border-left: 3px solid transparent;
}

.fixed-nav-item:hover {
    background: #f8f9ff;
    color: #667eea;
    border-left-color: #667eea;
    transform: translateX(-2px);
}

.fixed-nav-item i {
    width: 16px;
    text-align: center;
    color: #667eea;
}

.fixed-nav-item span {
    white-space: nowrap;
}

/* 回到顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.back-to-top i {
    font-size: 1.2rem;
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 锚点偏移 */
#latest-results,
#search-section,
#history-section,
#articles-section,
#download-guide {
    scroll-margin-top: 20px;
}

/* 部分高亮效果 */
.section-highlight {
    position: relative;
    animation: sectionHighlight 3s ease-out;
}

@keyframes sectionHighlight {
    0% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.6);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(102, 126, 234, 0.2);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0);
    }
}

/* 导航项活动状态 */
.fixed-nav-item.active {
    background: #f8f9ff;
    color: #667eea;
    border-left-color: #667eea;
    font-weight: 600;
}

.fixed-nav-item.active i {
    color: #667eea;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar {
        padding: 12px 15px;
    }
    
    .nav-brand .logo-link {
        font-size: 1.3rem;
    }
    
    .nav-brand .logo-link i {
        font-size: 1.5rem;
    }
    
    .nav-menu {
        gap: 10px;
    }
    
    .nav-link {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
    
    .page-header {
        padding: 35px 20px;
        margin: 0 -20px 30px -20px;
    }
    
    .page-header h1 {
        font-size: 2.2rem;
    }
    
    .page-subtitle {
        font-size: 1.1rem;
    }
    
    .result-card {
        padding: 20px;
    }
    
    .result-display {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }
    
    .expect-number {
        font-size: 1.5rem;
    }
    
    .number-ball {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .search-box {
        flex-direction: column;
    }
    
    .search-btn,
    .load-btn {
        justify-content: center;
    }
    
    .year-selector {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .history-table {
        font-size: 0.85rem;
    }
    
    .history-table th,
    .history-table td {
        padding: 8px 6px;
    }
    
    .download-guide {
        padding: 25px 20px;
    }
    
    /* 移动端最新文章样式 */
    .latest-result,
    .search-section,
    .history-section,
    .articles-section {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .articles-section h2 {
        font-size: 1.5rem;
        flex-direction: column;
        gap: 5px;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .article-card {
        padding: 20px;
    }
    
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .article-title {
        font-size: 1rem;
    }
    
    .article-excerpt {
        font-size: 0.85rem;
    }
    
    .article-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .more-articles-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .guide-content h2 {
        font-size: 1.5rem;
        flex-direction: column;
        gap: 5px;
    }
    
    .guide-text {
        font-size: 1rem;
    }
    
    .features-highlight {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .feature-item {
        justify-content: center;
    }
    
    .download-cta {
        padding: 15px 30px;
        font-size: 1.1rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .modal-content {
        width: 95%;
    }
    
    .modal-header,
    .modal-body {
        padding: 15px 20px;
    }
    
    /* 移动端导航调整 */
    .nav-dropdown {
        order: -1;
    }
    
    .dropdown-menu {
        right: auto;
        left: 0;
        min-width: 160px;
    }
    
    .fixed-nav {
        right: 10px;
        transform: translateY(-50%) scale(0.9);
    }
    
    .fixed-nav-item span {
        display: none;
    }
    
    .fixed-nav-item {
        padding: 10px 12px;
        justify-content: center;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .page-header {
        padding: 30px 15px;
        margin: 0 -20px 25px -20px;
    }
    
    .page-header h1 {
        font-size: 1.9rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .latest-result h2,
    .search-section h2,
    .history-section h2 {
        font-size: 1.5rem;
    }
    
    .numbers-display {
        justify-content: center;
    }
    
    .number-ball {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .history-table th,
    .history-table td {
        padding: 6px 4px;
        font-size: 0.8rem;
    }
    
    .download-guide {
        padding: 20px 15px;
    }
    
    .guide-content h2 {
        font-size: 1.3rem;
    }
    
    /* 小屏幕最新文章样式 */
    .latest-result,
    .search-section,
    .history-section,
    .articles-section {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .articles-section h2 {
        font-size: 1.3rem;
    }
    
    .article-title {
        font-size: 0.95rem;
    }
    
    .article-excerpt {
        font-size: 0.8rem;
        -webkit-line-clamp: 2;
    }
    
    .more-articles-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
} 