/* ============================================
   吃瓜视频 - 青年独立电影展映与电影节资讯网
   艺术影展风 + 高对比黑白 + 瑞士国际主义排版
   ============================================ */

/* CSS Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-black: #000000;
    --color-red: #FF3366;
    --color-white: #FFFFFF;
    --color-card: #F8F8F8;
    --color-text: #1A1A1A;
    --color-gray: #666666;
    --color-border: #E0E0E0;
    --font-heading: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    --font-body: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    --max-width: 1200px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-white);
    line-height: 1.8;
    overflow-x: hidden;
}

/* Typography - Swiss Design */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

p {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

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

a:hover {
    color: var(--color-red);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Header & Navigation */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.site-logo {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--color-white);
    letter-spacing: -0.02em;
}

.site-logo span {
    color: var(--color-red);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
}

.nav-menu a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: color 0.3s ease;
    position: relative;
}

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

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

.nav-menu a:hover::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-white);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-black);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    filter: grayscale(30%);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--color-white);
    max-width: 800px;
    padding: 0 var(--spacing-md);
}

.hero-content h1 {
    margin-bottom: var(--spacing-sm);
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.hero-content .subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: var(--spacing-md);
    font-weight: 300;
}

.hero-countdown {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.countdown-item {
    text-align: center;
}

.countdown-item .number {
    display: block;
    font-size: 3rem;
    font-weight: 900;
    color: var(--color-red);
    line-height: 1;
}

.countdown-item .label {
    font-size: 0.8rem;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

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

.btn-primary:hover {
    background: #e6204f;
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 51, 102, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-white);
}

.btn-outline:hover {
    background: var(--color-white);
    color: var(--color-black);
}

.btn-dark {
    background: var(--color-black);
    color: var(--color-white);
}

.btn-dark:hover {
    background: var(--color-text);
    color: var(--color-white);
    transform: translateY(-2px);
}

/* Sections */
.section {
    padding: var(--spacing-xl) 0;
}

.section-dark {
    background: var(--color-black);
    color: var(--color-white);
}

.section-gray {
    background: var(--color-card);
}

.section-header {
    margin-bottom: var(--spacing-lg);
}

.section-header h2 {
    margin-bottom: var(--spacing-xs);
}

.section-header .section-desc {
    color: var(--color-gray);
    font-size: 1.1rem;
}

.section-dark .section-header .section-desc {
    color: rgba(255, 255, 255, 0.7);
}

/* Film Cards Grid */
.film-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.film-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
}

.film-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.film-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
}

.film-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.film-card:hover .film-card-image img {
    transform: scale(1.05);
    filter: grayscale(0%) contrast(1.1);
}

.film-card-image .film-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--color-red);
    color: var(--color-white);
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.film-card-body {
    padding: var(--spacing-sm);
}

.film-card-body h4 {
    margin-bottom: 0.3rem;
}

.film-card-body .director {
    color: var(--color-gray);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.film-card-body .meta {
    display: flex;
    gap: var(--spacing-sm);
    font-size: 0.8rem;
    color: var(--color-gray);
}

/* Schedule Table */
.schedule-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
}

.schedule-table th,
.schedule-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.schedule-table th {
    background: var(--color-black);
    color: var(--color-white);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.schedule-table tr:hover {
    background: var(--color-card);
}

.schedule-table .time-slot {
    font-weight: 700;
    color: var(--color-red);
    white-space: nowrap;
}

/* Director Cards */
.director-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.director-card {
    display: flex;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
    background: var(--color-card);
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
}

.director-card:hover {
    border-color: var(--color-red);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.director-card img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.director-card:hover img {
    filter: grayscale(0%);
}

.director-card-info h4 {
    margin-bottom: 0.3rem;
}

.director-card-info p {
    font-size: 0.85rem;
    color: var(--color-gray);
}

/* Event Cards */
.event-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.event-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--color-card);
    border-left: 4px solid var(--color-red);
    transition: all 0.3s ease;
}

.event-item:hover {
    background: var(--color-white);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transform: translateX(5px);
}

.event-date {
    text-align: center;
    min-width: 70px;
}

.event-date .day {
    display: block;
    font-size: 2rem;
    font-weight: 900;
    color: var(--color-red);
    line-height: 1;
}

.event-date .month {
    font-size: 0.8rem;
    color: var(--color-gray);
}

.event-info h4 {
    margin-bottom: 0.3rem;
}

.event-info p {
    font-size: 0.9rem;
    color: var(--color-gray);
}

/* Submission Section */
.submission-banner {
    background: var(--color-black);
    color: var(--color-white);
    padding: var(--spacing-xl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.submission-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,51,102,0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 1; }
}

/* Footer */
.site-footer {
    background: var(--color-black);
    color: rgba(255, 255, 255, 0.7);
    padding: var(--spacing-lg) 0 var(--spacing-md);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.footer-col h4 {
    color: var(--color-white);
    margin-bottom: var(--spacing-sm);
    font-size: 1rem;
}

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

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col ul a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-col ul a:hover {
    color: var(--color-red);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-md);
    text-align: center;
    font-size: 0.85rem;
}

/* Page Header (for inner pages) */
.page-header {
    background: var(--color-black);
    color: var(--color-white);
    padding: calc(70px + var(--spacing-lg)) 0 var(--spacing-lg);
    text-align: center;
}

.page-header h1 {
    margin-bottom: var(--spacing-xs);
}

.page-header .breadcrumb {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.page-header .breadcrumb a {
    color: rgba(255, 255, 255, 0.6);
}

.page-header .breadcrumb a:hover {
    color: var(--color-red);
}

/* Content Area */
.content-area {
    padding: var(--spacing-lg) 0;
}

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

.content-area article h2 {
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
}

.content-area article h3 {
    margin-top: var(--spacing-sm);
    margin-bottom: var(--spacing-xs);
}

/* FAQ Section */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--color-border);
    padding: var(--spacing-sm) 0;
}

.faq-item summary {
    font-weight: 700;
    cursor: pointer;
    padding: 0.5rem 0;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item p {
    padding: 0.5rem 0 1rem;
    color: var(--color-gray);
}

/* Search Page */
.search-box {
    max-width: 600px;
    margin: 0 auto var(--spacing-lg);
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    border: 2px solid var(--color-border);
    outline: none;
    transition: border-color 0.3s ease;
    font-family: var(--font-body);
}

.search-box input:focus {
    border-color: var(--color-red);
}

.search-results {
    max-width: 800px;
    margin: 0 auto;
}

.search-result-item {
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--color-border);
}

.search-result-item h3 a {
    color: var(--color-text);
}

.search-result-item h3 a:hover {
    color: var(--color-red);
}

.search-result-item .url {
    color: var(--color-gray);
    font-size: 0.85rem;
}

/* 404 Page */
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--color-black);
    color: var(--color-white);
}

.error-page .error-code {
    font-size: clamp(6rem, 15vw, 12rem);
    font-weight: 900;
    color: var(--color-red);
    line-height: 1;
    margin-bottom: var(--spacing-sm);
}

/* Grain Effect */
.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

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

@keyframes typewriter {
    from { width: 0; }
    to { width: 100%; }
}

.animate-fadeInUp {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.animate-delay-1 { animation-delay: 0.2s; }
.animate-delay-2 { animation-delay: 0.4s; }
.animate-delay-3 { animation-delay: 0.6s; }

/* Voting Component */
.vote-container {
    text-align: center;
    padding: var(--spacing-md);
    background: var(--color-card);
    border: 1px solid var(--color-border);
}

.vote-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 2rem;
    background: var(--color-red);
    color: var(--color-white);
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.vote-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(255, 51, 102, 0.4);
}

.vote-count {
    margin-top: var(--spacing-sm);
    font-size: 0.9rem;
    color: var(--color-gray);
}

/* App Download Section */
.app-section {
    text-align: center;
    padding: var(--spacing-xl) 0;
}

.app-badges {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
    flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.98);
        flex-direction: column;
        padding: var(--spacing-md);
        gap: var(--spacing-sm);
    }

    .nav-menu.active {
        display: flex;
    }

    .menu-toggle {
        display: flex;
    }

    .hero-countdown {
        gap: var(--spacing-sm);
    }

    .countdown-item .number {
        font-size: 2rem;
    }

    .film-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }

    .director-grid {
        grid-template-columns: 1fr;
    }

    .event-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .header-inner {
        padding: 0 var(--spacing-sm);
    }

    .container {
        padding: 0 var(--spacing-sm);
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .film-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: 500px;
    }
}

/* Print Styles */
@media print {
    .site-header,
    .site-footer,
    .grain-overlay {
        display: none;
    }

    body {
        color: #000;
        background: #fff;
    }
}
