/* ============================================================
   蜜芽 原创样式表 - rdshuidsjf.cn
   配色方案：暖橙 #FF6B35 / 深靛蓝 #1A1A2E / 金色 #FFD700
   ============================================================ */

/* === CSS Variables === */
:root {
    --tx-orange: #FF6B35;
    --tx-orange-dark: #E05A2A;
    --tx-indigo: #1A1A2E;
    --tx-gold: #FFD700;
    --tx-dark: #0F0F1A;
    --tx-card: #1C1C32;
    --tx-card-hover: #252545;
    --tx-text: #E8E8F0;
    --tx-text-muted: #9A95B0;
    --tx-border: #2A2A45;
    --tx-cyan: #00C8C8;
    --tx-pink: #FF69B4;
    --tx-gradient: linear-gradient(135deg, #FF6B35 0%, #FFD700 100%);
    --tx-shadow: 0 4px 24px rgba(255, 107, 53, 0.15);
    --tx-radius: 10px;
    --tx-radius-lg: 16px;
    --tx-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
    background: var(--tx-dark);
    color: var(--tx-text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
a { color: var(--tx-orange); text-decoration: none; transition: var(--tx-transition); }
a:hover { color: var(--tx-gold); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, h5, h6 { line-height: 1.3; font-weight: 700; }
ul, ol { list-style: none; }

/* === Layout === */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 60px 0; }
.section-alt { background: var(--tx-indigo); }
.section-title { text-align: center; margin-bottom: 45px; }
.section-title h2 { font-size: 2rem; margin-bottom: 12px; background: var(--tx-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.section-title p { color: var(--tx-text-muted); font-size: 1rem; max-width: 600px; margin: 0 auto; }

/* === Navigation === */
.site-nav {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(15, 15, 26, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--tx-border);
    padding: 0 20px;
}
.nav-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    height: 64px;
}
.nav-brand { display: flex; align-items: center; gap: 10px; }
.nav-brand img { width: 36px; height: 36px; border-radius: 8px; }
.nav-brand span { font-size: 1.2rem; font-weight: 700; color: var(--tx-orange); }
.nav-links { display: flex; gap: 6px; }
.nav-links a {
    padding: 8px 16px; border-radius: 8px; font-size: 0.92rem;
    color: var(--tx-text-muted); transition: var(--tx-transition);
}
.nav-links a:hover, .nav-links a.active {
    color: var(--tx-orange); background: rgba(255, 107, 53, 0.1);
}
.nav-toggle { display: none; background: none; border: none; color: var(--tx-text); font-size: 1.5rem; cursor: pointer; padding: 8px; }

/* === Search Bar === */
.search-bar {
    background: var(--tx-indigo);
    padding: 14px 0;
    border-bottom: 1px solid var(--tx-border);
}
.search-box {
    display: flex; max-width: 640px; margin: 0 auto;
    background: var(--tx-card); border-radius: 50px;
    border: 1px solid var(--tx-border); overflow: hidden;
    transition: var(--tx-transition);
}
.search-box:focus-within { border-color: var(--tx-orange); box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.15); }
.search-box input {
    flex: 1; padding: 12px 24px; background: transparent; border: none;
    color: var(--tx-text); font-size: 0.95rem; outline: none;
}
.search-box input::placeholder { color: var(--tx-text-muted); }
.search-box button {
    padding: 12px 28px; background: var(--tx-gradient); border: none;
    color: #fff; font-size: 0.95rem; font-weight: 600; cursor: pointer;
    transition: var(--tx-transition);
}
.search-box button:hover { opacity: 0.9; }

/* === Hero Section === */
.hero {
    position: relative; overflow: hidden;
    background: linear-gradient(180deg, var(--tx-indigo) 0%, var(--tx-dark) 100%);
    padding: 80px 0 60px;
}
.hero-bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    opacity: 0.25; z-index: 0;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { font-size: 2.8rem; margin-bottom: 16px; }
.hero h1 .brand-hl { color: var(--tx-orange); }
.hero-subtitle { font-size: 1.15rem; color: var(--tx-text-muted); margin-bottom: 30px; max-width: 650px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.hero-tags span {
    padding: 6px 16px; border-radius: 20px; font-size: 0.85rem;
    background: rgba(255, 107, 53, 0.12); color: var(--tx-orange);
    border: 1px solid rgba(255, 107, 53, 0.2);
}
.hero-stats { display: flex; gap: 40px; }
.hero-stats .stat { text-align: center; }
.hero-stats .stat-num { font-size: 2rem; font-weight: 800; color: var(--tx-gold); display: block; }
.hero-stats .stat-label { font-size: 0.85rem; color: var(--tx-text-muted); }

/* === Page Hero (Inner Pages) === */
.page-hero {
    background: linear-gradient(135deg, var(--tx-indigo) 0%, #1a1030 100%);
    padding: 50px 0 40px;
}
.page-hero h1 { font-size: 2rem; margin-bottom: 10px; }
.page-hero p { color: var(--tx-text-muted); }
.breadcrumb { font-size: 0.85rem; color: var(--tx-text-muted); margin-bottom: 16px; }
.breadcrumb a { color: var(--tx-text-muted); }
.breadcrumb a:hover { color: var(--tx-orange); }
.breadcrumb span { margin: 0 6px; }

/* === Video Grid === */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}
.video-card {
    background: var(--tx-card);
    border-radius: var(--tx-radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: var(--tx-transition);
    border: 1px solid transparent;
}
.video-card:hover {
    transform: translateY(-6px);
    border-color: var(--tx-orange);
    box-shadow: var(--tx-shadow);
}
.video-card .thumb {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #111;
}
.video-card .thumb img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.4s ease;
}
.video-card:hover .thumb img { transform: scale(1.08); }
.video-card .thumb .play-btn {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 56px; height: 56px;
    background: rgba(255, 107, 53, 0.9);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: var(--tx-transition);
    opacity: 0;
}
.video-card .thumb .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: 4px;
}
.video-card:hover .thumb .play-btn { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.video-card .thumb .duration {
    position: absolute; bottom: 8px; right: 8px;
    background: rgba(0, 0, 0, 0.8); color: #fff;
    padding: 2px 8px; border-radius: 4px; font-size: 0.78rem;
}
.video-card .card-body { padding: 14px 16px; }
.video-card .card-body h3 { font-size: 0.95rem; font-weight: 600; margin-bottom: 8px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.video-card .card-meta { display: flex; gap: 16px; font-size: 0.82rem; color: var(--tx-text-muted); }

/* === Module Grid === */
.module-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.module-card {
    background: var(--tx-card); border-radius: var(--tx-radius-lg);
    padding: 28px 24px; border: 1px solid var(--tx-border);
    transition: var(--tx-transition);
}
.module-card:hover { border-color: var(--tx-orange); transform: translateY(-4px); box-shadow: var(--tx-shadow); }
.module-card .icon { font-size: 2.2rem; margin-bottom: 14px; }
.module-card h4 { font-size: 1.1rem; margin-bottom: 10px; color: var(--tx-text); }
.module-card p { font-size: 0.9rem; color: var(--tx-text-muted); line-height: 1.6; }

/* === Expert Cards === */
.expert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.expert-card {
    background: var(--tx-card); border-radius: var(--tx-radius-lg);
    overflow: hidden; border: 1px solid var(--tx-border);
    transition: var(--tx-transition); text-align: center;
}
.expert-card:hover { border-color: var(--tx-gold); box-shadow: 0 4px 24px rgba(255, 215, 0, 0.12); }
.expert-card .avatar { width: 100%; aspect-ratio: 1; object-fit: cover; }
.expert-card .info { padding: 18px; }
.expert-card .info h4 { font-size: 1.05rem; margin-bottom: 4px; }
.expert-card .info .role { font-size: 0.85rem; color: var(--tx-orange); margin-bottom: 8px; }
.expert-card .info p { font-size: 0.85rem; color: var(--tx-text-muted); line-height: 1.5; }
.expert-card .actions { display: flex; gap: 8px; justify-content: center; padding: 0 18px 18px; }
.expert-card .actions a {
    padding: 6px 16px; border-radius: 20px; font-size: 0.82rem;
    border: 1px solid var(--tx-orange); color: var(--tx-orange);
    transition: var(--tx-transition);
}
.expert-card .actions a:hover { background: var(--tx-orange); color: #fff; }

/* === FAQ Section === */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
    background: var(--tx-card); border-radius: var(--tx-radius);
    margin-bottom: 12px; border: 1px solid var(--tx-border);
    overflow: hidden;
}
.faq-q {
    padding: 18px 24px; cursor: pointer; font-weight: 600;
    display: flex; justify-content: space-between; align-items: center;
    transition: var(--tx-transition);
}
.faq-q:hover { color: var(--tx-orange); }
.faq-q .arrow { transition: transform 0.3s; font-size: 0.85rem; color: var(--tx-text-muted); }
.faq-item.open .faq-q .arrow { transform: rotate(180deg); }
.faq-a { padding: 0 24px; max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.3s; }
.faq-item.open .faq-a { max-height: 300px; padding: 0 24px 18px; }
.faq-a p { color: var(--tx-text-muted); font-size: 0.92rem; line-height: 1.7; }

/* === Reviews === */
.review-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.review-card {
    background: var(--tx-card); border-radius: var(--tx-radius-lg);
    padding: 24px; border: 1px solid var(--tx-border);
}
.review-card .stars { color: var(--tx-gold); font-size: 0.9rem; margin-bottom: 10px; }
.review-card .text { font-size: 0.92rem; color: var(--tx-text-muted); line-height: 1.6; margin-bottom: 12px; font-style: italic; }
.review-card .author { font-size: 0.85rem; color: var(--tx-text); font-weight: 600; }
.review-card .date { font-size: 0.78rem; color: var(--tx-text-muted); }

/* === Partner Logos === */
.partner-wall { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; align-items: center; }
.partner-wall .partner-item {
    background: var(--tx-card); padding: 16px 28px; border-radius: var(--tx-radius);
    border: 1px solid var(--tx-border); font-size: 1rem; font-weight: 600;
    color: var(--tx-text-muted); transition: var(--tx-transition);
}
.partner-wall .partner-item:hover { border-color: var(--tx-orange); color: var(--tx-orange); }

/* === How-To Guide === */
.howto-steps { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
.howto-step {
    background: var(--tx-card); border-radius: var(--tx-radius-lg);
    padding: 28px 24px; text-align: center;
    border: 1px solid var(--tx-border);
}
.howto-step .step-num {
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--tx-gradient); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; font-weight: 800; margin: 0 auto 16px;
}
.howto-step h4 { font-size: 1rem; margin-bottom: 8px; }
.howto-step p { font-size: 0.88rem; color: var(--tx-text-muted); }

/* === Contact Section === */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.contact-card {
    background: var(--tx-card); border-radius: var(--tx-radius-lg);
    padding: 24px; border: 1px solid var(--tx-border);
}
.contact-card h4 { font-size: 1rem; margin-bottom: 12px; color: var(--tx-orange); }
.contact-card p { font-size: 0.9rem; color: var(--tx-text-muted); line-height: 1.7; }
.contact-card .qr-img { width: 160px; margin: 12px auto 0; border-radius: 8px; }

/* === Share Buttons === */
.share-bar { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 20px; }
.share-btn {
    padding: 8px 20px; border-radius: 20px; font-size: 0.85rem;
    border: 1px solid var(--tx-border); color: var(--tx-text-muted);
    background: var(--tx-card); cursor: pointer; transition: var(--tx-transition);
}
.share-btn:hover { border-color: var(--tx-orange); color: var(--tx-orange); background: rgba(255, 107, 53, 0.08); }

/* === Page Content === */
.page-content { max-width: 900px; margin: 0 auto; }
.page-content h2 { font-size: 1.6rem; margin-bottom: 16px; color: var(--tx-text); }
.page-content h3 { font-size: 1.2rem; margin: 24px 0 12px; color: var(--tx-orange); }
.page-content p { font-size: 0.95rem; color: var(--tx-text-muted); margin-bottom: 16px; line-height: 1.8; }

/* === Footer === */
.site-footer {
    background: var(--tx-indigo);
    border-top: 1px solid var(--tx-border);
    padding: 50px 0 0;
}
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand img { width: 140px; margin-bottom: 12px; }
.footer-brand p { font-size: 0.88rem; color: var(--tx-text-muted); line-height: 1.6; }
.footer-col h5 { font-size: 0.95rem; margin-bottom: 14px; color: var(--tx-text); }
.footer-col a { display: block; font-size: 0.88rem; color: var(--tx-text-muted); padding: 4px 0; }
.footer-col a:hover { color: var(--tx-orange); }
.footer-bottom {
    border-top: 1px solid var(--tx-border);
    padding: 20px 0;
    text-align: center;
    font-size: 0.82rem;
    color: var(--tx-text-muted);
}
.footer-bottom .update-time { margin-top: 6px; color: var(--tx-gold); }

/* === Animations === */
.tx-fade { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.tx-fade.visible { opacity: 1; transform: translateY(0); }

/* === Buttons === */
.btn-primary {
    display: inline-block; padding: 12px 32px; border-radius: 50px;
    background: var(--tx-gradient); color: #fff; font-weight: 600;
    font-size: 0.95rem; border: none; cursor: pointer;
    transition: var(--tx-transition);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255, 107, 53, 0.3); color: #fff; }
.btn-outline {
    display: inline-block; padding: 10px 28px; border-radius: 50px;
    border: 2px solid var(--tx-orange); color: var(--tx-orange);
    font-weight: 600; font-size: 0.92rem; cursor: pointer;
    transition: var(--tx-transition); background: transparent;
}
.btn-outline:hover { background: var(--tx-orange); color: #fff; }

/* === Video Player Placeholder === */
.video-player-wrap {
    max-width: 900px; margin: 0 auto 30px;
    background: #000; border-radius: 12px;
    overflow: hidden; aspect-ratio: 16/9;
    position: relative; cursor: pointer;
}
.video-player-wrap img { width: 100%; height: 100%; object-fit: cover; }
.video-player-wrap .play-overlay {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    transition: var(--tx-transition);
}
.video-player-wrap:hover .play-overlay { background: rgba(0, 0, 0, 0.15); }
.video-player-wrap .play-overlay .big-play {
    width: 80px; height: 80px; border-radius: 50%;
    background: rgba(255, 107, 53, 0.9);
    display: flex; align-items: center; justify-content: center;
    transition: var(--tx-transition);
}
.video-player-wrap:hover .play-overlay .big-play { transform: scale(1.1); }
.video-player-wrap .play-overlay .big-play::after {
    content: ''; display: block;
    border-style: solid;
    border-width: 14px 0 14px 24px;
    border-color: transparent transparent transparent #fff;
    margin-left: 5px;
}

/* === Tags === */
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
    background: rgba(255, 107, 53, 0.1); color: var(--tx-orange);
    padding: 4px 14px; border-radius: 16px; font-size: 0.82rem;
    border: 1px solid rgba(255, 107, 53, 0.15);
}

/* === Responsive === */
@media (max-width: 1024px) {
    .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; background: rgba(15, 15, 26, 0.98); flex-direction: column; padding: 16px; border-bottom: 1px solid var(--tx-border); }
    .nav-links.open { display: flex; }
    .nav-toggle { display: block; }
    .hero h1 { font-size: 1.8rem; }
    .hero-stats { gap: 20px; }
    .hero-stats .stat-num { font-size: 1.4rem; }
    .section { padding: 40px 0; }
    .section-title h2 { font-size: 1.5rem; }
    .video-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
    .footer-top { grid-template-columns: 1fr; gap: 24px; }
    .expert-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
    .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .hero h1 { font-size: 1.5rem; }
    .video-grid { grid-template-columns: 1fr; }
    .module-grid { grid-template-columns: 1fr; }
    .search-box { border-radius: 12px; }
    .search-box button { padding: 12px 18px; }
}
