/* ============================================================
   全局变量 - 品牌色
   ============================================================ */
:root {
    --primary-color: #cd0021;      /* 品牌红 */
    --primary-dark: #a8001a;       /* 深红（悬停） */
    --primary-light: #e6354f;      /* 浅红 */
    --secondary-color: #84c5e7;    /* 天蓝 */
    --secondary-light: #a8d8f0;    /* 浅蓝 */
    --bg-warm: #fcf4f4;            /* 暖白背景 */
    --bg-white: #ffffff;
    --text-dark: #3a3a3a;          /* 深灰文字 */
    --text-muted: #666666;
    --text-light: #999999;
    --border-soft: #e8dddd;
    --shadow-soft: 0 4px 24px rgba(205, 0, 33, 0.06);
    --shadow-hover: 0 12px 40px rgba(205, 0, 33, 0.10);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-warm);
    color: var(--text-dark);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================================
   链接
   ============================================================ */
.tag-page-container a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}
.tag-page-container a:hover {
    color: var(--secondary-color);
}

/* ============================================================
   容器
   ============================================================ */
.tag-page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 48px 80px 48px;
    background: var(--bg-white);
    box-shadow: var(--shadow-soft);
    border-radius: var(--radius-lg);
}

@media (max-width: 768px) {
    .tag-page-container {
        padding: 24px 20px 60px 20px;
        border-radius: 0;
    }
}

@media (max-width: 480px) {
    .tag-page-container {
        padding: 16px 12px 40px 12px;
    }
}

/* ============================================================
   Hero 区域
   ============================================================ */
.tag-hero-section {
    padding: 20px 0 40px 0;
    margin-bottom: 40px;
    border-bottom: 2px solid var(--border-soft);
}

.tag-title {
    font-size: 42px;
    line-height: 1.2;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.02em;
    text-align: center;
    margin-bottom: 8px;
}

.tag-hero-section .hero-section-p {
    font-size: 16px;
    line-height: 1.6;
    font-weight: 400;
    letter-spacing: 4px;
    text-transform: uppercase;
    text-align: center;
    color: var(--secondary-color);
    margin-bottom: 24px;
}

.editor-content-1 {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-muted);
    padding: 28px 32px;
    background: var(--bg-warm);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary-color);
}

/* ============================================================
   内容矩阵
   ============================================================ */
.content-matrix {
    display: grid;
    gap: 48px;
    grid-template-columns: 2fr 1fr;
}

@media (max-width: 1024px) {
    .content-matrix {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* ============================================================
   det1 ~ det7 内容模块
   ============================================================ */

.content-main > div,
.content-main > section,
.content-main .editor-module,
.content-main .det-module {
    background: var(--bg-white);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    padding: 32px 36px;
    margin-bottom: 32px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.content-main > div:hover,
.content-main > section:hover,
.content-main .editor-module:hover,
.content-main .det-module:hover {
    box-shadow: var(--shadow-hover);
}

@media (max-width: 768px) {
    .content-main > div,
    .content-main > section,
    .content-main .editor-module,
    .content-main .det-module {
        padding: 20px 16px;
        margin-bottom: 20px;
        border-radius: var(--radius-sm);
    }
}

@media (max-width: 480px) {
    .content-main > div,
    .content-main > section,
    .content-main .editor-module,
    .content-main .det-module {
        padding: 16px 12px;
        margin-bottom: 16px;
    }
}

/* --- det 模块内的 H4 --- */
.content-main h4,
.content-main .det-module h4,
.content-main .editor-module h4,
.content-main section h4 {
    font-size: 20px;
    line-height: 1.4;
    font-weight: 600;
    color: var(--primary-color);
    letter-spacing: 0.01em;
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--secondary-color);
    position: relative;
}

.content-main h4::after,
.content-main .det-module h4::after,
.content-main .editor-module h4::after,
.content-main section h4::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: var(--primary-color);
    margin-top: 8px;
}

/* --- det 模块内的 P --- */
.content-main p,
.content-main .det-module p,
.content-main .editor-module p,
.content-main section p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-muted);
    margin: 0 0 12px 0;
}

.content-main p:last-child {
    margin-bottom: 0;
}

/* --- det 模块内的 UL --- */
.content-main ul,
.content-main .det-module ul,
.content-main .editor-module ul,
.content-main section ul {
    list-style: none;
    padding: 0;
    margin: 12px 0 16px 0;
}

.content-main ul li,
.content-main .det-module ul li,
.content-main .editor-module ul li,
.content-main section ul li {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-muted);
    padding: 6px 0 6px 28px;
    position: relative;
    border-bottom: 1px solid var(--border-soft);
}

.content-main ul li:last-child {
    border-bottom: none;
}

.content-main ul li::before,
.content-main .det-module ul li::before,
.content-main .editor-module ul li::before,
.content-main section ul li::before {
    content: '◆';
    position: absolute;
    left: 0;
    top: 6px;
    color: var(--primary-color);
    font-size: 12px;
}

/* --- det 模块内的 OL --- */
.content-main ol,
.content-main .det-module ol,
.content-main .editor-module ol,
.content-main section ol {
    margin: 12px 0 16px 20px;
    padding: 0;
}

.content-main ol li,
.content-main .det-module ol li,
.content-main .editor-module ol li,
.content-main section ol li {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-muted);
    padding: 4px 0;
}

/* ============================================================
   所有 H 标签统一样式
   ============================================================ */

h1, .h1 {
    font-size: 42px;
    line-height: 1.2;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 20px 0;
}

h2, .h2 {
    font-size: 36px;
    line-height: 1.2;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0 0 18px 0;
}

h3, .h3 {
    font-size: 28px;
    line-height: 1.2;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0 0 16px 0;
}

h4, .h4 {
    font-size: 20px;
    line-height: 1.4;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0 0 14px 0;
}

h5, .h5 {
    font-size: 18px;
    line-height: 1.6;
    font-weight: 500;
    color: var(--text-dark);
    margin: 0 0 12px 0;
}

h6, .h6 {
    font-size: 16px;
    line-height: 1.6;
    font-weight: 500;
    color: var(--text-dark);
    margin: 0 0 10px 0;
}

/* ============================================================
   移动端 H 标签
   ============================================================ */
@media (max-width: 768px) {
    h1, .h1 { font-size: 32px; line-height: 1.2; }
    h2, .h2 { font-size: 28px; line-height: 1.2; }
    h3, .h3 { font-size: 24px; line-height: 1.2; }
    h4, .h4 { font-size: 18px; line-height: 1.4; }
    h5, .h5 { font-size: 16px; line-height: 1.6; }
    h6, .h6 { font-size: 14px; line-height: 1.8; }
}

@media (max-width: 480px) {
    h1, .h1 { font-size: 26px; line-height: 1.2; }
    h2, .h2 { font-size: 22px; line-height: 1.2; }
    h3, .h3 { font-size: 20px; line-height: 1.4; }
    h4, .h4 { font-size: 16px; line-height: 1.6; }
    h5, .h5 { font-size: 14px; line-height: 1.8; }
    h6, .h6 { font-size: 14px; line-height: 1.8; }
}

/* ============================================================
   About 区域
   ============================================================ */
#seo_about {
    margin: 60px 0 40px 0;
    padding: 40px 0;
    border-top: 2px solid var(--border-soft);
}

#seo_about .seo_title {
    font-size: 28px;
    line-height: 1.2;
    font-weight: 600;
    color: var(--primary-color);
    letter-spacing: 2px;
    margin-bottom: 20px;
}

#seo_about ._text {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-muted);
}

/* ============================================================
   联系表单
   ============================================================ */
#seo_public_from {
    background: var(--bg-warm);
    border-radius: var(--radius-md);
    padding: 40px 48px;
    margin: 40px 0;
}

#seo_public_from h4 {
    font-size: 20px;
    line-height: 1.4;
    font-weight: 600;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 24px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

#seo_public_from input,
#seo_public_from textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-white);
    transition: var(--transition);
    box-sizing: border-box;
}

#seo_public_from input:focus,
#seo_public_from textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(205, 0, 33, 0.10);
}

#seo_public_from input[type="submit"] {
    background: var(--primary-color);
    color: #fff;
    border: none;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 14px 40px;
    cursor: pointer;
    width: auto;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

#seo_public_from input[type="submit"]:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    #seo_public_from {
        padding: 28px 20px;
    }
}

/* ============================================================
   Recommended LINS
   ============================================================ */
.more-info {
    background: var(--bg-white);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    padding: 24px 28px;
    margin-top: 40px;
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-muted);
}

.more-info a {
    display: inline-block;
    background: var(--bg-warm);
    color: var(--primary-color);
    padding: 4px 14px;
    border-radius: var(--radius-sm);
    margin: 4px 6px 4px 0;
    font-size: 14px;
    line-height: 1.8;
    border: 1px solid var(--border-soft);
    transition: var(--transition);
}

.more-info a:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* ============================================================
   FAQ 折叠
   ============================================================ */
.editor-module-faq {
    background: var(--bg-white);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    padding: 0;
    margin: 30px 0;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.editor-module-faq h3,
.editor-module-faq h4 {
    font-size: 20px;
    line-height: 1.4;
    font-weight: 600;
    color: var(--primary-color);
    padding: 20px 28px 16px 28px;
    margin: 0;
    border-bottom: 1px solid var(--border-soft);
}

.editor-module-faq ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.editor-module-faq ul li {
    padding: 0;
    margin: 0;
}

/* 问题项 */
.editor-module-faq ul li:first-child {
    font-size: 14px;
    line-height: 1.8;
    font-weight: 600;
    color: var(--primary-color);
    padding: 16px 28px;
    cursor: pointer;
    background: var(--bg-warm);
    border-bottom: 1px solid var(--border-soft);
    position: relative;
    user-select: none;
    transition: var(--transition);
}

.editor-module-faq ul li:first-child:hover {
    background: #f5e8e8;
}

.editor-module-faq ul li:first-child::after {
    content: '+';
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: var(--primary-color);
    transition: var(--transition);
}

.editor-module-faq ul li:first-child.expanded::after {
    content: '−';
}

/* 答案项 */
.editor-module-faq ul li:last-child {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-muted);
    padding: 0 28px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, padding 0.4s ease, opacity 0.3s ease;
}

.editor-module-faq ul li:last-child.active {
    max-height: 600px;
    padding: 20px 28px;
    opacity: 1;
}

/* ============================================================
   Sidebar
   ============================================================ */
.content-sidebar .editor-module {
    background: var(--bg-white);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    padding: 24px 28px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-soft);
}

/* ============================================================
   辅助类
   ============================================================ */
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }

/* ============================================================
   Banner - 品牌色
   ============================================================ */
.anyida-banner-wrapper {
    max-width: 100%;
    margin: 60px 0 60px 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.anyida-banner-bar {
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.anyida-banner-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 56px 48px 44px 48px;
    background: linear-gradient(145deg, var(--bg-warm) 0%, #f5e8e8 100%);
    min-height: 320px;
}

.anyida-banner-brand-name {
    font-size: 42px;
    line-height: 1.2;
    font-weight: 700;
    color: var(--text-dark);
}

.anyida-banner-brand-sub {
    font-size: 42px;
    line-height: 1.2;
    font-weight: 700;
    color: var(--primary-color);
}

.anyida-banner-tagline {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 12px 0 24px 0;
}

.anyida-banner-cert-line span {
    display: inline-block;
    padding: 6px 20px;
    background: var(--primary-color);
    color: #fff;
    font-size: 14px;
    line-height: 1.6;
    font-weight: 500;
    border-radius: 20px;
    letter-spacing: 0.5px;
    margin: 4px 4px;
}

.anyida-banner-stats {
    display: flex;
    justify-content: center;
    gap: 56px;
    margin: 24px 0 28px 0;
    flex-wrap: wrap;
}

.anyida-banner-stat-num {
    font-size: 36px;
    line-height: 1.2;
    font-weight: 700;
    color: var(--primary-color);
}

.anyida-banner-stat-label {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.anyida-banner-btn {
    display: inline-block;
    padding: 16px 48px;
    background: var(--primary-color);
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.6;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: var(--transition);
    letter-spacing: 1px;
}

.anyida-banner-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(205, 0, 33, 0.30);
}

.anyida-banner-brand-bottom {
    border-top: 2px solid var(--border-soft);
    padding-top: 24px;
    margin-top: 8px;
    width: 100%;
    max-width: 480px;
}

.anyida-banner-brand-bottom-name {
    font-size: 28px;
    line-height: 1.2;
    font-weight: 700;
    color: var(--text-dark);
}

.anyida-banner-brand-bottom-label {
    font-size: 14px;
    line-height: 1.8;
    color: var(--secondary-color);
    font-weight: 500;
    letter-spacing: 1px;
}

.anyida-banner-footer {
    padding: 14px 48px;
    background: var(--text-dark);
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    line-height: 1.8;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.anyida-banner-footer-divider {
    color: var(--secondary-color);
    opacity: 0.4;
}

/* ============================================================
   移动端 Banner
   ============================================================ */
@media (max-width: 768px) {
    .anyida-banner-wrapper { margin: 40px 0; }
    .anyida-banner-main { padding: 36px 24px 30px 24px; }
    .anyida-banner-brand-name,
    .anyida-banner-brand-sub { font-size: 32px; line-height: 1.2; }
    .anyida-banner-tagline { font-size: 16px; line-height: 1.6; }
    .anyida-banner-stats { gap: 30px; }
    .anyida-banner-stat-num { font-size: 28px; line-height: 1.2; }
    .anyida-banner-stat-label { font-size: 12px; line-height: 1.8; }
    .anyida-banner-btn { padding: 14px 38px; font-size: 14px; line-height: 1.6; }
    .anyida-banner-brand-bottom-name { font-size: 24px; line-height: 1.2; }
    .anyida-banner-footer { padding: 12px 24px; font-size: 12px; line-height: 1.8; gap: 12px; }
    .anyida-banner-cert-line span { font-size: 12px; line-height: 1.6; padding: 4px 14px; }
}

@media (max-width: 480px) {
    .anyida-banner-wrapper { margin: 28px 0; }
    .anyida-banner-main { padding: 24px 16px 20px 16px; }
    .anyida-banner-brand-name,
    .anyida-banner-brand-sub { font-size: 24px; line-height: 1.2; }
    .anyida-banner-tagline { font-size: 14px; line-height: 1.8; }
    .anyida-banner-stats { gap: 18px; }
    .anyida-banner-stat-num { font-size: 22px; line-height: 1.2; }
    .anyida-banner-stat-label { font-size: 11px; line-height: 1.8; }
    .anyida-banner-btn { padding: 12px 30px; font-size: 13px; line-height: 1.6; }
    .anyida-banner-brand-bottom-name { font-size: 20px; line-height: 1.2; }
    .anyida-banner-footer { padding: 10px 16px; font-size: 11px; line-height: 1.8; gap: 6px; }
    .anyida-banner-cert-line span { font-size: 11px; line-height: 1.6; padding: 3px 10px; }
}