/* ============================================================
   首页
   ============================================================ */

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden;
    background: var(--grad-navy);
    color: #fff;
    padding: 84px 0 96px;
}
.hero::before {
    content: ""; position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(900px 480px at 70% 0%, #000, transparent 80%);
    -webkit-mask-image: radial-gradient(900px 480px at 70% 0%, #000, transparent 80%);
}
.hero::after {
    content: ""; position: absolute; top: -220px; right: -120px;
    width: 680px; height: 560px; border-radius: 50%;
    background: radial-gradient(circle, rgba(31,139,216,.4), transparent 66%);
    pointer-events: none;
}
.hero .container {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: 1.02fr .98fr; gap: 64px; align-items: center;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 10px;
    height: 30px; padding: 0 14px;
    border: 1px solid rgba(255,255,255,.18); border-radius: var(--r-pill);
    background: rgba(255,255,255,.06);
    font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .06em;
    color: rgba(255,255,255,.85);
}
.hero-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: #4fd19b; box-shadow: 0 0 0 3px rgba(79,209,155,.2); }
.hero h1 {
    font-family: var(--font-display);
    font-size: var(--fs-mega); font-weight: 700; line-height: 1.22;
    letter-spacing: -.015em; margin: 22px 0 20px;
}
.hero h1 em { font-style: normal; color: var(--brand-300); }
.hero-sub { font-size: 17px; line-height: 1.9; color: rgba(255,255,255,.72); max-width: 520px; }
.hero-actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero-meta {
    display: flex; gap: 28px; margin-top: 44px; flex-wrap: wrap;
    color: rgba(255,255,255,.55); font-size: var(--fs-sm);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta .icon { width: 16px; height: 16px; color: var(--brand-300); }
.hero-meta b { color: rgba(255,255,255,.9); font-weight: 600; font-family: var(--font-mono); }

/* 后台界面示意（浏览器外壳，正式版替换为真实截图） */
.product-shot {
    border-radius: var(--r-lg);
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.14);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transform: perspective(1400px) rotateY(-6deg) rotateX(2deg);
    transition: transform .6s ease;
}
.product-shot:hover { transform: perspective(1400px) rotateY(0) rotateX(0); }
.shot-bar {
    height: 38px; background: #102f52;
    display: flex; align-items: center; gap: 7px; padding: 0 14px;
}
.shot-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.22); }
.shot-bar i:first-child { background: #ff6159; } .shot-bar i:nth-child(2) { background: #ffbd2e; } .shot-bar i:nth-child(3) { background: #28c940; }
.shot-url {
    margin-left: 12px; flex: 1; height: 22px; border-radius: 6px;
    background: rgba(255,255,255,.08);
    font-family: var(--font-mono); font-size: 11px; color: rgba(255,255,255,.5);
    display: flex; align-items: center; padding: 0 10px;
}
.shot-body { display: grid; grid-template-columns: 132px 1fr; min-height: 318px; background: #fff; }
.shot-side { background: #0d2745; padding: 16px 12px; }
.shot-side .logo-dot { width: 26px; height: 26px; border-radius: 7px; background: var(--grad-brand); margin-bottom: 18px; }
.shot-side li { height: 26px; border-radius: 6px; margin-bottom: 6px; background: rgba(255,255,255,.07); }
.shot-side li.on { background: rgba(31,139,216,.35); }
.shot-main { padding: 18px; background: #f4f7fb; }
.shot-main .row1 { display: flex; justify-content: space-between; margin-bottom: 16px; }
.shot-main .row1 b { display: block; height: 14px; width: 110px; background: var(--ink-900); border-radius: 4px; }
.shot-main .row1 .btn-fake { width: 78px; height: 28px; border-radius: 7px; background: var(--grad-brand); }
.shot-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-bottom: 16px; }
.shot-stats div { background: #fff; border: 1px solid var(--line); border-radius: 10px; height: 74px; padding: 12px; }
.shot-stats i { display: block; width: 30px; height: 8px; border-radius: 4px; background: var(--line-strong); margin-bottom: 10px; }
.shot-stats em { display: block; width: 52px; height: 16px; border-radius: 4px; background: var(--brand-200); }
.shot-chart { background: #fff; border: 1px solid var(--line); border-radius: 10px; height: 128px; padding: 14px; display: flex; align-items: flex-end; gap: 8px; }
.shot-chart i { flex: 1; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, var(--brand-400), var(--brand-600)); opacity: .85; }

/* ---------- 信任条 ---------- */
.trust { background: #fff; border-bottom: 1px solid var(--line); }
.trust .container {
    display: grid; grid-template-columns: repeat(4, 1fr);
    padding-top: 30px; padding-bottom: 30px; gap: 24px;
}
.trust-item { display: flex; gap: 14px; align-items: flex-start; }
.trust-item .ti-icon {
    width: 42px; height: 42px; border-radius: 10px; flex: none;
    background: var(--brand-50); color: var(--brand-600);
    display: flex; align-items: center; justify-content: center;
}
.trust-item h4 { font-size: 15px; color: var(--ink-900); font-weight: 600; }
.trust-item p { font-size: var(--fs-sm); color: var(--ink-400); line-height: 1.6; }

/* 特性卡 .feature-grid/.feature-card/.fc-icon 已提升至 base.css 公共组件 */

/* ---------- 模板代码带 ---------- */
.codeband { background: var(--grad-navy); position: relative; overflow: hidden; }
.codeband::before {
    content:""; position:absolute; inset:0;
    background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 44px 44px;
}
.codeband .container { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: center; }
.codeband .section-title { color: #fff; }
.codeband .section-desc { color: rgba(255,255,255,.65); }
.code-points { margin-top: 24px; display: grid; gap: 14px; }
.code-points li { display: flex; gap: 12px; color: rgba(255,255,255,.82); font-size: var(--fs-base); }
.code-points .icon { color: var(--brand-300); width: 20px; height: 20px; margin-top: 3px; }
.code-window {
    border-radius: var(--r-lg); overflow: hidden;
    background: #0a1a30; border: 1px solid rgba(255,255,255,.12);
    box-shadow: var(--shadow-lg);
}
.code-window .cw-bar { height: 40px; background: #0d2138; display: flex; align-items: center; padding: 0 16px; gap: 7px; }
.code-window .cw-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.18); }
.code-window .cw-bar i:first-child { background: #ff6159; } .cw-bar i:nth-child(2) { background: #ffbd2e; } .cw-bar i:nth-child(3) { background: #28c940; }
.code-window .cw-bar span { margin-left: 10px; font-family: var(--font-mono); font-size: 12px; color: rgba(255,255,255,.4); }
.code-window pre {
    padding: 22px 24px; font-family: var(--font-mono); font-size: 13.5px; line-height: 1.95;
    color: #cfe3f5; overflow-x: auto;
}
.t-tag { color: #6fc3ff; } .t-attr { color: #9fd48f; } .t-str { color: #e8c07d; } .t-cmt { color: #5f7fa0; } .t-fn { color: #e897c0; }

/* ---------- 版本定价 ---------- */
.edu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.edu-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
    padding: 32px 30px; display: flex; flex-direction: column;
    transition: transform .25s ease, box-shadow .25s ease;
    position: relative;
}
.edu-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.edu-card.featured { border: 2px solid var(--brand-500); box-shadow: var(--shadow-md); }
.edu-flag {
    position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
    background: var(--grad-brand); color: #fff; font-size: var(--fs-xs); font-weight: 600;
    height: 26px; padding: 0 16px; border-radius: var(--r-pill);
    display: flex; align-items: center; white-space: nowrap;
}
.edu-name { font-size: 17px; font-weight: 700; color: var(--ink-900); }
.edu-desc { font-size: var(--fs-sm); color: var(--ink-400); margin: 6px 0 20px; min-height: 42px; }
.edu-price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 22px; }
.edu-price .cny { font-size: 16px; color: var(--brand-600); font-weight: 600; }
.edu-price .num { font-family: var(--font-mono); font-size: 40px; font-weight: 700; color: var(--brand-600); letter-spacing: -.02em; line-height: 1; }
.edu-card.featured .num, .edu-card.featured .cny { color: var(--brand-700); }
.edu-price .unit { font-size: var(--fs-sm); color: var(--ink-400); }
.edu-list { display: grid; gap: 11px; margin-bottom: 26px; flex: 1; }
.edu-list li { display: flex; gap: 10px; font-size: var(--fs-sm); color: var(--ink-600); align-items: flex-start; }
.edu-list .icon { width: 17px; height: 17px; color: var(--success); margin-top: 4px; flex: none; }
.edu-list li.off { color: var(--ink-300); }
.edu-list li.off .icon { color: var(--ink-300); }
/* 买断版深色 */
.edu-card.dark { background: linear-gradient(165deg, #123d6b, #0a2747); border-color: transparent; }
.edu-card.dark .edu-name, .edu-card.dark .num { color: #fff; }
.edu-card.dark .edu-desc, .edu-card.dark .edu-list li, .edu-card.dark .edu-price .cny, .edu-card.dark .edu-price .unit { color: rgba(255,255,255,.65); }
.edu-card.dark .edu-list .icon { color: #6fd3a4; }
.edu-card.dark .btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.edu-card.dark .btn-outline:hover { background: rgba(255,255,255,.1); }

/* ---------- 新闻 ---------- */
.news-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.news-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.news-panel-head {
    padding: 20px 26px; border-bottom: 1px solid var(--line);
    display: flex; align-items: center; justify-content: space-between;
}
.news-panel-head h3 { font-size: 17px; color: var(--ink-900); font-weight: 600; display: flex; align-items: center; gap: 10px; }
.news-panel-head h3::before { content: ""; width: 4px; height: 16px; border-radius: 2px; background: var(--grad-brand); }
.news-panel-head a { font-size: var(--fs-sm); color: var(--ink-400); }
.news-panel-head a:hover { color: var(--brand-600); }
.news-list li { display: flex; gap: 18px; padding: 17px 26px; border-bottom: 1px solid var(--line); align-items: center; }
.news-list li:last-child { border-bottom: none; }
.news-list a { flex: 1; font-size: var(--fs-base); color: var(--ink-700); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.news-list a:hover { color: var(--brand-700); }
.news-list .date { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--ink-400); flex: none; }

/* CTA 条 .cta-band 已提升至 base.css 公共组件 */

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
    .hero .container { grid-template-columns: 1fr; gap: 48px; }
    .codeband .container { grid-template-columns: 1fr; gap: 36px; }
    .edu-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
}
@media (max-width: 768px) {
    .hero { padding: 56px 0 64px; }
    /* 移动端隐藏：后台预览图、"浏览应用插件"按钮、PHP 版本与数据库 tag
       这些只在 PC 端 hero 布局里有视觉意义，小屏显示拥挤 */
    .product-shot { display: none; }
    .hero-actions .btn-ghost-light { display: none; }
    .hero-meta span:nth-child(2),
    .hero-meta span:nth-child(3) { display: none; }
    .trust .container { grid-template-columns: 1fr 1fr; gap: 20px; }
    .news-wrap { grid-template-columns: 1fr; }
    .shot-body { grid-template-columns: 96px 1fr; }
    .section { padding: 64px 0; }
}
.cl-cat {
    margin-left: auto;
    flex: none;
    font-size: var(--fs-xs);
    color: var(--ink-500);
    background: var(--bg-soft);
    border: 1px solid var(--line);
    padding: 1px 10px;
    border-radius: var(--r-pill);
}