/* ============================================================================
   内容页设计体系（2026-11-02 精细化批）
   适用：guides 列表 / guide 详情 / about / contact / member / faq
   设计语言：与全站星海玻璃同源——图标徽章 hero 替代 emoji 头图、surface 玻璃卡、
   分类色系贯穿（chips/卡片缘/详情 kicker）、正文排版层级化。
   色彩变量走 common.css 全局双主题体系（--hc-*），本文件仅亮色阴影等少数覆盖。
   ============================================================================ */

/* ============ 页面容器 ============ */
.hc-cp {
    margin: 0 auto;
    padding: 36px 16px 72px;
    max-width: 900px;
}
.hc-cp--wide { max-width: 1140px; }  /* guides 列表与 faq：与首页同宽 */

/* ============ Hero：图标徽章 + 标题 + 副题 ============ */
.hc-cp-hero {
    text-align: center;
    margin-bottom: 34px;
    position: relative;
}
.hc-cp-badge {
    width: 66px;
    height: 66px;
    margin: 0 auto 18px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, var(--hc-primary), var(--hc-pink));
    box-shadow: 0 14px 30px -10px rgba(124, 58, 237, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.28);
    position: relative;
}
/* 徽章旁双星点缀（星海余韵，纯 CSS） */
.hc-cp-badge::before,
.hc-cp-badge::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: var(--hc-primary);
    opacity: 0.4;
}
.hc-cp-badge::before { width: 5px; height: 5px; top: 7px; right: -13px; }
.hc-cp-badge::after { width: 3px; height: 3px; bottom: 10px; left: -16px; opacity: 0.3; }
.hc-cp-hero h1 {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.35;
    color: var(--hc-text);
    margin: 0 0 8px;
}
.hc-cp-hero .hc-cp-sub {
    font-size: 14px;
    line-height: 1.7;
    color: var(--hc-text-muted);
    max-width: 560px;
    margin: 0 auto;
}

/* ============ 分类色系（贯穿 chips/卡片/kicker） ============ */
.hc-cat-guide    { --cat: #7C3AED; --cat-soft: rgba(124, 58, 237, 0.12); }
.hc-cat-payment  { --cat: #0EA5E9; --cat-soft: rgba(14, 165, 233, 0.12); }
.hc-cat-shopping { --cat: #F59E0B; --cat-soft: rgba(245, 158, 11, 0.14); }
.hc-cat-news     { --cat: #EC4899; --cat-soft: rgba(236, 72, 153, 0.12); }

/* ============ 分类 chips（guides 列表过滤器） ============ */
.hc-cp-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 28px;
}
.hc-cp-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    background: var(--hc-surface);
    color: var(--hc-text-secondary);
    border: 1px solid var(--hc-border);
    transition: border-color 0.16s ease, transform 0.16s ease, color 0.16s ease;
}
.hc-cp-chip:hover { border-color: var(--hc-primary-200, var(--hc-primary)); color: var(--hc-text); transform: translateY(-1px); }
.hc-cp-chip.is-active {
    background: linear-gradient(135deg, var(--hc-primary), var(--hc-pink));
    color: var(--hc-on-brand);
    border-color: transparent;
    box-shadow: 0 6px 16px -6px rgba(124, 58, 237, 0.45);
}
.hc-cp-chip-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--cat, var(--hc-primary));
    flex: none;
}
.hc-cp-chip.is-active .hc-cp-chip-dot { background: rgba(255, 255, 255, 0.9); }

/* ============ guides 卡片网格 ============ */
.hc-guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 14px;
}
@media (max-width: 640px) {
    .hc-guide-grid { grid-template-columns: 1fr; }
}
.hc-guide-card {
    position: relative;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    background: var(--hc-surface);
    border: 1px solid var(--hc-border);
    border-radius: 16px;
    padding: 18px 20px 16px;
    overflow: hidden;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
/* 顶缘分类色条 */
.hc-guide-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--cat, var(--hc-primary)), transparent 72%);
    opacity: 0.85;
}
.hc-guide-card:hover {
    transform: translateY(-3px);
    border-color: var(--cat, var(--hc-primary));
    box-shadow: 0 14px 30px -14px rgba(30, 27, 46, 0.28);
}
.hc-guide-card-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.hc-guide-card-icon {
    flex: none;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cat, var(--hc-primary));
    background: var(--cat-soft, rgba(124, 58, 237, 0.12));
}
.hc-guide-card-cat {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--cat, var(--hc-primary));
    letter-spacing: 0.3px;
}
.hc-guide-card-date {
    margin-left: auto;
    font-size: 12px;
    color: var(--hc-text-muted);
}
.hc-guide-card-title {
    font-size: 15.5px;
    font-weight: 700;
    line-height: 1.5;
    color: var(--hc-text);
    margin-bottom: 6px;
}
.hc-guide-card-desc {
    font-size: 13px;
    line-height: 1.7;
    color: var(--hc-text-secondary);
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hc-guide-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--hc-border);
}
.hc-guide-card-lang {
    font-size: 12px;
    color: var(--hc-text-muted);
}
.hc-guide-card-arrow {
    font-size: 13px;
    font-weight: 700;
    color: var(--cat, var(--hc-primary));
    transition: transform 0.18s ease;
}
.hc-guide-card:hover .hc-guide-card-arrow { transform: translateX(4px); }

/* 空态 */
.hc-cp-empty {
    text-align: center;
    padding: 56px 0;
    color: var(--hc-text-muted);
    font-size: 14px;
}

/* ============ guide 详情头部 ============ */
.hc-guide-head { margin-bottom: 22px; }
.hc-cp-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 13px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    color: var(--cat, var(--hc-primary));
    background: var(--cat-soft, rgba(124, 58, 237, 0.12));
    border: 1px solid transparent;
    transition: border-color 0.15s ease;
}
.hc-cp-kicker:hover { border-color: var(--cat, var(--hc-primary)); }
.hc-guide-head h1 {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.45;
    color: var(--hc-text);
    margin: 14px 0 12px;
}
.hc-guide-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    font-size: 12.5px;
    color: var(--hc-text-muted);
}
.hc-guide-meta .hc-guide-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* ============ 正文排版（guide 详情 / about / member 规则段共用） ============ */
.hc-guide-body { font-size: 14.5px; line-height: 1.95; color: var(--hc-text-secondary); }
.hc-guide-body h2 {
    font-size: 19px;
    font-weight: 800;
    color: var(--hc-text);
    margin: 32px 0 12px;
    padding-left: 13px;
    position: relative;
    scroll-margin-top: 90px;
}
/* H2 左侧渐变锚条（目录联动视觉锚） */
.hc-guide-body h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 4px;
    border-radius: 99px;
    background: linear-gradient(180deg, var(--hc-primary), var(--hc-pink));
}
.hc-guide-body h3 { font-size: 16px; font-weight: 700; color: var(--hc-text); margin: 22px 0 8px; }
.hc-guide-body p { margin: 11px 0; }
.hc-guide-body ul, .hc-guide-body ol { padding-left: 22px; margin: 11px 0; }
.hc-guide-body li { margin: 6px 0; }
.hc-guide-body li::marker { color: var(--hc-primary); font-weight: 700; }
.hc-guide-body strong { color: var(--hc-text); }
.hc-guide-body a { color: var(--hc-primary); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(124, 58, 237, 0.35); text-underline-offset: 3px; }
.hc-guide-body a:hover { text-decoration-color: var(--hc-primary); }
/* 表格：玻璃容器化（圆角外框 + 行分隔线替换单元格框线） */
.hc-guide-body table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 18px 0;
    font-size: 13.5px;
    background: var(--hc-surface);
    border: 1px solid var(--hc-border);
    border-radius: 12px;
    overflow: hidden;
}
.hc-guide-body th, .hc-guide-body td { padding: 10px 14px; text-align: left; }
.hc-guide-body thead th {
    background: var(--hc-primary-50);
    color: var(--hc-text);
    font-weight: 700;
    font-size: 12.5px;
    letter-spacing: 0.3px;
}
.hc-guide-body tbody tr + tr td { border-top: 1px solid var(--hc-border); }
.hc-guide-body tbody tr:hover td { background: var(--hc-primary-50); }
.hc-guide-body blockquote {
    border-left: 3px solid var(--hc-primary);
    margin: 14px 0;
    padding: 8px 16px;
    border-radius: 0 10px 10px 0;
    background: var(--hc-primary-50);
    color: var(--hc-text-secondary);
}
.hc-guide-body code {
    font-size: 0.92em;
    padding: 2px 7px;
    border-radius: 6px;
    background: var(--hc-primary-50);
    color: var(--hc-primary);
}
/* 文档锚点：H2 可被目录跳转定位后留出粘性头部空间 */
.hc-guide-body h2[id] { scroll-margin-top: 96px; }

/* ============ 相关阅读 ============ */
.hc-related {
    margin-top: 44px;
    padding-top: 24px;
    border-top: 1px solid var(--hc-border);
}
.hc-related-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--hc-text);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.hc-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}
@media (max-width: 640px) { .hc-related-grid { grid-template-columns: 1fr; } }
.hc-related-card {
    display: block;
    text-decoration: none;
    background: var(--hc-surface);
    border: 1px solid var(--hc-border);
    border-radius: 13px;
    padding: 14px 16px;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.55;
    color: var(--hc-text-secondary);
    transition: border-color 0.16s ease, transform 0.16s ease;
}
.hc-related-card:hover {
    border-color: var(--cat, var(--hc-primary));
    color: var(--hc-text);
    transform: translateY(-2px);
}

/* ============ 通用内容卡（contact/member/about 模块） ============ */
.hc-cp-card {
    background: var(--hc-surface);
    border: 1px solid var(--hc-border);
    border-radius: 16px;
    padding: 24px 26px;
    box-shadow: 0 2px 10px rgba(30, 27, 46, 0.04);
}
html:not([data-theme="dark"]) .hc-cp-card { box-shadow: 0 2px 12px rgba(109, 40, 217, 0.05); }
.hc-cp-card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 800;
    color: var(--hc-text);
    margin-bottom: 10px;
}
.hc-cp-card-title .hc-cp-card-icon {
    flex: none;
    width: 36px;
    height: 36px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--hc-primary);
    background: var(--hc-primary-50);
}
.hc-cp-card-body { font-size: 14.5px; line-height: 1.85; color: var(--hc-text-secondary); }

/* 邮箱大卡（contact 主 CTA） */
.hc-contact-email {
    text-align: center;
    padding: 30px 26px;
    border: 1.5px solid var(--hc-primary-200, var(--hc-primary));
    box-shadow: 0 6px 22px rgba(124, 58, 237, 0.1);
}
.hc-contact-email .hc-cp-card-title { justify-content: center; margin-bottom: 14px; }
.hc-contact-mailto {
    display: inline-block;
    font-size: 21px;
    font-weight: 800;
    color: var(--hc-primary);
    text-decoration: none;
    letter-spacing: 0.2px;
    word-break: break-all;
    padding: 6px 10px;
    border-radius: 10px;
    transition: background 0.15s ease;
}
.hc-contact-mailto:hover { background: var(--hc-primary-50); }
.hc-contact-note { font-size: 13px; color: var(--hc-text-muted); margin-top: 12px; line-height: 1.75; }

/* 主按钮（contact 聊天入口等） */
.hc-cp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 11px;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    background: linear-gradient(135deg, var(--hc-primary), var(--hc-pink));
    color: var(--hc-on-brand);
    box-shadow: 0 8px 18px -8px rgba(124, 58, 237, 0.55);
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.hc-cp-btn:hover { transform: translateY(-1px); box-shadow: 0 12px 24px -8px rgba(124, 58, 237, 0.6); }

/* ============ 会员等级阶梯卡 ============ */
.hc-tier-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 12px;
    margin-bottom: 22px;
}
.hc-tier-card {
    position: relative;
    background: var(--hc-surface);
    border: 1px solid var(--hc-border);
    border-radius: 16px;
    padding: 20px 18px 16px;
    text-align: center;
    overflow: hidden;
}
.hc-tier-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--tier-grad, linear-gradient(90deg, var(--hc-primary), var(--hc-pink)));
}
.hc-tier-badge {
    width: 44px;
    height: 44px;
    margin: 0 auto 10px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--hc-primary);
    background: var(--hc-primary-50);
    border: 1.5px solid var(--hc-primary-100);
}
.hc-tier-name { font-size: 15px; font-weight: 800; color: var(--hc-text); }
.hc-tier-key { font-size: 11px; color: var(--hc-text-muted); margin-top: 2px; }
.hc-tier-line { margin: 12px 0 10px; border-top: 1px dashed var(--hc-border); }
.hc-tier-num { font-size: 12.5px; color: var(--hc-text-muted); line-height: 1.6; }
.hc-tier-off { font-size: 17px; font-weight: 800; color: var(--hc-primary); margin-top: 4px; }
/* 各档配色（与下拉徽章 hc-tier-* 同族） */
.hc-tier-card[data-tier="none"]  { --tier-grad: linear-gradient(90deg, #94A3B8, #CBD5E1); }
.hc-tier-card[data-tier="silver"]{ --tier-grad: linear-gradient(90deg, #94A3B8, #E2E8F0); }
.hc-tier-card[data-tier="gold"]  { --tier-grad: linear-gradient(90deg, #FBBF24, #FDE68A); }
.hc-tier-card[data-tier="black"] { --tier-grad: linear-gradient(90deg, #1E1B2E, #7C3AED); }
.hc-tier-card[data-tier="gold"] .hc-tier-badge { color: #B45309; background: linear-gradient(135deg, #FDE68A, #FBBF24); border-color: rgba(180, 130, 10, 0.35); }
.hc-tier-card[data-tier="black"] .hc-tier-badge { color: #FDE68A; background: linear-gradient(135deg, #1E1B2E, #4C1D95); border-color: rgba(124, 58, 237, 0.5); }

/* ============ FAQ 手风琴增强（复用 hc-faq-item 结构，视觉升级） ============ */
.hc-faq-item {
    background: var(--hc-surface);
    border: 1px solid var(--hc-border);
    border-radius: 15px;
    margin-bottom: 12px;
    box-shadow: 0 2px 10px rgba(30, 27, 46, 0.04);
    overflow: hidden;
    transition: border-color 0.16s ease;
}
.hc-faq-item:hover { border-color: var(--hc-primary-200, var(--hc-primary)); }
.hc-faq-item[open] { border-color: var(--hc-primary-200, var(--hc-primary)); box-shadow: 0 6px 18px -8px rgba(124, 58, 237, 0.18); }
.hc-faq-item summary {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    cursor: pointer;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--hc-text);
    list-style: none;
    user-select: none;
}
.hc-faq-item summary::-webkit-details-marker { display: none; }
.hc-faq-q {
    flex: none;
    width: 32px;
    height: 23px;
    border-radius: 7px;
    background: linear-gradient(135deg, var(--hc-primary), var(--hc-pink));
    color: var(--hc-on-brand);
    font-size: 11.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.5px;
}
.hc-faq-arrow { margin-left: auto; color: var(--hc-primary-200, var(--hc-primary)); font-size: 12px; transition: transform 0.18s ease; }
.hc-faq-item[open] .hc-faq-arrow { transform: rotate(180deg); }
.hc-faq-a { padding: 0 18px 17px 62px; font-size: 13.5px; line-height: 1.9; color: var(--hc-text-secondary); }

/* ============ CTA 商品卡（guide 详情带货位，class 化自原内联样式） ============ */
a.hc-guide-cta {
    display: block;
    text-decoration: none;
    margin: 20px 0;
    background: var(--hc-surface);
    border: 1.5px solid var(--hc-primary-200, var(--hc-primary));
    border-radius: 16px;
    padding: 16px 18px;
    box-shadow: 0 4px 16px rgba(30, 27, 46, 0.06);
    transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}
a.hc-guide-cta:hover {
    transform: translateY(-2px);
    border-color: var(--hc-primary);
    box-shadow: 0 10px 24px -10px rgba(124, 58, 237, 0.3);
}
.hc-guide-cta-label { font-size: 12px; font-weight: 700; color: var(--hc-primary); margin-bottom: 7px; }
.hc-guide-cta-row { display: flex; align-items: center; gap: 14px; }
.hc-guide-cta-info { flex: 1; min-width: 0; }
.hc-guide-cta-name { font-size: 15.5px; font-weight: 800; color: var(--hc-text); }
.hc-guide-cta-sub { font-size: 12.5px; color: var(--hc-text-muted); margin-top: 3px; }
.hc-guide-cta-btn {
    flex: none;
    padding: 10px 20px;
    border-radius: 11px;
    font-size: 13.5px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--hc-primary), var(--hc-pink));
    color: var(--hc-on-brand);
    box-shadow: 0 8px 18px -8px rgba(124, 58, 237, 0.55);
}

/* ============ 页脚导流条（内容页通用结尾） ============ */
.hc-cp-foot {
    text-align: center;
    margin-top: 34px;
    padding-top: 22px;
    border-top: 1px dashed var(--hc-border);
    font-size: 12.5px;
    color: var(--hc-text-muted);
}
.hc-cp-foot a { color: var(--hc-primary); font-weight: 600; text-decoration: none; }
.hc-cp-foot a:hover { text-decoration: underline; }

/* ============ 滚动进场错峰 ============ */
html.hc-motion .hc-cp [data-reveal] { transition-delay: calc(var(--reveal-i, 0) * 40ms); }
