/* 
  神马电影网 - 全局样式表 
  风格：淡黑金 (Light Black Gold)
*/

:root {
    --bg-color: #0a0a0a;
    --card-bg: #1a1a1a;
    --gold-primary: #d4af37;
    --gold-secondary: #f1dfa3;
    --gold-dark: #b88e2a;
    --text-main: #e0e0e0;
    --text-muted: #888888;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

ul {
    list-style: none;
}

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

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

/* 渐变金文字 */
.gold-text {
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-secondary) 50%, var(--gold-dark) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: bold;
}

/* 金色按钮 */
.btn-gold {
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-secondary) 50%, var(--gold-dark) 100%);
    color: #000;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
}

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

.btn-outline {
    border: 1px solid rgba(212, 175, 55, 0.5);
    color: var(--gold-primary);
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: bold;
    background: transparent;
    transition: var(--transition);
}

.btn-outline:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--gold-primary);
}

/* 导航栏 */
header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -1px;
}

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

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

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

.search-bar input {
    background: #1a1a1a;
    border: 1px solid rgba(212, 175, 55, 0.2);
    padding: 8px 15px 8px 35px;
    border-radius: 20px;
    color: #fff;
    width: 200px;
    transition: var(--transition);
}

.search-bar input:focus {
    width: 280px;
    border-color: var(--gold-primary);
    outline: none;
}

.search-bar i {
    position: absolute;
    left: 12px;
    color: var(--gold-primary);
    opacity: 0.6;
}

/* 底部 */
footer {
    background: #050505;
    padding: 80px 0 40px;
    border-top: 1px solid rgba(212, 175, 55, 0.05);
    margin-top: 100px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h4 {
    color: var(--gold-primary);
    margin-bottom: 25px;
    font-size: 18px;
}

.footer-col p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.8;
}

.footer-col ul li {
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--text-muted);
}

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

.copyright {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 12px;
    color: #555;
}

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

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

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

.movie-card .poster {
    aspect-ratio: 2/3;
    overflow: hidden;
    position: relative;
}

.movie-card .poster img {
    width: 100%;
    height: 100%;
    object-policy: cover;
    transition: var(--transition);
}

.movie-card:hover .poster img {
    transform: scale(1.1);
}

.movie-card .rating {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--gold-primary);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    backdrop-filter: blur(4px);
}

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

.movie-card .info h3 {
    font-size: 15px;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.movie-card .info p {
    font-size: 12px;
    color: var(--text-muted);
}

.tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--gold-primary);
    color: #000;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: bold;
    border-radius: 3px;
    z-index: 1;
}

/* 浮动下载 */
.floating-btn {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 60px;
    height: 60px;
    background: var(--gold-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
    z-index: 999;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* 响应式 */
@media (max-width: 768px) {
    .nav-links, .search-bar {
        display: none;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .movie-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}
