/* 小能探校 Web 站 · 公共样式 */
:root {
    --brand: #4A90D9;
    --brand-dark: #357ABD;
    --brand-light: #EBF4FC;
    --bg: #F5F7FA;
    --text: #1A1A1A;
    --gray: #666666;
    --gray-light: #999999;
    --red: #E74C3C;
    --green: #27AE60;
    --radius: 16px;
    --shadow: 0 8px 24px rgba(74, 144, 217, .10);
    --shadow-hover: 0 14px 34px rgba(74, 144, 217, .18);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #333;
    background: #FFFFFF;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== 顶部导航 ===== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, .05);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 21px;
    font-weight: 700;
    color: var(--brand);
    letter-spacing: .5px;
}

.logo-mark {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, #4A90D9, #357ABD);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 6px 14px rgba(74, 144, 217, .35);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 34px;
}

.nav-menu a {
    font-size: 16px;
    color: #444;
    padding: 6px 0;
    position: relative;
    transition: color .2s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--brand);
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 2px;
    border-radius: 2px;
    background: var(--brand);
}

.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: none;
    background: var(--brand-light);
    border-radius: 10px;
    color: var(--brand);
    font-size: 20px;
    cursor: pointer;
}

/* ===== 按钮 ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    padding: 0 30px;
    border: none;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s, opacity .2s;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, #4A90D9, #357ABD);
    color: #FFFFFF;
    box-shadow: 0 8px 20px rgba(74, 144, 217, .32);
}

.btn-outline {
    background: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, .8);
    color: #FFFFFF;
}

.btn-outline-blue {
    background: #FFFFFF;
    border: 1px solid var(--brand);
    color: var(--brand);
}

.btn-block {
    width: 100%;
}

/* ===== 通用区块 ===== */
.section {
    padding: 88px 0;
}

.section-gray {
    background: var(--bg);
}

.section-head {
    text-align: center;
    margin-bottom: 52px;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 14px;
}

.section-desc {
    font-size: 17px;
    color: var(--gray);
    max-width: 680px;
    margin: 0 auto;
}

.sub-title {
    display: flex;
    align-items: center;
    font-size: 26px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 20px;
}

.sub-title::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 26px;
    border-radius: 3px;
    background: var(--brand);
    margin-right: 14px;
}

/* ===== 首屏 Banner ===== */
.hero {
    position: relative;
    padding: 90px 0 96px;
    background: linear-gradient(135deg, #EBF4FC 0%, #F5F7FA 55%, #FFFFFF 100%);
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    right: -180px;
    top: -140px;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(74, 144, 217, .16), rgba(74, 144, 217, 0) 70%);
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 56px;
}

.hero-left {
    flex: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 999px;
    background: #FFFFFF;
    color: var(--brand);
    font-size: 14px;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}

.hero-title {
    font-size: 46px;
    line-height: 1.25;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 18px;
}

.hero-title em {
    font-style: normal;
    color: var(--brand);
}

.hero-sub {
    font-size: 19px;
    color: var(--gray);
    margin-bottom: 26px;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 34px;
}

.hero-tag {
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(74, 144, 217, .1);
    color: var(--brand-dark);
    font-size: 14px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* 首屏右侧模拟定位报告卡 */
.hero-right {
    width: 400px;
    flex-shrink: 0;
}

.mock-card {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 18px 40px rgba(74, 144, 217, .18);
}

.mock-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.mock-head span {
    font-size: 15px;
    color: var(--gray);
}

.mock-robot {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--brand-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.mock-score {
    font-size: 46px;
    font-weight: 800;
    color: var(--brand);
    line-height: 1.1;
}

.mock-score small {
    font-size: 16px;
    font-weight: 500;
    margin-left: 4px;
}

.mock-label {
    font-size: 14px;
    color: var(--gray-light);
    margin-bottom: 22px;
}

.mock-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-top: 1px dashed #E6ECF3;
    font-size: 15px;
}

.mock-row span {
    color: var(--gray);
}

.mock-row b {
    color: var(--text);
    font-weight: 600;
}

.mock-bar {
    height: 8px;
    border-radius: 4px;
    background: #EEF3F8;
    overflow: hidden;
    margin: 18px 0 14px;
}

.mock-bar i {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 4px;
    background: linear-gradient(90deg, #4A90D9, #6FB3F0);
    transition: width 1.2s ease;
}

.mock-tip {
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--brand-light);
    color: var(--brand-dark);
    font-size: 14px;
    text-align: center;
}

/* ===== 数据条 ===== */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: -48px;
    position: relative;
    z-index: 2;
}

.stat-item {
    background: #FFFFFF;
    border-radius: var(--radius);
    padding: 26px 20px;
    text-align: center;
    box-shadow: var(--shadow);
}

.stat-num {
    font-size: 34px;
    font-weight: 800;
    color: var(--brand);
    line-height: 1.2;
}

.stat-num small {
    font-size: 16px;
    font-weight: 600;
}

.stat-label {
    font-size: 15px;
    color: var(--gray);
    margin-top: 6px;
}

/* ===== 服务六宫格 ===== */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.card {
    background: #FFFFFF;
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
    transition: transform .25s, box-shadow .25s;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.service-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 18px;
    background: var(--brand-light);
}

.service-name {
    font-size: 19px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.service-desc {
    font-size: 15px;
    color: var(--gray);
}

/* ===== 流程步骤 ===== */
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    counter-reset: step;
}

.step-item {
    position: relative;
    text-align: center;
    padding: 30px 22px;
    background: #FFFFFF;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.step-item::before {
    content: '';
    position: absolute;
    top: 34px;
    right: -18px;
    width: 22px;
    height: 22px;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B9CFE7' stroke-width='2'><path d='M5 12h13M13 6l6 6-6 6'/></svg>") center/contain no-repeat;
}

.step-item:last-child::before {
    display: none;
}

.step-num {
    width: 54px;
    height: 54px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4A90D9, #357ABD);
    color: #FFFFFF;
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 18px rgba(74, 144, 217, .3);
}

.step-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.step-desc {
    font-size: 15px;
    color: var(--gray);
}

/* ===== 优势 ===== */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.adv-item {
    padding: 28px 24px;
    border-radius: var(--radius);
    background: #FFFFFF;
    border: 1px solid #EAF0F7;
    transition: transform .25s, box-shadow .25s;
}

.adv-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.adv-icon {
    font-size: 28px;
    margin-bottom: 14px;
}

.adv-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

.adv-desc {
    font-size: 15px;
    color: var(--gray);
}

/* ===== 家长评价 ===== */
.say-item {
    padding: 28px;
    border-radius: var(--radius);
    background: #FFFFFF;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.say-text {
    font-size: 15px;
    color: #444;
    line-height: 1.85;
}

.say-user {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
}

.say-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4A90D9, #6FB3F0);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.say-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}

.say-meta {
    font-size: 13px;
    color: var(--gray-light);
}

/* ===== 时间轴 ===== */
.timeline {
    position: relative;
    padding-left: 34px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 9px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: linear-gradient(180deg, var(--brand), #D7E7F7);
}

.tl-item {
    position: relative;
    padding-bottom: 28px;
}

.tl-item:last-child {
    padding-bottom: 0;
}

.tl-item::before {
    content: '';
    position: absolute;
    left: -31px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 3px solid var(--brand);
}

.tl-month {
    font-size: 15px;
    font-weight: 700;
    color: var(--brand);
    margin-bottom: 4px;
}

.tl-desc {
    font-size: 15px;
    color: var(--gray);
}

/* ===== 留资表单 ===== */
.cta-wrap {
    background: linear-gradient(135deg, #4A90D9, #357ABD);
    border-radius: 24px;
    padding: 56px 60px;
    display: flex;
    align-items: center;
    gap: 50px;
    color: #FFFFFF;
    box-shadow: 0 18px 40px rgba(53, 122, 189, .28);
}

.cta-left {
    flex: 1;
}

.cta-title {
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 14px;
}

.cta-desc {
    font-size: 16px;
    opacity: .92;
}

.cta-points {
    margin-top: 20px;
    display: grid;
    gap: 10px;
    font-size: 15px;
}

.cta-points li::before {
    content: '✓';
    margin-right: 8px;
}

.form-card {
    width: 420px;
    flex-shrink: 0;
    background: #FFFFFF;
    border-radius: 18px;
    padding: 28px;
    color: #333;
}

.form-title {
    font-size: 19px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 18px;
}

.form-row {
    margin-bottom: 14px;
}

.form-row input,
.form-row select,
.form-row textarea {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1px solid #DDE5EE;
    border-radius: 10px;
    font-size: 15px;
    color: #333;
    outline: none;
    background: #FBFCFE;
    transition: border-color .2s, background .2s;
    font-family: inherit;
}

.form-row textarea {
    height: 88px;
    padding: 12px 14px;
    resize: vertical;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
    border-color: var(--brand);
    background: #FFFFFF;
}

.form-tip {
    font-size: 13px;
    color: var(--gray-light);
    margin-top: 10px;
    text-align: center;
}

.form-msg {
    display: none;
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    background: #EAF7EF;
    color: var(--green);
    font-size: 14px;
    text-align: center;
}

.form-msg.error {
    background: #FDECEA;
    color: var(--red);
}

/* ===== 联系卡片 ===== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.contact-item {
    text-align: center;
    padding: 28px 20px;
    border-radius: var(--radius);
    background: #FFFFFF;
    box-shadow: var(--shadow);
}

.contact-icon {
    font-size: 30px;
    margin-bottom: 12px;
}

.contact-label {
    font-size: 14px;
    color: var(--gray-light);
    margin-bottom: 6px;
}

.contact-value {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    word-break: break-all;
}

.qr-card {
    text-align: center;
    padding: 34px;
}

.qr-box {
    width: 168px;
    height: 168px;
    margin: 0 auto 16px;
    border-radius: 14px;
    border: 1px solid #E6ECF3;
    display: flex;
    align-items: center;
    justify-content: center;
    background: repeating-conic-gradient(#F2F6FA 0% 25%, #FFFFFF 0% 50%) 50%/18px 18px;
    color: var(--gray-light);
    font-size: 14px;
}

/* ===== 服务详情 ===== */
.detail-item {
    display: flex;
    gap: 32px;
    align-items: center;
    padding: 34px;
    background: #FFFFFF;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}

.detail-icon {
    width: 88px;
    height: 88px;
    flex-shrink: 0;
    border-radius: 20px;
    background: var(--brand-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}

.detail-title {
    font-size: 21px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
}

.detail-desc {
    font-size: 15px;
    color: var(--gray);
    margin-bottom: 14px;
}

.detail-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 20px;
}

.detail-list li {
    font-size: 14px;
    color: #555;
    padding-left: 18px;
    position: relative;
}

.detail-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand);
}

/* ===== 套餐表 ===== */
.plan-table {
    width: 100%;
    border-collapse: collapse;
    background: #FFFFFF;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    font-size: 15px;
}

.plan-table th,
.plan-table td {
    padding: 16px 18px;
    text-align: center;
    border-bottom: 1px solid #EEF2F7;
}

.plan-table thead th {
    background: var(--brand);
    color: #FFFFFF;
    font-weight: 600;
}

.plan-table thead th:first-child {
    text-align: left;
}

.plan-table td:first-child {
    text-align: left;
    color: var(--text);
    font-weight: 600;
}

.plan-table tbody tr:last-child td {
    border-bottom: none;
}

.yes {
    color: var(--green);
}

.no {
    color: #C4CCD6;
}

/* ===== FAQ ===== */
.faq-item {
    background: #FFFFFF;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 14px;
    overflow: hidden;
}

.faq-q {
    padding: 18px 24px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.faq-q::after {
    content: '+';
    color: var(--brand);
    font-size: 20px;
    font-weight: 700;
}

.faq-item.open .faq-q::after {
    content: '−';
}

.faq-a {
    display: none;
    padding: 0 24px 20px;
    font-size: 15px;
    color: var(--gray);
    line-height: 1.85;
}

.faq-item.open .faq-a {
    display: block;
}

/* ===== 关于我们 ===== */
.about-hero {
    padding: 76px 0;
    background: linear-gradient(135deg, #EBF4FC, #FFFFFF);
    text-align: center;
}

.about-hero h1 {
    font-size: 38px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 14px;
}

.about-hero p {
    font-size: 17px;
    color: var(--gray);
    max-width: 720px;
    margin: 0 auto;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.team-item {
    text-align: center;
    padding: 32px 24px;
    background: #FFFFFF;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.team-avatar {
    width: 84px;
    height: 84px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4A90D9, #6FB3F0);
    color: #FFFFFF;
    font-size: 30px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
}

.team-role {
    font-size: 14px;
    color: var(--brand);
    margin-bottom: 10px;
}

.team-desc {
    font-size: 14px;
    color: var(--gray);
}

/* ===== 页脚 ===== */
.footer {
    background: #1F2A37;
    color: #C8D3DF;
    padding: 56px 0 0;
    margin-top: 0;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 16px;
}

.footer-desc {
    font-size: 14px;
    line-height: 1.9;
    max-width: 300px;
}

.footer-title {
    font-size: 16px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 16px;
}

.footer-list li {
    font-size: 14px;
    padding: 5px 0;
}

.footer-list a:hover {
    color: #FFFFFF;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding: 20px 0;
    font-size: 13px;
    text-align: center;
    color: #8C9AAB;
}

/* ===== 滚动动画 ===== */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .6s ease, transform .6s ease;
}

.reveal.in-view {
    opacity: 1;
    transform: none;
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
    .hero-inner {
        flex-direction: column;
    }

    .hero-right {
        width: 100%;
        max-width: 420px;
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-4,
    .steps,
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-3,
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-top {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-wrap {
        flex-direction: column;
        padding: 40px 32px;
    }

    .form-card {
        width: 100%;
        max-width: 420px;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 72px;
        background: #FFFFFF;
        flex-direction: column;
        gap: 0;
        padding: 8px 24px 16px;
        box-shadow: 0 12px 24px rgba(0, 0, 0, .08);
    }

    .nav-menu.open {
        display: flex;
    }

    .nav-menu a {
        padding: 14px 0;
        border-bottom: 1px solid #F0F4F8;
    }

    .hero {
        padding: 56px 0 64px;
    }

    .hero-title {
        font-size: 32px;
    }

    .section {
        padding: 56px 0;
    }

    .section-title {
        font-size: 26px;
    }

    .grid-3,
    .grid-4,
    .steps,
    .team-grid,
    .contact-grid,
    .footer-top {
        grid-template-columns: 1fr;
    }

    .step-item::before {
        display: none;
    }

    .detail-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 24px;
    }

    .detail-list {
        grid-template-columns: 1fr;
    }

    .cta-wrap {
        padding: 32px 22px;
    }

    .cta-title {
        font-size: 24px;
    }

    .plan-table {
        font-size: 13px;
    }

    .plan-table th,
    .plan-table td {
        padding: 12px 10px;
    }
}
