/* === 77影院在线观看 - style.css === */
:root {
    --primary-color: #ff6b35;
    --secondary-color: #f7c948;
    --bg-dark: #1a1a2e;
    --bg-light: #f4f4f9;
    --text-dark: #2d2d2d;
    --text-light: #eaeaea;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --card-radius: 16px;
    --transition-speed: 0.3s;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    transition: background var(--transition-speed), color var(--transition-speed);
}
body.light-mode {
    background: var(--bg-light);
    color: var(--text-dark);
}
a { color: inherit; text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-color); }
img { max-width: 100%; height: auto; display: block; border-radius: 8px; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* 头部导航 */
header {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 12px 0;
}
nav { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.logo { font-size: 1.8rem; font-weight: 800; background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.nav-links { display: flex; gap: 20px; list-style: none; }
.nav-links a { padding: 8px 12px; border-radius: 8px; font-weight: 500; transition: background 0.2s; }
.nav-links a:hover { background: rgba(255, 107, 53, 0.2); }
.menu-toggle { display: none; font-size: 1.8rem; cursor: pointer; background: none; border: none; color: inherit; }

/* 英雄区渐变Banner */
.hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    position: relative;
    overflow: hidden;
    padding: 60px 20px;
}
body.light-mode .hero { background: linear-gradient(135deg, #f5f7fa, #c3cfe2); }
.hero-content { max-width: 800px; z-index: 2; }
.hero h1 { font-size: 3.2rem; margin-bottom: 20px; font-weight: 800; line-height: 1.2; }
.hero p { font-size: 1.2rem; opacity: 0.9; margin-bottom: 30px; }
.hero .btn {
    display: inline-block;
    padding: 14px 40px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    cursor: pointer;
}
.hero .btn:hover { transform: translateY(-4px); box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4); }

/* 通用区块 */
.section { padding: 60px 0; }
.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin-top: 8px;
    border-radius: 2px;
}

/* 卡片网格 - 圆角卡片 + hover动画 */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
}
.card {
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    border-radius: var(--card-radius);
    padding: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}
.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.3);
}
.card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 12px;
}
.card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.card p { font-size: 0.9rem; opacity: 0.8; }

/* FAQ毛玻璃 */
.faq-item {
    margin-bottom: 20px;
    padding: 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(4px);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}
.faq-item h3 { font-size: 1.2rem; margin-bottom: 8px; color: var(--primary-color); }

/* 底部 */
footer {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--glass-border);
    padding: 40px 0;
    text-align: center;
}
footer .footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}
footer .footer-links a { padding: 6px 12px; border-radius: 6px; font-weight: 500; }
footer .footer-links a:hover { background: rgba(255, 107, 53, 0.15); }

/* 面包屑 */
.breadcrumb { padding: 12px 0; font-size: 0.9rem; opacity: 0.7; }
.breadcrumb a { color: var(--primary-color); }

/* 返回顶部 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary-color);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: transform 0.2s;
    z-index: 99;
}
.back-to-top:hover { transform: scale(1.1); }

/* 主题切换按钮 */
.theme-toggle {
    background: none;
    border: 1px solid var(--glass-border);
    color: inherit;
    padding: 8px 16px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.9rem;
    backdrop-filter: blur(4px);
}

/* 搜索框 */
.search-box {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    justify-content: center;
}
.search-box input {
    padding: 12px 20px;
    border-radius: 30px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: blur(4px);
    color: inherit;
    width: 300px;
    max-width: 100%;
    outline: none;
}
.search-box button {
    padding: 12px 24px;
    border-radius: 30px;
    border: none;
    background: var(--primary-color);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

/* 标签云 */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}
.tag {
    padding: 6px 16px;
    border-radius: 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    font-size: 0.85rem;
    transition: background 0.2s;
}
.tag:hover { background: var(--primary-color); color: #fff; }

/* 相关链接 */
.related-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}
.related-links a {
    padding: 8px 16px;
    background: var(--glass-bg);
    border-radius: 8px;
    border: 1px solid var(--glass-border);
}

/* 响应式布局 */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        margin-top: 10px;
        background: var(--glass-bg);
        backdrop-filter: blur(12px);
        border-radius: 12px;
        padding: 10px;
    }
    .nav-links.active { display: flex; }
    .menu-toggle { display: block; }
}
@media (max-width: 600px) {
    .hero h1 { font-size: 2rem; }
    .section-title { font-size: 1.5rem; }
    .card-grid { grid-template-columns: 1fr; }
    .search-box { flex-direction: column; align-items: center; }
    .search-box input { width: 100%; }
}

/* 滚动动画（渐进增强） */
@media (prefers-reduced-motion: no-preference) {
    .card {
        opacity: 0;
        transform: translateY(20px);
        animation: fadeInUp 0.6s ease forwards;
    }
    .card:nth-child(1) { animation-delay: 0.1s; }
    .card:nth-child(2) { animation-delay: 0.2s; }
    .card:nth-child(3) { animation-delay: 0.3s; }
    .card:nth-child(4) { animation-delay: 0.4s; }
    .card:nth-child(5) { animation-delay: 0.5s; }
    .card:nth-child(6) { animation-delay: 0.6s; }
}
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 暗色模式额外优化 */
body.light-mode .card {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
}
body.light-mode .hero .btn {
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}
body.light-mode .tag {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
}
body.light-mode .faq-item {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
}