/* ========================================
   麻豆视频 - 原创样式表 v2.0
   品牌色系：糖心粉红 #E8456B / 浅粉 #FF7E9D / 深蓝黑 #1A1A2E
   ======================================== */

/* === Reset & Base === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;
    color: #2D2D3A;
    background: #FFF5F7;
    line-height: 1.7;
    overflow-x: hidden;
}
a { color: #E8456B; text-decoration: none; transition: color .3s; }
a:hover { color: #FF7E9D; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* === Header / Navigation === */
.site-header {
    background: #1A1A2E;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(0,0,0,.15);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 64px;
}
.site-logo { display: flex; align-items: center; gap: 8px; }
.site-logo .logo-img { height: 36px; width: auto; display: block; }
.site-logo .logo-icon { height: 32px; width: 32px; display: none; }
.site-logo .logo-text { color: #fff; font-size: 1.2rem; font-weight: 700; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
    color: #ddd;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: .9rem;
    transition: all .3s;
    white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active {
    color: #fff;
    background: linear-gradient(135deg, #E8456B, #FF7E9D);
}

/* Search Bar */
.search-box {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 20px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    height: 36px;
    min-width: 180px;
}
.search-box input {
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: .85rem;
    width: 100%;
    padding: 0 8px;
}
.search-box input::placeholder { color: rgba(255,255,255,.5); }
.search-box button {
    background: none;
    border: none;
    color: #FF7E9D;
    cursor: pointer;
    font-size: 1rem;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* === Hero Banner === */
.hero-section {
    position: relative;
    height: 520px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-section .hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(.65);
}
.hero-video-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 20px;
}
.hero-content h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 16px;
    text-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.hero-content p {
    font-size: 1.15rem;
    max-width: 640px;
    margin: 0 auto 28px;
    opacity: .95;
    text-shadow: 0 1px 4px rgba(0,0,0,.3);
}
.hero-btn {
    display: inline-block;
    padding: 14px 36px;
    background: linear-gradient(135deg, #E8456B, #FF7E9D);
    color: #fff;
    border-radius: 30px;
    font-size: 1.05rem;
    font-weight: 600;
    transition: transform .3s, box-shadow .3s;
    box-shadow: 0 4px 16px rgba(232,69,107,.4);
}
.hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(232,69,107,.5);
    color: #fff;
}

/* === Section Common === */
.section { padding: 60px 0; }
.section-alt { background: #fff; }
.section-title {
    text-align: center;
    margin-bottom: 40px;
}
.section-title h2 {
    font-size: 1.9rem;
    font-weight: 700;
    color: #1A1A2E;
    margin-bottom: 10px;
}
.section-title h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1A1A2E;
    margin-bottom: 10px;
}
.section-title h5 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #1A1A2E;
    margin-bottom: 8px;
}
.section-title h6 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #1A1A2E;
    margin-bottom: 8px;
}
.section-title p {
    color: #666;
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
}
.section-title .accent-line {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #E8456B, #FF7E9D);
    margin: 12px auto 0;
    border-radius: 2px;
}

/* === Video Card Grid === */
.video-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.video-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    transition: transform .3s, box-shadow .3s;
    cursor: pointer;
}
.video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(232,69,107,.12);
}
.video-thumb {
    position: relative;
    padding-top: 56.25%;
    overflow: hidden;
}
.video-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}
.video-card:hover .video-thumb img { transform: scale(1.05); }
.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 52px;
    height: 52px;
    background: rgba(232,69,107,.85);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .3s;
    z-index: 3;
}
.play-btn::after {
    content: "";
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 0 10px 18px;
    border-color: transparent transparent transparent #fff;
    margin-left: 3px;
}
.video-card:hover .play-btn { opacity: 1; }
.video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,.7);
    color: #fff;
    font-size: .75rem;
    padding: 2px 8px;
    border-radius: 4px;
    z-index: 3;
}
.video-info { padding: 14px 16px; }
.video-info h3 {
    font-size: .95rem;
    font-weight: 600;
    color: #1A1A2E;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.video-desc {
    font-size: .82rem;
    color: #888;
    line-height: 1.5;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.video-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: .8rem;
    color: #999;
    flex-wrap: wrap;
}
.video-meta span { display: flex; align-items: center; gap: 3px; }

/* === News Grid (新增) === */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.news-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    transition: transform .3s, box-shadow .3s;
    border-left: 4px solid #E8456B;
}
.news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,.1);
}
.news-tag {
    display: inline-block;
    background: #FFF0F3;
    color: #E8456B;
    font-size: .75rem;
    padding: 3px 10px;
    border-radius: 12px;
    margin-bottom: 12px;
    font-weight: 600;
}
.news-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #1A1A2E;
    margin-bottom: 10px;
    line-height: 1.5;
}
.news-card p {
    font-size: .85rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-meta {
    display: flex;
    justify-content: space-between;
    font-size: .78rem;
    color: #999;
    flex-wrap: wrap;
    gap: 8px;
}
.news-author { color: #E8456B; }

/* === Service Cards === */
.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.service-card {
    background: #fff;
    border-radius: 14px;
    padding: 32px 24px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,.05);
    transition: transform .3s;
    border: 1px solid rgba(232,69,107,.08);
}
.service-card:hover { transform: translateY(-4px); }
.service-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    background: linear-gradient(135deg, #E8456B, #FF7E9D);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #fff;
}
.service-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #1A1A2E;
}
.service-card p {
    font-size: .9rem;
    color: #666;
    line-height: 1.6;
}

/* === Expert Team === */
.expert-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}
.expert-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    transition: transform .3s;
    display: flex;
    flex-direction: column;
}
.expert-card:hover { transform: translateY(-4px); }
.expert-avatar {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
}
.expert-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}
.expert-card:hover .expert-avatar img { transform: scale(1.05); }
.expert-info { padding: 18px 16px; flex: 1; }
.expert-info h3 { font-size: 1.05rem; font-weight: 600; color: #1A1A2E; margin-bottom: 4px; }
.expert-info .role { font-size: .85rem; color: #E8456B; margin-bottom: 8px; font-weight: 600; }
.expert-info p { font-size: .82rem; color: #888; line-height: 1.5; }
.expert-tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 10px; }
.expert-tag { background: #FFF0F3; color: #E8456B; font-size: .7rem; padding: 2px 8px; border-radius: 10px; }
.expert-btns { display: flex; gap: 8px; justify-content: center; padding: 0 16px 18px; }
.expert-btns a {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: .8rem;
    font-weight: 500;
    transition: all .3s;
}
.btn-primary {
    background: linear-gradient(135deg, #E8456B, #FF7E9D);
    color: #fff;
}
.btn-primary:hover { color: #fff; opacity: .9; }
.btn-outline {
    border: 1px solid #E8456B;
    color: #E8456B;
}
.btn-outline:hover { background: #E8456B; color: #fff; }

/* === Brand Wall === */
.brand-wall {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.brand-wall .brand-item {
    background: #fff;
    padding: 24px 16px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
    font-size: 1rem;
    font-weight: 600;
    color: #666;
    border: 1px solid #eee;
    transition: all .3s;
    text-align: center;
}
.brand-wall .brand-item:hover {
    border-color: #E8456B;
    color: #E8456B;
    box-shadow: 0 4px 16px rgba(232,69,107,.1);
}

/* === Reviews === */
.review-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.review-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
    border-left: 4px solid #E8456B;
    transition: transform .3s;
}
.review-card:hover { transform: translateY(-3px); }
.review-card .stars { color: #FFB347; font-size: 1rem; margin-bottom: 10px; letter-spacing: 2px; }
.review-card .review-text { font-size: .88rem; color: #444; line-height: 1.8; margin-bottom: 12px; font-style: italic; }
.review-card .reviewer { font-size: .78rem; color: #999; }
.review-card .reviewer strong { color: #1A1A2E; font-weight: 600; }

/* === FAQ === */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
    background: #fff;
    border-radius: 10px;
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: 0 1px 6px rgba(0,0,0,.04);
}
.faq-question {
    padding: 18px 24px;
    font-weight: 600;
    font-size: .95rem;
    color: #1A1A2E;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background .3s;
}
.faq-question:hover { background: #FFF0F3; }
.faq-question .arrow {
    transition: transform .3s;
    font-size: .8rem;
    color: #E8456B;
}
.faq-item.active .faq-question .arrow { transform: rotate(180deg); }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s ease;
    padding: 0 24px;
}
.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 24px 18px;
}
.faq-answer p { font-size: .9rem; color: #666; line-height: 1.7; }

/* === Contact Section === */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}
.contact-info-card {
    background: #fff;
    border-radius: 14px;
    padding: 32px;
    box-shadow: 0 2px 12px rgba(0,0,0,.05);
}
.contact-info-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #1A1A2E;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid #FFF0F3;
}
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    font-size: .9rem;
}
.contact-item .label { color: #999; min-width: 70px; }
.contact-item .value { color: #2D2D3A; font-weight: 500; }
.qrcode-row {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin-top: 20px;
}
.qrcode-item { text-align: center; }
.qrcode-item img { width: 140px; height: 140px; border-radius: 8px; margin-bottom: 8px; }
.qrcode-item p { font-size: .82rem; color: #888; }

/* === Community Features === */
.community-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 30px;
}
.community-card {
    background: linear-gradient(135deg, #1A1A2E, #2D2D4A);
    border-radius: 14px;
    padding: 28px 22px;
    text-align: center;
    color: #fff;
    transition: transform .3s;
}
.community-card:hover { transform: translateY(-4px); }
.community-card .icon { font-size: 2.2rem; margin-bottom: 14px; }
.community-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.community-card p { font-size: .85rem; color: rgba(255,255,255,.7); line-height: 1.6; }

/* === Community Trust (EEAT 新增) === */
.community-trust {
    background: #FFF0F3;
    border-radius: 12px;
    padding: 24px 28px;
    border-left: 4px solid #E8456B;
}
.community-trust h5 {
    font-size: .95rem;
    font-weight: 600;
    color: #1A1A2E;
    margin-bottom: 10px;
}
.community-trust p {
    font-size: .85rem;
    color: #555;
    line-height: 1.8;
}

/* === AI Section === */
.ai-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.ai-card {
    background: #fff;
    border-radius: 14px;
    padding: 28px 22px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,.05);
    border-top: 3px solid #E8456B;
    transition: transform .3s;
}
.ai-card:hover { transform: translateY(-4px); }
.ai-card .icon { font-size: 2rem; margin-bottom: 14px; }
.ai-card h3 { font-size: 1.05rem; font-weight: 600; color: #1A1A2E; margin-bottom: 8px; }
.ai-card p { font-size: .88rem; color: #666; line-height: 1.6; }

/* === How-To Guide === */
.howto-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.howto-step {
    background: #fff;
    border-radius: 14px;
    padding: 28px 22px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
}
.step-number {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #E8456B, #FF7E9D);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 auto 14px;
}
.howto-step h3 { font-size: 1rem; font-weight: 600; color: #1A1A2E; margin-bottom: 8px; }
.howto-step p { font-size: .85rem; color: #666; }

/* === Social Share === */
.social-share {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 24px;
    font-size: .88rem;
    font-weight: 500;
    color: #fff;
    transition: transform .3s, opacity .3s;
}
.share-btn:hover { transform: translateY(-2px); opacity: .9; color: #fff; }
.share-wechat { background: #07C160; }
.share-weibo { background: #E6162D; }
.share-douyin { background: #161823; }
.share-bilibili { background: #00A1D6; }

/* === Footer === */
.site-footer {
    background: #1A1A2E;
    color: rgba(255,255,255,.7);
    padding: 48px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.footer-brand .footer-logo { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.footer-brand .footer-logo-img { height: 32px; width: auto; filter: brightness(0) invert(1); }
.footer-brand .footer-logo img { height: 36px; }
.footer-brand .footer-logo span { color: #fff; font-size: 1.1rem; font-weight: 700; }
.footer-brand p { font-size: .85rem; line-height: 1.7; margin-bottom: 16px; }
.footer-col h4 {
    color: #fff;
    font-size: .95rem;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(232,69,107,.4);
}
.footer-col a {
    display: block;
    color: rgba(255,255,255,.6);
    font-size: .85rem;
    padding: 4px 0;
    transition: color .3s;
}
.footer-col a:hover { color: #FF7E9D; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    margin-top: 36px;
    padding: 20px;
    text-align: center;
    font-size: .82rem;
}
.footer-qrcodes {
    display: flex;
    gap: 16px;
    margin-top: 12px;
}
.footer-qrcodes img { width: 90px; height: 90px; border-radius: 6px; }

/* === Breadcrumb === */
.breadcrumb {
    padding: 14px 0;
    font-size: .85rem;
    color: #999;
}
.breadcrumb a { color: #E8456B; }
.breadcrumb span { margin: 0 6px; }

/* === Tag Cloud === */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
    display: inline-block;
    padding: 4px 14px;
    background: #FFF0F3;
    color: #E8456B;
    border-radius: 16px;
    font-size: .82rem;
    transition: all .3s;
}
.tag:hover { background: #E8456B; color: #fff; }

/* === Inner Page Hero === */
.page-hero {
    background: linear-gradient(135deg, #1A1A2E, #2D2D4A);
    padding: 48px 0;
    text-align: center;
    color: #fff;
}
.page-hero h1 { font-size: 2rem; font-weight: 700; margin-bottom: 10px; }
.page-hero p { font-size: 1rem; opacity: .8; }

/* === Responsive === */
@media (max-width: 1024px) {
    .video-grid { grid-template-columns: repeat(3, 1fr); }
    .expert-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .brand-wall { grid-template-columns: repeat(4, 1fr); }
    .howto-steps { grid-template-columns: repeat(2, 1fr); }
    .news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .site-logo .logo-img { display: none; }
    .site-logo .logo-icon { display: block; }
    .menu-toggle { display: block; }
    .main-nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: #1A1A2E;
        flex-direction: column;
        padding: 16px;
        gap: 4px;
        box-shadow: 0 8px 24px rgba(0,0,0,.2);
    }
    .main-nav.active { display: flex; }
    .search-box { display: none; }
    .hero-section { height: 380px; }
    .hero-content h1 { font-size: 1.8rem; }
    .video-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .service-grid { grid-template-columns: 1fr; }
    .community-grid { grid-template-columns: 1fr; }
    .ai-grid { grid-template-columns: 1fr; }
    .expert-grid { grid-template-columns: repeat(2, 1fr); }
    .review-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .news-grid { grid-template-columns: 1fr; }
    .brand-wall { grid-template-columns: repeat(2, 1fr); }
    .howto-steps { grid-template-columns: 1fr; }
    .section { padding: 40px 0; }
    .section-title h2 { font-size: 1.5rem; }
}
@media (max-width: 480px) {
    .video-grid { grid-template-columns: 1fr; }
    .expert-grid { grid-template-columns: 1fr; }
    .brand-wall { grid-template-columns: 1fr; }
}

/* === Lazy Load === */
img[loading="lazy"] { opacity: 0; transition: opacity .5s; }
img[loading="lazy"].loaded, img[loading="lazy"][src] { opacity: 1; }

/* === Animation === */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .6s, transform .6s;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === Update Time === */
.update-time {
    font-size: .82rem;
    color: rgba(255,255,255,.5);
    margin-top: 8px;
}
