/* 
蜜瓜电影网 - 全屏静态样式表
颜色方案：淡黑金
*/

:root {
    --gold: #C5A059;
    --gold-dark: #8E7036;
    --black-pure: #000000;
    --black-bg: #0a0a0a;
    --zinc-100: #f4f4f5;
    --zinc-400: #a1a1aa;
    --zinc-500: #71717a;
    --zinc-800: #27272a;
    --zinc-900: #18181b;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--black-bg);
    color: var(--zinc-100);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* 滚动条 */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--black-bg); }
::-webkit-scrollbar-thumb { background: var(--zinc-800); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* 通用容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--zinc-800);
}

.nav-container {
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-box {
    width: 32px;
    height: 32px;
    background: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(45deg);
    border-radius: 4px;
}

.logo-text h1 {
    color: var(--gold);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo-text p {
    font-size: 8px;
    color: var(--zinc-500);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--zinc-400);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--gold);
}

/* 页面切换逻辑 */
.page {
    display: none;
    padding-top: 80px;
    animation: fadeIn 0.5s ease-out;
}

.page.active {
    display: block;
}

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

/* 首页 Hero */
.hero {
    height: 80vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-cover: cover;
    opacity: 0.4;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--black-bg) 0%, transparent 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 700px;
}

.hero-tag {
    display: inline-block;
    background: rgba(197, 160, 89, 0.2);
    color: var(--gold);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: bold;
    border: 1px solid rgba(197, 160, 89, 0.3);
    margin-bottom: 20px;
}

.hero-content h2 {
    font-size: 64px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
}

.btn-primary {
    background: var(--gold);
    color: #000;
    padding: 16px 36px;
    border-radius: 12px;
    font-weight: 800;
    text-decoration: none;
    display: inline-block;
    transition: 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    box-shadow: 0 0 30px rgba(197, 160, 89, 0.4);
    transform: scale(1.05);
}

/* 统计卡片 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: -50px;
    position: relative;
    z-index: 20;
}

.stat-card {
    background: var(--zinc-900);
    padding: 30px;
    border-radius: 24px;
    border: 1px solid var(--zinc-800);
}

.stat-card h3 {
    font-size: 32px;
    color: #fff;
}

.stat-card p {
    color: var(--zinc-500);
    font-size: 14px;
}

/* 影片网格 */
.section-header {
    margin: 80px 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-header h2 {
    font-size: 32px;
    border-left: 5px solid var(--gold);
    padding-left: 20px;
}

.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 24px;
}

.movie-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: var(--zinc-900);
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

.movie-card:hover {
    transform: translateY(-10px);
}

.movie-card img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
}

.movie-rating {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.6);
    color: var(--gold);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.movie-card-info {
    padding: 12px;
}

.movie-card-info h4 {
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.movie-card-info p {
    font-size: 11px;
    color: var(--zinc-500);
}

/* 分类筛选 */
.filter-container {
    background: var(--zinc-950);
    padding: 30px;
    border-radius: 24px;
    margin-bottom: 50px;
}

.filter-row {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 20px;
}

.filter-label {
    width: 60px;
    color: var(--zinc-500);
    font-size: 14px;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    padding: 6px 16px;
    border-radius: 100px;
    background: var(--zinc-900);
    border: none;
    color: var(--zinc-400);
    font-size: 13px;
    cursor: pointer;
    transition: 0.3s;
}

.filter-btn.active {
    background: var(--gold);
    color: #000;
    font-weight: bold;
}

/* 关于我们内容 */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 100px;
}

.about-text h2 { font-size: 48px; margin-bottom: 20px; }
.about-text p { color: var(--zinc-400); margin-bottom: 30px; }

/* 联系表单 */
.contact-wrap {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 50px;
}

.contact-form {
    background: var(--zinc-900);
    padding: 40px;
    border-radius: 30px;
}

.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; color: var(--zinc-500); }
.form-group input, .form-group textarea {
    width: 100%;
    background: #000;
    border: 1px solid var(--zinc-800);
    padding: 12px;
    color: #fff;
    border-radius: 12px;
}

/* 页脚 */
footer {
    background: #000;
    padding: 80px 0 40px;
    margin-top: 100px;
    border-top: 1px solid var(--zinc-900);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-col h5 { color: var(--gold); margin-bottom: 20px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; font-size: 13px; color: var(--zinc-500); }

/* 浮动按钮 */
.floating-download {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--gold);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 1000;
    text-decoration: none;
    color: #000;
    transition: 0.3s;
}

.floating-download:hover { transform: scale(1.1); }

@media (max-width: 768px) {
    .nav-links { display: none; }
    .about-grid, .contact-wrap { grid-template-columns: 1fr; }
    .hero-content h2 { font-size: 40px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
