/* Global Styles */
:root {
    --primary-bg: #0f0f0f;
    --secondary-bg: #1a1a1a;
    --accent-gold: #d4af37;
    --accent-gold-light: #f1d382;
    --text-main: #ffffff;
    --text-muted: #b3b3b3;
    --card-bg: #262626;
    --transition-speed: 0.3s;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

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

button {
    cursor: pointer;
    border: none;
    outline: none;
    background: none;
}

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

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

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

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

.search-bar {
    position: relative;
    display: flex;
    align-items: center;
}

.search-bar input {
    background: var(--secondary-bg);
    border: 1px solid var(--accent-gold);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    width: 200px;
    transition: 0.3s;
}

.search-bar input:focus {
    width: 300px;
    background: var(--card-bg);
}

/* Hero Section */
.hero {
    margin-top: 70px;
    height: 80vh;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.8)), url('https://tse-mm.bing.com/th?q=%E7%94%B5%E5%BD%B1%E9%99%A2%E5%A4%A7%E5%B1%8F%E5%B9%95');
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 1rem;
}

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

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    color: var(--text-muted);
}

/* Section Common Styles */
section {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

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

.section-title a {
    font-size: 1rem;
    color: var(--text-muted);
}

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

.movie-card {
    background: var(--secondary-bg);
    border-radius: 8px;
    overflow: hidden;
    transition: 0.3s;
    position: relative;
    border: 1px solid transparent;
}

.movie-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-gold);
}

.movie-poster {
    aspect-ratio: 2/3;
    background-color: #333;
    overflow: hidden;
    position: relative;
}

.movie-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.movie-info {
    padding: 0.8rem;
}

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

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

/* Components */
.btn-gold {
    background: linear-gradient(135deg, #d4af37, #b8860b);
    color: #000;
    padding: 0.8rem 2rem;
    border-radius: 5px;
    font-weight: bold;
    display: inline-block;
    transition: 0.3s;
}

.btn-gold:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
}

/* News List */
.news-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.news-item {
    display: flex;
    gap: 1rem;
    background: var(--secondary-bg);
    padding: 1rem;
    border-radius: 8px;
}

.news-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

/* Floating Elements */
.float-download {
    position: fixed;
    right: 2rem;
    bottom: 2rem;
    width: 60px;
    height: 60px;
    background: var(--accent-gold);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 999;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero h1 { font-size: 2.5rem; }
    .news-list { grid-template-columns: 1fr; }
    .movie-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}

/* Footer */
footer {
    background: var(--secondary-bg);
    padding: 4rem 2rem;
    margin-top: 4rem;
    border-top: 1px solid var(--accent-gold);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

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

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid #333;
    color: var(--text-muted);
}
