/* 麻豆视频 - 原创花园动漫主题样式 */
/* 配色方案: 梦幻紫(#6B2FA0) + 樱花粉(#FF6B9D) + 月光白(#F8F4FF) + 深夜蓝(#1A0B2E) */

:root {
    --primary: #6B2FA0;
    --secondary: #FF6B9D;
    --accent: #A855F7;
    --dark: #1A0B2E;
    --light: #F8F4FF;
    --card-bg: #2D1B4E;
    --text-main: #E8D5F5;
    --text-muted: #9B7FC4;
    --gradient-main: linear-gradient(135deg, #6B2FA0 0%, #FF6B9D 100%);
    --gradient-card: linear-gradient(180deg, #2D1B4E 0%, #1A0B2E 100%);
    --shadow-glow: 0 4px 20px rgba(168, 85, 247, 0.3);
    --radius: 12px;
}

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

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', sans-serif;
    background-color: var(--dark);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
}

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

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

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

/* 头部导航 */
.site-header {
    background: rgba(26, 11, 46, 0.95);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(168, 85, 247, 0.2);
    padding: 12px 0;
}

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

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

.site-logo img { width: 40px; height: 40px; border-radius: 8px; }

.brand-name {
    font-size: 1.4rem;
    font-weight: 700;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-name span { font-weight: 400; }

.main-nav { display: flex; gap: 24px; align-items: center; }
.main-nav a {
    color: var(--text-main);
    font-size: 0.95rem;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.3s;
}
.main-nav a:hover, .main-nav a.active {
    background: rgba(168, 85, 247, 0.15);
    color: var(--accent);
}

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

/* 搜索框 */
.search-bar {
    background: rgba(45, 27, 78, 0.8);
    padding: 14px 0;
    border-bottom: 1px solid rgba(168, 85, 247, 0.1);
}

.search-wrapper {
    max-width: 640px;
    margin: 0 auto;
    display: flex;
    gap: 10px;
    padding: 0 20px;
}

.search-wrapper input {
    flex: 1;
    padding: 10px 18px;
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 24px;
    background: rgba(26, 11, 46, 0.8);
    color: var(--text-main);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.3s;
}

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

.search-wrapper button {
    padding: 10px 24px;
    background: var(--gradient-main);
    border: none;
    border-radius: 24px;
    color: #fff;
    font-size: 0.9rem;
    cursor: pointer;
    transition: opacity 0.3s;
}

.search-wrapper button:hover { opacity: 0.85; }

/* Hero区域 */
.hero-section {
    background: var(--gradient-main);
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    animation: heroFloat 15s infinite linear;
}

@keyframes heroFloat {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hero-section h1 {
    font-size: 2.6rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.hero-section p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 680px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-tags {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.hero-tags span {
    padding: 5px 14px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    font-size: 0.85rem;
    color: #fff;
}

/* 通用Section */
.section { padding: 50px 0; }
.section-dark { background: var(--dark); }
.section-alt { background: rgba(45, 27, 78, 0.3); }

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #fff;
}

.section-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-header .more-link {
    color: var(--accent);
    font-size: 0.9rem;
}

/* 视频卡片网格 */
.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.video-card {
    background: var(--gradient-card);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(168, 85, 247, 0.15);
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.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.05); }

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    background: rgba(107, 47, 160, 0.85);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.play-btn::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 18px solid #fff;
    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
    margin-left: 4px;
}

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

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

.video-info { padding: 14px 16px; }
.video-info h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 6px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

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

.video-tags {
    margin-top: 8px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.video-tags span {
    padding: 2px 8px;
    background: rgba(168, 85, 247, 0.15);
    border-radius: 10px;
    font-size: 0.72rem;
    color: var(--accent);
}

/* 分类模块 */
.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.category-card {
    background: var(--gradient-card);
    border-radius: var(--radius);
    padding: 24px 18px;
    text-align: center;
    border: 1px solid rgba(168, 85, 247, 0.15);
    transition: all 0.3s;
}

.category-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-glow);
}

.category-card .icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.category-card h4 {
    font-size: 0.95rem;
    color: #fff;
    margin-bottom: 4px;
}

.category-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* 专家展示 */
.expert-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.expert-card {
    background: var(--gradient-card);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    border: 1px solid rgba(168, 85, 247, 0.15);
}

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

.expert-card h4 { color: #fff; margin-bottom: 4px; }
.expert-card .role { color: var(--accent); font-size: 0.85rem; margin-bottom: 8px; }
.expert-card .cert { color: var(--text-muted); font-size: 0.78rem; margin-bottom: 12px; }

.expert-card .btn-group { display: flex; gap: 8px; justify-content: center; }
.expert-card .btn-group a {
    padding: 5px 12px;
    border-radius: 16px;
    font-size: 0.78rem;
    border: 1px solid var(--accent);
    color: var(--accent);
    transition: all 0.3s;
}
.expert-card .btn-group a:hover {
    background: var(--accent);
    color: #fff;
}

/* 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(168, 85, 247, 0.15);
    overflow: hidden;
}

.faq-question {
    padding: 16px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #fff;
}

.faq-question::after { content: '+'; font-size: 1.3rem; color: var(--accent); }
.faq-item.active .faq-question::after { content: '-'; }

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

.faq-item.active .faq-answer { max-height: 200px; padding: 0 20px 16px; }

/* 用户评论 */
.review-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.review-card {
    background: var(--gradient-card);
    border-radius: var(--radius);
    padding: 20px;
    border: 1px solid rgba(168, 85, 247, 0.15);
}

.review-header { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.review-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--gradient-main);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.9rem;
}

.review-name { font-weight: 600; color: #fff; font-size: 0.9rem; }
.review-stars { color: #FFD700; font-size: 0.85rem; }
.review-text { color: var(--text-muted); font-size: 0.88rem; line-height: 1.6; }

/* 合作品牌 */
.brand-wall {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.brand-wall .brand-item {
    padding: 16px 28px;
    background: var(--gradient-card);
    border-radius: var(--radius);
    border: 1px solid rgba(168, 85, 247, 0.15);
    font-size: 0.95rem;
    color: var(--text-muted);
    transition: all 0.3s;
}

.brand-wall .brand-item:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* 页脚 */
.site-footer {
    background: rgba(15, 5, 25, 0.95);
    padding: 50px 0 20px;
    border-top: 1px solid rgba(168, 85, 247, 0.2);
}

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

.footer-brand { }
.footer-brand img { width: 50px; height: 50px; margin-bottom: 10px; border-radius: 8px; }
.footer-brand .logo-text {
    font-size: 1.3rem;
    font-weight: 700;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}
.footer-brand .logo-text span { font-weight: 400; }
.footer-brand p { color: var(--text-muted); font-size: 0.85rem; line-height: 1.6; }

.footer-col h4 { color: #fff; font-size: 0.95rem; margin-bottom: 14px; }
.footer-col a { display: block; color: var(--text-muted); font-size: 0.85rem; margin-bottom: 8px; }
.footer-col a:hover { color: var(--accent); }

.footer-qr { display: flex; gap: 16px; margin-top: 16px; }
.footer-qr img { width: 100px; height: 100px; border-radius: 8px; }

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

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

/* 更新时间标记 */
.update-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(168, 85, 247, 0.15);
    border-radius: 16px;
    font-size: 0.78rem;
    color: var(--accent);
    margin-bottom: 16px;
}

/* 社交分享 */
.share-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.share-btns a {
    padding: 8px 16px;
    background: var(--gradient-card);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 20px;
    font-size: 0.82rem;
    color: var(--text-main);
    transition: all 0.3s;
}
.share-btns a:hover { border-color: var(--accent); color: var(--accent); }

/* 干扰标签隐藏 */
.8t27u-noise { display: none !important; visibility: hidden !important; height: 0 !important; width: 0 !important; overflow: hidden !important; position: absolute !important; left: -9999px !important; }

/* 响应式 */
@media (max-width: 1024px) {
    .video-grid { grid-template-columns: repeat(2, 1fr); }
    .category-grid { grid-template-columns: repeat(2, 1fr); }
    .expert-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}

@media (max-width: 768px) {
    .main-nav { display: none; }
    .main-nav.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(26, 11, 46, 0.98);
        padding: 16px;
        gap: 8px;
    }
    .mobile-toggle { display: block; }
    .video-grid { grid-template-columns: 1fr; }
    .category-grid { grid-template-columns: repeat(2, 1fr); }
    .expert-grid { grid-template-columns: 1fr; }
    .review-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-section h1 { font-size: 1.8rem; }
    .section-title { font-size: 1.4rem; }
}

@media (max-width: 480px) {
    .category-grid { grid-template-columns: 1fr; }
    .hero-section { padding: 40px 0; }
}

/* 懒加载占位 */
.lazy-placeholder {
    background: linear-gradient(90deg, var(--card-bg) 25%, rgba(168, 85, 247, 0.1) 50%, var(--card-bg) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* How-To指南 */
.howto-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.howto-step {
    background: var(--gradient-card);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    border: 1px solid rgba(168, 85, 247, 0.15);
    position: relative;
}

.howto-step .step-num {
    width: 36px;
    height: 36px;
    background: var(--gradient-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    margin: 0 auto 12px;
}

.howto-step h4 { color: #fff; margin-bottom: 6px; font-size: 0.9rem; }
.howto-step p { color: var(--text-muted); font-size: 0.82rem; }

/* AI模块 */
.ai-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.ai-card {
    background: var(--gradient-card);
    border-radius: var(--radius);
    padding: 28px;
    border: 1px solid rgba(168, 85, 247, 0.15);
    transition: all 0.3s;
}

.ai-card:hover { border-color: var(--accent); box-shadow: var(--shadow-glow); }
.ai-card .icon { font-size: 2.2rem; margin-bottom: 12px; }
.ai-card h4 { color: #fff; margin-bottom: 8px; }
.ai-card p { color: var(--text-muted); font-size: 0.85rem; }

@media (max-width: 768px) {
    .ai-features { grid-template-columns: 1fr; }
    .howto-steps { grid-template-columns: repeat(2, 1fr); }
}
