:root {
    --mahua-orange: #FF8C00;
    --mahua-orange-hover: #e67e00;
    --mahua-dark: #0a0a0a;
    --mahua-darker: #050505;
    --mahua-card: #1a1a1a;
    --mahua-text: #ffffff;
    --mahua-muted: #a0a0a0;
    --mahua-border: rgba(255, 255, 255, 0.1);
    --mahua-gradient: linear-gradient(135deg, #FF8C00 0%, #FF4500 100%);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--mahua-dark);
    color: var(--mahua-text);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

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

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--mahua-darker);
}
::-webkit-scrollbar-thumb {
    background: var(--mahua-orange);
    border-radius: 4px;
}

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

header.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.logo-icon {
    background: var(--mahua-gradient);
    color: white;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 24px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(255, 140, 0, 0.3);
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

nav ul {
    display: flex;
    gap: 30px;
}

nav ul li a {
    font-size: 16px;
    font-weight: 500;
    color: var(--mahua-muted);
}

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

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

.btn-mahua {
    background: var(--mahua-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 140, 0, 0.3);
}

.btn-mahua:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 140, 0, 0.5);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--mahua-orange);
    color: var(--mahua-orange);
}

.btn-outline:hover {
    background: var(--mahua-orange);
    color: white;
}

/* 页面切换逻辑 */
section {
    display: none;
    animation: fadeIn 0.8s ease;
}

section.active {
    display: block;
}

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

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

.hero-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(10, 10, 10, 0.9) 0%, rgba(10, 10, 10, 0.4) 100%);
    z-index: -1;
}

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

.hero h1 {
    font-size: 72px;
    line-height: 1.1;
    margin-bottom: 25px;
    font-weight: 700;
}

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

.text-orange {
    color: var(--mahua-orange);
}

.btn-group {
    display: flex;
    gap: 20px;
}

/* 通用部分 */
.section-padding {
    padding: 100px 0;
}

.bg-darker {
    background-color: var(--mahua-darker);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 36px;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--mahua-orange);
}

.section-header p {
    color: var(--mahua-muted);
}

/* 特性卡片 */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background: var(--mahua-card);
    padding: 50px 40px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid var(--mahua-border);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--mahua-orange);
}

.feature-icon {
    font-size: 40px;
    color: var(--mahua-orange);
    margin-bottom: 20px;
    font-weight: 700;
}

/* 电影网格 */
.movie-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

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

.movie-card:hover {
    transform: scale(1.03);
}

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

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

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

.movie-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--mahua-orange);
    color: white;
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
}

.movie-rating {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: #ffcc00;
    padding: 2px 8px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 700;
}

.movie-info {
    padding: 15px;
}

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

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

/* 主打影片 */
.featured-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.featured-info h2 {
    font-size: 48px;
    margin: 20px 0;
}

.badge {
    background: rgba(255, 140, 0, 0.2);
    color: var(--mahua-orange);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
}

.featured-meta {
    display: flex;
    gap: 20px;
    margin: 30px 0;
    color: var(--mahua-muted);
}

.featured-poster img {
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

/* 新闻列表 */
.news-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-item {
    display: flex;
    gap: 20px;
    background: var(--mahua-card);
    padding: 20px;
    border-radius: 15px;
    transition: var(--transition);
}

.news-item:hover {
    background: #252525;
}

.news-date {
    background: var(--mahua-orange);
    color: white;
    min-width: 60px;
    height: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-weight: 700;
}

.news-date small {
    font-size: 10px;
    opacity: 0.8;
}

/* 页面头部 */
.page-header {
    background: linear-gradient(to bottom, var(--mahua-darker), var(--mahua-dark));
    padding: 150px 0 60px;
    text-align: center;
}

.page-header h1 {
    font-size: 48px;
    margin-bottom: 10px;
}

.page-header p {
    color: var(--mahua-muted);
}

/* 筛选部分 */
.filter-section {
    background: var(--mahua-card);
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 40px;
}

.search-bar {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.search-bar input {
    flex: 1;
    background: var(--mahua-darker);
    border: 1px solid var(--mahua-border);
    padding: 12px 20px;
    border-radius: 10px;
    color: white;
    outline: none;
}

.search-bar input:focus {
    border-color: var(--mahua-orange);
}

.filter-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
}

.filter-label {
    color: var(--mahua-muted);
    font-weight: 600;
    min-width: 50px;
}

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

.filter-tag {
    padding: 5px 15px;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-tag:hover {
    color: var(--mahua-orange);
}

.filter-tag.active {
    background: var(--mahua-orange);
    color: white;
}

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

.about-img img {
    border-radius: 20px;
}

.culture-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.culture-card {
    background: var(--mahua-card);
    padding: 40px;
    border-radius: 20px;
    border-bottom: 4px solid var(--mahua-orange);
}

.culture-card h3 {
    margin-bottom: 15px;
    color: var(--mahua-orange);
}

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

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

.contact-form h2 {
    margin-bottom: 30px;
}

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

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

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

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

.info-list {
    margin: 30px 0;
}

.info-item {
    margin-bottom: 20px;
}

.info-item strong {
    color: var(--mahua-orange);
    display: block;
}

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

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

.footer-brand p {
    margin-top: 20px;
    color: var(--mahua-muted);
    max-width: 400px;
}

.footer-links h3, .footer-contact h3 {
    margin-bottom: 25px;
    font-size: 18px;
}

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

.footer-links ul li a {
    color: var(--mahua-muted);
}

.footer-links ul li a:hover {
    color: var(--mahua-orange);
}

.footer-contact p {
    color: var(--mahua-muted);
    margin-bottom: 10px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: var(--mahua-card);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--mahua-orange);
    color: white;
}

.footer-bottom {
    text-align: center;
    color: var(--mahua-muted);
    font-size: 14px;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* 回到顶部 */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--mahua-gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.scroll-top.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    transform: scale(1.1) translateY(-5px);
}

/* 在线客服 */
.floating-chat {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: white;
    color: var(--mahua-orange);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    transition: var(--transition);
}

.floating-chat span {
    font-size: 24px;
    line-height: 1;
}

.floating-chat small {
    font-size: 10px;
    font-weight: 700;
    margin-top: 2px;
}

.floating-chat:hover {
    transform: scale(1.1) translateY(-5px);
    background: var(--mahua-orange);
    color: white;
}

/* 响应式 */
@media (max-width: 1024px) {
    .hero h1 { font-size: 56px; }
    .about-grid, .contact-grid, .news-list { grid-template-columns: 1fr; }
    .features { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .menu-toggle { display: flex; }
    .hide-mobile { display: none; }
    
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--mahua-dark);
        padding: 100px 40px;
        transition: var(--transition);
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    }

    nav.active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        gap: 30px;
    }

    nav ul li a {
        font-size: 24px;
    }

    .hero h1 { font-size: 42px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* 动画类 */
.fade-in {
    opacity: 0;
    animation: fadeInAnim 1s forwards;
}

.delay-1 { animation-delay: 0.3s; }
.delay-2 { animation-delay: 0.6s; }

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