/* 被窝电影网 - 全局核心样式 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

:root {
    --bg-dark: #121212;
    --bg-card: #1e1e1e;
    --gold-main: #d4af37;
    --gold-light: #f1e5ac;
    --gold-dark: #aa8a2e;
    --text-main: #ffffff;
    --text-muted: #aaaaaa;
    --gold-gradient: linear-gradient(135deg, #d4af37 0%, #f1e5ac 100%);
    --shadow: 0 4px 20px rgba(0,0,0,0.5);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

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

/* 滚动条美化 */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #1a1a1a; }
::-webkit-scrollbar-thumb { background: var(--gold-main); border-radius: 4px; }

/* 响应式容器 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
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-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--gold-main);
    text-decoration: none;
    letter-spacing: 1px;
}

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

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

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

/* 英雄区 */
.hero {
    height: 80vh;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('https://tse-mm.bing.com/th?q=电影院大厅') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 70px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--gold-light);
    margin-bottom: 30px;
    max-width: 600px;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
}

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

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

/* 全屏加载浮漂下载 */
.floating-app {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 999;
}

.float-btn {
    width: 60px;
    height: 60px;
    background: var(--gold-gradient);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow);
    color: #000;
    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); }
}

/* 列表展示 */
.section-title {
    text-align: center;
    margin: 60px 0 40px;
    position: relative;
}

.section-title h2 {
    font-size: 2rem;
    color: var(--gold-main);
    display: inline-block;
    padding-bottom: 10px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gold-main);
}

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

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

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

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

.movie-info {
    padding: 12px;
}

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

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

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

/* 动态列表 */
.news-list {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 20px;
}

.news-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    text-decoration: none;
    color: var(--text-main);
    transition: var(--transition);
}

.news-item:hover {
    padding-left: 10px;
    color: var(--gold-main);
}

/* 页脚 */
footer {
    background: #0a0a0a;
    padding: 60px 0 30px;
    margin-top: 80px;
    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(--gold-main);
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
}

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

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

.footer-col a:hover {
    color: var(--gold-main);
}

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