/* ============================================================
   号易号卡官网 - 全局自定义样式（前端美化版）
   主色调：深蓝 #1e3a8a / 蓝 #2563eb / 亮绿 #10b981
   圆角：卡片 16px / 按钮 8px / 图片 12px
   兼容：Bootstrap 5 + Font Awesome 6 + 后台管理页面
   ============================================================ */

:root {
    --hy-deep: #1e3a8a;
    --hy-blue: #2563eb;
    --hy-green: #10b981;
    --hy-gradient: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #10b981 100%);
    --hy-bg: #f8fafc;
    --hy-text: #333333;
    --hy-muted: #64748b;
    --hy-border: #e2e8f0;
    --hy-radius-card: 16px;
    --hy-radius-btn: 8px;
    --hy-radius-img: 12px;
    --hy-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    --hy-shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.12);
    --hy-transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    color: var(--hy-text);
    background-color: var(--hy-bg);
    line-height: 1.75;
    padding-bottom: 80px; /* 为移动端底部导航预留空间 */
    overflow-x: hidden;
}

/* ---------- 滚动条美化 ---------- */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #2563eb, #10b981);
    border-radius: 6px;
    border: 2px solid #f1f5f9;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #1e3a8a, #059669);
}

/* ---------- 通用 ---------- */
a {
    transition: var(--hy-transition);
}
img {
    max-width: 100%;
}
.card {
    border: none;
    border-radius: var(--hy-radius-card);
    box-shadow: var(--hy-shadow);
    transition: var(--hy-transition);
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--hy-shadow-hover);
}
.text-gradient {
    background: var(--hy-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.btn-gradient {
    background: var(--hy-gradient);
    color: #fff;
    border: none;
    border-radius: var(--hy-radius-btn);
    padding: 0.6rem 1.6rem;
    font-weight: 600;
    transition: var(--hy-transition);
}
.btn-gradient:hover {
    opacity: 0.92;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.28);
}
.section-pad {
    padding: 4rem 0;
}

/* ---------- 顶部导航（毛玻璃 + 下划线动画） ---------- */
.site-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 1px 12px rgba(30, 58, 138, 0.05);
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    transition: var(--hy-transition);
}
.site-navbar .navbar-brand {
    font-weight: 800;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--hy-deep);
}
.site-navbar .brand-logo {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--hy-gradient);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
}
.site-navbar .nav-link {
    position: relative;
    color: #334155;
    font-weight: 500;
    padding: 0.45rem 1rem;
    transition: var(--hy-transition);
}
.site-navbar .nav-link::after {
    content: "";
    position: absolute;
    left: 0.8rem;
    right: 0.8rem;
    bottom: 0.1rem;
    height: 2px;
    border-radius: 2px;
    background: var(--hy-green);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.3s ease;
}
.site-navbar .nav-link:hover {
    color: var(--hy-green);
}
.site-navbar .nav-link:hover::after,
.site-navbar .nav-link.active::after {
    transform: scaleX(1);
}
.site-navbar .nav-link.active {
    color: var(--hy-deep);
    font-weight: 600;
}
.site-navbar .navbar-toggler {
    border: none;
    padding: 0.4rem 0.6rem;
    border-radius: 8px;
}
.site-navbar .navbar-toggler:focus {
    box-shadow: none;
}
.site-navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(30,58,138,0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* 移动端全屏折叠菜单 */
@media (max-width: 991.98px) {
    .site-navbar .navbar-collapse {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        z-index: 1040;
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 2rem;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-12px);
        transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    }
    .site-navbar .navbar-collapse.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    .site-navbar .navbar-collapse .navbar-nav {
        text-align: center;
        width: 100%;
    }
    .site-navbar .navbar-collapse .nav-link {
        font-size: 1.4rem;
        font-weight: 600;
        padding: 1rem 1.5rem;
        color: var(--hy-deep);
    }
    .site-navbar .navbar-collapse .nav-link::after {
        left: 50%;
        right: 50%;
    }
    .site-navbar .navbar-collapse .nav-link:hover::after,
    .site-navbar .navbar-collapse .nav-link.active::after {
        left: 30%;
        right: 30%;
    }
    .site-navbar .nav-menu-close {
        position: absolute;
        top: 1.2rem;
        right: 1.2rem;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        border: 1px solid var(--hy-border);
        background: #fff;
        color: var(--hy-deep);
        font-size: 1.1rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }
}

/* 桌面端（≥992px）：菜单平铺展示，不走折叠 */
@media (min-width: 992px) {
    .site-navbar .navbar-collapse {
        display: flex !important;
        flex-basis: auto;
        flex-grow: 0;
    }
    /* 桌面端菜单强制横向排列（Bootstrap 默认 .navbar-nav 为纵向，需显式覆盖） */
    .site-navbar .navbar-nav {
        flex-direction: row;
        align-items: center;
        gap: 0.25rem;
    }
}

/* 导航栏底部占位（fixed 导航） */
.site-main {
    padding-top: 72px;
}

/* ---------- Hero 区域（渐变 + SVG 波纹装饰） ---------- */
.hero-section {
    position: relative;
    background: var(--hy-gradient);
    color: #fff;
    padding: 5.5rem 0 6rem;
    overflow: hidden;
    text-align: center;
}
.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.14), transparent 34%),
        radial-gradient(circle at 88% 12%, rgba(255, 255, 255, 0.12), transparent 30%),
        radial-gradient(circle at 70% 88%, rgba(16, 185, 129, 0.35), transparent 38%);
}
.hero-section::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 90px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath fill='%23f8fafc' d='M0,64 C240,96 480,16 720,32 C960,48 1200,96 1440,48 L1440,120 L0,120 Z'/%3E%3C/svg%3E");
    background-size: cover;
    background-position: bottom;
    pointer-events: none;
}
.hero-section .container {
    position: relative;
    z-index: 1;
}
.hero-title {
    font-weight: 800;
    font-size: clamp(1.9rem, 4.5vw, 3.2rem);
    letter-spacing: 1px;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.22);
    margin-bottom: 1rem;
}
.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    opacity: 0.96;
    color: #f0fdf9;
    max-width: 720px;
    margin: 0 auto;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}
.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    padding: 0.3rem 1.1rem;
    border-radius: 999px;
    font-size: 0.85rem;
    margin-bottom: 1.1rem;
    backdrop-filter: blur(4px);
}

/* 核心按钮（白色圆角 50px，悬停上浮） */
.core-buttons {
    position: relative;
    z-index: 2;
    margin-top: -2.2rem;
    padding-bottom: 1.5rem;
}
.hero-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    background: #fff;
    color: var(--hy-blue);
    border-radius: 50px;
    font-weight: 600;
    padding: 0.85rem 1.2rem;
    box-shadow: 0 10px 26px rgba(30, 58, 138, 0.16);
    text-decoration: none;
    transition: var(--hy-transition);
    border: 2px solid transparent;
}
.hero-btn i {
    font-size: 1.1rem;
    color: var(--hy-green);
    transition: var(--hy-transition);
}
.hero-btn:hover {
    background: #eff6ff;
    color: var(--hy-deep);
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(30, 58, 138, 0.2);
    border-color: rgba(16, 185, 129, 0.35);
}
.hero-btn:hover i {
    color: var(--hy-deep);
}

/* ---------- 区块标题（左侧彩色竖条） ---------- */
.section-title {
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--hy-deep);
    position: relative;
    padding-left: 0.95rem;
    margin-bottom: 1.4rem;
}
.section-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 1.15em;
    border-radius: 5px;
    background: var(--hy-gradient);
}
.section-title-center {
    text-align: center;
    padding-left: 0;
}
.section-title-center::before {
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    top: -0.7rem;
    width: 52px;
    height: 5px;
}
.section-sub {
    color: var(--hy-muted);
    text-align: center;
    max-width: 640px;
    margin: -0.6rem auto 1.8rem;
}

/* ---------- 联系方式卡片 ---------- */
.contact-section {
    background: #fff;
}
.contact-card {
    background: #fff;
    border-radius: var(--hy-radius-card);
    box-shadow: var(--hy-shadow);
    padding: 1.4rem;
    height: 100%;
    transition: var(--hy-transition);
    border: 1px solid rgba(226, 232, 240, 0.6);
}
.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hy-shadow-hover);
    border-color: rgba(16, 185, 129, 0.4);
}
.contact-icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--hy-gradient);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.26);
}
.contact-label {
    color: var(--hy-muted);
    font-size: 0.82rem;
    letter-spacing: 0.5px;
}
.contact-value {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--hy-deep);
    word-break: break-all;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    cursor: pointer;
    transition: color 0.2s;
}
.contact-value:hover {
    color: var(--hy-green);
}

/* ---------- 文章卡片 ---------- */
.latest-articles {
    background: var(--hy-bg);
}
.article-card {
    overflow: hidden;
    height: 100%;
    text-decoration: none;
    background: #fff;
    display: flex;
    flex-direction: column;
    border-radius: var(--hy-radius-card);
    box-shadow: var(--hy-shadow);
    transition: var(--hy-transition);
}
.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hy-shadow-hover);
}
.article-cover {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform 0.4s ease;
    background: linear-gradient(135deg, #dbeafe, #d1fae5);
}
.article-card:hover .article-cover {
    transform: scale(1.05);
}
.article-cover-wrap {
    overflow: hidden;
    border-radius: var(--hy-radius-card) var(--hy-radius-card) 0 0;
}
.article-cover-placeholder {
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #dbeafe, #d1fae5);
    color: var(--hy-blue);
}
.article-card .card-title {
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.5;
}
.article-card .card-title a,
.article-card .card-title {
    color: #111827;
    text-decoration: none;
    transition: var(--hy-transition);
}
.article-card .card-title a:hover,
.article-card:hover .card-title {
    color: var(--hy-blue);
}
.article-card .card-text {
    color: var(--hy-muted);
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.article-card .card-meta {
    color: #94a3b8;
    font-size: 0.82rem;
    border-top: 1px dashed var(--hy-border);
    padding-top: 0.6rem;
    margin-top: auto;
}
.article-card .card-meta i {
    color: var(--hy-green);
    margin-right: 0.2rem;
}

/* ---------- 友情链接徽章 ---------- */
.friends-section {
    background: #f1f5f9;
}
.friend-badge {
    display: inline-block;
    padding: 0.45rem 1.25rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--hy-border);
    color: #475569;
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--hy-transition);
}
.friend-badge:hover {
    border-color: var(--hy-green);
    color: var(--hy-green);
    transform: translateY(-2px);
    box-shadow: var(--hy-shadow);
}

/* ---------- 面包屑 ---------- */
.page-breadcrumb {
    background: #fff;
    border-bottom: 1px solid var(--hy-border);
    padding: 0.85rem 0;
    margin-top: 72px;
}
.page-breadcrumb .breadcrumb {
    margin: 0;
    font-size: 0.88rem;
}
.page-breadcrumb .breadcrumb-item a {
    color: var(--hy-blue);
    text-decoration: none;
}
.page-breadcrumb .breadcrumb-item a:hover {
    color: var(--hy-green);
}
.page-breadcrumb .breadcrumb-item.active {
    color: var(--hy-muted);
}
.breadcrumb-item + .breadcrumb-item::before {
    color: #94a3b8;
}

/* ---------- 列表页标题 + 分类筛选 ---------- */
.articles-page .page-title {
    font-weight: 800;
    color: var(--hy-deep);
    font-size: 1.7rem;
    position: relative;
    padding-left: 0.9rem;
}
.articles-page .page-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 1.1em;
    border-radius: 5px;
    background: var(--hy-gradient);
}
.filter-btn {
    border-radius: 999px;
    padding: 0.35rem 1.1rem;
    font-size: 0.88rem;
    border: 1px solid var(--hy-border);
    color: #475569;
    background: #fff;
    text-decoration: none;
    transition: var(--hy-transition);
}
.filter-btn:hover {
    border-color: var(--hy-green);
    color: var(--hy-green);
}
.filter-btn.active {
    background: var(--hy-gradient);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.24);
}

/* ---------- 分页 ---------- */
.pagination .page-link {
    border-radius: var(--hy-radius-btn);
    margin: 0 3px;
    color: var(--hy-blue);
    border: 1px solid var(--hy-border);
    min-width: 40px;
    text-align: center;
    transition: var(--hy-transition);
    font-weight: 500;
}
.pagination .page-link:hover {
    background: #eff6ff;
    border-color: var(--hy-blue);
    color: var(--hy-deep);
}
.pagination .page-item.active .page-link {
    background: var(--hy-gradient);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.28);
}
.pagination .page-item.disabled .page-link {
    color: #cbd5e1;
    background: #fff;
}

/* ---------- 文章详情页 ---------- */
.article-detail {
    background: var(--hy-bg);
}
.article-detail .article-container {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border-radius: var(--hy-radius-card);
    box-shadow: var(--hy-shadow);
    padding: clamp(1.2rem, 4vw, 2.6rem);
}
.article-title {
    font-weight: 800;
    font-size: clamp(1.4rem, 3.2vw, 2rem);
    color: var(--hy-deep);
    line-height: 1.45;
}
.article-meta {
    color: var(--hy-muted);
    font-size: 0.88rem;
    border-bottom: 1px solid var(--hy-border);
    padding-bottom: 1rem;
    margin-bottom: 1.4rem;
}
.article-meta i {
    color: var(--hy-green);
    margin-right: 0.3rem;
}
.article-meta .badge-cat {
    background: #ecfdf5;
    color: #059669;
    border-radius: 999px;
    padding: 0.25rem 0.8rem;
    font-size: 0.8rem;
}
.article-detail .article-cover {
    border-radius: var(--hy-radius-img);
    margin-bottom: 1.6rem;
    box-shadow: var(--hy-shadow);
}

/* 正文排版 */
.article-content {
    font-size: 1.02rem;
    line-height: 1.8;
    color: #374151;
    word-break: break-word;
}
.article-content p {
    margin-bottom: 1.2em;
}
.article-content h2,
.article-content h3,
.article-content h4 {
    margin: 1.6em 0 0.7em;
    font-weight: 700;
    color: var(--hy-deep);
    line-height: 1.4;
}
.article-content h2 {
    font-size: 1.45rem;
    padding-left: 0.75rem;
    border-left: 4px solid var(--hy-green);
}
.article-content h3 {
    font-size: 1.22rem;
}
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--hy-radius-img);
    margin: 0.6em 0;
    box-shadow: var(--hy-shadow);
}
.article-content ul,
.article-content ol {
    margin-bottom: 1.2em;
    padding-left: 1.4em;
}
.article-content li {
    margin-bottom: 0.4em;
}
.article-content blockquote {
    border-left: 4px solid var(--hy-green);
    background: #f0fdf9;
    padding: 0.9rem 1.3rem;
    border-radius: 0 var(--hy-radius-btn) var(--hy-radius-btn) 0;
    color: #475569;
    margin: 1.2em 0;
}
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.2em 0;
    font-size: 0.95rem;
}
.article-content table th,
.article-content table td {
    border: 1px solid var(--hy-border);
    padding: 0.6rem 0.8rem;
    text-align: left;
}
.article-content table th {
    background: #f8fafc;
    font-weight: 600;
    color: var(--hy-deep);
}
.article-content a {
    color: var(--hy-blue);
}
.article-content code {
    background: #f1f5f9;
    padding: 0.15rem 0.4rem;
    border-radius: 6px;
    font-size: 0.9em;
}

/* 相关推荐 */
.related-section {
    max-width: 800px;
    margin: 1.6rem auto 0;
}
.related-section .related-title {
    font-weight: 700;
    color: var(--hy-deep);
    font-size: 1.2rem;
    position: relative;
    padding-left: 0.85rem;
    margin-bottom: 1.1rem;
}
.related-section .related-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 1.1em;
    border-radius: 4px;
    background: var(--hy-gradient);
}
.related-item {
    display: flex;
    gap: 1rem;
    background: #fff;
    border-radius: var(--hy-radius-card);
    box-shadow: var(--hy-shadow);
    padding: 0.85rem;
    text-decoration: none;
    transition: var(--hy-transition);
    height: 100%;
    border: 1px solid rgba(226, 232, 240, 0.5);
}
.related-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--hy-shadow-hover);
    border-color: rgba(16, 185, 129, 0.4);
}
.related-item .related-thumb {
    width: 110px;
    height: 76px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    background: linear-gradient(135deg, #dbeafe, #d1fae5);
}
.related-item .related-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}
.related-item .related-name {
    font-weight: 600;
    color: #111827;
    font-size: 0.95rem;
    line-height: 1.45;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.related-item:hover .related-name {
    color: var(--hy-blue);
}
.related-item .related-meta {
    color: #94a3b8;
    font-size: 0.78rem;
    margin-top: 0.25rem;
}

/* ---------- 自定义页面 ---------- */
.custom-page {
    background: var(--hy-bg);
}
.custom-page .page-container {
    max-width: 860px;
    margin: 0 auto;
    background: #fff;
    border-radius: var(--hy-radius-card);
    box-shadow: var(--hy-shadow);
    padding: clamp(1.2rem, 4vw, 2.6rem);
}
.custom-page .page-container > h1 {
    font-weight: 800;
    color: var(--hy-deep);
    font-size: clamp(1.5rem, 3.4vw, 2rem);
    position: relative;
    padding-bottom: 0.9rem;
    margin-bottom: 1.6rem;
}
.custom-page .page-container > h1::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 64px;
    height: 4px;
    border-radius: 4px;
    background: var(--hy-gradient);
}

/* 联系页卡片 */
.contact-block {
    background: #fff;
    border-radius: var(--hy-radius-card);
    box-shadow: var(--hy-shadow);
    padding: 1.5rem;
    text-align: center;
    height: 100%;
    transition: var(--hy-transition);
    border: 1px solid rgba(226, 232, 240, 0.5);
}
.contact-block:hover {
    transform: translateY(-4px);
    box-shadow: var(--hy-shadow-hover);
}
.contact-block .cb-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--hy-gradient);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 0.9rem;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.24);
}
.contact-block .cb-label {
    color: var(--hy-muted);
    font-size: 0.85rem;
}
.contact-block .cb-value {
    font-weight: 700;
    color: var(--hy-deep);
    font-size: 1.1rem;
    word-break: break-all;
    font-family: "SFMono-Regular", Consolas, Menlo, monospace;
}

/* 代理指南步骤卡片 */
.step-card {
    background: #fff;
    border-radius: var(--hy-radius-card);
    box-shadow: var(--hy-shadow);
    padding: 1.6rem;
    height: 100%;
    position: relative;
    transition: var(--hy-transition);
    border: 1px solid rgba(226, 232, 240, 0.5);
}
.step-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hy-shadow-hover);
}
.step-card .step-num {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--hy-gradient);
    color: #fff;
    font-weight: 800;
    font-size: 1.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.26);
}
.step-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--hy-deep);
    margin-bottom: 0.6rem;
}
.step-card p {
    color: var(--hy-muted);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* FAQ 手风琴 */
.faq-item {
    background: #fff;
    border: 1px solid var(--hy-border);
    border-radius: var(--hy-radius-card);
    margin-bottom: 0.9rem;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    transition: var(--hy-transition);
}
.faq-item:hover {
    border-color: rgba(16, 185, 129, 0.5);
}
.faq-item .faq-q {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.05rem 1.3rem;
    font-weight: 600;
    color: var(--hy-deep);
    cursor: pointer;
    text-decoration: none;
}
.faq-item .faq-q i.fa-circle-question {
    color: var(--hy-green);
    font-size: 1.15rem;
}
.faq-item .faq-q .fa-chevron-down {
    margin-left: auto;
    color: #94a3b8;
    transition: transform 0.3s ease;
}
.faq-item .faq-q:not(.collapsed) .fa-chevron-down {
    transform: rotate(180deg);
}
.faq-item .faq-a {
    padding: 0 1.3rem 1.1rem 2.9rem;
    color: var(--hy-muted);
    font-size: 0.95rem;
}

/* ---------- 页脚 ---------- */
.site-footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 2.8rem 0 6.5rem;
    margin-top: 0;
    position: relative;
}
.site-footer .footer-title {
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.9rem;
}
.site-footer a {
    color: #cbd5e1;
    text-decoration: none;
    transition: var(--hy-transition);
}
.site-footer a:hover {
    color: var(--hy-green);
}
.site-footer .footer-links li {
    margin-bottom: 0.45rem;
    font-size: 0.92rem;
}
.site-footer .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1.3rem;
    margin-top: 1.8rem;
    font-size: 0.85rem;
}

/* ---------- 移动端底部导航 ---------- */
.mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1050;
    height: 60px;
    background: #fff;
    border-top: 1px solid var(--hy-border);
    display: flex;
    align-items: stretch;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    padding-bottom: env(safe-area-inset-bottom, 0);
}
.mobile-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.72rem;
    gap: 2px;
    transition: var(--hy-transition);
    position: relative;
}
.mobile-nav-item i {
    font-size: 1.18rem;
    transition: transform 0.25s ease;
}
.mobile-nav-item span {
    line-height: 1;
}
.mobile-nav-item.active,
.mobile-nav-item:active {
    color: var(--hy-green);
    font-weight: 600;
}
.mobile-nav-item.active::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 3px;
    border-radius: 0 0 4px 4px;
    background: var(--hy-gradient);
}
.mobile-nav-item.active i {
    transform: translateY(-2px) scale(1.1);
}
@media (min-width: 992px) {
    .mobile-bottom-nav {
        display: none !important;
    }
    body {
        padding-bottom: 0;
    }
}

/* ---------- 波纹点击效果 ---------- */
.ripple-wrap {
    position: relative;
    overflow: hidden;
}
.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: scale(0);
    animation: ripple-anim 0.6s ease-out;
    pointer-events: none;
}
@keyframes ripple-anim {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ---------- 卡片入场动画 ---------- */
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(22px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.animate-in {
    animation: fade-in-up 0.6s ease forwards;
}
.animate-stagger-1 { animation-delay: 0.08s; }
.animate-stagger-2 { animation-delay: 0.16s; }
.animate-stagger-3 { animation-delay: 0.24s; }
.animate-stagger-4 { animation-delay: 0.32s; }
.animate-stagger-5 { animation-delay: 0.4s; }

/* ---------- 空状态 ---------- */
.empty-state {
    text-align: center;
    padding: 4rem 1rem;
    color: #94a3b8;
}
.empty-state i {
    font-size: 3rem;
    opacity: 0.35;
    margin-bottom: 1rem;
    display: block;
}

/* ---------- 复制成功提示 ---------- */
.copy-toast {
    position: fixed;
    left: 50%;
    bottom: 90px;
    transform: translateX(-50%) translateY(16px);
    background: var(--hy-deep);
    color: #fff;
    padding: 0.5rem 1.2rem;
    border-radius: 999px;
    font-size: 0.88rem;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
}
.copy-toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* ============================================================
   后台管理样式（与前端共享 style.css，保留并优化）
   ============================================================ */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
}
.admin-sidebar {
    width: 240px;
    background: #0f172a;
    color: #94a3b8;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    overflow-y: auto;
    z-index: 1030;
    transition: transform 0.3s;
}
.admin-sidebar .sidebar-brand {
    padding: 1.2rem;
    font-weight: 800;
    color: #fff;
    font-size: 1.1rem;
    background: var(--hy-gradient);
}
.admin-sidebar .nav-link {
    color: #94a3b8;
    border-radius: 8px;
    margin: 0.15rem 0.7rem;
    padding: 0.55rem 0.9rem;
    font-size: 0.92rem;
    transition: var(--hy-transition);
}
.admin-sidebar .nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}
.admin-sidebar .nav-link.active {
    color: #fff;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.8), rgba(16, 185, 129, 0.8));
}
.admin-main {
    flex: 1;
    margin-left: 240px;
    padding: 1.5rem;
    background: #f1f5f9;
    min-height: 100vh;
}
.admin-card {
    border: none;
    border-radius: var(--hy-radius-card);
    box-shadow: var(--hy-shadow);
}
.admin-topbar {
    background: #fff;
    border-radius: var(--hy-radius-card);
    padding: 0.75rem 1.25rem;
    box-shadow: var(--hy-shadow);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}
@media (max-width: 991.98px) {
    .admin-sidebar {
        transform: translateX(-100%);
    }
    .admin-sidebar.show {
        transform: translateX(0);
    }
    .admin-main {
        margin-left: 0;
    }
}

/* 可视化编辑 */
.widget-card {
    border: 1px solid var(--hy-border);
    border-radius: 10px;
    background: #fff;
}
.widget-card .widget-head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 0.9rem;
    background: #f8fafc;
    border-radius: 10px 10px 0 0;
    border-bottom: 1px solid var(--hy-border);
    cursor: grab;
}
.widget-card .widget-body {
    padding: 0.9rem;
}
.widget-card .widget-head .drag-handle {
    color: #94a3b8;
}

/* ---------- 响应式细节 ---------- */
@media (max-width: 1199.98px) {
    .hero-section { padding: 4.5rem 0 5rem; }
}
@media (max-width: 991.98px) {
    .site-main { padding-top: 64px; }
    .page-breadcrumb { margin-top: 64px; }
}
@media (max-width: 767.98px) {
    .hero-section { padding: 3.6rem 0 4.2rem; }
    .core-buttons { margin-top: -1.6rem; }
    .hero-btn { padding: 0.75rem 0.8rem; font-size: 0.92rem; }
    .section-pad { padding: 2.6rem 0; }
    .related-item .related-thumb { width: 92px; height: 64px; }
    .site-footer { padding-bottom: 5.5rem; }
}
@media (max-width: 575.98px) {
    .hero-section { padding: 3rem 0 3.6rem; }
    .contact-card { padding: 1.1rem; }
    .article-detail .article-container,
    .custom-page .page-container { padding: 1.1rem; }
}
