/* ============================================================
   电商 SKILL 工厂 · 专属样式 (skill.css)
   仅在 SKILL 相关页面通过 $extra_css 引入
   复用 style.css 的 CSS 变量，保证视觉一致
   ============================================================ */

/* ---------- 通用区块 ---------- */
.skill-section {
    padding: 56px 0;
}
.skill-section.alt {
    background: var(--bg-light);
}
.skill-section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 36px;
}
.skill-section-head h2 {
    font-size: 28px;
    font-weight: 800;
    color: var(--text);
    margin: 0 0 12px;
    letter-spacing: -0.5px;
}
.skill-section-head p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.7;
    margin: 0;
}

/* ---------- 首页 Hero ---------- */
.skill-hero {
    position: relative;
    background: linear-gradient(135deg, #0f3d33 0%, #14584a 55%, #1a7a5f 100%);
    color: #fff;
    overflow: hidden;
    padding: 76px 0 84px;
}
.skill-hero::after {
    content: "";
    position: absolute;
    right: -120px;
    top: -80px;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(255,255,255,.12), transparent 70%);
    border-radius: 50%;
}
.skill-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 760px;
}
.skill-hero .eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #9ff0d6;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.18);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 18px;
}
.skill-hero h1 {
    font-size: 40px;
    line-height: 1.25;
    font-weight: 800;
    margin: 0 0 18px;
    letter-spacing: -1px;
}
.skill-hero h1 .hl { color: #7af0c8; }
.skill-hero p.lead {
    font-size: 17px;
    line-height: 1.8;
    color: rgba(255,255,255,.86);
    margin: 0 0 30px;
}
.skill-hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}
.skill-hero .btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.12);
    color: #fff;
    border: 1px solid rgba(255,255,255,.25);
    padding: 12px 22px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: background .2s ease;
}
.skill-hero .btn-ghost:hover { background: rgba(255,255,255,.22); }
.skill-hero .btn-solid {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: #14584a;
    padding: 12px 22px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: transform .2s ease;
}
.skill-hero .btn-solid:hover { transform: translateY(-2px); }

/* ---------- SKILL 筛选 ---------- */
.skill-filter {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 32px;
}
.skill-filter a {
    display: inline-block;
    padding: 9px 20px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text-light);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all .18s ease;
}
.skill-filter a:hover { border-color: var(--primary); color: var(--primary); }
.skill-filter a.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* ---------- SKILL 卡片网格 ---------- */
.skill-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.skill-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px 22px 20px;
    text-decoration: none;
    color: var(--text);
    transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.skill-card:hover {
    box-shadow: 0 12px 30px rgba(20,88,74,.12);
    transform: translateY(-3px);
    border-color: rgba(20,88,74,.35);
}
.skill-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}
.skill-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #14584a, #1a9c74);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 18px;
    flex-shrink: 0;
}
.skill-card-name {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 10px;
}
.skill-card-tagline {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
    flex: 1;
    margin: 0 0 16px;
}
.skill-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border-top: 1px solid var(--border-light);
    padding-top: 14px;
}
.skill-card-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
}
.skill-card-more {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    white-space: nowrap;
}

/* ---------- 状态徽章 ---------- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}
.badge::before {
    content: "";
    width: 6px; height: 6px;
    border-radius: 50%;
    background: currentColor;
}
.badge-online { color: #15803d; background: #dcfce7; }
.badge-beta   { color: #1d4ed8; background: #dbeafe; }
.badge-soon   { color: #6b7280; background: #f1f5f9; }

/* ---------- 标签 chips ---------- */
.skill-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.tag {
    font-size: 12px;
    color: var(--text-light);
    background: var(--bg-gray);
    border: 1px solid var(--border-light);
    padding: 2px 9px;
    border-radius: 6px;
}

/* ---------- 最新文章 ---------- */
.skill-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.skill-news-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    color: var(--text);
    transition: box-shadow .2s ease, transform .2s ease;
}
.skill-news-card:hover { box-shadow: 0 10px 26px rgba(0,0,0,.08); transform: translateY(-3px); }
.skill-news-thumb {
    height: 160px;
    background: linear-gradient(135deg, #14584a, #1a9c74);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,.9); font-size: 13px; font-weight: 600;
}
.skill-news-body { padding: 16px 18px 18px; }
.skill-news-body .cat {
    font-size: 12px; color: var(--primary); font-weight: 700; margin-bottom: 8px;
}
.skill-news-body h3 {
    font-size: 16px; font-weight: 700; line-height: 1.5; margin: 0 0 10px;
}
.skill-news-body .date { font-size: 12px; color: var(--text-muted); }

/* ---------- 加微信 CTA 区块 ---------- */
.cta-band {
    background: linear-gradient(135deg, #0f3d33, #14584a);
    border-radius: var(--radius-lg);
    padding: 40px 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    flex-wrap: wrap;
    color: #fff;
}
.cta-band .cta-text h2 { font-size: 24px; margin: 0 0 8px; font-weight: 800; }
.cta-band .cta-text p { font-size: 15px; color: rgba(255,255,255,.85); margin: 0; line-height: 1.7; }
.cta-band .cta-action { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.cta-band .cta-wx {
    background: #fff; color: #14584a; padding: 12px 24px;
    border-radius: var(--radius); font-weight: 700; text-decoration: none;
}
.cta-band .cta-wx code {
    background: rgba(255,255,255,.18); padding: 2px 8px; border-radius: 6px;
    font-size: 14px;
}
.cta-band .cta-phone { color: #fff; font-weight: 700; text-decoration: none; font-size: 16px; }

/* ---------- SKILL 详情页 ---------- */
.skill-detail-head {
    background: linear-gradient(135deg, #0f3d33, #14584a);
    color: #fff;
    padding: 60px 0 64px;
}
.skill-detail-head .crumb { font-size: 13px; color: rgba(255,255,255,.7); margin-bottom: 18px; }
.skill-detail-head .crumb a { color: rgba(255,255,255,.85); text-decoration: none; }
.skill-detail-head h1 { font-size: 34px; font-weight: 800; margin: 0 0 14px; letter-spacing: -.5px; }
.skill-detail-head .head-tagline { font-size: 17px; color: rgba(255,255,255,.88); line-height: 1.7; max-width: 760px; margin: 0 0 22px; }
.skill-detail-meta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.skill-detail-meta .price {
    background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25);
    padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: 15px;
}
.skill-detail-body { padding: 56px 0; }
.skill-layout { display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: start; }

.skill-block {
    background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 28px 30px; margin-bottom: 24px;
}
.skill-block h2 {
    font-size: 20px; font-weight: 800; margin: 0 0 16px;
    display: flex; align-items: center; gap: 10px;
}
.skill-block h2 .num {
    width: 28px; height: 28px; border-radius: 8px; background: var(--primary);
    color: #fff; display: inline-flex; align-items: center; justify-content: center;
    font-size: 15px; flex-shrink: 0;
}
.skill-block p { font-size: 15px; line-height: 1.8; color: var(--text); margin: 0 0 12px; }
.skill-block p:last-child { margin-bottom: 0; }

.skill-steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.skill-steps li {
    position: relative; padding: 0 0 18px 46px; font-size: 15px; line-height: 1.7; color: var(--text);
}
.skill-steps li:last-child { padding-bottom: 0; }
.skill-steps li::before {
    counter-increment: step; content: counter(step);
    position: absolute; left: 0; top: 0;
    width: 30px; height: 30px; border-radius: 50%;
    background: var(--bg-gray); color: var(--primary); font-weight: 800;
    display: flex; align-items: center; justify-content: center; font-size: 14px;
}

.skill-platforms { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-platforms .pf {
    font-size: 13px; font-weight: 600; color: var(--primary);
    background: #eef6f3; border: 1px solid #d6ebe4; padding: 5px 12px; border-radius: 8px;
}

/* 详情右侧栏 */
.skill-aside .aside-card {
    background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 24px; margin-bottom: 20px;
}
.skill-aside .aside-card h3 { font-size: 16px; margin: 0 0 14px; font-weight: 800; }
.skill-aside .wx-box {
    text-align: center; background: linear-gradient(135deg, #0f3d33, #14584a); color: #fff;
    border: none;
}
.skill-aside .wx-box .qr { background: #fff; border-radius: 10px; padding: 10px; display: inline-block; margin-bottom: 12px; }
.skill-aside .wx-box .wx-id { font-size: 18px; font-weight: 800; letter-spacing: 1px; }
.skill-aside .wx-box .tip { font-size: 13px; color: rgba(255,255,255,.8); margin-top: 8px; }
.skill-aside .wx-box .btn-get {
    display: block; margin-top: 14px; background: #fff; color: #14584a;
    padding: 11px; border-radius: var(--radius); font-weight: 700; text-decoration: none;
}

.skill-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.skill-related-card {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    padding: 16px 18px; text-decoration: none; color: var(--text);
    transition: border-color .18s ease, box-shadow .18s ease;
}
.skill-related-card:hover { border-color: var(--primary); box-shadow: 0 8px 18px rgba(0,0,0,.07); }
.skill-related-card .rn { font-size: 15px; font-weight: 700; margin: 0 0 6px; }
.skill-related-card .rt { font-size: 13px; color: var(--text-light); line-height: 1.6; }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
    .skill-grid { grid-template-columns: repeat(3, 1fr); }
    .skill-news-grid, .skill-related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
    .skill-hero { padding: 56px 0 60px; }
    .skill-hero h1 { font-size: 30px; }
    .skill-grid { grid-template-columns: repeat(2, 1fr); }
    .skill-layout { grid-template-columns: 1fr; }
    .skill-section { padding: 44px 0; }
}
@media (max-width: 540px) {
    .skill-grid { grid-template-columns: 1fr; }
    .skill-news-grid, .skill-related-grid { grid-template-columns: 1fr; }
    .cta-band { padding: 28px 22px; }
    .skill-hero h1 { font-size: 26px; }
}
