/* ============================================================
   TRX 靓号生成器 — 门户风格模板（v3）
   主色：深红 / 深灰 / 米白，方块边角，衬线标题
   ============================================================ */

:root {
    --tvg-red: #15803d;
    --tvg-red-dark: #166534;
    --tvg-red-deep: #14532d;
    --tvg-red-light: #f0fdf4;
    --tvg-gold: #ca8a04;
    --tvg-ink: #1f2937;
    --tvg-gray: #6b7280;
    --tvg-muted: #9ca3af;
    --tvg-line: #d8dde5;
    --tvg-line-soft: #e9edf2;
    --tvg-bg: #f3f4f6;
    --tvg-white: #ffffff;
    --tvg-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
    --tvg-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
}

/* ---------- 基础 ---------- */
body.tvg-site {
    margin: 0;
    background: var(--tvg-bg);
    color: var(--tvg-ink);
    font-family: var(--tvg-sans);
    font-size: 15px;
    line-height: 1.75;
    -webkit-font-smoothing: auto;
    -moz-osx-font-smoothing: auto;
}
body.tvg-site * { box-sizing: border-box; }
body.tvg-site a { color: var(--tvg-ink); text-decoration: none; transition: color .15s; }
body.tvg-site a:hover { color: var(--tvg-red); }
body.tvg-site img { max-width: 100%; height: auto; }
body.tvg-site h1, body.tvg-site h2, body.tvg-site h3, body.tvg-site h4 {
    margin: 0;
    font-family: var(--tvg-serif);
    font-weight: 700;
    line-height: 1.4;
    color: var(--tvg-ink);
}
body.tvg-site p { margin: 0 0 1em; }

.tvg-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ---------- 顶部工具条 ---------- */
.tvg-topbar {
    background: #374151;
    color: #d1d5db;
    font-size: 12.5px;
    line-height: 32px;
}
.tvg-topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.tvg-topbar-left { letter-spacing: .02em; }
.tvg-topbar-right { display: flex; align-items: center; gap: 8px; }
.tvg-topbar-right a { color: #d1d5db; }
.tvg-topbar-right a:hover { color: #fff; }
.tvg-topbar-sep { color: #4b5563; }

/* ---------- 头部 ---------- */
.tvg-site-header {
    background: var(--tvg-white);
    border-bottom: 1px solid var(--tvg-line);
}
.tvg-header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 18px;
    padding-bottom: 18px;
}
.tvg-logo { display: inline-flex; align-items: center; gap: 12px; }
.tvg-logo img { display: block; }
.tvg-logo-block { display: flex; flex-direction: column; line-height: 1.25; }
.tvg-logo-block strong {
    font-family: var(--tvg-serif);
    font-size: 22px;
    font-weight: 700;
    color: var(--tvg-ink);
    letter-spacing: .02em;
}
.tvg-logo-block em {
    font-style: normal;
    font-size: 10.5px;
    color: var(--tvg-muted);
    letter-spacing: .12em;
    margin-top: 2px;
}
.tvg-header-slogan {
    font-size: 13px;
    color: var(--tvg-gray);
    border-left: 3px solid var(--tvg-red);
    padding-left: 12px;
    line-height: 1.5;
}

/* ---------- 主导航 ---------- */
.tvg-nav-bar {
    background: var(--tvg-red);
}
.tvg-nav-inner {
    display: flex;
    align-items: stretch;
    gap: 0;
    min-height: 46px;
    position: relative;
}
.tvg-nav-item {
    display: flex;
    align-items: center;
    padding: 0 26px;
    color: #fff !important;
    font-size: 15px;
    font-weight: 500;
    border-right: 1px solid rgba(255, 255, 255, .12);
    transition: background .15s;
}
.tvg-nav-item:first-child { border-left: 1px solid rgba(255, 255, 255, .12); }
.tvg-nav-item:hover { background: var(--tvg-red-dark); color: #fff !important; }
.tvg-nav-item.is-active { background: var(--tvg-red-deep); font-weight: 700; }
.tvg-nav-cta {
    margin-left: auto;
    display: flex;
    align-items: center;
    padding: 0 24px;
    background: var(--tvg-gold);
    color: #fff !important;
    font-size: 14.5px;
    font-weight: 700;
    letter-spacing: .04em;
}
.tvg-nav-cta:hover { background: #a16207; color: #fff !important; }
.tvg-nav-toggle { display: none; }

/* ---------- Hero ---------- */
.tvg-hero {
    background:
        linear-gradient(135deg, rgba(20, 83, 45, .96) 0%, rgba(21, 128, 61, .92) 55%, rgba(22, 101, 52, .96) 100%),
        repeating-linear-gradient(45deg, rgba(255,255,255,.04) 0 2px, transparent 2px 12px);
    color: #fff;
    padding: 46px 0 42px;
    border-bottom: 3px solid var(--tvg-gold);
}
.tvg-hero-title {
    color: #ffffff !important;
    font-size: 40px;
    letter-spacing: .04em;
    margin-bottom: 12px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .25);
}
.tvg-hero-sub {
    color: rgba(255, 255, 255, .9) !important;
    font-size: 15px;
    max-width: 860px;
    margin: 0 0 20px;
    line-height: 1.8;
}
.tvg-hero-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.tvg-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 14px;
    border: 1px solid rgba(255, 255, 255, .35);
    background: rgba(0, 0, 0, .12);
    color: #fff;
    font-size: 13px;
    border-radius: 2px;
}

/* ---------- 生成器区 ---------- */
.tvg-generator-section { padding: 26px 16px 10px; }
.tvg-generator-section .app {
    border: 1px solid var(--tvg-line);
    border-radius: 2px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 0 rgba(0, 0, 0, .03);
}
.tvg-generator-section .layout { gap: 0; }
.tvg-generator-section .right-col { gap: 0; }

/* ---------- 区块标题 ---------- */
.tvg-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 0 0 12px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--tvg-line);
    position: relative;
    text-align: left;
}
.tvg-section-head::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 90px;
    height: 2px;
    background: var(--tvg-red);
}
.tvg-section-head h2 {
    font-size: 22px;
    padding-left: 14px;
    position: relative;
    letter-spacing: .02em;
}
.tvg-section-head h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 4px;
    background: var(--tvg-red);
}
.tvg-section-head p {
    margin: 0;
    color: var(--tvg-gray);
    font-size: 13.5px;
    text-align: right;
}

/* ---------- 功能卡片 ---------- */
.tvg-features { padding: 34px 16px 26px; }
.tvg-feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
.tvg-feature-card {
    background: #fff;
    border: 1px solid var(--tvg-line);
    border-radius: 2px;
    padding: 22px 20px;
    transition: border-color .18s, box-shadow .18s;
    position: relative;
}
.tvg-feature-card::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 3px;
    background: var(--tvg-red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .2s;
}
.tvg-feature-card:hover { border-color: #c6cedb; box-shadow: 0 4px 14px rgba(31, 41, 55, .07); }
.tvg-feature-card:hover::before { transform: scaleX(1); }
.tvg-feature-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--tvg-red-light);
    color: var(--tvg-red);
    border: 1px solid #bbf7d0;
    border-radius: 2px;
    font-size: 19px;
    margin-bottom: 14px;
}
.tvg-feature-card h3 { font-size: 16.5px; margin-bottom: 8px; }
.tvg-feature-card p { color: var(--tvg-gray); font-size: 13.5px; margin: 0; line-height: 1.7; }

/* ---------- 介绍区 ---------- */
.tvg-intro { padding: 30px 16px 20px; }
.tvg-intro-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }
.tvg-intro-text, .tvg-steps {
    background: #fff;
    border: 1px solid var(--tvg-line);
    border-radius: 2px;
    padding: 24px 26px;
}
.tvg-intro-text p { color: var(--tvg-gray); font-size: 14px; margin: 0 0 13px; }
.tvg-intro-text ul { margin: 0 0 13px; padding-left: 18px; color: var(--tvg-gray); font-size: 14px; }
.tvg-intro-text li { margin-bottom: 6px; }
.tvg-intro-text strong { color: var(--tvg-ink); }
.tvg-steps h3 {
    font-size: 16.5px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px dashed var(--tvg-line);
}
.tvg-steps ol { margin: 0; padding-left: 20px; color: var(--tvg-gray); font-size: 14px; }
.tvg-steps li { margin-bottom: 9px; }

/* ---------- 文章卡片 ---------- */
.tvg-latest { padding: 24px 16px 30px; }
.tvg-post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tvg-post-grid-full { grid-template-columns: repeat(2, 1fr); }
.tvg-post-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #fff;
    border: 1px solid var(--tvg-line);
    border-radius: 2px;
    padding: 20px;
    min-height: 170px;
    transition: border-color .18s, box-shadow .18s;
}
.tvg-post-card:hover { border-color: var(--tvg-red); box-shadow: 0 4px 14px rgba(21, 128, 61, .08); }
.tvg-post-card h3 {
    font-size: 16px;
    line-height: 1.55;
    margin-bottom: 9px;
    color: var(--tvg-ink);
}
.tvg-post-card:hover h3 { color: var(--tvg-red); }
.tvg-post-card p { color: var(--tvg-gray); font-size: 13.2px; margin: 0; line-height: 1.7; }
.tvg-post-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px dashed var(--tvg-line);
    font-size: 12.5px;
    color: var(--tvg-muted);
}
.tvg-read-more { color: var(--tvg-red); font-weight: 600; }
.tvg-section-more { text-align: center; margin-top: 24px; }
.tvg-btn-outline {
    display: inline-flex;
    align-items: center;
    height: 40px;
    padding: 0 28px;
    border: 1px solid var(--tvg-red);
    background: #fff;
    color: var(--tvg-red) !important;
    font-size: 14px;
    font-weight: 600;
    border-radius: 2px;
    transition: background .15s, color .15s;
}
.tvg-btn-outline:hover { background: var(--tvg-red); color: #fff !important; }

/* ---------- FAQ ---------- */
.tvg-faq {
    padding: 34px 0 38px;
    background: #fff;
    border-top: 1px solid var(--tvg-line);
    border-bottom: 1px solid var(--tvg-line);
}
.tvg-faq-list { max-width: 900px; margin: 0 auto; }
.tvg-faq-item {
    border: 1px solid var(--tvg-line);
    border-left: 3px solid var(--tvg-red);
    border-radius: 0;
    padding: 14px 18px;
    margin-bottom: 8px;
    background: #f8faf9;
}
.tvg-faq-item summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    list-style: none;
    position: relative;
    padding-right: 26px;
    color: var(--tvg-ink);
}
.tvg-faq-item summary::-webkit-details-marker { display: none; }
.tvg-faq-item summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: -1px;
    font-size: 19px;
    color: var(--tvg-red);
    font-weight: 400;
}
.tvg-faq-item[open] summary::after { content: "−"; }
.tvg-faq-item p { margin: 10px 0 0; color: var(--tvg-gray); font-size: 14px; }

/* ---------- CTA ---------- */
.tvg-cta {
    padding: 40px 0;
    background: linear-gradient(135deg, #14532d 0%, #15803d 100%);
    border-top: 3px solid var(--tvg-gold);
}
.tvg-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.tvg-cta h2 { color: #ffffff !important; font-size: 24px; margin-bottom: 6px; letter-spacing: .03em; }
.tvg-cta p { margin: 0; color: rgba(255, 255, 255, .85) !important; font-size: 14.5px; }
.tvg-btn-solid {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 32px;
    background: var(--tvg-gold);
    color: #fff !important;
    font-weight: 700;
    font-size: 15px;
    border-radius: 2px;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, .2);
    transition: background .15s;
}
.tvg-btn-solid:hover { background: #a16207; }
.tvg-btn-block { width: 100%; }

/* ---------- 页脚 ---------- */
.tvg-site-footer {
    background: #1f2937;
    color: #cbd5e1;
    padding: 40px 0 20px;
    border-top: 3px solid var(--tvg-red);
}
.tvg-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 30px;
    padding-bottom: 28px;
    border-bottom: 1px solid #374151;
}
.tvg-footer-brand .tvg-logo-block strong { color: #fff; font-size: 18px; }
.tvg-footer-brand .tvg-logo-block em { color: #6b7280; }
.tvg-footer-brand p {
    margin: 12px 0 0;
    color: #94a3b8;
    font-size: 13px;
    line-height: 1.75;
    max-width: 320px;
}
.tvg-footer-col h3 {
    color: #fff;
    font-family: var(--tvg-sans);
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: .06em;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #374151;
}
.tvg-footer-col ul { list-style: none; margin: 0; padding: 0; }
.tvg-footer-col li { margin-bottom: 7px; }
.tvg-footer-col a { color: #94a3b8 !important; font-size: 13.5px; }
.tvg-footer-col a:hover { color: #fff !important; }
.tvg-footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 18px;
    font-size: 12.5px;
    color: #6b7280;
}
body.tvg-site .tvg-footer-bottom a { color: #6b7280 !important; }
body.tvg-site .tvg-footer-bottom a:hover { color: #d1d5db !important; text-decoration: underline; }
.tvg-sep { margin: 0 6px; color: #4b5563; }

/* ---------- 返回顶部 ---------- */
.tvg-back-top {
    position: fixed;
    right: 18px;
    bottom: 22px;
    width: 40px;
    height: 40px;
    border: 1px solid var(--tvg-line);
    border-radius: 2px;
    background: #fff;
    color: var(--tvg-ink);
    font-size: 17px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .2s, transform .2s, visibility .2s, background .15s;
    z-index: 90;
}
.tvg-back-top:hover { background: var(--tvg-red); color: #fff; border-color: var(--tvg-red); }
.tvg-back-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }

/* ---------- 面包屑 ---------- */
.tvg-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    padding: 14px 0 0;
    font-size: 12.5px;
    color: var(--tvg-muted);
}
.tvg-breadcrumb a { color: var(--tvg-gray); }
.tvg-breadcrumb a:hover { color: var(--tvg-red); }
.tvg-breadcrumb-current { color: var(--tvg-muted); }

/* ---------- 文章页 ---------- */
.tvg-article-page { padding-bottom: 40px; }
.tvg-article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 20px;
    padding-top: 18px;
    align-items: start;
}
.tvg-article {
    background: #fff;
    border: 1px solid var(--tvg-line);
    border-radius: 2px;
    padding: 30px 34px;
}
.tvg-article-header {
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--tvg-line);
}
.tvg-article-header h1 {
    font-size: 27px;
    line-height: 1.45;
    margin-bottom: 12px;
    letter-spacing: .01em;
}
.tvg-article-meta { display: flex; gap: 10px; font-size: 12.5px; color: var(--tvg-muted); }
.tvg-article-content { font-size: 15.2px; color: #1f2937; }
.tvg-article-content h2 {
    font-size: 20px;
    margin: 30px 0 12px;
    padding-left: 12px;
    border-left: 4px solid var(--tvg-red);
    line-height: 1.5;
}
.tvg-article-content h3 { font-size: 17px; margin: 22px 0 10px; }
.tvg-article-content p { margin: 0 0 15px; }
.tvg-article-content ul, .tvg-article-content ol { margin: 0 0 16px; padding-left: 22px; }
.tvg-article-content li { margin-bottom: 7px; }
.tvg-article-content blockquote {
    margin: 18px 0;
    padding: 12px 18px;
    background: #f8faf9;
    border-left: 3px solid var(--tvg-gold);
    color: var(--tvg-gray);
}
.tvg-article-content code {
    font-family: Consolas, Monaco, monospace;
    background: #f1f3f5;
    padding: 2px 6px;
    border-radius: 2px;
    font-size: .92em;
    color: var(--tvg-red-dark);
}
.tvg-article-content table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; }
.tvg-article-content th, .tvg-article-content td {
    border: 1px solid var(--tvg-line);
    padding: 9px 12px;
    text-align: left;
}
.tvg-article-content th { background: #f6f7f9; font-weight: 600; }

/* ---------- 侧边栏 ---------- */
.tvg-sidebar { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 16px; }
.tvg-sidebar-card {
    background: #fff;
    border: 1px solid var(--tvg-line);
    border-radius: 2px;
    padding: 0 0 14px;
    overflow: hidden;
}
.tvg-sidebar-card h3 {
    font-family: var(--tvg-sans);
    font-size: 14px;
    font-weight: 700;
    color: var(--tvg-ink);
    padding: 11px 16px;
    margin: 0 0 10px;
    background: #f6f7f9;
    border-bottom: 1px solid var(--tvg-line);
    border-left: 3px solid var(--tvg-red);
    letter-spacing: .02em;
}
.tvg-sidebar-card p { padding: 0 16px; font-size: 13.2px; line-height: 1.7; color: var(--tvg-gray); margin: 0 0 12px; }
.tvg-sidebar-list { list-style: none; margin: 0; padding: 0 16px; }
.tvg-sidebar-list li { padding: 0; border-bottom: 1px dashed var(--tvg-line-soft); }
.tvg-sidebar-list li:last-child { border-bottom: 0; }
body.tvg-site .tvg-sidebar-list a {
    display: block;
    padding: 8px 0;
    font-size: 13.5px;
    color: #374151 !important;
    line-height: 1.55;
}
body.tvg-site .tvg-sidebar-list a:hover { color: var(--tvg-red) !important; }
.tvg-sidebar-cta { background: #fff; }
.tvg-sidebar-cta h3 { background: var(--tvg-red-light); }
.tvg-sidebar-cta .tvg-btn-solid {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 16px;
    width: calc(100% - 32px);
    height: 40px;
    background: var(--tvg-red);
    color: #fff !important;
    font-size: 14px;
    font-weight: 600;
    border-radius: 2px;
}
.tvg-sidebar-cta .tvg-btn-solid:hover { background: var(--tvg-red-dark); }

/* ---------- 列表页 ---------- */
.tvg-archive-page { padding: 28px 0 40px; }
.tvg-archive-header {
    padding: 0 0 14px;
    margin-bottom: 22px;
    border-bottom: 2px solid var(--tvg-line);
    position: relative;
}
.tvg-archive-header::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 90px;
    height: 2px;
    background: var(--tvg-red);
}
.tvg-archive-header h1 { font-size: 26px; letter-spacing: .02em; margin-bottom: 6px; }
.tvg-archive-header p { margin: 0; color: var(--tvg-gray); font-size: 13.5px; }
.tvg-pagination { display: flex; justify-content: center; gap: 6px; margin-top: 30px; font-size: 13.5px; }
.tvg-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border: 1px solid var(--tvg-line);
    background: #fff;
    color: var(--tvg-gray);
    border-radius: 2px;
}
.tvg-pagination .page-numbers.current { background: var(--tvg-red); border-color: var(--tvg-red); color: #fff; }
.tvg-empty { text-align: center; color: var(--tvg-muted); padding: 50px 0; }

/* ---------- 通用内容页 ---------- */
.tvg-page { padding: 6px 0 40px; }
.tvg-page-narrow { max-width: 900px; }
.tvg-page-title { font-size: 28px; margin: 18px 0 16px; padding-left: 14px; border-left: 4px solid var(--tvg-red); line-height: 1.4; }
.tvg-page-content {
    background: #fff;
    border: 1px solid var(--tvg-line);
    border-radius: 2px;
    padding: 28px 32px;
    color: #1f2937;
}
.tvg-page-content h2 { font-size: 19px; margin: 24px 0 10px; padding-left: 10px; border-left: 3px solid var(--tvg-line); }
.tvg-page-content h3 { font-size: 16.5px; margin: 20px 0 9px; }
.tvg-page-content p { margin: 0 0 14px; }
.tvg-page-content ul { padding-left: 20px; }
.tvg-page-content a { color: var(--tvg-red); }

/* ---------- 生成器工具栏适配 ---------- */
.tvg-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 18px;
    background: #f6f7f9;
    border-bottom: 1px solid var(--tvg-line);
}
.tvg-toolbar-title {
    font-family: var(--tvg-serif);
    font-weight: 700;
    font-size: 15px;
    color: var(--tvg-ink);
    padding-left: 10px;
    border-left: 3px solid var(--tvg-red);
}
.tvg-toolbar-actions { display: flex; align-items: center; gap: 10px; }
.tvg-result-count { font-size: 12.5px; color: var(--tvg-muted); margin-right: 8px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
    .tvg-feature-grid { grid-template-columns: repeat(2, 1fr); }
    .tvg-article-layout { grid-template-columns: minmax(0, 1fr); }
    .tvg-sidebar { position: static; }
    .tvg-footer-grid { grid-template-columns: 1fr 1fr; }
    .tvg-hero-title { font-size: 32px; }
}

@media (max-width: 860px) {
    .tvg-header-slogan { display: none; }
    .tvg-nav-inner { flex-wrap: wrap; position: relative; padding-right: 56px; }
    .tvg-nav-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 4px;
        width: 38px;
        height: 38px;
        position: absolute;
        right: 12px;
        top: 4px;
        padding: 0 8px;
        border: 1px solid rgba(255, 255, 255, .45);
        background: rgba(0,0,0,.12);
        cursor: pointer;
        z-index: 5;
    }
    .tvg-nav-toggle span { display: block; height: 2px; background: #fff; }
    .tvg-nav-item {
        display: none;
        width: 100%;
        padding: 11px 16px;
        border-right: 0;
        border-left: 0;
        border-bottom: 1px solid rgba(255, 255, 255, .12);
    }
    .tvg-nav-inner.is-open .tvg-nav-item { display: flex; }
    .tvg-nav-cta { margin-left: 0; width: 100%; justify-content: center; padding: 12px; }
    .tvg-post-grid, .tvg-post-grid-full { grid-template-columns: 1fr; }
    .tvg-intro-grid { grid-template-columns: 1fr; }
    .tvg-hero { padding: 32px 0 28px; }
    .tvg-hero-title { font-size: 26px; }
    .tvg-section-head { flex-direction: column; align-items: flex-start; gap: 6px; }
    .tvg-section-head p { text-align: left; }
    .tvg-cta-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 640px) {
    .tvg-container { padding: 0 12px; }
    .tvg-topbar-left { display: none; }
    .tvg-topbar-inner { justify-content: flex-end; }
    .tvg-feature-grid { grid-template-columns: 1fr; }
    .tvg-article { padding: 20px 18px; }
    .tvg-article-header h1 { font-size: 21px; }
    .tvg-page-content { padding: 20px 18px; }
    .tvg-footer-grid { grid-template-columns: 1fr; gap: 22px; }
    .tvg-footer-bottom { flex-direction: column; }
    .tvg-hero-title { font-size: 23px; }
    .tvg-hero-sub { font-size: 14px; }
    .tvg-badge { font-size: 12px; padding: 4px 11px; }
    .tvg-logo-block strong { font-size: 18px; }
    .tvg-logo img { width: 36px; height: 36px; }
    .tvg-nav-item { font-size: 14px; }
    .tvg-footer-col li { margin-bottom: 0; }
    body.tvg-site .tvg-footer-col a { display: inline-flex; align-items: center; min-height: 42px; }
}

/* 隐藏主题残留 */
body.tvg-site .wp-block-post-title { display: none; }

/* ============================================================
   门户布局 v3.1 — 焦点区 + 左主栏 + 右侧栏
   ============================================================ */

/* ---------- 焦点区 ---------- */
.tvg-focus {
    background: #fff;
    border-bottom: 1px solid var(--tvg-line);
    padding: 26px 0;
}
.tvg-focus-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    align-items: stretch;
}
.tvg-focus-main {
    background: linear-gradient(120deg, #14532d 0%, #15803d 60%, #166534 100%);
    border-left: 6px solid var(--tvg-gold);
    padding: 34px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.tvg-focus-main::after {
    content: "";
    position: absolute;
    right: -40px;
    top: -40px;
    width: 200px;
    height: 200px;
    border: 30px solid rgba(255, 255, 255, .06);
    border-radius: 50%;
}
.tvg-focus-main h1 {
    color: #fff !important;
    font-size: 34px;
    letter-spacing: .05em;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}
.tvg-focus-main p {
    color: rgba(255, 255, 255, .9) !important;
    font-size: 14.5px;
    margin: 0 0 22px;
    max-width: 520px;
    position: relative;
    z-index: 1;
}
.tvg-focus-actions { display: flex; gap: 10px; flex-wrap: wrap; position: relative; z-index: 1; }
.tvg-btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 26px;
    border: 1px solid rgba(255, 255, 255, .55);
    color: #fff !important;
    font-size: 14.5px;
    font-weight: 600;
    border-radius: 2px;
    transition: background .15s;
}
.tvg-btn-ghost:hover { background: rgba(255, 255, 255, .14); color: #fff !important; }

/* 公告栏 */
.tvg-notice-box {
    background: #f8faf9;
    border: 1px solid var(--tvg-line);
    display: flex;
    flex-direction: column;
}
.tvg-notice-head {
    background: var(--tvg-red);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    padding: 10px 16px;
    letter-spacing: .06em;
}
.tvg-notice-list {
    list-style: none;
    margin: 0;
    padding: 12px 16px;
    flex: 1;
}
.tvg-notice-list li {
    position: relative;
    padding-left: 14px;
    font-size: 13px;
    line-height: 1.65;
    color: var(--tvg-gray);
    margin-bottom: 10px;
}
.tvg-notice-list li:last-child { margin-bottom: 0; }
.tvg-dot {
    position: absolute;
    left: 0;
    top: 8px;
    width: 5px;
    height: 5px;
    background: var(--tvg-red);
    border-radius: 50%;
}

/* ---------- 主体两栏 ---------- */
.tvg-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 20px;
    padding-top: 22px;
    padding-bottom: 34px;
    align-items: start;
}
.tvg-main-left { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.tvg-main-right { display: flex; flex-direction: column; gap: 16px; }

/* ---------- 区块 ---------- */
.tvg-block {
    background: #fff;
    border: 1px solid var(--tvg-line);
    border-radius: 2px;
}
.tvg-block-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 16px;
    height: 44px;
    background: #f6f7f9;
    border-bottom: 1px solid var(--tvg-line);
    border-left: 4px solid var(--tvg-red);
}
.tvg-block-head h2 {
    font-size: 16.5px;
    letter-spacing: .04em;
    margin: 0;
}
.tvg-block-sub { font-size: 12.5px; color: var(--tvg-muted); }
.tvg-block-more { font-size: 12.5px; color: var(--tvg-gray) !important; }
.tvg-block-more:hover { color: var(--tvg-red) !important; }
.tvg-block-body { padding: 16px; }
.tvg-block-body-flush { padding: 0; }

/* ---------- 文章列表（日期 + 标题 + 摘要）---------- */
.tvg-news-list { list-style: none; margin: 0; padding: 0; }
.tvg-news-list li {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px dashed var(--tvg-line-soft);
}
.tvg-news-list li:first-child { padding-top: 0; }
.tvg-news-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.tvg-news-date {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    background: #f6f7f9;
    border: 1px solid var(--tvg-line);
    color: var(--tvg-gray);
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    letter-spacing: .02em;
}
.tvg-news-list li:hover .tvg-news-date {
    background: var(--tvg-red);
    border-color: var(--tvg-red);
    color: #fff;
}
.tvg-news-body { min-width: 0; flex: 1; }
.tvg-news-title {
    display: block;
    font-family: var(--tvg-serif);
    font-size: 15.5px;
    font-weight: 700;
    color: var(--tvg-ink) !important;
    line-height: 1.55;
    margin-bottom: 4px;
}
.tvg-news-title:hover { color: var(--tvg-red) !important; }
.tvg-news-desc {
    margin: 0;
    font-size: 13px;
    color: var(--tvg-gray);
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---------- 功能列表（编号条目）---------- */
.tvg-feature-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; }
.tvg-feature-list li { display: flex; gap: 12px; }
.tvg-feature-no {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    background: var(--tvg-red-light);
    border: 1px solid #bbf7d0;
    color: var(--tvg-red);
    font-family: var(--tvg-serif);
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tvg-feature-list h3 {
    font-size: 15px;
    margin: 0 0 4px;
}
.tvg-feature-list p {
    margin: 0;
    font-size: 13px;
    color: var(--tvg-gray);
    line-height: 1.65;
}

/* ---------- 侧栏 ---------- */
.tvg-side-box {
    background: #fff;
    border: 1px solid var(--tvg-line);
    border-radius: 2px;
    overflow: hidden;
}
.tvg-side-head {
    height: 42px;
    line-height: 42px;
    padding: 0 14px;
    background: #f6f7f9;
    border-bottom: 1px solid var(--tvg-line);
    border-left: 4px solid var(--tvg-red);
    font-size: 14px;
    font-weight: 700;
    color: var(--tvg-ink);
    letter-spacing: .04em;
}
.tvg-side-rank { list-style: none; margin: 0; padding: 8px 14px 12px; }
.tvg-side-rank li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 8px 0;
    border-bottom: 1px dashed var(--tvg-line-soft);
}
.tvg-side-rank li:last-child { border-bottom: 0; }
.tvg-rank-no {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    font-size: 11.5px;
    font-weight: 700;
    color: #fff;
    background: #c3cad5;
    margin-top: 2px;
}
.tvg-rank-no.is-top { background: var(--tvg-red); }
.tvg-side-rank a {
    font-size: 13.2px;
    line-height: 1.6;
    color: #374151 !important;
}
.tvg-side-rank a:hover { color: var(--tvg-red) !important; }

.tvg-side-links { list-style: none; margin: 0; padding: 10px 14px 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 10px; }
.tvg-side-links a {
    display: block;
    font-size: 13px;
    color: var(--tvg-gray) !important;
    padding: 6px 0;
    border-bottom: 1px dashed var(--tvg-line-soft);
}
.tvg-side-links a:hover { color: var(--tvg-red) !important; }

.tvg-side-cta p {
    margin: 12px 14px;
    font-size: 13px;
    color: var(--tvg-gray);
    line-height: 1.65;
}
.tvg-side-cta .tvg-btn-solid {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 14px 14px;
    width: calc(100% - 28px);
    height: 40px;
    background: var(--tvg-red);
    color: #fff !important;
    font-size: 14px;
    font-weight: 600;
    border-radius: 2px;
}
.tvg-side-cta .tvg-btn-solid:hover { background: var(--tvg-red-dark); }

.tvg-side-tips { list-style: none; margin: 0; padding: 10px 14px 14px; }
.tvg-side-tips li {
    position: relative;
    padding-left: 16px;
    font-size: 12.8px;
    color: var(--tvg-gray);
    line-height: 1.6;
    margin-bottom: 8px;
}
.tvg-side-tips li::before {
    content: "›";
    position: absolute;
    left: 0;
    color: var(--tvg-red);
    font-weight: 700;
}

/* ---------- FAQ 微调（新布局内）---------- */
.tvg-block-body .tvg-faq-list { max-width: none; }
.tvg-block-body .tvg-faq-item {
    background: #f8faf9;
    margin-bottom: 6px;
    padding: 12px 16px;
}
.tvg-block-body .tvg-faq-item summary { font-size: 14.5px; }
.tvg-block-body .tvg-faq-item p { font-size: 13.5px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
    .tvg-focus-grid { grid-template-columns: 1fr; gap: 16px; }
    .tvg-main-grid { grid-template-columns: 1fr; }
    .tvg-main-right { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
    .tvg-feature-list { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .tvg-focus { padding: 16px 0; }
    .tvg-focus-main { padding: 24px 20px; border-left-width: 4px; }
    .tvg-focus-main h1 { font-size: 24px; }
    .tvg-focus-main p { font-size: 13.5px; }
    .tvg-main-right { grid-template-columns: 1fr; }
    .tvg-block-head { height: auto; padding: 10px 14px; flex-wrap: wrap; }
    .tvg-block-body { padding: 12px; }
    .tvg-news-list li { gap: 10px; }
    .tvg-news-date { width: 44px; height: 44px; font-size: 12px; }
    .tvg-news-title { font-size: 14.5px; }
    .tvg-news-desc { -webkit-line-clamp: 2; }
}

/* 区块内嵌生成器：去掉重复边框 */
.tvg-block-body-flush .app { border: 0; box-shadow: none; }
.tvg-block-body-flush .tvg-toolbar { border-top: 0; }

/* 区块内嵌生成器：隐藏重复的工具栏标题 */
.tvg-block-body-flush .tvg-toolbar-title { display: none; }
.tvg-block-body-flush .tvg-toolbar { justify-content: flex-end; padding: 10px 16px; }

/* 移动端导航条重排：汉堡在左，CTA 在右 */
@media (max-width: 860px) {
    .tvg-nav-inner { padding-right: 0; position: static; }
    .tvg-nav-toggle {
        position: static;
        order: -1;
        margin-right: auto;
        margin-left: 0;
    }
    .tvg-nav-cta {
        margin-left: 0;
        width: auto;
        padding: 0 22px;
        height: 44px;
    }
    .tvg-nav-item { order: 10; }
}

@media (max-width: 860px) {
    .tvg-nav-inner { padding: 0 12px; }
}

/* ============================================================
   绿色主题横幅适配
   ============================================================ */
.tvg-focus-main {
    background: url('../img/hero-bg.jpg?v=2') center / cover no-repeat !important;
    border-left-color: #ca8a04;
    min-height: 300px;
}
.tvg-focus-main::after { display: none; }
.tvg-focus-main h1 {
    text-shadow: 0 2px 12px rgba(0, 0, 0, .45);
}
.tvg-focus-main p {
    text-shadow: 0 1px 6px rgba(0, 0, 0, .35);
}

/* 焦点按钮：主按钮绿色实心，次按钮描边 */
.tvg-focus-actions .tvg-btn-solid {
    background: #16a34a;
    border: 1px solid #22c55e;
    box-shadow: 0 6px 18px -8px rgba(22, 163, 74, .7);
}
.tvg-focus-actions .tvg-btn-solid:hover { background: #15803d; }

/* 公告栏头部改绿 */
.tvg-notice-head { background: #15803d; }

/* 侧栏与区块标题色条统一绿色 */
.tvg-side-head, .tvg-block-head { border-left-color: #15803d; }
.tvg-rank-no.is-top { background: #15803d; }
.tvg-side-cta .tvg-btn-solid { background: #15803d; }
.tvg-side-cta .tvg-btn-solid:hover { background: #166534; }

/* 导航条 */
.tvg-nav-bar { background: #15803d; }
.tvg-nav-item:hover { background: #166534; }
.tvg-nav-item.is-active { background: #14532d; }
.tvg-nav-cta { background: #ca8a04; }
.tvg-nav-cta:hover { background: #a16207; }

/* 顶部工具条 */
.tvg-topbar { background: #14301f; }

/* 页脚 */
.tvg-site-footer { background: #0f2318; border-top-color: #15803d; }

/* 文章列表日期块 hover */
.tvg-news-list li:hover .tvg-news-date { background: #15803d; border-color: #15803d; }

/* FAQ 左侧色条 */
.tvg-faq-item { border-left-color: #15803d; }
.tvg-faq-item summary::after { color: #15803d; }

/* 生成器滑块与按钮 */
.tvg-gen-app .slider::-webkit-slider-thumb { background: #15803d; }

/* ============================================================
   页脚 v3.4 — 金色装饰条 / 统计 / 快捷导航
   ============================================================ */
.tvg-footer-stripe {
    height: 3px;
    background: linear-gradient(90deg, #a16207 0%, #facc15 50%, #a16207 100%);
}
.tvg-site-footer { padding-top: 34px; }

.tvg-footer-stats {
    display: flex;
    gap: 18px;
    margin-top: 14px;
    flex-wrap: wrap;
}
.tvg-footer-stats span {
    font-size: 12.5px;
    color: #94a3b8;
}
.tvg-footer-stats strong {
    color: #fbbf24;
    font-size: 15px;
    margin-right: 3px;
    font-family: var(--tvg-serif);
}

.tvg-footer-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 8px;
    padding: 14px 0;
    border-top: 1px solid #2a3b30;
    border-bottom: 1px solid #2a3b30;
    font-size: 12.8px;
}
.tvg-footer-nav-label {
    color: #6b7280;
    margin-right: 6px;
    font-weight: 600;
}
body.tvg-site .tvg-footer-nav a {
    color: #94a3b8 !important;
    padding: 2px 4px;
}
body.tvg-site .tvg-footer-nav a:hover { color: #fbbf24 !important; }
.tvg-footer-nav .tvg-sep { color: #374151; }

@media (max-width: 640px) {
    .tvg-footer-nav { font-size: 12.5px; gap: 2px 6px; }
    .tvg-footer-stats { gap: 12px; }
}

/* 页脚标题与文字提亮（覆盖主题） */
body.tvg-site .tvg-footer-col h3 {
    color: #ffffff !important;
    border-bottom-color: #2a3b30 !important;
}
body.tvg-site .tvg-footer-brand .tvg-logo-block strong { color: #ffffff !important; }
body.tvg-site .tvg-footer-brand .tvg-logo-block em { color: #6b7280 !important; }
body.tvg-site .tvg-footer-brand p { color: #94a3b8 !important; }
body.tvg-site .tvg-footer-nav-label { color: #9ca3af !important; }
body.tvg-site .tvg-footer-bottom { color: #6b7280 !important; }

/* 文章特色图 */
.tvg-article-cover {
    margin: 0 0 22px;
    border: 1px solid var(--tvg-line);
    overflow: hidden;
    line-height: 0;
}
.tvg-article-cover img {
    display: block;
    width: 100%;
    height: auto;
}

/* 正文插图 */
.tvg-article-content .tvg-content-figure {
    margin: 24px 0;
    padding: 0;
    line-height: 0;
}
.tvg-article-content .tvg-content-figure img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--tvg-line);
    border-radius: 2px;
}
.tvg-article-content .tvg-content-figure figcaption {
    margin-top: 8px;
    font-size: 12.5px;
    color: var(--tvg-muted);
    text-align: center;
    line-height: 1.6;
    font-family: var(--tvg-sans);
}

/* 教程列表：缩略图 + 元信息 */
.tvg-news-list li { align-items: flex-start; gap: 16px; }
.tvg-news-thumb {
    flex-shrink: 0;
    width: 168px;
    height: 105px;
    display: block;
    overflow: hidden;
    border: 1px solid var(--tvg-line);
    background: #f2f5f4;
    line-height: 0;
}
.tvg-news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}
.tvg-news-list li:hover .tvg-news-thumb img { transform: scale(1.06); }
.tvg-news-thumb .tvg-news-noimg {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #b9c6c0;
    font-family: var(--tvg-serif);
    font-size: 20px;
    letter-spacing: .1em;
}
.tvg-news-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 12.5px;
    color: var(--tvg-muted);
}
.tvg-news-meta .tvg-news-date {
    width: auto;
    height: auto;
    background: none;
    border: 0;
    font-size: 12.5px;
    color: var(--tvg-muted);
    display: inline;
    font-weight: 400;
    letter-spacing: 0;
}
.tvg-news-list li:hover .tvg-news-meta .tvg-news-date {
    background: none;
    border: 0;
    color: var(--tvg-muted);
}
.tvg-news-dot { color: #cbd5d1; }
.tvg-news-views { color: var(--tvg-muted); }
.tvg-news-title { font-size: 15.5px; }
.tvg-news-desc { -webkit-line-clamp: 2; }

@media (max-width: 900px) {
    .tvg-news-thumb { width: 140px; height: 88px; }
}
@media (max-width: 640px) {
    .tvg-news-list li { gap: 10px; }
    .tvg-news-thumb { width: 104px; height: 72px; }
    .tvg-news-title { font-size: 14.5px; }
    .tvg-news-desc { -webkit-line-clamp: 2; font-size: 12.5px; }
    .tvg-news-meta { margin-top: 6px; font-size: 11.5px; }
}

/* 导航外链：极品靓号购买 */
.tvg-nav-external {
    position: relative;
}
.tvg-nav-external .tvg-ext-arrow {
    display: inline-block;
    margin-left: 4px;
    font-size: 12px;
    opacity: .75;
    transform: translateY(-1px);
}
.tvg-nav-external:hover .tvg-ext-arrow { opacity: 1; }

@media (max-width: 860px) {
    .tvg-nav-external { order: 11; }
}
