/* CSS Variables */
:root {
    --primary: #c41e3a;
    --secondary: #165b33;
    --accent: #ffd700;
    --text-dark: #2c3e50;
    --text-light: #ffffff;
    --bg-light: #f8f9fa;
    --bg-dark: #1a1a1a;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-hover: 0 4px 20px rgba(0,0,0,0.15);
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', 'Microsoft YaHei', '微软雅黑', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Language Toggle */
.language-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    gap: 10px;
    background: rgba(255, 255, 255, 0.95);
    padding: 8px;
    border-radius: 25px;
    box-shadow: var(--shadow);
}

.language-toggle button {
    padding: 8px 20px;
    border: none;
    background: transparent;
    color: var(--text-dark);
    cursor: pointer;
    border-radius: 20px;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 14px;
}

.language-toggle button:hover {
    background: var(--bg-light);
}

.language-toggle button.active {
    background: var(--primary);
    color: white;
}

/* Navigation */
.navbar {
    background: var(--bg-dark);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: var(--shadow);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a,
.logo a:link,
.logo a:visited,
.logo a:hover,
.logo a:active {
    color: var(--accent);
    text-decoration: none !important;
    transition: opacity 0.3s;
}

.logo a:hover {
    opacity: 0.8;
}

.logo-text {
    color: var(--accent);
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 1rem;
}

.nav-menu a:hover {
    color: var(--accent);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(18, 38, 63, 0.75), rgba(139, 0, 0, 0.75)), url('images/L1006324.jpg') center/cover no-repeat;
    color: white;
    padding: 100px 0 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero::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 1200 120"><path d="M0,0 L1200,0 L1200,100 Q600,120 0,100 Z" fill="rgba(255,255,255,0.05)"/></svg>') repeat-x bottom;
    opacity: 0.2;
}

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

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8), 0 0 20px rgba(0,0,0,0.5);
    font-weight: 800;
}

.hero .subtitle {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--accent);
    font-weight: 600;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.8);
    background: rgba(0,0,0,0.3);
    padding: 5px 15px;
    border-radius: 8px;
    display: inline-block;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 10px;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
}

.hero .highlight {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--accent);
    margin-top: 20px;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.8);
    background: rgba(0,0,0,0.4);
    padding: 8px 20px;
    border-radius: 10px;
    display: inline-block;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s;
    margin: 5px;
    font-size: 1rem;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--accent);
    color: var(--text-dark);
}

.btn-primary:hover {
    background: #ffed4e;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary);
}

/* Section Styles */
.section {
    padding: 80px 0;
}

.section-light {
    background: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.section-header p {
    font-size: 1.2rem;
    color: #666;
}

/* Content Box */
.content-box {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.content-box h3 {
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.content-box p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 15px;
}

.theme {
    font-size: 1.5rem !important;
    color: var(--secondary);
    font-weight: bold;
    text-align: center;
    margin: 20px 0 !important;
}

/* Feature Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.feature-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.feature-card h4 {
    color: var(--primary);
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.feature-card p {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
}

/* Video Section */
.video-section {
    margin-top: 50px;
    text-align: center;
}

.video-section h3 {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 30px;
}

.video-container {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-hover);
}

/* Photo Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.gallery-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.gallery-item p {
    padding: 15px;
    text-align: center;
    color: var(--text-dark);
    font-size: 0.95rem;
    font-weight: 500;
    margin: 0;
}

/* Contest Groups */
.contest-groups {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.group-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.group-card h4 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--accent);
}

.group-card ul {
    list-style: none;
}

.group-card li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    font-size: 1.1rem;
}

.group-card li:last-child {
    border-bottom: none;
}

.total-awards {
    text-align: center;
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--secondary);
    margin-top: 25px;
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.benefit-card {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.benefit-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.benefit-card h3 {
    color: var(--primary);
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.benefit-card p {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
}

/* Sponsor Options */
.sponsor-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.sponsor-option {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 12px;
    border-left: 5px solid var(--accent);
}

.sponsor-option h4 {
    color: var(--secondary);
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.sponsor-option p {
    color: #666;
    font-size: 1.1rem;
}

/* CTA Box */
.cta-box {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 50px;
    border-radius: 15px;
    text-align: center;
    margin-top: 40px;
    box-shadow: var(--shadow-hover);
}

.cta-box h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--accent);
}

.cta-box p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    line-height: 1.8;
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.contact-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.contact-card h3 {
    color: var(--primary);
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.contact-card p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.8;
}

.contact-card a {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.contact-card a:hover {
    color: var(--primary);
}

/* Footer */
.footer {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 40px 0;
    text-align: center;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer h3 {
    color: var(--accent);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.footer p {
    font-size: 1rem;
    line-height: 1.8;
    color: #ccc;
}

.footer a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s;
}

.footer a:hover {
    color: #ffed4e;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
        gap: 15px;
        display: none;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero .subtitle {
        font-size: 1.2rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .language-toggle {
        top: 10px;
        right: 10px;
    }

    .features-grid,
    .contest-groups,
    .benefits-grid,
    .sponsor-options,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .content-box {
        padding: 25px;
    }

    .cta-box {
        padding: 30px 20px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .hero h1 {
        font-size: 2.4rem;
    }

    .features-grid,
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-box,
.feature-card,
.benefit-card,
.contact-card {
    animation: fadeIn 0.6s ease-out;
}
