/* 
  老牛影视 - 全局样式表
  配色方案：淡黑金 (Pale Black & Gold)
  主背景: #121212
  次背景: #1c1c1c
  主色调 (金): #d4af37
  辅助色 (浅金): #f1d279
  文字颜色: #e0e0e0
*/

:root {
    --bg-main: #121212;
    --bg-card: #1c1c1c;
    --accent-gold: #d4af37;
    --accent-gold-light: #f1d279;
    --text-main: #e0e0e0;
    --text-muted: #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-main);
    color: var(--text-main);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
    transition: var(--transition);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
header {
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-gold);
    display: flex;
    align-items: center;
    gap: 10px;
}

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

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

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

/* Hero Section */
.hero {
    height: 80vh;
    display: flex;
    align-items: center;
    padding-top: 70px;
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #121212 30%, transparent 100%);
    z-index: 1;
}

.hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 70%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--accent-gold);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--text-muted);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background: var(--accent-gold);
    color: #000;
}

.btn-primary:hover {
    background: var(--accent-gold-light);
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
}

.btn-outline:hover {
    background: rgba(212, 175, 55, 0.1);
}

/* Sections */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 40px;
    border-left: 5px solid var(--accent-gold);
    padding-left: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.view-more {
    font-size: 0.9rem;
    color: var(--accent-gold);
}

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

.movie-card {
    background: var(--bg-card);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    transition: var(--transition);
    cursor: pointer;
}

.movie-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

.movie-card:hover .movie-overlay {
    opacity: 1;
}

.movie-img {
    aspect-ratio: 2/3;
    object-fit: cover;
}

.movie-info {
    padding: 12px;
}

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

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

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

.movie-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transition: var(--transition);
}

/* Tabs/Filters */
.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
    background: var(--bg-card);
    padding: 20px;
    border-radius: 10px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-label {
    font-weight: bold;
    color: var(--accent-gold);
}

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

.chip {
    padding: 5px 15px;
    border-radius: 20px;
    background: rgba(255,255,255,0.05);
    font-size: 0.85rem;
    cursor: pointer;
}

.chip.active {
    background: var(--accent-gold);
    color: #000;
}

/* App Download Floating & Section */
.app-section {
    background: linear-gradient(135deg, #1c1c1c 0%, #121212 100%);
    border-radius: 20px;
    padding: 50px;
    display: flex;
    align-items: center;
    gap: 50px;
}

.app-float {
    position: fixed;
    right: 30px;
    bottom: 100px;
    z-index: 999;
    background: var(--accent-gold);
    color: #000;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
    cursor: pointer;
    font-weight: bold;
    font-size: 0.8rem;
    text-align: center;
    line-height: 1.2;
}

/* Footer */
footer {
    background: #0a0a0a;
    padding: 60px 0 20px;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

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

.footer-col h4 {
    color: var(--accent-gold);
    margin-bottom: 20px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: var(--text-muted);
}

.footer-col ul li a:hover {
    color: var(--accent-gold);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--text-muted);
    font-size: 0.8rem;
}

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

.animate-fade {
    animation: fadeIn 0.8s ease-out forwards;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero h1 { font-size: 2.5rem; }
    .app-section { flex-direction: column; text-align: center; }
    .movie-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}
