/* 萝莉岛影视传媒视频社区 - 原创CSS样式表 */
/* nxlifea.cn - 全站响应式设计 */

/* === 基础重置与变量 === */
:root {
    --primary: #E8446D;
    --primary-light: #FF6B9D;
    --accent: #7C3AED;
    --accent-light: #A78BFA;
    --dark-bg: #0F0A1A;
    --card-bg: #1A1028;
    --card-hover: #241538;
    --text-white: #F8F0FF;
    --text-gray: #B8A0CC;
    --text-muted: #8B7A9E;
    --gradient-main: linear-gradient(135deg, #E8446D, #7C3AED);
    --gradient-card: linear-gradient(145deg, #1A1028, #241538);
    --shadow-glow: 0 4px 30px rgba(232,68,109,0.15);
    --radius: 12px;
    --radius-lg: 20px;
}

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

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

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
    background: var(--dark-bg);
    color: var(--text-white);
    line-height: 1.7;
    overflow-x: hidden;
}

a { color: var(--primary-light); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--primary); }

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

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

/* === 头部导航 === */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(15,10,26,0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(232,68,109,0.15);
    transition: all 0.3s;
}

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

.site-logo { display: flex; align-items: center; gap: 8px; }
.site-logo img { height: 40px; width: auto; }
.site-logo span { font-size: 1.2rem; font-weight: 700; background: var(--gradient-main); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.main-nav { display: flex; gap: 6px; }
.main-nav a {
    padding: 8px 16px; border-radius: 8px; font-size: 0.92rem; font-weight: 500;
    color: var(--text-gray); transition: all 0.3s; position: relative;
}
.main-nav a:hover, .main-nav a.active {
    color: var(--text-white); background: rgba(232,68,109,0.12);
}
.main-nav a.active::after {
    content: ''; position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%);
    width: 20px; height: 3px; background: var(--gradient-main); border-radius: 2px;
}

.nav-toggle { display: none; background: none; border: none; color: var(--text-white); font-size: 1.5rem; cursor: pointer; }

/* === 搜索栏 === */
.search-bar {
    background: var(--card-bg); border-bottom: 1px solid rgba(124,58,237,0.1);
    padding: 12px 0; margin-top: 68px;
}
.search-bar .container { display: flex; align-items: center; gap: 12px; }
.search-input-wrap {
    flex: 1; display: flex; background: rgba(255,255,255,0.06); border-radius: 25px;
    border: 1px solid rgba(232,68,109,0.2); overflow: hidden; transition: border-color 0.3s;
}
.search-input-wrap:focus-within { border-color: var(--primary); }
.search-input-wrap input {
    flex: 1; background: none; border: none; padding: 10px 20px; color: var(--text-white);
    font-size: 0.95rem; outline: none;
}
.search-input-wrap input::placeholder { color: var(--text-muted); }
.search-input-wrap button {
    background: var(--gradient-main); border: none; padding: 10px 24px; color: white;
    font-size: 0.9rem; cursor: pointer; font-weight: 600; transition: opacity 0.3s;
}
.search-input-wrap button:hover { opacity: 0.85; }
.search-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.search-tags a {
    font-size: 0.8rem; color: var(--text-muted); padding: 4px 10px;
    background: rgba(255,255,255,0.04); border-radius: 12px; transition: all 0.3s;
}
.search-tags a:hover { color: var(--primary-light); background: rgba(232,68,109,0.1); }

/* === 面包屑 === */
.breadcrumb { padding: 16px 0; font-size: 0.85rem; color: var(--text-muted); }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary-light); }
.breadcrumb span { margin: 0 6px; }

/* === Hero Banner === */
.hero-section {
    position: relative; overflow: hidden; padding: 60px 0;
    background: linear-gradient(180deg, var(--dark-bg) 0%, var(--card-bg) 100%);
}
.hero-bg {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover; background-position: center; opacity: 0.3;
}
.hero-content { position: relative; z-index: 2; text-align: center; max-width: 800px; margin: 0 auto; }
.hero-content h1 {
    font-size: 2.8rem; font-weight: 800; margin-bottom: 16px; line-height: 1.3;
    background: var(--gradient-main); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-content h2 { font-size: 1.2rem; color: var(--text-gray); font-weight: 400; margin-bottom: 28px; }
.hero-stats { display: flex; justify-content: center; gap: 40px; margin-top: 30px; }
.hero-stat { text-align: center; }
.hero-stat .num { font-size: 2rem; font-weight: 800; background: var(--gradient-main); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-stat .label { font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; }
.hero-btns { display: flex; gap: 16px; justify-content: center; margin-top: 28px; }
.btn-primary {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--gradient-main); color: white; padding: 12px 32px;
    border-radius: 25px; font-weight: 600; font-size: 1rem; border: none; cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(232,68,109,0.35); color: white; }
.btn-outline {
    display: inline-flex; align-items: center; gap: 8px;
    background: transparent; color: var(--primary-light); padding: 12px 32px;
    border-radius: 25px; font-weight: 600; font-size: 1rem; cursor: pointer;
    border: 2px solid var(--primary); transition: all 0.3s;
}
.btn-outline:hover { background: rgba(232,68,109,0.1); color: white; }

/* === 通用Section === */
.section { padding: 60px 0; }
.section-alt { background: var(--card-bg); }
.section-title {
    font-size: 1.8rem; font-weight: 700; text-align: center; margin-bottom: 8px;
    background: var(--gradient-main); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.section-subtitle { text-align: center; color: var(--text-muted); font-size: 0.95rem; margin-bottom: 40px; font-weight: 400; }

/* === 视频卡片网格 === */
.video-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.video-card {
    background: var(--gradient-card); border-radius: var(--radius); overflow: hidden;
    border: 1px solid rgba(232,68,109,0.08); transition: all 0.35s; cursor: pointer;
}
.video-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-glow); border-color: rgba(232,68,109,0.25); }
.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: transform 0.4s;
}
.video-card:hover .video-thumb img { transform: scale(1.08); }
.video-thumb .play-icon {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
    width: 48px; height: 48px; background: rgba(232,68,109,0.85); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.3s;
}
.video-card:hover .play-icon { opacity: 1; }
.play-icon::after { content: ''; border-left: 14px solid white; border-top: 9px solid transparent; border-bottom: 9px solid transparent; margin-left: 3px; }
.video-duration {
    position: absolute; bottom: 8px; right: 8px; background: rgba(0,0,0,0.75);
    color: white; font-size: 0.75rem; padding: 2px 8px; border-radius: 4px;
}
.video-info { padding: 14px; }
.video-info h3 { font-size: 0.92rem; font-weight: 600; line-height: 1.4; margin-bottom: 8px; color: var(--text-white); 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.78rem; color: var(--text-muted); }
.video-meta .views::before { content: ''; display: inline-block; width: 12px; height: 12px; margin-right: 3px; background: var(--text-muted); mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z'/%3E%3C/svg%3E"); mask-size: contain; vertical-align: -2px; }
.video-tag { display: inline-block; font-size: 0.72rem; padding: 2px 8px; background: rgba(232,68,109,0.12); color: var(--primary-light); border-radius: 10px; }

/* === 分类卡片 === */
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.category-card {
    background: var(--gradient-card); border-radius: var(--radius); padding: 30px 24px;
    text-align: center; border: 1px solid rgba(124,58,237,0.1); transition: all 0.35s;
}
.category-card:hover { transform: translateY(-4px); border-color: var(--accent-light); box-shadow: 0 8px 30px rgba(124,58,237,0.15); }
.category-icon { font-size: 2.5rem; margin-bottom: 14px; }
.category-card h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; color: var(--text-white); }
.category-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }

/* === 专家团队 === */
.expert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.expert-card {
    background: var(--gradient-card); border-radius: var(--radius-lg); padding: 30px;
    text-align: center; border: 1px solid rgba(232,68,109,0.08); transition: all 0.35s;
}
.expert-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-glow); }
.expert-avatar {
    width: 100px; height: 100px; border-radius: 50%; margin: 0 auto 16px;
    overflow: hidden; border: 3px solid var(--primary);
}
.expert-avatar img { width: 100%; height: 100%; object-fit: cover; }
.expert-card h4 { font-size: 1.1rem; font-weight: 600; margin-bottom: 4px; }
.expert-card .role { color: var(--primary-light); font-size: 0.85rem; margin-bottom: 10px; }
.expert-card .desc { font-size: 0.83rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 14px; }
.expert-links { display: flex; gap: 10px; justify-content: center; }
.expert-links a {
    padding: 6px 16px; border-radius: 20px; font-size: 0.8rem; font-weight: 500;
    border: 1px solid var(--primary); color: var(--primary-light); transition: all 0.3s;
}
.expert-links a:hover { background: var(--primary); color: white; }

/* === FAQ === */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
    background: var(--gradient-card); border-radius: var(--radius); margin-bottom: 12px;
    border: 1px solid rgba(232,68,109,0.08); overflow: hidden;
}
.faq-question {
    padding: 18px 24px; cursor: pointer; display: flex; justify-content: space-between;
    align-items: center; font-weight: 600; font-size: 0.95rem; transition: background 0.3s;
}
.faq-question:hover { background: rgba(232,68,109,0.05); }
.faq-question .arrow { transition: transform 0.3s; color: var(--primary-light); }
.faq-item.active .faq-question .arrow { transform: rotate(180deg); }
.faq-answer { padding: 0 24px; max-height: 0; overflow: hidden; transition: all 0.35s; }
.faq-item.active .faq-answer { max-height: 300px; padding: 0 24px 18px; }
.faq-answer p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.7; }

/* === 用户评价 === */
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review-card {
    background: var(--gradient-card); border-radius: var(--radius); padding: 24px;
    border: 1px solid rgba(124,58,237,0.08); transition: all 0.3s;
}
.review-card:hover { border-color: rgba(232,68,109,0.2); }
.review-stars { color: #FFB800; font-size: 0.9rem; margin-bottom: 10px; }
.review-text { font-size: 0.88rem; color: var(--text-gray); line-height: 1.7; margin-bottom: 14px; font-style: italic; }
.review-author { display: flex; align-items: center; gap: 10px; }
.review-author .avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--gradient-main); display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 700; color: white; }
.review-author .name { font-size: 0.85rem; font-weight: 600; }
.review-author .date { font-size: 0.75rem; color: var(--text-muted); }

/* === 合作品牌 === */
.brand-wall { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; align-items: center; }
.brand-item {
    padding: 16px 28px; background: rgba(255,255,255,0.04); border-radius: var(--radius);
    font-size: 1rem; font-weight: 600; color: var(--text-muted); transition: all 0.3s;
    border: 1px solid rgba(255,255,255,0.05);
}
.brand-item:hover { color: var(--text-white); border-color: var(--primary); background: rgba(232,68,109,0.08); }

/* === How-To指南 === */
.howto-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.howto-step {
    background: var(--gradient-card); border-radius: var(--radius); padding: 28px 20px;
    text-align: center; position: relative; border: 1px solid rgba(124,58,237,0.1);
}
.howto-step::before {
    counter-increment: step; content: counter(step);
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 50%; background: var(--gradient-main);
    color: white; font-weight: 700; font-size: 1.1rem; margin: 0 auto 14px;
}
.howto-step h4 { font-size: 1rem; margin-bottom: 8px; }
.howto-step p { font-size: 0.83rem; color: var(--text-muted); }

/* === 联系我们 === */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-info h4 { font-size: 1.2rem; margin-bottom: 16px; color: var(--text-white); }
.contact-info p { font-size: 0.9rem; color: var(--text-gray); margin-bottom: 10px; line-height: 1.6; }
.contact-info strong { color: var(--text-white); }
.contact-qrcodes { display: flex; gap: 24px; justify-content: center; }
.qr-item { text-align: center; }
.qr-item img { width: 160px; height: 160px; border-radius: var(--radius); border: 2px solid rgba(232,68,109,0.2); }
.qr-item p { font-size: 0.85rem; color: var(--text-muted); margin-top: 8px; }

/* === 社交分享 === */
.share-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.share-btn {
    padding: 10px 24px; border-radius: 25px; font-size: 0.88rem; font-weight: 500;
    border: 1px solid rgba(255,255,255,0.1); color: var(--text-gray);
    background: rgba(255,255,255,0.04); cursor: pointer; transition: all 0.3s;
}
.share-btn:hover { border-color: var(--primary); color: var(--primary-light); background: rgba(232,68,109,0.08); }

/* === 页脚 === */
.site-footer {
    background: linear-gradient(180deg, var(--card-bg) 0%, #0A0612 100%);
    border-top: 1px solid rgba(232,68,109,0.1); padding: 50px 0 0;
}
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 30px; }
.footer-brand img { height: 38px; margin-bottom: 12px; }
.footer-brand p { font-size: 0.83rem; color: var(--text-muted); line-height: 1.7; }
.footer-links h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 14px; color: var(--text-white); }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { font-size: 0.85rem; color: var(--text-muted); transition: color 0.3s; }
.footer-links a:hover { color: var(--primary-light); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05); padding: 20px 0;
    text-align: center; font-size: 0.8rem; color: var(--text-muted);
}

/* === 视频播放页 === */
.player-section { padding: 20px 0 40px; }
.video-player-wrap {
    position: relative; padding-top: 56.25%; background: #000; border-radius: var(--radius);
    overflow: hidden; margin-bottom: 24px;
}
.video-player-wrap video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.video-detail h1 { font-size: 1.5rem; font-weight: 700; margin-bottom: 12px; }
.video-detail .meta { display: flex; gap: 20px; font-size: 0.88rem; color: var(--text-muted); margin-bottom: 16px; }
.video-detail .description { font-size: 0.9rem; color: var(--text-gray); line-height: 1.8; padding: 20px; background: var(--card-bg); border-radius: var(--radius); }

/* === 内页列表 === */
.page-hero { padding: 40px 0; text-align: center; background: linear-gradient(180deg, var(--dark-bg), var(--card-bg)); }
.page-hero h1 { font-size: 2.2rem; font-weight: 700; background: var(--gradient-main); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 10px; }
.page-hero p { color: var(--text-muted); font-size: 1rem; }

/* === 热门排行 === */
.rank-list { max-width: 800px; margin: 0 auto; }
.rank-item {
    display: flex; align-items: center; gap: 16px; padding: 14px 20px;
    background: var(--gradient-card); border-radius: var(--radius); margin-bottom: 10px;
    border: 1px solid rgba(232,68,109,0.06); transition: all 0.3s;
}
.rank-item:hover { border-color: rgba(232,68,109,0.2); }
.rank-num {
    width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center;
    justify-content: center; font-weight: 700; font-size: 0.9rem; flex-shrink: 0;
}
.rank-num.top1 { background: linear-gradient(135deg, #FFD700, #FFA500); color: #1A1028; }
.rank-num.top2 { background: linear-gradient(135deg, #C0C0C0, #A0A0A0); color: #1A1028; }
.rank-num.top3 { background: linear-gradient(135deg, #CD7F32, #B8860B); color: #1A1028; }
.rank-num.normal { background: rgba(255,255,255,0.06); color: var(--text-muted); }
.rank-item .title { flex: 1; font-size: 0.92rem; font-weight: 500; }
.rank-item .count { font-size: 0.82rem; color: var(--primary-light); }

/* === AI赋能模块 === */
.ai-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ai-card {
    background: var(--gradient-card); border-radius: var(--radius-lg); padding: 30px;
    border: 1px solid rgba(124,58,237,0.12); text-align: center; transition: all 0.35s;
    position: relative; overflow: hidden;
}
.ai-card::before {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(124,58,237,0.05) 0%, transparent 70%);
    opacity: 0; transition: opacity 0.5s;
}
.ai-card:hover::before { opacity: 1; }
.ai-card:hover { transform: translateY(-4px); border-color: var(--accent-light); }
.ai-icon { font-size: 2.5rem; margin-bottom: 14px; }
.ai-card h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; }
.ai-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; position: relative; z-index: 1; }

/* === 社区功能 === */
.community-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.community-card {
    background: var(--gradient-card); border-radius: var(--radius); padding: 24px;
    display: flex; gap: 16px; align-items: flex-start;
    border: 1px solid rgba(232,68,109,0.06); transition: all 0.3s;
}
.community-card:hover { border-color: rgba(232,68,109,0.2); transform: translateX(4px); }
.community-icon { font-size: 2rem; flex-shrink: 0; }
.community-card h4 { font-size: 1rem; font-weight: 600; margin-bottom: 6px; }
.community-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }

/* === 响应式 === */
@media (max-width: 1024px) {
    .video-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .main-nav {
        display: none; position: absolute; top: 68px; left: 0; right: 0;
        background: rgba(15,10,26,0.98); flex-direction: column; padding: 16px;
        border-bottom: 1px solid rgba(232,68,109,0.15);
    }
    .main-nav.active { display: flex; }
    .main-nav a { padding: 12px 16px; }

    .hero-content h1 { font-size: 1.8rem; }
    .hero-stats { gap: 20px; }
    .hero-stat .num { font-size: 1.4rem; }

    .video-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .category-grid { grid-template-columns: repeat(2, 1fr); }
    .expert-grid { grid-template-columns: 1fr; }
    .review-grid { grid-template-columns: 1fr; }
    .ai-features { grid-template-columns: 1fr; }
    .community-grid { grid-template-columns: 1fr; }
    .howto-steps { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr; }

    .search-bar .container { flex-direction: column; }
    .search-tags { justify-content: center; }
}

@media (max-width: 480px) {
    .video-grid { grid-template-columns: 1fr; }
    .category-grid { grid-template-columns: 1fr; }
    .howto-steps { grid-template-columns: 1fr; }
    .hero-btns { flex-direction: column; align-items: center; }
}

/* === 动画 === */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-in { animation: fadeInUp 0.6s ease forwards; }
