/* 
   老牛影院 - 全局样式表 
   主题：淡黑金 (Pale Black Gold)
*/

@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-light: #f1e5ac;
    --text-white: #ffffff;
    --text-gray: #a0a0a0;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

/* 导航栏 */
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.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--gold-primary);
    text-decoration: none;
    font-weight: bold;
    letter-spacing: 2px;
}

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

.nav-links a {
    color: var(--text-white);
    text-decoration: none;
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
}

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

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

.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

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

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

.movie-card {
    background: var(--bg-card);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    border: 1px solid rgba(212, 175, 55, 0.1);
}

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

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

.movie-info {
    padding: 10px;
}

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

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

.rating {
    color: var(--gold-primary);
}

/* 浮动下载按钮 */
#floating-download {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.float-btn {
    width: 60px;
    height: 60px;
    background: var(--gold-primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    transition: var(--transition);
    text-decoration: none;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 15px rgba(212, 175, 55, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

/* 响应式 */
@media (max-width: 768px) {
    .nav-links { display: none; } /* 移动端可隐藏或改为汉堡菜单 */
    .movie-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-title { font-size: 2.5rem; }
}

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

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

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

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-gray);
    text-decoration: none;
    transition: var(--transition);
}

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