/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    opacity: 0;
    transition: opacity 0.3s ease;
}

body.loaded {
    opacity: 1;
}

/* 导航栏样式 */
.top-nav {
    width: 100%;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 40px;
    width: auto;
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
    color: white;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.language-switch {
    display: flex;
    gap: 0.5rem;
}

.lang-btn {
    padding: 8px 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    color: white;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.lang-btn:hover,
.lang-btn.active {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.8);
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background-color: #fff;
    flex-wrap: wrap;
    gap: 20px;
    border-top: 1px solid rgba(220, 53, 69, 0.1);
}

.nav-links a {
    color: #333;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-links a:hover {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.nav-link-container {
    position: relative;
    display: inline-block;
}

.qr-popup {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 8px;
    background-color: white;
    padding: 15px;
    border: 1px solid rgba(220, 53, 69, 0.2);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    text-align: center;
    z-index: 1100;
    white-space: nowrap;
}

.qr-popup img {
    display: block;
    max-width: 100px;
    height: auto;
    margin-bottom: 8px;
    border-radius: 4px;
}

.qr-popup span {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.nav-link-container:hover .qr-popup {
    display: block;
}

/* 主要内容 */
.main {
    min-height: calc(100vh - 200px);
}

/* Hero区域 */
.hero {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-logo {
    width: 120px;
    height: 120px;
    margin-bottom: 30px;
    border-radius: 50%;
    background: white;
    padding: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 20px;
    opacity: 0.95;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 40px;
    opacity: 0.9;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 32px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: white;
    color: #dc3545;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #dc3545;
}

/* 最新动态区域 */
.news-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    margin: 20px auto 0;
    border-radius: 2px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.news-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.news-date {
    color: #dc3545;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.news-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.4;
}

.news-excerpt {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

.news-more {
    text-align: center;
    margin-top: 40px;
}

.btn-outline {
    background: transparent;
    color: #dc3545;
    border: 2px solid #dc3545;
}

.btn-outline:hover {
    background: #dc3545;
    color: white;
}

/* 页脚样式 */
.footer {
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
    padding: 2rem 0 1.5rem;
    margin-top: 3rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.footer-text {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.footer-separator {
    margin: 0 0.5rem;
    color: #ccc;
}

.footer-beian {
    margin: 0;
}

.footer-beian a {
    color: #888;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer-beian a:hover {
    color: #dc3545;
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .logo-bar {
        padding: 10px 15px;
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .logo-text {
        font-size: 20px;
    }

    .logo-img {
        height: 30px;
    }

    .nav-links {
        padding: 8px 10px;
        gap: 15px;
        font-size: 14px;
    }

    .nav-links a {
        padding: 6px 10px;
        font-size: 14px;
    }

    .qr-popup {
        margin-top: 5px;
        padding: 10px;
    }

    .qr-popup img {
        max-width: 80px;
    }

    .hero {
        padding: 60px 20px;
    }

    .hero-logo {
        width: 100px;
        height: 100px;
        margin-bottom: 20px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .section-title {
        font-size: 2rem;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .news-card {
        padding: 20px;
    }

    .footer {
        padding: 1.5rem 0 1rem;
        margin-top: 2rem;
    }

    .footer-text {
        font-size: 0.8rem;
        line-height: 1.8;
    }

    .footer-beian a {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .news-title {
        font-size: 1.1rem;
    }
}
