* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: white;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
    width: 100vw;
    max-width: 100vw;
}

:root {
  --nav-height: 70px;
  --footer-height: 60px;
}

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

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.error-container {
    margin: calc(var(--nav-height)) auto 0;
    flex: 1;
    width: 100%;
    min-height: calc(100vh - var(--nav-height) - var(--footer-height));
    background: white;
    padding: 0;
    position: relative;
}

.error-header {
    text-align: center;
    padding: 40px clamp(20px, 5%, 40px) 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #e1e8ed;
    box-sizing: border-box;
    width: 100%;
}

.error-code {
    font-size: 6rem;
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
    font-weight: 800;
}

.error-title {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 12px;
    font-weight: 600;
}

.error-description {
    font-size: 1.1rem;
    color: #7f8c8d;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

.error-content {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
}

.main-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    padding: 40px max(20px, calc((100% - 1400px) / 2));
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

.suggestion-card {
    background: white;
    border-radius: 12px;
    padding: 30px 25px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #f1f3f4;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.suggestion-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.suggestion-card i {
    font-size: 2.5rem;
    color: #3498db;
    margin-bottom: 15px;
}

.suggestion-card h3 {
    color: #2c3e50;
    margin-bottom: 12px;
    font-size: 1.3rem;
    font-weight: 600;
}

.suggestion-card p {
    color: #7f8c8d;
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.4;
}

.suggestion-link {
    background: #3498db;
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    display: inline-block;
}

.suggestion-link:hover {
    background: #2980b9;
}

.search-box {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.search-box input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #e1e8ed;
    border-radius: 25px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s;
}

.search-box input:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52,152,219,0.1);
}

.search-box button {
    background: #3498db;
    color: white;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    cursor: pointer;
    transition: all 0.3s;
}

.search-box button:hover {
    background: #2980b9;
}

.bottom-section {
    background: #f8f9fa;
    padding: 40px clamp(20px, 5%, 40px);
    border-top: 1px solid #e1e8ed;
    box-sizing: border-box;
    width: 100%;
}

.bottom-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.quick-links {
    text-align: center;
    margin-bottom: 50px;
}

.quick-links h3 {
    color: #2c3e50;
    margin-bottom: 25px;
    font-size: 1.5rem;
    font-weight: 600;
}

.link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
    gap: 15px;
    max-width: 700px;
    margin: 0 auto;
    box-sizing: border-box;
    width: 100%;
}

.quick-link {
    background: white;
    border: 1px solid #e1e8ed;
    border-radius: 10px;
    padding: 20px 15px;
    text-decoration: none;
    color: #2c3e50;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.quick-link:hover {
    border-color: #3498db;
    background: #f8f9fa;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.quick-link i {
    display: block;
    font-size: 1.8rem;
    margin-bottom: 8px;
    color: #3498db;
}

.quick-link span {
    font-size: 0.9rem;
    font-weight: 500;
}

.error-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

.return-btn {
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    min-width: 160px;
    max-width: 100%;
    justify-content: center;
    box-sizing: border-box;
}

.return-btn.primary {
    background: #3498db;
    color: white;
    box-shadow: 0 4px 15px rgba(52,152,219,0.3);
}

.return-btn.secondary {
    background: white;
    color: #2c3e50;
    border: 2px solid #e1e8ed;
}

.return-btn:hover {
    box-shadow: 0 6px 25px rgba(0,0,0,0.15);
}

.countdown-section {
    text-align: center;
    padding: 30px 0;
    background: white;
    border-top: 1px solid #e1e8ed;
}

.countdown-section.compact {
    padding: 15px 0 0;
    background: transparent;
    border-top: none;
    margin-top: 10px;
}

.countdown-text {
    color: #7f8c8d;
    font-size: 1.1rem;
    margin: 0;
}

.countdown-text.compact {
    font-size: 1rem;
    color: #95a5a6;
}

.search-container {
    display: flex;
    align-items: center;
    width: 100%;
}

.search-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e1e8ed;
    border-radius: 8px 0 0 8px;
    font-size: 1rem;
    background: #fff;
    height: 44px;
    box-sizing: border-box;
    min-width: calc(100% - 60px);
}

.search-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.search-btn {
    padding: 0;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 44px;
    margin-left: -1px;
}

.search-btn:hover {
    background: #2980b9;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.search-btn svg {
    width: 16px;
    height: 16px;
}

.multilang-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 15px;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 30px;
    box-sizing: border-box;
}

.lang-section {
    background: white;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #e9ecef;
    min-width: 140px;
}

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

.lang-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}

.flag {
    width: 24px;
    height: 16px;
    border-radius: 3px;
    flex-shrink: 0;
}

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

.lang-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.lang-links a {
    display: block;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    text-decoration: none;
    color: #495057;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
}

.lang-links a:hover {
    background: #e9ecef;
    color: #2c3e50;
    border-color: #dee2e6;
    transform: translateX(2px);
}

@media (max-width: 1200px) {
    .main-section {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 25px;
        padding: 40px 30px;
    }
    
    .multilang-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 15px;
        padding: 0 25px;
    }

    .news-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .news-lang-header {
        padding: 18px 20px;
    }
    
    .news-links-grid {
        padding: 15px 20px;
    }
    
    .news-navigation,
    .news-accordion,
    .bottom-container {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .main-section {
        grid-template-columns: 1fr;
        padding: 30px 20px;
        gap: 20px;
    }
    
    .error-header {
        padding: 30px 20px 25px;
    }
    
    .error-code {
        font-size: 5rem;
    }
    
    .error-title {
        font-size: 1.8rem;
    }
    
    .suggestion-card {
        padding: 25px 20px;
    }
    
    .link-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .error-actions {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    .return-btn {
        width: 100%;
        max-width: 280px;
        padding: 10px 25px;
        font-size: 0.95rem;
    }
    
    .multilang-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
        padding: 0 20px;
    }

    .lang-section {
        padding: 12px;
        min-width: auto;
    }

    .lang-name {
        font-size: 1rem;
    }

    .lang-links a {
        padding: 6px 8px;
        font-size: 0.85rem;
    }

    .news-navigation,
    .news-accordion,
    .bottom-container {
        width: 100%;
        max-width: 100%;
        padding: 0 20px;
        box-sizing: border-box;
    }

    .news-links-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 15px 20px;
    }

    .news-lang-header {
        padding: 18px 20px;
    }
}

@media (max-width: 480px) {
    .main-section {
        padding: 25px 15px;
        gap: 15px;
    }
    
    .error-header {
        padding: 25px 15px 20px;
    }
    
    .error-code {
        font-size: 4rem;
    }
    
    .error-title {
        font-size: 1.5rem;
    }
    
    .link-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .suggestion-card {
        padding: 20px 15px;
    }
    
    .quick-link {
        padding: 15px 10px;
    }
    
    .quick-link i {
        font-size: 1.5rem;
        margin-bottom: 5px;
    }
    
    .quick-link span {
        font-size: 0.85rem;
    }
    
    .multilang-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 0 15px;
    }

    .lang-section {
        padding: 10px;
        min-width: auto;
    }

    .lang-header {
        gap: 6px;
        margin-bottom: 10px;
    }

    .flag {
        width: 18px;
        height: 12px;
    }

    .lang-name {
        font-size: 0.9rem;
    }

    .lang-links {
        gap: 4px;
    }

    .lang-links a {
        padding: 4px 6px;
        font-size: 0.75rem;
    }

    .news-navigation,
    .news-accordion,
    .bottom-container {
        width: 100%;
        max-width: 100%;
        padding: 0 15px;
        box-sizing: border-box;
    }

    .news-links-grid {
        grid-template-columns: 1fr;
        padding: 12px 15px;
    }

    .news-lang-header {
        padding: 15px 15px;
    }

    .news-link {
        padding: 12px 15px;
        font-size: 14px;
    }
}

/* 多语言新闻导航模块样式 */
.news-navigation {
    background: #f8f9fa;
    padding: 40px clamp(20px, 5%, 40px);
    border-top: 1px solid #e1e8ed;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    margin: 60px 0;
}

.news-navigation h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 30px;
    font-size: 1.8rem;
    font-weight: 600;
}

.news-accordion {
    width: 100%;
    margin: 0 auto;
    display: grid;
    gap: 15px;
    box-sizing: border-box;
}

.news-lang-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.news-lang-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    cursor: pointer;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s ease;
}

.news-lang-header:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
}

.news-lang-header .flag {
    width: 28px;
    height: 18px;
    border-radius: 3px;
    flex-shrink: 0;
}

.news-lang-header .lang-name {
    font-weight: 600;
    font-size: 1.2rem;
    color: #2c3e50;
    flex: 1;
}

.news-lang-header .toggle-icon {
    font-size: 1.2rem;
    color: #7f8c8d;
    transition: transform 0.3s ease;
}

.news-lang-header.active .toggle-icon {
    transform: rotate(180deg);
}

.news-lang-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.news-lang-content.open {
    max-height: none;
}

.news-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 12px;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
}

.news-link-item {
    display: block;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: #495057;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    line-height: 1.4;
}

.news-link-item:hover {
    background: #e9ecef;
    color: #2c3e50;
    border-color: #dee2e6;
    transform: translateY(-1px);
}

.news-link-item strong {
    display: block;
    color: #2c3e50;
    margin-bottom: 4px;
}

@media (max-width: 768px) {
    .news-navigation {
        padding: 30px 20px;
    }
    
    .news-navigation h2 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    
    .news-lang-header {
        padding: 15px;
    }
    
    .news-lang-header .lang-name {
        font-size: 1.1rem;
    }
    
    .news-links-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 15px;
    }
    
    .news-link-item {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .news-navigation {
        padding: 25px 15px;
    }
    
    .news-navigation h2 {
        font-size: 1.3rem;
    }
    
    .news-lang-header {
        padding: 12px;
    }
    
    .news-lang-header .lang-name {
        font-size: 1rem;
    }
    
    .news-links-grid {
        padding: 12px;
    }
    
    .news-link-item {
        padding: 8px 10px;
        font-size: 0.8rem;
    }
}

/* 专家指南文章列表样式 */
.expert-guides-section {
    margin: 60px 0;
    padding: 0 20px;
    max-width: 100%;
}

.expert-guides-container {
    width: 100%;
    max-width: calc(100% - 20px);
    margin: 0 10px;
    background: transparent;
    border-radius: 0;
    padding: 40px;
    box-shadow: none;
    border: none;
    box-sizing: border-box;
}

.expert-guides-title {
    text-align: center;
    margin-bottom: 40px;
    color: #2c3e50;
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
}

.expert-guides-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #007bff, #0056b3);
    border-radius: 2px;
}

.expert-guides-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 8px;
    margin-top: 20px;
    width: 100%;
}

.expert-guide-item {
    display: block;
    padding: 12px 20px;
    background: #ffffff;
    border-radius: 8px;
    border-left: 4px solid #007bff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-bottom: 8px;
}

.expert-guide-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 123, 255, 0.15);
    border-left-color: #0056b3;
}

.expert-guide-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 123, 255, 0.1), transparent);
    transition: width 0.3s ease;
}

.expert-guide-item:hover::before {
    width: 100%;
}

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

.guide-title {
    margin: 0 0 4px 0;
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
}

.guide-meta-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 2px;
}

.guide-new-tag {
    display: inline-block;
    background: #dc3545;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    animation: pulse 2s infinite;
    flex-shrink: 0;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.guide-date {
    color: #6c757d;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.guide-external-icon {
    color: #007bff;
    font-size: 1rem;
    transition: transform 0.3s ease;
    margin-left: auto;
    flex-shrink: 0;
}

.expert-guide-item:hover .guide-external-icon {
    transform: translateX(3px);
}

.expert-guide-item:hover .guide-external-icon {
    transform: translateX(3px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .expert-guides-container {
        padding: 25px 20px;
        margin: 0 5px;
    }
    
    .expert-guides-title {
        font-size: 2rem;
    }
    
    .expert-guides-list {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .expert-guide-item {
        padding: 10px 15px;
    }
    
    .guide-title {
        font-size: 1rem;
    }
    
    .guide-meta-row {
        gap: 8px;
    }
    
    .guide-date {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .expert-guides-container {
        padding: 20px 15px;
        margin: 0 5px;
    }
    
    .expert-guides-title {
        font-size: 1.8rem;
    }
    
    .expert-guide-item {
        padding: 8px 12px;
    }
    
    .guide-meta-row {
        gap: 6px;
    }
    
    .guide-date {
        font-size: 0.75rem;
    }
}

/* 加载动画 */
.expert-guides-loading {
    text-align: center;
    padding: 40px;
    color: #6c757d;
}

.expert-guides-loading::after {
    content: '...';
    animation: loading-dots 1.5s infinite;
}

@keyframes loading-dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

/* 空状态 */
.expert-guides-empty {
    text-align: center;
    padding: 40px;
    color: #6c757d;
    font-style: italic;
}

.expert-guides-empty::before {
    content: '📚';
    display: block;
    font-size: 3rem;
    margin-bottom: 15px;
}

/* 底部导航按钮样式 */
.bottom-navigation-section {
    margin-top: 40px;
    padding: 20px 0;
}

.bottom-navigation-section .bottom-container {
    max-width: calc(100% - 20px);
    margin: 0 10px;
    text-align: center;
}

.bottom-navigation-section .back-home {
    display: inline-block;
    padding: 8px 20px;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-bottom: 8px;
    font-size: 0.9em;
}

.bottom-navigation-section .back-home:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.bottom-navigation-section .back-home[style*="#95a5a6"]:hover {
    background: #7f8c8d;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(149, 165, 166, 0.3);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .bottom-navigation-section {
        margin-top: 30px;
        padding: 15px 0;
    }
    
    .bottom-navigation-section .bottom-container {
        max-width: calc(100% - 10px);
        margin: 0 5px;
    }
}

@media (max-width: 480px) {
    .bottom-navigation-section {
        margin-top: 20px;
        padding: 10px 0;
    }
}