/* ========== 功能页 — Flat SaaS ========== */

/* ---------- 01 页首 ---------- */
.f-head { padding: clamp(56px, 7vw, 88px) 0 0; }
.f-head-grid {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 44px;
    align-items: center;
}
.f-title {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    font-size: clamp(28px, 4vw, 44px);
    color: var(--ink);
    text-wrap: balance;
}
.f-title em { font-style: normal; color: var(--navy); }
.f-lead {
    margin-top: 16px;
    font-size: 16px;
    line-height: 1.85;
    color: var(--ink-2);
    max-width: 560px;
}
.f-head-actions { margin-top: 26px; }

.f-head-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.stat-box {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.stat-num {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 34px;
    color: var(--blue);
    letter-spacing: -0.01em;
    font-variant-numeric: tabular-nums;
}
.stat-label { font-size: 13px; color: var(--ink-2); }

/* ---------- 02 PII 准则 ---------- */
.f-pledge { padding: 48px 0 0; }
.pledge-panel {
    background: var(--blue-soft);
    border: 1px solid #dbeafe;
    border-radius: var(--radius);
    padding: 28px 30px;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 30px;
    align-items: start;
}
.pledge-head { display: flex; gap: 14px; align-items: center; }
.pledge-icon {
    width: 48px; height: 48px;
    flex: none;
    display: flex; align-items: center; justify-content: center;
    background: var(--navy);
    color: #fff;
    border-radius: 12px;
    font-size: 19px;
}
.pledge-titles { display: flex; flex-direction: column; }
.pledge-title { font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--navy); }
.pledge-sub { font-size: 12px; color: var(--blue); font-weight: 600; letter-spacing: 0.03em; }

.pledge-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pledge-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
}
.pledge-idx {
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 600;
    color: var(--blue);
    background: var(--blue-soft);
    border-radius: 7px;
    padding: 2px 8px;
    flex: none;
}
.pledge-item p { font-size: 13.5px; line-height: 1.75; color: var(--ink-2); }

/* ---------- 03 模块档案 Tab ---------- */
.f-registry { padding: var(--space-sec) 0; }

.tabs { position: relative; }
.tabs > input { position: absolute; opacity: 0; pointer-events: none; }

.tab-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 28px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 8px;
}
.tab-bar label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    color: var(--ink-2);
    cursor: pointer;
    transition: all var(--t-fast);
    flex: 1;
    justify-content: center;
    white-space: nowrap;
}
.tab-bar label:hover { background: var(--card-soft); color: var(--ink); }
.tab-idx { font-family: var(--font-display); font-size: 11.5px; color: var(--ink-3); }
.tab-count {
    font-size: 11px;
    color: var(--blue);
    background: var(--blue-soft);
    border-radius: 999px;
    padding: 1px 8px;
    font-weight: 700;
}

.tab-panel { display: none; }
#tab-01:checked ~ .tab-bar label[for="tab-01"],
#tab-02:checked ~ .tab-bar label[for="tab-02"],
#tab-03:checked ~ .tab-bar label[for="tab-03"],
#tab-04:checked ~ .tab-bar label[for="tab-04"],
#tab-05:checked ~ .tab-bar label[for="tab-05"],
#tab-06:checked ~ .tab-bar label[for="tab-06"],
#tab-07:checked ~ .tab-bar label[for="tab-07"] {
    background: var(--navy);
    color: #fff;
}
#tab-01:checked ~ .tab-bar label[for="tab-01"] .tab-idx,
#tab-02:checked ~ .tab-bar label[for="tab-02"] .tab-idx,
#tab-03:checked ~ .tab-bar label[for="tab-03"] .tab-idx,
#tab-04:checked ~ .tab-bar label[for="tab-04"] .tab-idx,
#tab-05:checked ~ .tab-bar label[for="tab-05"] .tab-idx,
#tab-06:checked ~ .tab-bar label[for="tab-06"] .tab-idx,
#tab-07:checked ~ .tab-bar label[for="tab-07"] .tab-idx { color: #93c5fd; }
#tab-01:checked ~ .tab-bar label[for="tab-01"] .tab-count,
#tab-02:checked ~ .tab-bar label[for="tab-02"] .tab-count,
#tab-03:checked ~ .tab-bar label[for="tab-03"] .tab-count,
#tab-04:checked ~ .tab-bar label[for="tab-04"] .tab-count,
#tab-05:checked ~ .tab-bar label[for="tab-05"] .tab-count,
#tab-06:checked ~ .tab-bar label[for="tab-06"] .tab-count,
#tab-07:checked ~ .tab-bar label[for="tab-07"] .tab-count { background: rgba(255, 255, 255, 0.16); color: #fff; }

#tab-01:checked ~ .tab-panel:nth-of-type(2),
#tab-02:checked ~ .tab-panel:nth-of-type(3),
#tab-03:checked ~ .tab-panel:nth-of-type(4),
#tab-04:checked ~ .tab-panel:nth-of-type(5),
#tab-05:checked ~ .tab-panel:nth-of-type(6),
#tab-06:checked ~ .tab-panel:nth-of-type(7),
#tab-07:checked ~ .tab-panel:nth-of-type(8) { display: block; animation: tabIn 0.3s var(--ease); }

@keyframes tabIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.mod-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.mod-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: border-color var(--t-fast), transform var(--t-fast);
}
.mod-card:hover { border-color: var(--blue); transform: translateY(-2px); }
.mod-head { display: flex; align-items: center; gap: 14px; }
.mod-icon {
    width: 42px; height: 42px;
    flex: none;
    display: flex; align-items: center; justify-content: center;
    background: var(--blue-soft);
    color: var(--blue);
    border-radius: 11px;
    font-size: 17px;
}
.mod-titles { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.mod-titles h3 { font-family: var(--font-display); font-size: 16px; font-weight: 600; color: var(--ink); }
.mod-role { font-size: 11.5px; color: var(--ink-3); letter-spacing: 0.02em; }
.mod-status {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 600;
    color: var(--green-deep);
    background: var(--green-soft);
    border-radius: 999px;
    padding: 4px 11px;
    white-space: nowrap;
}
.mod-status--beta { color: var(--amber); background: var(--amber-soft); }
.mod-card > p { font-size: 13.5px; line-height: 1.8; color: var(--ink-2); }

/* ---------- 04 CTA ---------- */
.f-cta { padding: 0 0 var(--space-sec); }
.f-cta-panel {
    background: var(--navy);
    border-radius: 20px;
    padding: clamp(36px, 5vw, 56px) clamp(28px, 4vw, 52px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}
.f-cta-text { display: flex; flex-direction: column; gap: 8px; }
.f-cta-kicker { font-size: 12px; font-weight: 700; letter-spacing: 0.22em; color: #7dd3fc; }
.f-cta-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(21px, 2.6vw, 28px); color: #fff; }
.f-cta-sub { font-size: 14px; color: #cbd5e1; }
.f-cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
    .f-head-grid { grid-template-columns: 1fr; gap: 32px; }
    .pledge-panel { grid-template-columns: 1fr; }
    .mod-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .pledge-grid { grid-template-columns: 1fr; }
    .tab-bar label { flex: 1 1 calc(50% - 8px); }
    .f-head-stats { grid-template-columns: 1fr 1fr; }
    .f-cta-panel { flex-direction: column; align-items: flex-start; }
    .f-cta-actions .btn { width: 100%; }
}