/* 
 * 神马电影网 - 核心样式表 (Black Gold Theme)
 * 字体、色调、全局动效
 */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700&family=Playfair+Display:wght@700&display=swap');

:root {
    --bg-dark: #0a0a0a;
    --bg-card: #141414;
    --gold-primary: #d4af37;
    --gold-secondary: #c5a028;
    --gold-light: #f1d27b;
    --text-main: #e0e0e0;
    --text-dim: #a0a0a0;
    --accent-glow: rgba(212, 175, 55, 0.2);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Noto Sans SC', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, .brand-font {
    font-family: 'Playfair Display', 'Noto Sans SC', serif;
}

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

ul {
    list-style: none;
}

/* 导航栏 */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gold-primary);
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

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

.nav-links a.active {
    color: var(--gold-primary);
    border-bottom: 2px solid var(--gold-primary);
}

/* 按钮样式 */
.btn-gold {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-secondary));
    color: #000;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    display: inline-block;
    transition: var(--transition);
}

.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px var(--accent-glow);
    filter: brightness(1.1);
}

/* 容器 */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 6rem 0;
}

.section-title {
    font-size: 2.5rem;
    color: var(--gold-primary);
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--gold-primary);
    margin: 1rem auto;
}

/* 影片卡片 */
.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 2rem;
}

.movie-card {
    background: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.05);
}

.movie-card:hover {
    transform: scale(1.05);
    border-color: var(--gold-primary);
}

.movie-poster {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
}

.movie-info {
    padding: 1rem;
}

.movie-title {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.movie-meta {
    font-size: 0.85rem;
    color: var(--text-dim);
    display: flex;
    justify-content: space-between;
}

.rating {
    color: var(--gold-light);
    font-weight: bold;
}

/* 浮漂下载按钮 */
.floating-download {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 999;
    width: 70px;
    height: 70px;
    background: var(--gold-primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-15px);}
    60% {transform: translateY(-7px);}
}

/* 页脚 */
footer {
    background: #050505;
    padding: 4rem 5%;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-section h4 {
    color: var(--gold-primary);
    margin-bottom: 1.5rem;
}

.footer-section p, .footer-section li {
    color: var(--text-dim);
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
}

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--text-dim);
    font-size: 0.8rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .section-title { font-size: 2rem; }
    .movie-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}
