/**
 * 锐澜化工原料检测中心 - 主样式表
 * 全部使用 .hg- 前缀命名空间
 * 双栏杂志式布局（本站独有）
 *
 * @package TIC_HuagongYuanliaoJianCe
 * @version 2.0
 */

/* ============================================================
   CSS 变量
   ============================================================ */
:root {
    --hg-purple: #4A235A;
    --hg-purple-dark: #3D1548;
    --hg-indigo: #7B68EE;
    --hg-indigo-light: #9B8BFF;
    --hg-silver: #C0C0C0;
    --hg-silver-light: #E0E0E0;
    --hg-light: #F5F6FA;
    --hg-light-bg: #FAFBFC;
    --hg-mint: #00C49A;
    --hg-mint-dark: #00A682;
    --hg-white: #FFFFFF;
    --hg-text: #2D3436;
    --hg-text-light: #636E72;
    --hg-text-muted: #B2BEC3;
    --hg-border: #DFE6E9;
    --hg-border-light: #EEEFF2;
    --hg-danger: #E91E63;
    --hg-warning: #FF9800;
    --hg-success: #00C49A;
    --hg-shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --hg-shadow: 0 2px 12px rgba(0,0,0,0.08);
    --hg-shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --hg-radius-sm: 4px;
    --hg-radius: 8px;
    --hg-radius-lg: 16px;
    --hg-radius-xl: 24px;
    --hg-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --hg-font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --hg-max-width: 1240px;
    --hg-content-ratio: 70%;
    --hg-sidebar-ratio: 30%;
}

/* ============================================================
   Reset & Base
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--hg-font);
    font-size: 16px;
    line-height: 1.7;
    color: var(--hg-text);
    background: var(--hg-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--hg-indigo);
    text-decoration: none;
    transition: color var(--hg-transition);
}
a:hover {
    color: var(--hg-purple);
}
a:focus-visible {
    outline: 2px solid var(--hg-indigo);
    outline-offset: 2px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Screen Reader Only */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* Skip Link */
.hg-skip-link {
    background: var(--hg-purple);
    color: var(--hg-white) !important;
    font-size: 14px;
    left: 50%;
    padding: 8px 20px;
    position: fixed;
    top: -100px;
    transform: translateX(-50%);
    z-index: 100000;
    border-radius: 0 0 var(--hg-radius) var(--hg-radius);
    transition: top 0.2s;
}
.hg-skip-link:focus {
    top: 0;
}

/* ============================================================
   Container
   ============================================================ */
.hg-container {
    width: 100%;
    max-width: var(--hg-max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================================
   Header - 清爽白底顶栏
   ============================================================ */
.hg-header {
    background: var(--hg-white);
    border-bottom: 1px solid var(--hg-border-light);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--hg-shadow-sm);
}

.hg-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    gap: 24px;
}

/* Logo */
.hg-logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--hg-purple);
    flex-shrink: 0;
}

.hg-logo-icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
}

.hg-logo-text {
    display: flex;
    flex-direction: column;
}

.hg-logo-site-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--hg-purple);
    line-height: 1.3;
    white-space: nowrap;
}

.hg-logo-tagline {
    font-size: 11px;
    color: var(--hg-indigo);
    font-weight: 500;
    white-space: nowrap;
}

/* 主导航 */
.hg-main-nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.hg-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 4px;
}

.hg-menu li {
    position: relative;
}

.hg-menu a {
    display: block;
    padding: 10px 14px;
    color: var(--hg-text);
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--hg-radius-sm);
    transition: all var(--hg-transition);
    white-space: nowrap;
}

.hg-menu a:hover,
.hg-menu .current-menu-item > a,
.hg-menu .current_page_item > a {
    color: var(--hg-indigo);
    background: rgba(123, 104, 238, 0.06);
}

.hg-menu .current-menu-item > a {
    color: var(--hg-purple);
    font-weight: 600;
}

/* 下拉菜单 */
.hg-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--hg-white);
    border: 1px solid var(--hg-border);
    border-radius: var(--hg-radius);
    box-shadow: var(--hg-shadow-lg);
    padding: 8px 0;
    z-index: 100;
}

.hg-menu li:hover > .sub-menu {
    display: block;
}

.hg-menu .sub-menu a {
    padding: 8px 16px;
    font-size: 13px;
    border-radius: 0;
}

/* Header Actions */
.hg-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* CTA 按钮 */
.hg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--hg-font);
    border: 2px solid transparent;
    border-radius: var(--hg-radius);
    cursor: pointer;
    transition: all var(--hg-transition);
    text-decoration: none;
    line-height: 1.4;
    white-space: nowrap;
}

.hg-btn-mint {
    background: var(--hg-mint);
    color: var(--hg-white);
    border-color: var(--hg-mint);
}
.hg-btn-mint:hover {
    background: var(--hg-mint-dark);
    border-color: var(--hg-mint-dark);
    color: var(--hg-white);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 196, 154, 0.3);
}

.hg-btn-outline {
    background: transparent;
    color: var(--hg-indigo);
    border-color: var(--hg-indigo);
}
.hg-btn-outline:hover {
    background: var(--hg-indigo);
    color: var(--hg-white);
}

.hg-btn-white {
    background: var(--hg-white);
    color: var(--hg-purple);
    border-color: var(--hg-white);
}
.hg-btn-white:hover {
    background: rgba(255, 255, 255, 0.9);
}

.hg-btn-cta {
    background: var(--hg-mint);
    color: var(--hg-white) !important;
    border-radius: var(--hg-radius);
    font-weight: 600;
    padding: 8px 18px;
    font-size: 13px;
}
.hg-btn-cta:hover {
    background: var(--hg-mint-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 196, 154, 0.3);
}

.hg-btn-lg {
    padding: 14px 32px;
    font-size: 16px;
    border-radius: var(--hg-radius);
}

.hg-btn-sm {
    padding: 6px 14px;
    font-size: 12px;
}

.hg-btn-xs {
    padding: 4px 10px;
    font-size: 12px;
}

/* ============================================================
   搜索切换
   ============================================================ */
.hg-search-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--hg-border);
    background: var(--hg-light);
    border-radius: var(--hg-radius);
    cursor: pointer;
    color: var(--hg-text-light);
    transition: all var(--hg-transition);
}

.hg-search-toggle:hover {
    background: var(--hg-indigo);
    border-color: var(--hg-indigo);
    color: var(--hg-white);
}

.hg-search-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    background: var(--hg-white);
    border-top: 1px solid var(--hg-border-light);
}

.hg-search-panel.hg-active {
    max-height: 200px;
    padding: 20px 0;
}

.hg-search-form {
    display: flex;
    align-items: center;
    gap: 0;
}

.hg-search-input {
    flex: 1;
    height: 48px;
    padding: 0 16px;
    border: 2px solid var(--hg-border);
    border-right: 0;
    border-radius: var(--hg-radius) 0 0 var(--hg-radius);
    font-size: 15px;
    font-family: var(--hg-font);
    outline: none;
    transition: border-color var(--hg-transition);
}

.hg-search-input:focus {
    border-color: var(--hg-indigo);
}

.hg-search-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    width: 56px;
    border: none;
    background: var(--hg-light);
    border-radius: 0 var(--hg-radius) var(--hg-radius) 0;
    cursor: pointer;
    transition: background var(--hg-transition);
}

.hg-search-submit:hover {
    background: var(--hg-indigo);
}
.hg-search-submit:hover svg {
    stroke: var(--hg-white);
}

/* 热门搜索标签 */
.hg-search-hot {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.hg-search-hot-label {
    font-size: 12px;
    color: var(--hg-text-muted);
}

.hg-search-tag {
    display: inline-block;
    padding: 4px 12px;
    font-size: 12px;
    background: var(--hg-light);
    border-radius: 20px;
    color: var(--hg-text-light);
    transition: all var(--hg-transition);
}

.hg-search-tag:hover {
    background: var(--hg-indigo);
    color: var(--hg-white);
}

/* 移动端菜单切换 */
.hg-mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 6px;
}

.hg-mobile-bar {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--hg-purple);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.hg-mobile-toggle.hg-active .hg-mobile-bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hg-mobile-toggle.hg-active .hg-mobile-bar:nth-child(2) {
    opacity: 0;
}
.hg-mobile-toggle.hg-active .hg-mobile-bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* 移动端菜单面板 */
.hg-mobile-menu {
    display: none;
    background: var(--hg-white);
    border-top: 1px solid var(--hg-border-light);
    padding: 16px 0;
}

.hg-mobile-menu.hg-active {
    display: block;
}

.hg-mobile-nav {
    list-style: none;
}

.hg-mobile-nav a {
    display: block;
    padding: 12px 24px;
    color: var(--hg-text);
    font-size: 15px;
    font-weight: 500;
    border-bottom: 1px solid var(--hg-border-light);
    transition: all var(--hg-transition);
}

.hg-mobile-nav a:hover,
.hg-mobile-nav .current-menu-item > a {
    color: var(--hg-indigo);
    background: rgba(123, 104, 238, 0.04);
}

.hg-mobile-contact {
    padding: 16px 24px;
}

.hg-mobile-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--hg-mint);
    font-weight: 600;
    font-size: 15px;
}

/* ============================================================
   Site Wrapper & Main
   ============================================================ */
.hg-site-wrapper {
    min-height: calc(100vh - 70px);
    display: flex;
    flex-direction: column;
}

.hg-main {
    flex: 1;
}

/* ============================================================
   Hero 区 - 紫色渐变背景
   ============================================================ */
.hg-hero {
    position: relative;
    background: linear-gradient(135deg, #4A235A 0%, #3D1548 30%, #2C1A4D 60%, #1B0A3E 100%);
    padding: 80px 0;
    overflow: hidden;
    min-height: 560px;
    display: flex;
    align-items: center;
}

.hg-hero-bg-decor {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hg-molecule-chain {
    width: 100%;
    height: 100%;
}

.hg-hero-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
}

.hg-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.hg-hero-badge-dot {
    width: 8px;
    height: 8px;
    background: var(--hg-mint);
    border-radius: 50%;
    animation: hgPulse 2s infinite;
}

@keyframes hgPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hg-hero-title {
    font-size: 48px;
    font-weight: 800;
    color: var(--hg-white);
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.hg-hero-desc {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    margin-bottom: 32px;
}

/* Hero 搜索框 */
.hg-hero-search {
    margin-bottom: 28px;
}

.hg-hero-search-wrapper {
    display: flex;
    align-items: center;
    background: var(--hg-white);
    border-radius: var(--hg-radius);
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
    transition: box-shadow var(--hg-transition);
}

.hg-hero-search-wrapper:focus-within {
    box-shadow: 0 8px 40px rgba(123, 104, 238, 0.4);
}

.hg-hero-search-icon {
    margin-left: 16px;
    flex-shrink: 0;
}

.hg-hero-search-input {
    flex: 1;
    height: 54px;
    padding: 0 14px;
    border: none;
    font-size: 15px;
    font-family: var(--hg-font);
    outline: none;
    color: var(--hg-text);
}

.hg-hero-search-input::placeholder {
    color: var(--hg-text-muted);
}

.hg-hero-search-btn {
    height: 54px;
    padding: 0 28px;
    border-radius: 0;
    font-size: 15px;
    font-weight: 600;
}

/* Hero CTA */
.hg-hero-cta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 48px;
}

/* Hero 数据统计 */
.hg-hero-stats {
    display: flex;
    gap: 40px;
}

.hg-hero-stat {
    display: flex;
    flex-direction: column;
}

.hg-hero-stat-num {
    font-size: 32px;
    font-weight: 800;
    color: var(--hg-mint);
    line-height: 1.2;
}

.hg-hero-stat-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 4px;
}

/* ============================================================
   分类导航 - 化学式图标导航条
   ============================================================ */
.hg-category-nav {
    padding: 0;
    margin-top: -32px;
    position: relative;
    z-index: 2;
}

.hg-category-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.hg-category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 16px;
    background: var(--hg-white);
    border-radius: var(--hg-radius);
    box-shadow: var(--hg-shadow);
    transition: all var(--hg-transition);
    border: 2px solid transparent;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.hg-category-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--cat-color, var(--hg-indigo));
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

.hg-category-card:hover {
    border-color: var(--cat-color, var(--hg-mint));
    transform: translateY(-4px);
    box-shadow: var(--hg-shadow-lg);
}

.hg-category-card:hover::before {
    transform: scaleX(1);
}

.hg-category-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--cat-color, var(--hg-indigo)) 10%, transparent);
    color: var(--cat-color, var(--hg-indigo));
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 12px;
    transition: all var(--hg-transition);
}

.hg-category-card:hover .hg-category-icon {
    background: var(--cat-color, var(--hg-indigo));
    color: var(--hg-white);
}

.hg-category-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--hg-text);
    margin-bottom: 6px;
    transition: color var(--hg-transition);
}

.hg-category-card:hover .hg-category-name {
    color: var(--cat-color, var(--hg-indigo));
}

.hg-category-desc {
    font-size: 11px;
    color: var(--hg-text-light);
    line-height: 1.5;
}

/* ============================================================
   Section 通用
   ============================================================ */
.hg-section {
    padding: 72px 0;
}

.hg-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 12px;
}

.hg-section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--hg-purple);
    line-height: 1.3;
}

.hg-section-desc {
    font-size: 15px;
    color: var(--hg-text-light);
    flex-basis: 100%;
    margin-top: 4px;
}

.hg-section-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--hg-indigo);
    white-space: nowrap;
    transition: gap var(--hg-transition);
}

.hg-section-more:hover {
    gap: 10px;
    color: var(--hg-purple);
}

/* ============================================================
   杂志式双栏布局 - 本站独有
   ============================================================ */
.hg-magazine-row {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

.hg-content {
    flex: 0 0 68%;
    max-width: 68%;
}

.hg-sidebar {
    flex: 0 0 calc(32% - 32px);
    max-width: calc(32% - 32px);
    position: sticky;
    top: 90px;
}

/* ============================================================
   服务卡片 - 图左文右
   ============================================================ */
.hg-service-card {
    display: flex;
    background: var(--hg-white);
    border-radius: var(--hg-radius);
    overflow: hidden;
    box-shadow: var(--hg-shadow-sm);
    margin-bottom: 20px;
    transition: box-shadow var(--hg-transition), transform var(--hg-transition);
    border: 1px solid var(--hg-border-light);
}

.hg-service-card:hover {
    box-shadow: var(--hg-shadow);
    transform: translateY(-2px);
}

.hg-service-card-img {
    flex: 0 0 260px;
    position: relative;
    overflow: hidden;
}

.hg-service-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hg-service-img-placeholder {
    width: 100%;
    height: 100%;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--hg-light), #EEF0F4);
}

.hg-service-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    background: var(--hg-indigo);
    color: var(--hg-white);
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
    z-index: 1;
}

.hg-service-card-body {
    flex: 1;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hg-service-card-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
}

.hg-service-card-title a {
    color: var(--hg-purple);
}

.hg-service-card-title a:hover {
    color: var(--hg-indigo);
}

.hg-service-card-excerpt {
    font-size: 14px;
    color: var(--hg-text-light);
    line-height: 1.7;
    margin-bottom: 16px;
    flex: 1;
}

.hg-service-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hg-service-card-date {
    font-size: 12px;
    color: var(--hg-text-muted);
}

.hg-service-card-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
    color: var(--hg-mint);
    transition: gap var(--hg-transition);
}

.hg-service-card-link:hover {
    gap: 8px;
    color: var(--hg-mint-dark);
}

/* ============================================================
   侧边栏 Widget 通用
   ============================================================ */
.hg-widget {
    background: var(--hg-white);
    border-radius: var(--hg-radius);
    padding: 24px;
    margin-bottom: 20px;
    border: 1px solid var(--hg-border-light);
    box-shadow: var(--hg-shadow-sm);
}

.hg-widget-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--hg-purple);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--hg-border-light);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 服务目录 Widget */
.hg-service-menu {
    list-style: none;
}

.hg-service-menu li {
    border-bottom: 1px dashed var(--hg-border-light);
}

.hg-service-menu li:last-child {
    border-bottom: none;
}

.hg-service-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    color: var(--hg-text);
    font-size: 14px;
    font-weight: 500;
    transition: all var(--hg-transition);
}

.hg-service-menu a:hover {
    color: var(--hg-indigo);
    padding-left: 6px;
}

.hg-sm-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: rgba(123, 104, 238, 0.1);
    color: var(--hg-indigo);
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

/* 咨询卡片 */
.hg-consult-card {
    background: linear-gradient(135deg, var(--hg-indigo), var(--hg-purple));
    border-radius: var(--hg-radius);
    padding: 24px;
    color: var(--hg-white);
    text-align: center;
}

.hg-consult-card svg {
    margin: 0 auto 12px;
}

.hg-consult-card h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.hg-consult-card p {
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 16px;
    line-height: 1.6;
}

/* ============================================================
   检测项目表格
   ============================================================ */
.hg-tests-section {
    background: var(--hg-light);
}

.hg-tests-table-wrap {
    background: var(--hg-white);
    border-radius: var(--hg-radius);
    overflow: hidden;
    box-shadow: var(--hg-shadow-sm);
    border: 1px solid var(--hg-border-light);
}

.hg-tests-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.hg-tests-table th {
    background: var(--hg-purple);
    color: var(--hg-white);
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
}

.hg-tests-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--hg-border-light);
    color: var(--hg-text);
}

.hg-tests-table tr:last-child td {
    border-bottom: none;
}

.hg-tests-table tr:hover td {
    background: rgba(123, 104, 238, 0.03);
}

.hg-tests-name {
    font-weight: 500;
}

.hg-tests-icon {
    color: var(--hg-mint);
    margin-right: 8px;
}

.hg-tests-standard {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(123, 104, 238, 0.08);
    border-radius: 4px;
    font-size: 12px;
    font-family: 'Courier New', monospace;
    color: var(--hg-indigo);
}

.hg-tests-price {
    font-weight: 700;
    color: var(--hg-mint);
}

.hg-tests-note {
    margin-top: 16px;
    font-size: 12px;
    color: var(--hg-text-muted);
}

/* ============================================================
   热门文章 Widget
   ============================================================ */
.hg-popular-list {
    list-style: none;
}

.hg-popular-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--hg-border-light);
}

.hg-popular-item:last-child {
    border-bottom: none;
}

.hg-popular-rank {
    font-size: 18px;
    font-weight: 800;
    color: var(--hg-indigo);
    line-height: 1;
    flex-shrink: 0;
    opacity: 0.8;
}

.hg-popular-item:first-child .hg-popular-rank {
    color: var(--hg-mint);
}

.hg-popular-info {
    flex: 1;
    min-width: 0;
}

.hg-popular-title {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--hg-text);
    line-height: 1.5;
    margin-bottom: 4px;
    transition: color var(--hg-transition);
}

.hg-popular-title:hover {
    color: var(--hg-indigo);
}

.hg-popular-date {
    font-size: 11px;
    color: var(--hg-text-muted);
}

/* ============================================================
   文章列表 - 大图+列表混排
   ============================================================ */
.hg-posts-section {
    background: var(--hg-white);
}

.hg-post-card {
    background: var(--hg-white);
    margin-bottom: 24px;
}

.hg-post-card-featured {
    border: 1px solid var(--hg-border-light);
    border-radius: var(--hg-radius);
    overflow: hidden;
    box-shadow: var(--hg-shadow-sm);
}

.hg-post-card-featured .hg-post-card-img {
    position: relative;
    overflow: hidden;
}

.hg-post-thumb {
    width: 100%;
    height: auto;
}

.hg-post-img-placeholder {
    width: 100%;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--hg-light), #EEF0F4);
}

.hg-post-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 5px 14px;
    background: var(--hg-indigo);
    color: var(--hg-white);
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
    z-index: 1;
}

.hg-post-card-featured .hg-post-card-body {
    padding: 20px 24px;
}

.hg-post-card-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 10px;
}

.hg-post-card-title a {
    color: var(--hg-purple);
}

.hg-post-card-title a:hover {
    color: var(--hg-indigo);
}

.hg-post-card-excerpt {
    font-size: 14px;
    color: var(--hg-text-light);
    line-height: 1.7;
    margin-bottom: 16px;
}

.hg-post-card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: var(--hg-text-light);
}

.hg-post-card-date {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.hg-post-card-reading {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* 列表文章 */
.hg-post-card-list {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--hg-border-light);
    align-items: flex-start;
}

.hg-post-card-list:last-child {
    border-bottom: none;
}

.hg-post-card-list .hg-post-card-img {
    flex: 0 0 120px;
    border-radius: var(--hg-radius-sm);
    overflow: hidden;
}

.hg-post-thumb-sm {
    width: 120px;
    height: 80px;
    object-fit: cover;
}

.hg-post-img-placeholder-sm {
    width: 120px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--hg-light);
    border-radius: var(--hg-radius-sm);
}

.hg-post-card-list .hg-post-card-body {
    flex: 1;
    min-width: 0;
}

.hg-post-card-list .hg-post-card-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
}

.hg-post-card-meta {
    gap: 12px;
    font-size: 12px;
}

.hg-post-card-cat {
    color: var(--hg-indigo);
    font-weight: 500;
}

/* ============================================================
   标签云
   ============================================================ */
.hg-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hg-tag {
    display: inline-block;
    padding: 5px 14px;
    background: var(--hg-light);
    color: var(--hg-text-light);
    font-size: 12px;
    border-radius: 20px;
    transition: all var(--hg-transition);
    border: 1px solid transparent;
}

.hg-tag:hover {
    background: var(--hg-indigo);
    color: var(--hg-white);
    border-color: var(--hg-indigo);
}

/* 推荐文章 */
.hg-featured-list {
    list-style: none;
}

.hg-featured-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--hg-border-light);
}

.hg-featured-item:last-child {
    border-bottom: none;
}

.hg-featured-img {
    flex: 0 0 60px;
    border-radius: var(--hg-radius-sm);
    overflow: hidden;
}

.hg-featured-img img {
    width: 60px;
    height: 60px;
    object-fit: cover;
}

.hg-featured-info {
    flex: 1;
    min-width: 0;
}

.hg-featured-title {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--hg-text);
    line-height: 1.5;
    margin-bottom: 4px;
}

.hg-featured-title:hover {
    color: var(--hg-indigo);
}

.hg-featured-date {
    font-size: 11px;
    color: var(--hg-text-muted);
}

/* ============================================================
   合作伙伴
   ============================================================ */
.hg-partners-section {
    background: var(--hg-light);
}

.hg-partners-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.hg-partner-card {
    background: var(--hg-white);
    border-radius: var(--hg-radius);
    padding: 24px 16px;
    text-align: center;
    border: 1px solid var(--hg-border-light);
    transition: all var(--hg-transition);
}

.hg-partner-card:hover {
    border-color: var(--hg-indigo);
    box-shadow: var(--hg-shadow);
}

.hg-partner-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.hg-partner-abbr {
    font-size: 20px;
    font-weight: 800;
    color: var(--hg-indigo);
    letter-spacing: 0.05em;
}

.hg-partner-name {
    font-size: 12px;
    color: var(--hg-text-light);
}

/* ============================================================
   CTA Banner
   ============================================================ */
.hg-cta-banner {
    background: linear-gradient(135deg, #4A235A 0%, #3D1548 50%, #2C1A4D 100%);
    padding: 64px 0;
    position: relative;
    overflow: hidden;
}

.hg-cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hg-cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
}

.hg-cta-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--hg-white);
    margin-bottom: 16px;
}

.hg-cta-desc {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 32px;
    line-height: 1.7;
}

.hg-cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.hg-cta-phone {
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
}

.hg-cta-phone a {
    color: var(--hg-mint);
    font-weight: 700;
    font-size: 16px;
}

/* ============================================================
   文章详情页
   ============================================================ */
.hg-article {
    background: var(--hg-white);
    border-radius: var(--hg-radius);
    padding: 40px;
    border: 1px solid var(--hg-border-light);
    margin-bottom: 40px;
}

.hg-article-header {
    margin-bottom: 32px;
}

.hg-article-cat {
    margin-bottom: 12px;
}

.hg-article-cat-link {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(123, 104, 238, 0.1);
    color: var(--hg-indigo);
    font-size: 13px;
    font-weight: 600;
    border-radius: 4px;
}

.hg-article-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--hg-purple);
    line-height: 1.3;
    margin-bottom: 16px;
}

.hg-article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 13px;
    color: var(--hg-text-light);
    flex-wrap: wrap;
}

.hg-article-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.hg-article-thumbnail {
    margin: 0 -40px 32px;
    overflow: hidden;
}

.hg-article-featured-img {
    width: 100%;
    height: auto;
}

.hg-article-content {
    font-size: 16px;
    line-height: 1.85;
    color: var(--hg-text);
}

.hg-article-content h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--hg-purple);
    margin: 40px 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--hg-border-light);
}

.hg-article-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--hg-indigo);
    margin: 28px 0 12px;
}

.hg-article-content p {
    margin-bottom: 20px;
}

.hg-article-content ul,
.hg-article-content ol {
    margin: 0 0 20px 24px;
}

.hg-article-content li {
    margin-bottom: 8px;
}

.hg-article-content blockquote {
    margin: 24px 0;
    padding: 20px 24px;
    background: var(--hg-light);
    border-left: 4px solid var(--hg-indigo);
    border-radius: 0 var(--hg-radius-sm) var(--hg-radius-sm) 0;
}

.hg-article-content pre {
    background: #1E1E2E;
    color: #CDD6F4;
    padding: 20px;
    border-radius: var(--hg-radius);
    overflow-x: auto;
    font-size: 14px;
    margin-bottom: 20px;
}

.hg-article-content code {
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.9em;
    background: var(--hg-light);
    padding: 2px 6px;
    border-radius: 3px;
}

.hg-article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 14px;
}

.hg-article-content th {
    background: var(--hg-purple);
    color: var(--hg-white);
    padding: 12px 16px;
    text-align: left;
}

.hg-article-content td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--hg-border-light);
}

/* TOC 目录 */
.hg-toc {
    background: var(--hg-light);
    border: 1px solid var(--hg-border-light);
    border-radius: var(--hg-radius);
    padding: 24px;
    margin-bottom: 32px;
}

.hg-toc-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--hg-purple);
    margin-bottom: 12px;
}

.hg-toc-list {
    list-style: none;
}

.hg-toc-item {
    margin-bottom: 8px;
}

.hg-toc-item a {
    display: block;
    padding: 6px 12px;
    color: var(--hg-text-light);
    font-size: 14px;
    border-radius: 4px;
    transition: all var(--hg-transition);
    border-left: 3px solid transparent;
}

.hg-toc-item a:hover,
.hg-toc-item.hg-active a {
    color: var(--hg-indigo);
    background: rgba(123, 104, 238, 0.06);
    border-left-color: var(--hg-indigo);
}

.hg-toc-sub {
    padding-left: 20px;
}

.hg-toc-sub a {
    font-size: 13px;
}

/* 文章标签 */
.hg-article-tags {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--hg-border-light);
}

.hg-article-tags-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--hg-text);
    margin-right: 8px;
}

.hg-article-tags a {
    display: inline-block;
    padding: 3px 12px;
    background: var(--hg-light);
    color: var(--hg-text-light);
    font-size: 12px;
    border-radius: 20px;
    margin: 2px;
    transition: all var(--hg-transition);
}

.hg-article-tags a:hover {
    background: var(--hg-indigo);
    color: var(--hg-white);
}

/* 文章导航 */
.hg-article-nav {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--hg-border-light);
}

.hg-article-nav-inner {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.hg-article-nav-prev,
.hg-article-nav-next {
    flex: 1;
}

.hg-article-nav-next {
    text-align: right;
}

.hg-article-nav-label {
    display: block;
    font-size: 12px;
    color: var(--hg-text-muted);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hg-article-nav-inner a {
    font-size: 14px;
    font-weight: 500;
    color: var(--hg-text);
    transition: color var(--hg-transition);
}

.hg-article-nav-inner a:hover {
    color: var(--hg-indigo);
}

/* 相关文章 */
.hg-related-posts {
    margin-top: 48px;
}

.hg-related-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--hg-purple);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--hg-border-light);
}

.hg-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.hg-related-card {
    background: var(--hg-white);
    border: 1px solid var(--hg-border-light);
    border-radius: var(--hg-radius);
    overflow: hidden;
    transition: box-shadow var(--hg-transition);
}

.hg-related-card:hover {
    box-shadow: var(--hg-shadow);
}

.hg-related-img img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.hg-related-info {
    padding: 12px 16px;
}

.hg-related-card-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 6px;
}

.hg-related-card-title a {
    color: var(--hg-text);
}

.hg-related-card-title a:hover {
    color: var(--hg-indigo);
}

.hg-related-date {
    font-size: 11px;
    color: var(--hg-text-muted);
}

/* ============================================================
   页面头部
   ============================================================ */
.hg-page-header {
    background: var(--hg-white);
    padding: 24px 0;
    border-bottom: 1px solid var(--hg-border-light);
    margin-bottom: 32px;
}

.hg-page-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--hg-purple);
    margin-top: 8px;
}

.hg-page-article {
    background: var(--hg-white);
    border-radius: var(--hg-radius);
    padding: 40px;
    border: 1px solid var(--hg-border-light);
}

.hg-page-thumbnail {
    margin: -40px -40px 32px;
}

.hg-page-featured-img {
    width: 100%;
    height: auto;
}

.hg-page-content {
    font-size: 16px;
    line-height: 1.85;
}

/* ============================================================
   面包屑
   ============================================================ */
.hg-breadcrumb {
    font-size: 13px;
    color: var(--hg-text-light);
}

.hg-breadcrumb a {
    color: var(--hg-text-muted);
}

.hg-breadcrumb a:hover {
    color: var(--hg-indigo);
}

.hg-breadcrumb-sep {
    margin: 0 6px;
    color: var(--hg-text-muted);
}

.hg-breadcrumb-current {
    color: var(--hg-indigo);
    font-weight: 500;
}

/* ============================================================
   归档页
   ============================================================ */
.hg-archive-header {
    margin-top: 12px;
}

.hg-archive-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--hg-purple);
}

.hg-archive-desc {
    font-size: 14px;
    color: var(--hg-text-light);
    margin-top: 8px;
}

.hg-archive-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hg-archive-card {
    display: flex;
    background: var(--hg-white);
    border-radius: var(--hg-radius);
    overflow: hidden;
    border: 1px solid var(--hg-border-light);
    transition: box-shadow var(--hg-transition);
}

.hg-archive-card:hover {
    box-shadow: var(--hg-shadow);
}

.hg-archive-card-featured {
    flex-direction: column;
}

.hg-archive-card-featured .hg-archive-card-img {
    height: 280px;
}

.hg-archive-card-img {
    position: relative;
    overflow: hidden;
    background: var(--hg-light);
}

.hg-archive-card:not(.hg-archive-card-featured) .hg-archive-card-img {
    flex: 0 0 180px;
}

.hg-archive-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hg-archive-img-placeholder {
    width: 100%;
    height: 100%;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--hg-light), #EEF0F4);
}

.hg-archive-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    background: var(--hg-indigo);
    color: var(--hg-white);
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
    z-index: 1;
}

.hg-archive-card-body {
    flex: 1;
    padding: 24px;
}

.hg-archive-card-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
}

.hg-archive-card-title a {
    color: var(--hg-purple);
}

.hg-archive-card-title a:hover {
    color: var(--hg-indigo);
}

.hg-archive-card-excerpt {
    font-size: 14px;
    color: var(--hg-text-light);
    line-height: 1.7;
    margin-bottom: 16px;
}

.hg-archive-card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 12px;
    color: var(--hg-text-light);
}

.hg-archive-card-cat {
    color: var(--hg-indigo);
    font-weight: 500;
}

/* 分类目录 */
.hg-cat-list {
    list-style: none;
}

.hg-cat-item a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    color: var(--hg-text);
    font-size: 14px;
    border-bottom: 1px dashed var(--hg-border-light);
    transition: color var(--hg-transition);
}

.hg-cat-item:last-child a {
    border-bottom: none;
}

.hg-cat-item a:hover,
.hg-cat-active a {
    color: var(--hg-indigo);
    font-weight: 600;
}

.hg-cat-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    background: var(--hg-light);
    color: var(--hg-text-muted);
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    padding: 0 8px;
}

.hg-cat-active .hg-cat-count {
    background: var(--hg-indigo);
    color: var(--hg-white);
}

/* ============================================================
   搜索结果页
   ============================================================ */
.hg-search-header {
    margin-top: 12px;
}

.hg-search-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--hg-purple);
}

.hg-search-query {
    color: var(--hg-indigo);
}

.hg-search-count {
    font-size: 14px;
    color: var(--hg-text-light);
    margin: 8px 0 20px;
}

.hg-search-again {
    margin-bottom: 24px;
}

.hg-search-again-wrapper {
    display: flex;
    max-width: 520px;
    border-radius: var(--hg-radius);
    overflow: hidden;
    border: 2px solid var(--hg-border);
}

.hg-search-again-wrapper:focus-within {
    border-color: var(--hg-indigo);
}

.hg-search-again-input {
    flex: 1;
    height: 44px;
    padding: 0 16px;
    border: none;
    font-size: 14px;
    font-family: var(--hg-font);
    outline: none;
}

.hg-search-again-wrapper .hg-btn {
    border-radius: 0;
}

.hg-search-card {
    display: flex;
    gap: 16px;
    background: var(--hg-white);
    padding: 20px;
    border-radius: var(--hg-radius);
    margin-bottom: 16px;
    border: 1px solid var(--hg-border-light);
    transition: box-shadow var(--hg-transition);
}

.hg-search-card:hover {
    box-shadow: var(--hg-shadow);
}

.hg-search-card-img {
    flex: 0 0 100px;
    border-radius: var(--hg-radius-sm);
    overflow: hidden;
}

.hg-search-thumb {
    width: 100px;
    height: 70px;
    object-fit: cover;
}

.hg-search-img-placeholder {
    width: 100px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--hg-light);
}

.hg-search-card-body {
    flex: 1;
    min-width: 0;
}

.hg-search-card-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}

.hg-search-card-title a {
    color: var(--hg-purple);
}

.hg-search-card-title a:hover {
    color: var(--hg-indigo);
}

.hg-search-card-excerpt {
    font-size: 13px;
    color: var(--hg-text-light);
    line-height: 1.6;
    margin-bottom: 8px;
}

.hg-search-mark {
    background: rgba(123, 104, 238, 0.15);
    color: var(--hg-indigo);
    padding: 1px 4px;
    border-radius: 2px;
    font-weight: 500;
}

.hg-search-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: var(--hg-text-muted);
}

/* ============================================================
   404 页面
   ============================================================ */
.hg-404-container {
    padding: 80px 0;
}

.hg-404-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.hg-404-icon {
    margin-bottom: 32px;
}

.hg-404-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--hg-purple);
    margin-bottom: 16px;
}

.hg-404-desc {
    font-size: 16px;
    color: var(--hg-text-light);
    margin-bottom: 12px;
    line-height: 1.6;
}

.hg-404-hint {
    font-size: 15px;
    color: var(--hg-text);
    font-weight: 500;
    margin-bottom: 20px;
}

.hg-404-actions {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.hg-404-search {
    margin-bottom: 40px;
}

.hg-404-search-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--hg-text);
    margin-bottom: 16px;
}

.hg-404-search-form {
    display: flex;
    max-width: 420px;
    margin: 0 auto;
    border-radius: var(--hg-radius);
    overflow: hidden;
    border: 2px solid var(--hg-border);
}

.hg-404-search-input {
    flex: 1;
    height: 46px;
    padding: 0 16px;
    border: none;
    font-size: 14px;
    font-family: var(--hg-font);
    outline: none;
}

.hg-404-search-form .hg-btn {
    border-radius: 0;
}

.hg-404-links-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--hg-text);
    margin-bottom: 16px;
}

.hg-404-nav {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.hg-404-nav a {
    display: inline-block;
    padding: 8px 16px;
    background: var(--hg-white);
    color: var(--hg-text);
    font-size: 13px;
    border-radius: var(--hg-radius);
    border: 1px solid var(--hg-border);
    transition: all var(--hg-transition);
}

.hg-404-nav a:hover {
    background: var(--hg-indigo);
    color: var(--hg-white);
    border-color: var(--hg-indigo);
}

/* ============================================================
   无结果
   ============================================================ */
.hg-no-results {
    text-align: center;
    padding: 60px 0;
}

.hg-no-results-icon {
    margin-bottom: 20px;
}

.hg-no-results h2 {
    font-size: 24px;
    color: var(--hg-purple);
    margin-bottom: 12px;
}

.hg-no-results p {
    font-size: 15px;
    color: var(--hg-text-light);
}

.hg-no-results-suggest {
    margin-top: 32px;
}

.hg-no-results-suggest h3 {
    font-size: 16px;
    color: var(--hg-text);
    margin-bottom: 16px;
}

.hg-no-results-suggest ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.hg-no-results-suggest a {
    display: inline-block;
    padding: 8px 16px;
    background: var(--hg-white);
    border: 1px solid var(--hg-border);
    border-radius: var(--hg-radius);
    font-size: 13px;
    color: var(--hg-text);
    transition: all var(--hg-transition);
}

.hg-no-results-suggest a:hover {
    border-color: var(--hg-indigo);
    color: var(--hg-indigo);
    background: rgba(123, 104, 238, 0.04);
}

/* ============================================================
   分页
   ============================================================ */
.hg-pagination {
    margin-top: 40px;
}

.hg-page-numbers {
    display: flex;
    justify-content: center;
    gap: 6px;
    list-style: none;
}

.hg-page-item a,
.hg-page-item span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    background: var(--hg-white);
    border: 1px solid var(--hg-border);
    border-radius: var(--hg-radius-sm);
    font-size: 14px;
    color: var(--hg-text);
    transition: all var(--hg-transition);
}

.hg-page-item a:hover {
    background: var(--hg-indigo);
    color: var(--hg-white);
    border-color: var(--hg-indigo);
}

.hg-page-item.hg-active span {
    background: var(--hg-purple);
    color: var(--hg-white);
    border-color: var(--hg-purple);
    font-weight: 600;
}

/* ============================================================
   Sidebar TOC Widget
   ============================================================ */
.hg-widget-toc {
    display: block;
}

.hg-toc-sidebar-content {
    max-height: 60vh;
    overflow-y: auto;
}

.hg-toc-loading {
    font-size: 13px;
    color: var(--hg-text-muted);
    text-align: center;
    padding: 12px;
}

/* Latest articles */
.hg-recent-list {
    list-style: none;
}

.hg-recent-item {
    padding: 10px 0;
    border-bottom: 1px solid var(--hg-border-light);
}

.hg-recent-item:last-child {
    border-bottom: none;
}

.hg-recent-link {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--hg-text);
    line-height: 1.5;
    margin-bottom: 4px;
    transition: color var(--hg-transition);
}

.hg-recent-link:hover {
    color: var(--hg-indigo);
}

.hg-recent-date {
    font-size: 11px;
    color: var(--hg-text-muted);
}

/* ============================================================
   Footer - 深紫色背景
   ============================================================ */
.hg-footer {
    background: linear-gradient(180deg, #2C1A4D 0%, #1B0A3E 100%);
    color: rgba(255, 255, 255, 0.7);
    margin-top: 80px;
}

.hg-footer-main {
    padding: 64px 0 40px;
}

.hg-footer-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 32px;
}

.hg-footer-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--hg-white);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(123, 104, 238, 0.3);
    position: relative;
}

.hg-footer-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--hg-mint);
}

.hg-footer-about p {
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.6);
}

.hg-footer-slogan {
    font-weight: 600;
    color: var(--hg-mint) !important;
    font-size: 14px;
}

.hg-footer-links {
    list-style: none;
}

.hg-footer-links a {
    display: block;
    padding: 6px 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    transition: all var(--hg-transition);
}

.hg-footer-links a:hover {
    color: var(--hg-mint);
    padding-left: 6px;
}

.hg-footer-posts {
    list-style: none;
}

.hg-footer-posts li {
    margin-bottom: 10px;
}

.hg-footer-post-link {
    display: flex;
    gap: 10px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
    transition: color var(--hg-transition);
}

.hg-footer-post-link:hover {
    color: var(--hg-mint);
}

.hg-footer-post-date {
    color: var(--hg-mint);
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.hg-footer-post-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hg-footer-contact {
    list-style: none;
}

.hg-footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.hg-footer-contact a {
    color: rgba(255, 255, 255, 0.8);
    transition: color var(--hg-transition);
}

.hg-footer-contact a:hover {
    color: var(--hg-mint);
}

/* Newsletter */
.hg-newsletter {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hg-newsletter-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--hg-white);
    margin-bottom: 12px;
}

.hg-newsletter-form {
    display: flex;
    border-radius: var(--hg-radius-sm);
    overflow: hidden;
}

.hg-newsletter-input {
    flex: 1;
    height: 38px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.08);
    color: var(--hg-white);
    font-size: 12px;
    font-family: var(--hg-font);
    outline: none;
    border-radius: var(--hg-radius-sm) 0 0 var(--hg-radius-sm);
}

.hg-newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.hg-newsletter-input:focus {
    border-color: var(--hg-mint);
}

.hg-newsletter-form .hg-btn {
    border-radius: 0 var(--hg-radius-sm) var(--hg-radius-sm) 0;
}

.hg-newsletter-hint {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.35);
    margin-top: 6px;
}

/* Footer 底部 */
.hg-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px 0;
}

.hg-footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.hg-footer-copyright {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
}

.hg-footer-sep {
    margin: 0 8px;
    opacity: 0.3;
}

.hg-footer-legal {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 12px;
}

.hg-footer-icp {
    color: rgba(255, 255, 255, 0.45);
    transition: color var(--hg-transition);
}

.hg-footer-icp:hover {
    color: var(--hg-mint);
}

.hg-footer-menu {
    display: flex;
    list-style: none;
    gap: 16px;
}

.hg-footer-menu a {
    color: rgba(255, 255, 255, 0.45);
    font-size: 12px;
    transition: color var(--hg-transition);
}

.hg-footer-menu a:hover {
    color: var(--hg-mint);
}

/* 返回顶部 */
.hg-back-to-top {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--hg-indigo);
    border: none;
    color: var(--hg-white);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--hg-transition);
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 999;
    box-shadow: var(--hg-shadow);
}

.hg-back-to-top.hg-visible {
    opacity: 1;
    visibility: visible;
}

.hg-back-to-top:hover {
    background: var(--hg-mint);
    transform: translateY(-3px);
}

/* ============================================================
   评论区域
   ============================================================ */
.hg-article .comments-area {
    margin-top: 48px;
}

.hg-article .comments-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--hg-purple);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--hg-border-light);
}

/* ============================================================
   响应式 - 992px
   ============================================================ */
@media (max-width: 992px) {
    .hg-magazine-row {
        flex-direction: column;
    }

    .hg-content {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .hg-sidebar {
        flex: 1 1 100%;
        max-width: 100%;
        position: static;
    }

    .hg-main-nav {
        display: none;
    }

    .hg-mobile-toggle {
        display: flex;
    }

    .hg-footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .hg-hero-title {
        font-size: 36px;
    }

    .hg-hero-stats {
        gap: 24px;
    }

    .hg-category-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .hg-service-card {
        flex-direction: column;
    }

    .hg-service-card-img {
        flex: none;
        height: 200px;
    }

    .hg-partners-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .hg-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================================
   响应式 - 768px
   ============================================================ */
@media (max-width: 768px) {
    .hg-header-inner {
        height: 60px;
    }

    .hg-logo-site-name {
        font-size: 14px;
    }

    .hg-logo-tagline {
        display: none;
    }

    .hg-hero {
        padding: 48px 0;
        min-height: auto;
    }

    .hg-hero-title {
        font-size: 28px;
    }

    .hg-hero-desc {
        font-size: 14px;
    }

    .hg-hero-stats {
        flex-wrap: wrap;
        gap: 16px;
    }

    .hg-hero-stat-num {
        font-size: 24px;
    }

    .hg-category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hg-hero-search-input {
        height: 46px;
        font-size: 13px;
    }

    .hg-hero-search-btn {
        height: 46px;
        padding: 0 16px;
        font-size: 13px;
    }

    .hg-hero-cta {
        flex-direction: column;
    }

    .hg-section {
        padding: 48px 0;
    }

    .hg-section-title {
        font-size: 22px;
    }

    .hg-article {
        padding: 24px;
    }

    .hg-article-title {
        font-size: 24px;
    }

    .hg-article-thumbnail {
        margin: 0 -24px 24px;
    }

    .hg-partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hg-footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hg-tests-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .hg-tests-table {
        min-width: 600px;
    }

    .hg-cta-title {
        font-size: 24px;
    }

    .hg-related-grid {
        grid-template-columns: 1fr;
    }

    .hg-archive-card-featured .hg-archive-card-img {
        height: 200px;
    }
}

/* ============================================================
   响应式 - 480px
   ============================================================ */
@media (max-width: 480px) {
    .hg-container {
        padding: 0 16px;
    }

    .hg-logo-icon {
        width: 34px;
        height: 34px;
    }

    .hg-logo-site-name {
        font-size: 13px;
    }

    .hg-btn-cta {
        display: none;
    }

    .hg-hero {
        padding: 32px 0;
    }

    .hg-hero-title {
        font-size: 24px;
    }

    .hg-hero-badge {
        font-size: 11px;
    }

    .hg-hero-stats {
        gap: 12px;
    }

    .hg-hero-stat-num {
        font-size: 20px;
    }

    .hg-hero-stat-label {
        font-size: 10px;
    }

    .hg-category-nav {
        margin-top: -20px;
    }

    .hg-category-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .hg-category-card {
        padding: 16px 10px;
    }

    .hg-category-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .hg-category-name {
        font-size: 12px;
    }

    .hg-category-desc {
        display: none;
    }

    .hg-footer-grid {
        grid-template-columns: 1fr;
    }

    .hg-footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }

    .hg-article {
        padding: 16px;
    }

    .hg-article-title {
        font-size: 20px;
    }

    .hg-article-thumbnail {
        margin: 0 -16px 20px;
    }

    .hg-article-meta {
        gap: 10px;
        font-size: 12px;
    }

    .hg-post-card-list .hg-post-card-img {
        flex: 0 0 80px;
    }

    .hg-post-thumb-sm {
        width: 80px;
        height: 56px;
    }

    .hg-partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .hg-cta-title {
        font-size: 20px;
    }

    .hg-cta-actions {
        flex-direction: column;
    }

    .hg-search-card {
        flex-direction: column;
    }

    .hg-search-card-img {
        flex: none;
        width: 100%;
        height: 120px;
    }

    .hg-search-thumb {
        width: 100%;
        height: 120px;
        object-fit: cover;
    }

    .hg-archive-card:not(.hg-archive-card-featured) {
        flex-direction: column;
    }

    .hg-archive-card:not(.hg-archive-card-featured) .hg-archive-card-img {
        flex: none;
        height: 160px;
    }

    .hg-archive-card-title {
        font-size: 16px;
    }

    .hg-back-to-top {
        bottom: 16px;
        right: 16px;
    }
}

/* ============================================================
   Print 样式
   ============================================================ */
@media print {
    .hg-header,
    .hg-footer,
    .hg-sidebar,
    .hg-back-to-top,
    .hg-mobile-toggle,
    .hg-search-panel,
    .hg-mobile-menu,
    .hg-cta-banner {
        display: none !important;
    }

    .hg-content {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .hg-article {
        box-shadow: none;
        border: none;
        padding: 0;
    }

    body {
        color: #000;
        background: #fff;
    }
}
