/*!
 * happiness-skillcert.css —— 技能证书页专属样式（深蓝 + 鎏金主题）
 * 依赖：happiness.css
 */

/* ============================ 页面容器（与首页一致：1400px 居中，两侧 20px 留白） ============================ */
.hx-page-wrap {
    max-width: var(--container);
    margin: 24px auto 56px;
    padding: 0 20px;
}

/* ── Banner 基础外观（背景由 .global-banner 覆盖） ── */
.page-banner {
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 44px 40px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

/* ── 统计卡片 ── */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}
.stat-item {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 22px 20px;
    text-align: center;
    box-shadow: var(--shadow-card);
    transition: all .3s;
}
.stat-item:hover { border-color: #a5b4fc; transform: translateY(-2px); }
.stat-item .val { font-size: 28px; font-weight: 800; color: var(--primary); }
.stat-item .lbl { font-size: 13px; color: var(--text-secondary); margin-top: 4px; }
.stat-item .lbl i { margin-right: 4px; }

/* ============================ 重要通知条 ============================ */
.notice-bar {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 24px;
    padding: 18px 24px;
    border-radius: 14px;
    background: linear-gradient(90deg, #fff7ed 0%, #ffedd5 100%);
    border: 1.5px solid #fdba74;
    box-shadow: 0 8px 22px rgba(234, 88, 12, .12);
    position: relative;
    overflow: hidden;
}
.notice-bar::before {
    content: '';
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 5px;
    background: linear-gradient(180deg, #f97316, #ea580c);
}
.notice-icon {
    flex: none;
    width: 48px; height: 48px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    color: #fff;
    background: linear-gradient(135deg, #fb923c, #ea580c);
    box-shadow: 0 6px 14px rgba(234, 88, 12, .35);
    animation: noticePulse 2s ease-in-out infinite;
}
@keyframes noticePulse {
    0%, 100% { box-shadow: 0 6px 14px rgba(234, 88, 12, .35); }
    50%      { box-shadow: 0 6px 0 6px rgba(234, 88, 12, .12); }
}
.notice-body { flex: 1; min-width: 0; }
.notice-title {
    font-size: 13px;
    font-weight: 800;
    color: #c2410c;
    letter-spacing: 1px;
    margin-bottom: 2px;
}
.notice-title i { margin-right: 5px; }
.notice-text { font-size: 15px; color: #7c2d12; line-height: 1.55; }
.notice-text strong { color: #c2410c; }
.notice-btn {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    background: linear-gradient(135deg, #f97316, #ea580c);
    box-shadow: 0 6px 16px rgba(234, 88, 12, .35);
    transition: transform .15s, filter .2s;
}
.notice-btn:hover {
    color: #fff;
    filter: brightness(1.06);
    transform: translateY(-2px);
}
@media (max-width: 768px) {
    .notice-bar { flex-wrap: wrap; padding: 16px 18px; gap: 12px; }
    .notice-body { flex-basis: calc(100% - 60px); }
    .notice-text { font-size: 14px; }
    .notice-btn { width: 100%; justify-content: center; }
}

/* ============================ Banner ============================ */
.global-banner {
    background:
        radial-gradient(circle at 82% 18%, rgba(212, 167, 44, .35), transparent 45%),
        linear-gradient(120deg, #0b1e3f 0%, #143a73 55%, #1d2b50 100%);
    border-color: rgba(212, 167, 44, .25);
}
.global-banner .banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.global-banner h1 {
    color: #fff;
    font-size: 36px;
    margin: 10px 0 12px;
    letter-spacing: 2px;
}
.global-banner h1 span {
    background: linear-gradient(90deg, #f6d365, #d4a72c);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.global-banner .banner-text p { color: rgba(255,255,255,.85); max-width: 720px; font-size: 15px; }
.global-banner .banner-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 5px 14px; border-radius: 20px;
    background: rgba(212, 167, 44, .18);
    color: #f6d365; font-size: 13px;
    border: 1px solid rgba(212, 167, 44, .4);
}
.global-banner .banner-badge .dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: #f6d365;
    box-shadow: 0 0 0 4px rgba(246, 211, 101, .22);
}
.gb-emblem {
    flex: none;
    width: 150px; height: 150px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 60px;
    color: #f6d365;
    background:
        radial-gradient(circle at 35% 30%, rgba(246,211,101,.5), rgba(246,211,101,.06) 62%);
    border: 2px solid rgba(212, 167, 44, .65);
    box-shadow: 0 0 0 8px rgba(212, 167, 44, .1), inset 0 0 30px rgba(246,211,101,.18);
    animation: emblemSpin 16s linear infinite;
}
.gb-emblem i { animation: emblemSpinBack 16s linear infinite; }
@keyframes emblemSpin { to { transform: rotate(360deg); } }
@keyframes emblemSpinBack { to { transform: rotate(-360deg); } }

/* ============================ 通用标题 ============================ */
.gb-section { margin: 40px 0; }
.gb-sec-head { text-align: center; margin-bottom: 28px; }
.gb-sec-head .sub {
    display: inline-block;
    font-size: 12px; letter-spacing: 3px;
    color: #b8860b; text-transform: uppercase;
    margin-bottom: 6px;
}
.gb-sec-head h2 { font-size: 26px; color: var(--text-title); letter-spacing: 1px; }
.gb-sec-head p { color: var(--text-secondary); font-size: 14px; margin-top: 8px; }

/* ============================ 等级体系 ============================ */
.level-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
@media (max-width: 992px) { .level-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .level-grid { grid-template-columns: 1fr; } }

.level-card {
    position: relative;
    background: #fff;
    border-radius: 16px;
    padding: 26px 20px 22px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
    cursor: default;
}
.level-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 5px;
}
.level-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); }
.level-card.l1::before { background: linear-gradient(90deg, #12c2e9, #0ea5e9); }
.level-card.l2::before { background: linear-gradient(90deg, #2563eb, #6a11cb); }
.level-card.l3::before { background: linear-gradient(90deg, #7f00ff, #e100ff); }
.level-card.l4::before { background: linear-gradient(90deg, #d4a72c, #f6d365); }

.level-card .lv-badge {
    width: 62px; height: 62px;
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 26px; color: #fff;
    margin-bottom: 14px;
}
.level-card.l1 .lv-badge { background: linear-gradient(135deg, #12c2e9, #0ea5e9); }
.level-card.l2 .lv-badge { background: linear-gradient(135deg, #2563eb, #6a11cb); }
.level-card.l3 .lv-badge { background: linear-gradient(135deg, #7f00ff, #e100ff); }
.level-card.l4 .lv-badge { background: linear-gradient(135deg, #d4a72c, #f6d365); color: #5a3d05; }

.level-card .lv-code { font-size: 12px; letter-spacing: 2px; color: var(--text-light); }
.level-card h3 { font-size: 19px; color: var(--text-title); margin: 2px 0 12px; }
.level-card ul.lv-req { list-style: none; margin: 0 0 14px; min-height: 118px; }
.level-card ul.lv-req li {
    position: relative;
    padding: 5px 0 5px 22px;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.55;
}
.level-card ul.lv-req li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0; top: 7px;
    font-size: 11px;
}
.level-card.l1 ul.lv-req li::before { color: #0ea5e9; }
.level-card.l2 ul.lv-req li::before { color: #2563eb; }
.level-card.l3 ul.lv-req li::before { color: #9333ea; }
.level-card.l4 ul.lv-req li::before { color: #d4a72c; }

.lv-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.lv-tags span {
    font-size: 11.5px;
    padding: 3px 9px;
    border-radius: 11px;
    background: var(--bg-hover);
    color: var(--text-secondary);
}
.level-card .lv-crown {
    position: absolute;
    top: 14px; right: 14px;
    font-size: 13px;
    color: #d4a72c;
}

/* ============================ 认证流程 ============================ */
.flow-wrap {
    background: #fff;
    border-radius: 16px;
    padding: 34px 28px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
}
.flow-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    position: relative;
}
@media (max-width: 768px) { .flow-steps { grid-template-columns: 1fr 1fr; } }
.flow-step { text-align: center; position: relative; }
.flow-step .fs-icon {
    width: 64px; height: 64px;
    margin: 0 auto 12px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; color: #fff;
    background: var(--gradient);
    box-shadow: 0 8px 18px rgba(37, 99, 235, .28);
    position: relative;
    z-index: 1;
}
.flow-step:not(:last-child)::after {
    content: '\f054';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 23px;
    right: -14px;
    width: 28px;
    color: #cbd5e1;
    font-size: 13px;
    z-index: 2;
}
@media (max-width: 768px) {
    .flow-step:nth-child(2)::after { display: none; }
}
.flow-step h4 { font-size: 15px; color: var(--text-title); margin-bottom: 4px; }
.flow-step p { font-size: 12.5px; color: var(--text-secondary); line-height: 1.55; }

/* ============================ 证书样本 + 权益 ============================ */
.cert-showcase {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 26px;
    align-items: center;
    background: linear-gradient(120deg, #0b1e3f, #16366a);
    border-radius: 18px;
    padding: 40px 36px;
}
@media (max-width: 900px) { .cert-showcase { grid-template-columns: 1fr; } }

/* CSS 证书 */
.gb-cert {
    position: relative;
    aspect-ratio: 1.48 / 1;
    border-radius: 12px;
    padding: 26px 30px;
    color: #4a3208;
    background:
        radial-gradient(circle at 50% 0%, rgba(212,167,44,.22), transparent 60%),
        linear-gradient(135deg, #fffbe9 0%, #ffeeb8 55%, #f6d365 100%);
    border: 3px double #b8860b;
    box-shadow: 0 18px 44px rgba(0,0,0,.38), inset 0 0 0 7px rgba(255,255,255,.5);
    overflow: hidden;
    transition: transform .5s ease;
}
.gb-cert:hover { transform: translateY(-6px) rotateX(4deg); }
.gb-cert::before {
    content: '';
    position: absolute; inset: 10px;
    border: 1px solid rgba(184,134,11,.55);
    border-radius: 7px;
    pointer-events: none;
}
.gb-cert .c-top { text-align: center; position: relative; z-index: 1; }
.gb-cert .c-top .c-org { font-size: 11px; letter-spacing: 2px; color: #8a6210; }
.gb-cert .c-top h3 {
    font-size: clamp(17px, 2.4vw, 25px);
    letter-spacing: 4px;
    color: #6b4c10;
    margin: 6px 0 2px;
}
.gb-cert .c-top .c-en { font-size: 9.5px; letter-spacing: 1.5px; color: #a67c0a; }
.gb-cert .c-mid {
    position: relative; z-index: 1;
    text-align: center;
    margin-top: clamp(6px, 1.5vw, 14px);
}
.gb-cert .c-mid .c-line {
    display: inline-block;
    font-size: clamp(11px, 1.5vw, 14px);
    color: #5a3d05;
}
.gb-cert .c-mid .c-name {
    display: block;
    font-size: clamp(20px, 3vw, 30px);
    font-weight: 800;
    margin: 4px 0;
    color: #3d2b06;
}
.gb-cert .c-mid .c-level {
    display: inline-block;
    font-size: clamp(11px, 1.4vw, 14px);
    font-weight: 700;
    color: #8a1c1c;
    border: 1.5px solid #b03a2e;
    border-radius: 4px;
    padding: 2px 12px;
}
.gb-cert .c-bottom {
    position: absolute;
    left: 30px; right: 30px; bottom: 22px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    z-index: 1;
}
.gb-cert .c-bottom .c-sign { font-size: clamp(9px, 1.2vw, 12px); color: #6b4c10; line-height: 1.7; }
.gb-cert .c-bottom .c-sign b { display: block; border-top: 1px solid #8a6210; padding-top: 3px; font-weight: 600; }
.gb-cert .c-seal {
    width: clamp(52px, 7vw, 74px); height: clamp(52px, 7vw, 74px);
    border-radius: 50%;
    border: 2.5px solid rgba(176, 58, 46, .85);
    color: rgba(176, 58, 46, .85);
    display: flex; align-items: center; justify-content: center;
    flex-direction: column;
    font-size: clamp(8px, 1vw, 10px);
    font-weight: 700;
    line-height: 1.25;
    transform: rotate(-12deg);
    background: rgba(255,255,255,.25);
}
.gb-cert .c-seal i { font-size: clamp(15px, 2vw, 20px); margin-bottom: 1px; }

.cert-side h2 { color: #fff; font-size: 23px; margin-bottom: 10px; }
.cert-side p { color: rgba(255,255,255,.75); font-size: 14px; margin-bottom: 18px; line-height: 1.7; }
.cert-side ul { list-style: none; margin: 0; }
.cert-side ul li {
    display: flex; gap: 12px;
    padding: 10px 0;
    color: rgba(255,255,255,.9);
    font-size: 14px;
    border-bottom: 1px dashed rgba(255,255,255,.18);
}
.cert-side ul li i { color: #f6d365; width: 20px; text-align: center; margin-top: 3px; }

/* ============================ 权益 6 宫格 ============================ */
.benefit-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
@media (max-width: 768px) { .benefit-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .benefit-grid { grid-template-columns: 1fr; } }
.benefit-item {
    background: #fff;
    border-radius: 14px;
    padding: 22px 20px;
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
    transition: transform .2s, box-shadow .2s;
}
.benefit-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.benefit-item i {
    font-size: 28px;
    width: 60px; height: 60px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 12px;
    border-radius: 16px;
    background: rgba(212,167,44,.12);
    color: #b8860b;
}
.benefit-item h4 { font-size: 15px; color: var(--text-title); margin-bottom: 5px; }
.benefit-item p { font-size: 12.5px; color: var(--text-secondary); line-height: 1.6; }

/* ============================ FAQ ============================ */
.faq-list { max-width: 860px; margin: 0 auto; }
.faq-item {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}
.faq-q {
    width: 100%;
    border: none;
    background: none;
    text-align: left;
    padding: 17px 20px;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-title);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
}
.faq-q i.fa-circle-question { color: #b8860b; }
.faq-q .faq-arrow { margin-left: auto; transition: transform .25s; color: var(--text-light); }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
}
.faq-a p {
    padding: 0 20px 17px 46px;
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.75;
}

/* ============================ 报名 CTA ============================ */
.apply-cta {
    background:
        radial-gradient(circle at 12% 20%, rgba(246,211,101,.25), transparent 40%),
        linear-gradient(120deg, #143a73, #0b1e3f);
    border-radius: 18px;
    padding: 40px 32px;
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 30px;
    align-items: center;
}
@media (max-width: 860px) { .apply-cta { grid-template-columns: 1fr; } }
.apply-cta h2 { color: #fff; font-size: 25px; margin-bottom: 10px; }
.apply-cta p { color: rgba(255,255,255,.78); font-size: 14px; line-height: 1.75; margin-bottom: 16px; }
.apply-cta .cta-tips { display: flex; gap: 18px; flex-wrap: wrap; }
.apply-cta .cta-tips span { color: #f6d365; font-size: 13px; }
.apply-cta .cta-tips i { margin-right: 6px; }

.apply-form {
    background: #fff;
    border-radius: 14px;
    padding: 22px 20px;
    box-shadow: 0 16px 40px rgba(0,0,0,.3);
}
.apply-form h3 { font-size: 17px; margin-bottom: 14px; color: var(--text-title); text-align: center; }
.apply-form .af-field { margin-bottom: 12px; }
.apply-form input,
.apply-form select {
    width: 100%;
    padding: 11px 13px;
    border: 1.5px solid var(--border-color);
    border-radius: 9px;
    font-size: 14px;
    outline: none;
    background: #fff;
}
.apply-form input:focus,
.apply-form select:focus { border-color: var(--primary); }
.btn-apply {
    width: 100%;
    border: none;
    cursor: pointer;
    padding: 13px;
    border-radius: 9px;
    font-size: 15px;
    font-weight: 700;
    color: #3d2b06;
    background: linear-gradient(90deg, #f6d365, #d4a72c);
    transition: filter .2s, transform .1s;
}
.btn-apply:hover { filter: brightness(1.05); }
.btn-apply:active { transform: scale(.98); }
.af-result {
    display: none;
    text-align: center;
    padding: 14px 6px 4px;
}
.af-result .ok-ring {
    width: 58px; height: 58px;
    margin: 0 auto 10px;
    border-radius: 50%;
    background: rgba(46,204,113,.12);
    color: var(--success-deep);
    display: flex; align-items: center; justify-content: center;
    font-size: 26px;
}
.af-result b { display: block; color: var(--text-title); margin-bottom: 4px; }
.af-result p { font-size: 13px; color: var(--text-secondary); margin: 0; }
.af-result .af-no {
    margin-top: 10px;
    font-size: 13px;
    color: #b8860b;
    font-weight: 700;
    letter-spacing: 1px;
}

/* ============================ 响应式 ============================ */
@media (max-width: 992px) {
    .hx-page-wrap { margin-top: 16px; padding: 0 12px; }
    .page-banner { padding: 30px 22px; }
    .gb-emblem { display: none; }
    .stats-row { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
@media (max-width: 560px) {
    .stats-row { grid-template-columns: 1fr; }
}
