/* 金桔影院 - 完整样式表 */
:root {
    --primary: #f59e0b;
    --primary-light: #fbbf24;
    --primary-gradient: linear-gradient(135deg, #f59e0b, #fbbf24);
    --bg: #0f0f0f;
    --bg-light: #1a1a2e;
    --card-bg: #1a1a2e;
    --text: #e0e0e0;
    --text-muted: rgba(224, 224, 224, 0.7);
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.08);
    --radius: 16px;
    --radius-sm: 8px;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.4);
    --transition: 0.3s ease;
    --transition-slow: 0.5s ease;
    --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --max-width: 1200px;
    --header-height: 64px;
}

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

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

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-light);
}

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

ul {
    list-style: none;
}

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

/* Glass Effect */
.glass {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    transition: var(--transition);
}

.glass:hover {
    border-color: rgba(245, 158, 11, 0.2);
    box-shadow: var(--shadow);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 24px;
    background: var(--primary);
    color: #0f0f0f;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-align: center;
    letter-spacing: 0.5px;
}

.btn:hover {
    transform: scale(1.05);
    background: var(--primary-light);
    color: #0f0f0f;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3);
}

/* Grid */
.grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(15, 15, 15, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
}

header.scrolled {
    background: rgba(15, 15, 15, 0.95);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    height: var(--header-height);
}

nav .logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

nav .logo:hover {
    color: var(--primary-light);
    transform: scale(1.02);
}

nav ul {
    display: flex;
    gap: 20px;
    list-style: none;
    align-items: center;
}

nav ul li a {
    color: var(--text);
    font-size: 0.95rem;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: transform var(--transition);
}

nav ul li a:hover {
    background: var(--glass);
    color: var(--primary);
}

nav ul li a:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.menu-toggle:hover {
    background: var(--glass);
    color: var(--primary);
}

/* Sections */
section {
    padding: 100px 0 80px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

section:nth-child(2) { animation-delay: 0.1s; }
section:nth-child(3) { animation-delay: 0.2s; }
section:nth-child(4) { animation-delay: 0.3s; }
section:nth-child(5) { animation-delay: 0.4s; }
section:nth-child(6) { animation-delay: 0.5s; }
section:nth-child(7) { animation-delay: 0.6s; }
section:nth-child(8) { animation-delay: 0.7s; }
section:nth-child(9) { animation-delay: 0.8s; }

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

/* Typography */
h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 16px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 32px;
    position: relative;
    display: inline-block;
    color: var(--text);
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary);
    border-radius: 4px;
    margin-top: 8px;
    transition: width var(--transition);
}

h2:hover::after {
    width: 100px;
}

h3 {
    font-size: 1.15rem;
    margin-bottom: 6px;
    font-weight: 600;
}

/* Banner */
.banner {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: radial-gradient(ellipse at center, #1a1a2e 0%, #0f0f0f 70%);
    position: relative;
    overflow: hidden;
    padding-top: var(--header-height);
}

.banner::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.15), transparent 70%);
    top: -100px;
    right: -100px;
    border-radius: 50%;
    animation: pulse 4s ease-in-out infinite;
}

.banner::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.1), transparent 70%);
    bottom: -80px;
    left: -80px;
    border-radius: 50%;
    animation: pulse 5s ease-in-out infinite reverse;
}

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

.banner-content {
    position: relative;
    z-index: 2;
    padding: 40px 20px;
}

.banner p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 30px;
    opacity: 0.85;
    line-height: 1.8;
}

.banner .btn {
    animation: bounceIn 1s ease 0.3s both;
}

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

/* Breadcrumb */
.breadcrumb {
    font-size: 0.9rem;
    margin-bottom: 20px;
    opacity: 0.7;
    padding-top: 20px;
}

.breadcrumb a {
    color: var(--primary);
}

.breadcrumb span {
    color: var(--text);
}

/* Cards */
.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 20px;
    transition: var(--transition);
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.05), transparent);
    transition: left 0.6s ease;
}

.card:hover::before {
    left: 100%;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(245, 158, 11, 0.2);
}

.card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 12px;
    transition: transform var(--transition);
}

.card:hover img {
    transform: scale(1.02);
}

.card h3 {
    font-size: 1.15rem;
    margin-bottom: 6px;
    color: var(--text);
}

.card p {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: 10px;
}

/* Tags */
.tag {
    display: inline-block;
    padding: 4px 14px;
    background: var(--glass);
    border-radius: 20px;
    font-size: 0.8rem;
    margin: 4px 4px 0 0;
    color: var(--primary);
    transition: var(--transition);
    border: 1px solid transparent;
}

.tag:hover {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
    transform: translateY(-1px);
}

/* FAQ */
.faq-item {
    margin-bottom: 20px;
    padding: 20px;
    background: var(--card-bg);
    border-radius: var(--radius);
    border-left: 4px solid var(--primary);
    transition: var(--transition);
}

.faq-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow);
}

.faq-item h3 {
    font-size: 1.1rem;
    margin-bottom: 6px;
    color: var(--primary);
}

.faq-item p {
    opacity: 0.8;
    line-height: 1.8;
}

/* Footer */
footer {
    background: #111;
    padding: 50px 0 30px;
    margin-top: 40px;
    border-top: 1px solid var(--glass-border);
}

footer .footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin-bottom: 20px;
}

footer .footer-nav a {
    color: var(--text);
    font-size: 0.9rem;
    transition: var(--transition);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
}

footer .footer-nav a:hover {
    color: var(--primary);
    background: var(--glass);
}

footer .copy {
    text-align: center;
    opacity: 0.5;
    font-size: 0.85rem;
    margin-top: 20px;
    line-height: 1.6;
}

/* Back to Top */
#backTop {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: #0f0f0f;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    display: none;
    z-index: 999;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3);
    line-height: 48px;
    text-align: center;
}

#backTop:hover {
    transform: scale(1.1) translateY(-2px);
    background: var(--primary-light);
    box-shadow: 0 6px 30px rgba(245, 158, 11, 0.4);
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.float {
    animation: float 3s ease-in-out infinite;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}

/* Selection */
::selection {
    background: rgba(245, 158, 11, 0.3);
    color: var(--text);
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    nav ul {
        display: none;
        flex-direction: column;
        background: rgba(15, 15, 15, 0.95);
        backdrop-filter: blur(14px);
        position: absolute;
        top: var(--header-height);
        right: 0;
        width: 220px;
        padding: 20px;
        border-radius: 0 0 12px 12px;
        box-shadow: var(--shadow);
        border: 1px solid var(--glass-border);
        gap: 8px;
    }

    nav ul.active {
        display: flex;
        animation: slideDown 0.3s ease;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .menu-toggle {
        display: block;
    }

    section {
        padding: 80px 0 60px;
    }

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

    .banner {
        min-height: 70vh;
    }

    .banner p {
        font-size: 1rem;
    }

    .card img {
        height: 140px;
    }

    #backTop {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        line-height: 40px;
    }
}

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

    h1 {
        font-size: 1.7rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    section {
        padding: 60px 0 40px;
    }

    .banner {
        min-height: 60vh;
    }

    .banner p {
        font-size: 0.95rem;
    }

    .card {
        padding: 16px;
    }

    .card img {
        height: 180px;
    }

    .container {
        padding: 0 16px;
    }

    .btn {
        padding: 8px 20px;
        font-size: 0.9rem;
    }

    .tag {
        font-size: 0.75rem;
        padding: 3px 10px;
    }

    footer .footer-nav {
        gap: 10px;
    }
}

/* Print Styles */
@media print {
    header,
    #backTop,
    .banner::before,
    .banner::after {
        display: none;
    }

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

    .card {
        break-inside: avoid;
        border: 1px solid #ddd;
    }
}