/* ============================================
   糖心 - 原创样式表
   影视传媒公司 + 视频社区
   jmeyxag.cn
   ============================================ */

/* CSS Variables */
:root {
    --primary-coral: #FF6B6B;
    --primary-orange: #FF9A56;
    --accent-pink: #FF8FA3;
    --accent-purple: #B47AEA;
    --dark-bg: #1A1A2E;
    --dark-card: #16213E;
    --dark-surface: #0F3460;
    --text-white: #FFFFFF;
    --text-light: #E8E8E8;
    --text-muted: #A0A0B0;
    --gradient-main: linear-gradient(135deg, #FF6B6B 0%, #FF9A56 100%);
    --gradient-dark: linear-gradient(180deg, #1A1A2E 0%, #16213E 100%);
    --shadow-card: 0 8px 32px rgba(0,0,0,0.3);
    --shadow-hover: 0 12px 40px rgba(255,107,107,0.2);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    background: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.7;
    overflow-x: hidden;
}

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

a:hover {
    color: var(--primary-orange);
}

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

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

/* ============ Header ============ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 12px 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.site-logo img {
    height: 38px;
    width: auto;
}

.site-logo span {
    font-size: 1.3rem;
    font-weight: 700;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation */
.main-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.main-nav a {
    color: var(--text-light);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
    background: rgba(255,107,107,0.15);
    color: var(--primary-coral);
}

/* Mobile Menu */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-white);
    border-radius: 2px;
    transition: var(--transition);
}

/* Search Bar */
.search-bar {
    background: var(--dark-card);
    padding: 12px 0;
    margin-top: 62px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.search-wrapper {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.search-wrapper input {
    width: 100%;
    padding: 12px 50px 12px 20px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50px;
    background: var(--dark-bg);
    color: var(--text-white);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

.search-wrapper input:focus {
    border-color: var(--primary-coral);
    box-shadow: 0 0 0 3px rgba(255,107,107,0.1);
}

.search-wrapper input::placeholder {
    color: var(--text-muted);
}

.search-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: var(--gradient-main);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.search-btn:hover {
    transform: translateY(-50%) scale(1.05);
}

/* ============ Hero Section ============ */
.hero-section {
    position: relative;
    padding: 80px 0 60px;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/hero-banner.jpg') center/cover no-repeat;
    opacity: 0.15;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

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

.hero-content h2 {
    font-size: 1.3rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 30px;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 30px;
}

.hero-tags span {
    padding: 6px 16px;
    background: rgba(255,107,107,0.1);
    border: 1px solid rgba(255,107,107,0.3);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--primary-coral);
}

.hero-btn {
    display: inline-block;
    padding: 14px 40px;
    background: var(--gradient-main);
    color: white;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(255,107,107,0.3);
}

.hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255,107,107,0.4);
    color: white;
}

/* ============ Section Common ============ */
.section {
    padding: 60px 0;
}

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

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-white);
}

.section-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-white);
}

.section-header p {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ============ Video Cards ============ */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.video-card {
    background: var(--dark-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.05);
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(255,107,107,0.2);
}

.video-thumb {
    position: relative;
    padding-top: 56.25%;
    overflow: hidden;
}

.video-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.video-card:hover .video-thumb img {
    transform: scale(1.05);
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    background: rgba(255,107,107,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    z-index: 2;
}

.play-btn::after {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 0 10px 18px;
    border-color: transparent transparent transparent white;
    margin-left: 4px;
}

.video-card:hover .play-btn {
    opacity: 1;
}

.video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    z-index: 2;
}

.video-info {
    padding: 16px;
}

.video-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.video-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ============ Feature Grid ============ */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.feature-card {
    background: var(--dark-card);
    border-radius: var(--radius-md);
    padding: 28px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.05);
}

.feature-card:hover {
    border-color: rgba(255,107,107,0.3);
    transform: translateY(-3px);
}

.feature-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    background: var(--gradient-main);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.feature-card h4 {
    font-size: 1.05rem;
    color: var(--text-white);
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ============ Expert Section ============ */
.expert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.expert-card {
    background: var(--dark-card);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition);
}

.expert-card:hover {
    border-color: rgba(255,154,86,0.3);
}

.expert-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 14px;
    background: var(--gradient-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.expert-card h4 {
    font-size: 1.1rem;
    color: var(--text-white);
    margin-bottom: 4px;
}

.expert-card .role {
    font-size: 0.85rem;
    color: var(--primary-coral);
    margin-bottom: 10px;
}

.expert-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.expert-btns {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.btn-sm {
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid var(--primary-coral);
    color: var(--primary-coral);
    transition: var(--transition);
}

.btn-sm:hover {
    background: var(--primary-coral);
    color: white;
}

.btn-sm.filled {
    background: var(--gradient-main);
    border-color: transparent;
    color: white;
}

/* ============ FAQ Section ============ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--dark-card);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    border: 1px solid rgba(255,255,255,0.05);
    overflow: hidden;
}

.faq-question {
    padding: 18px 24px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--text-white);
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--primary-coral);
}

.faq-question::after {
    content: '+';
    font-size: 1.3rem;
    color: var(--primary-coral);
    transition: var(--transition);
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.8;
}

.faq-item.active .faq-answer {
    padding: 0 24px 18px;
    max-height: 300px;
}

/* ============ Reviews ============ */
.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.review-card {
    background: var(--dark-card);
    border-radius: var(--radius-md);
    padding: 24px;
    border: 1px solid rgba(255,255,255,0.05);
}

.review-stars {
    color: #FFD700;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.review-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 12px;
}

.review-author {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ============ Partners ============ */
.partner-wall {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

.partner-item {
    background: var(--dark-card);
    padding: 16px 28px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255,255,255,0.05);
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.partner-item:hover {
    border-color: rgba(255,107,107,0.3);
    color: var(--text-white);
}

/* ============ Contact Section ============ */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 24px;
}

.contact-card {
    background: var(--dark-card);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.05);
}

.contact-card h4 {
    font-size: 1rem;
    color: var(--text-white);
    margin-bottom: 10px;
}

.contact-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.contact-card img {
    width: 120px;
    height: 120px;
    margin: 10px auto;
    border-radius: var(--radius-sm);
}

/* ============ Footer ============ */
.site-footer {
    background: var(--dark-card);
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 40px 0 20px;
}

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

.footer-col h4 {
    font-size: 1rem;
    color: var(--text-white);
    margin-bottom: 14px;
    font-weight: 600;
}

.footer-col p,
.footer-col a {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 2;
    display: block;
}

.footer-col a:hover {
    color: var(--primary-coral);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.footer-logo img {
    height: 32px;
}

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

.footer-qrcodes {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 16px 0;
}

.footer-qrcodes img {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-sm);
}

/* ============ Breadcrumb ============ */
.breadcrumb {
    padding: 16px 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--text-muted);
}

.breadcrumb a:hover {
    color: var(--primary-coral);
}

.breadcrumb span {
    margin: 0 8px;
}

/* ============ Share Buttons ============ */
.share-bar {
    display: flex;
    gap: 10px;
    justify-content: center;
    padding: 20px 0;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dark-card);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: var(--transition);
    cursor: pointer;
}

.share-btn:hover {
    background: var(--primary-coral);
    color: white;
    border-color: var(--primary-coral);
}

/* ============ Responsive ============ */
@media (max-width: 768px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--dark-bg);
        flex-direction: column;
        padding: 20px;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    .main-nav.active {
        display: flex;
    }

    .mobile-toggle {
        display: flex;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content h2 {
        font-size: 1rem;
    }

    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }

    .feature-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .section {
        padding: 40px 0;
    }

    .container {
        padding: 0 15px;
    }
}

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

    .video-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }
}

/* ============ Animations ============ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* Lazy load placeholder */
.lazy-img {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lazy-img.loaded {
    opacity: 1;
}
