/* 
   青柠影院 - 纯CSS样式表
   风格：现代、暗黑、青柠绿点缀
*/

:root {
    --lime-primary: #32CD32;
    --lime-hover: #228B22;
    --bg-dark: #121212;
    --bg-card: #1a1a1a;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --glass: rgba(255, 255, 255, 0.05);
    --border: rgba(255, 255, 255, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* 布局容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

header.scrolled {
    background: rgba(18, 18, 18, 0.85);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: white;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -1px;
}

.logo-icon {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, var(--lime-primary), var(--lime-hover));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo span {
    color: var(--lime-primary);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 15px;
    font-weight: 500;
    transition: var(--transition);
}

nav ul li a:hover, nav ul li a.active {
    color: var(--lime-primary);
}

.nav-btns {
    display: flex;
    gap: 15px;
    align-items: center;
}

.btn-search {
    background: var(--glass);
    border: 1px solid var(--border);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-search:hover {
    background: var(--border);
}

/* 移动端菜单按钮 */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

/* 页面部分通用样式 */
section {
    padding: 100px 0;
    display: none; /* 默认隐藏，通过JS控制显示 */
}

section.active {
    display: block;
    animation: fadeIn 0.5s ease-out;
}

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

/* 首页 Hero */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 0;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-cover: cover;
    opacity: 0.4;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--bg-dark), transparent);
}

.hero-content {
    max-width: 700px;
}

.badge {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(50, 205, 50, 0.2);
    color: var(--lime-primary);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
    border: 1px solid rgba(50, 205, 50, 0.3);
}

.hero h1 {
    font-size: 64px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 25px;
    letter-spacing: -2px;
}

.hero h1 span {
    background: linear-gradient(to right, var(--lime-primary), #ADFF2F);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--lime-primary), var(--lime-hover));
    color: #000;
    padding: 15px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(50, 205, 50, 0.3);
}

.btn-secondary {
    background: var(--glass);
    border: 1px solid var(--border);
    color: white;
    padding: 15px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: var(--border);
}

/* 电影卡片网格 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 800;
}

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

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

.movie-card:hover {
    transform: translateY(-10px);
}

.movie-img {
    aspect-ratio: 2/3;
    position: relative;
}

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

.movie-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    opacity: 0;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
}

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

.movie-overlay p {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.btn-play-sm {
    background: var(--lime-primary);
    color: black;
    border: none;
    padding: 8px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
}

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

.movie-info h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

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

.rating {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--lime-primary);
    color: black;
    padding: 2px 8px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 800;
}

.movie-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    padding: 2px 8px;
    border-radius: 5px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

/* 产品页筛选 */
.filter-bar {
    display: flex;
    gap: 40px;
    margin-bottom: 50px;
}

.filter-group {
    flex: 1;
}

.filter-group h4 {
    margin-bottom: 15px;
    font-size: 14px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.filter-btn {
    background: var(--glass);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--lime-primary);
    color: black;
    border-color: var(--lime-primary);
}

.search-box {
    margin-bottom: 40px;
    position: relative;
}

.search-box input {
    width: 100%;
    background: var(--glass);
    border: 1px solid var(--border);
    padding: 15px 25px;
    border-radius: 30px;
    color: white;
    font-size: 16px;
    outline: none;
    transition: var(--transition);
}

.search-box input:focus {
    border-color: var(--lime-primary);
    background: rgba(255,255,255,0.08);
}

/* 关于我们 */
.about-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-img {
    position: relative;
}

.about-img img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

.stat-item h4 {
    font-size: 32px;
    color: var(--lime-primary);
    margin-bottom: 5px;
}

.stat-item p {
    color: var(--text-muted);
    font-size: 14px;
}

/* 联系我们 */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
}

.contact-form {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-muted);
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    padding: 12px 15px;
    border-radius: 10px;
    color: white;
    outline: none;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--lime-primary);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-card {
    background: var(--glass);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid var(--border);
}

.info-card h4 {
    margin-bottom: 10px;
    color: var(--lime-primary);
}

.map-placeholder {
    width: 100%;
    height: 250px;
    background: #222;
    border-radius: 15px;
    margin-top: 30px;
    overflow: hidden;
}

.map-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
}

/* 页脚 */
footer {
    background: #0a0a0a;
    padding: 80px 0 40px;
    border-top: 1px solid var(--border);
}

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

.footer-col h4 {
    margin-bottom: 25px;
    font-size: 18px;
}

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

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

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

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

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 13px;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .about-hero, .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    nav {
        display: none; /* 简易移动端处理 */
    }
    .menu-toggle {
        display: block;
    }
    .hero h1 {
        font-size: 40px;
    }
    .filter-bar {
        flex-direction: column;
        gap: 20px;
    }
}
