/* 省心兔 · 企业展示官网 */
html {
    scroll-behavior: smooth;
}

.section,
.hero {
    scroll-margin-top: 72px;
}

html, body {
    margin: 0;
    padding: 0;
    background: #f5f7fb;
    color: #1d2129;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }

img { max-width: 100%; height: auto; }

a { color: #325dff; text-decoration: none; }
a:hover { opacity: 0.85; }

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

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(229, 230, 235, 0.9);
}

.site-header .inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    gap: 16px;
    position: relative;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #1d2129;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
    min-width: 0;
}

.brand img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    flex-shrink: 0;
}

.brand span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px 16px;
    font-size: 14px;
}

.nav a {
    color: #4e5969;
    padding: 4px 0;
}

.nav a:hover { color: #325dff; }

/* Hero */
.hero {
    background: linear-gradient(155deg, #1b3a8c 0%, #325dff 48%, #6b8cff 100%);
    color: #fff;
    padding: 72px 0 88px;
    position: relative;
    overflow: hidden;
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.hero::before {
    width: 280px;
    height: 280px;
    right: -60px;
    top: -80px;
}

.hero::after {
    width: 180px;
    height: 180px;
    right: 18%;
    bottom: -70px;
}

.hero .container { position: relative; z-index: 1; }

.hero-kicker {
    font-size: 12px;
    letter-spacing: 2px;
    opacity: 0.85;
    margin-bottom: 14px;
}

.hero h1 {
    margin: 0 0 16px;
    font-size: 40px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0;
    word-break: break-word;
}

.hero p {
    margin: 0 0 28px;
    max-width: 640px;
    font-size: 16px;
    line-height: 1.8;
    opacity: 0.95;
}

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

.btn {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

.btn-white {
    background: #fff;
    color: #325dff !important;
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.14);
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

/* Sections */
.section {
    padding: 64px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 36px;
}

.section-title .label {
    display: inline-block;
    padding: 4px 12px;
    background: #eef2ff;
    color: #325dff;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.section-title h2 {
    margin: 0 0 10px;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0;
}

.section-title p {
    margin: 0 auto;
    max-width: 640px;
    color: #86909c;
    font-size: 14px;
    line-height: 1.7;
}

.sub-title {
    margin: 8px 0 16px;
    font-size: 16px;
    font-weight: 700;
    color: #1d2129;
}

.sub-title + .steps { margin-bottom: 28px; }

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

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

.card-grid.cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

.card {
    background: #fff;
    border-radius: 14px;
    padding: 24px 20px;
    box-shadow: 0 2px 14px rgba(20, 40, 80, 0.06);
    border: 1px solid #eef0f4;
}

.card .icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #eef2ff;
    color: #325dff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 14px;
}

.card h3 {
    margin: 0 0 8px;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0;
}

.card p {
    margin: 0;
    font-size: 13px;
    color: #86909c;
    line-height: 1.75;
}

.intro-box {
    background: #fff;
    border-radius: 14px;
    padding: 28px 24px;
    box-shadow: 0 2px 14px rgba(20, 40, 80, 0.06);
}

.intro-box > p {
    margin: 0 0 14px;
    font-size: 15px;
    color: #4e5969;
    line-height: 1.9;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 22px;
}

.stat {
    background: #f2f6ff;
    border-radius: 12px;
    padding: 16px 14px;
}

.stat strong {
    display: block;
    font-size: 15px;
    margin-bottom: 6px;
}

.stat span {
    font-size: 12px;
    color: #4e5969;
    line-height: 1.5;
}

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

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

.step {
    background: #fff;
    border-radius: 14px;
    padding: 22px 18px;
    text-align: center;
    box-shadow: 0 2px 14px rgba(20, 40, 80, 0.06);
}

.step .num {
    width: 36px;
    height: 36px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: #325dff;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.step h3 {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0;
}

.step p {
    margin: 0;
    font-size: 13px;
    color: #86909c;
    line-height: 1.7;
}

.info-list {
    display: grid;
    gap: 14px;
}

.info-item {
    background: #fff;
    border-radius: 14px;
    padding: 20px 22px;
    box-shadow: 0 2px 14px rgba(20, 40, 80, 0.06);
}

.info-item h3 {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 700;
}

.info-item p {
    margin: 0;
    font-size: 14px;
    color: #4e5969;
    line-height: 1.85;
}

.faq-list {
    display: grid;
    gap: 10px;
}

.faq-item {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #eef0f4;
    padding: 0 18px;
}

.faq-item summary {
    cursor: pointer;
    list-style: none;
    padding: 16px 28px 16px 0;
    font-size: 15px;
    font-weight: 700;
    position: relative;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #325dff;
    font-weight: 500;
}

.faq-item[open] summary::after { content: "–"; }

.faq-item p {
    margin: 0 0 16px;
    font-size: 14px;
    color: #4e5969;
    line-height: 1.85;
}

.help-box {
    background: #fff;
    border-radius: 14px;
    padding: 28px 24px;
    box-shadow: 0 2px 14px rgba(20, 40, 80, 0.06);
}

.help-box ul {
    margin: 0 0 16px;
    padding-left: 18px;
}

.help-box li {
    margin: 0 0 8px;
    font-size: 14px;
    color: #4e5969;
    line-height: 1.8;
    word-break: break-word;
}

.help-note {
    margin: 0;
    font-size: 13px;
    color: #86909c;
    line-height: 1.8;
}

/* Contact */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 20px;
    align-items: start;
}

.contact-info {
    display: grid;
    gap: 12px;
}

.contact-card {
    background: #f5f7fb;
    border-radius: 14px;
    padding: 18px 16px;
    border: 1px solid #eef0f4;
}

.contact-card-link {
    display: block;
    color: inherit;
    background: #eef2ff;
    border-color: #dbe4ff;
}

.contact-card-link:hover { opacity: 1; }

.contact-card-label {
    font-size: 12px;
    color: #86909c;
    margin-bottom: 6px;
}

.contact-card-value {
    font-size: 16px;
    font-weight: 700;
    color: #1d2129;
    word-break: break-word;
}

.contact-card-action {
    margin-top: 8px;
    font-size: 13px;
    color: #325dff;
    font-weight: 600;
}

.contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-weight: 600;
}

.contact-form {
    background: #fff;
    border-radius: 14px;
    padding: 24px 20px;
    box-shadow: 0 2px 14px rgba(20, 40, 80, 0.06);
    border: 1px solid #eef0f4;
}

.contact-form .form-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 16px;
}

.form-field {
    display: block;
    margin-bottom: 14px;
}

.form-field span {
    display: block;
    font-size: 13px;
    color: #4e5969;
    margin-bottom: 6px;
}

.form-field input,
.form-field textarea {
    width: 100%;
    border: 1px solid #e5e6eb;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 15px;
    color: #1d2129;
    background: #fff;
    outline: none;
    font-family: inherit;
    resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
    border-color: #325dff;
    box-shadow: 0 0 0 3px rgba(50, 93, 255, 0.12);
}

.btn-primary {
    width: 100%;
    border: 0;
    cursor: pointer;
    background: #325dff;
    color: #fff !important;
    padding: 13px 18px;
}

.btn-primary:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.contact-tip {
    min-height: 20px;
    margin: 0 0 12px;
    font-size: 13px;
    line-height: 1.5;
}

.contact-tip.is-ok { color: #00b42a; }
.contact-tip.is-err { color: #f53f3f; }

/* App-like bottom tabbar (mobile only) */
.tabbar {
    display: none;
}

/* Legal pages */
.legal-page {
    padding: 40px 0 64px;
}

.legal-page h1 {
    margin: 0 0 8px;
    font-size: 28px;
    word-break: break-word;
}

.legal-meta {
    margin: 0 0 24px;
    color: #86909c;
    font-size: 13px;
}

.legal-body {
    background: #fff;
    border-radius: 14px;
    padding: 28px 24px;
    box-shadow: 0 2px 14px rgba(20, 40, 80, 0.06);
    overflow-wrap: break-word;
}

.legal-body h2 {
    margin: 24px 0 10px;
    font-size: 18px;
}

.legal-body h2:first-child { margin-top: 0; }

.legal-body p {
    margin: 0 0 10px;
    font-size: 14px;
    color: #4e5969;
    line-height: 1.9;
}

/* Footer */
.site-footer {
    background: #111827;
    color: rgba(255, 255, 255, 0.72);
    padding: 28px 0;
    font-size: 13px;
    text-align: center;
}

.site-footer a { color: rgba(255, 255, 255, 0.85); }
.site-footer .brand-line {
    color: #fff;
    font-weight: 600;
    margin-bottom: 8px;
}

.footer-links {
    margin: 0 0 8px;
}

.footer-links span {
    margin: 0 8px;
    color: rgba(255, 255, 255, 0.35);
}

.site-footer p {
    margin: 0 0 6px;
    padding: 0 8px;
    line-height: 1.7;
    word-break: break-word;
}

/* Tablet */
@media (max-width: 960px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .steps,
    .steps.cols-4,
    .stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 860px) {
    .container {
        padding: 0 16px;
    }

    body.has-tabbar {
        padding-bottom: calc(64px + env(safe-area-inset-bottom));
    }

    .site-header .inner {
        min-height: 52px;
        justify-content: center;
    }

    .brand { font-size: 16px; }
    .brand img {
        width: 32px;
        height: 32px;
    }

    .nav-desktop {
        display: none;
    }

    .tabbar {
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 200;
        height: calc(56px + env(safe-area-inset-bottom));
        padding: 6px 4px env(safe-area-inset-bottom);
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(12px);
        border-top: 1px solid #eef0f4;
        box-shadow: 0 -4px 20px rgba(20, 40, 80, 0.06);
    }

    .tab-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        color: #86909c;
        font-size: 11px;
        line-height: 1.2;
        -webkit-tap-highlight-color: transparent;
        text-decoration: none;
        min-width: 0;
    }

    .tab-item svg {
        width: 22px;
        height: 22px;
        display: block;
    }

    .tab-item span {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

    .tab-item.is-active {
        color: #325dff;
        opacity: 1;
    }

    .tab-item:hover { opacity: 1; }

    .hero { padding: 36px 0 48px; }
    .hero h1 { font-size: 26px; }
    .hero p {
        font-size: 14px;
        margin-bottom: 22px;
        line-height: 1.75;
    }
    .hero-actions {
        flex-direction: column;
    }
    .hero-actions .btn {
        width: 100%;
        padding: 14px 18px;
    }

    .card-grid,
    .card-grid.cols-2,
    .card-grid.cols-4 {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .steps,
    .steps.cols-4 {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .stat-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .section { padding: 40px 0; }
    .section-title { margin-bottom: 24px; }
    .section-title h2 { font-size: 22px; }
    .section-title p { font-size: 13px; padding: 0 4px; }

    .intro-box,
    .help-box,
    .contact-form {
        padding: 20px 16px;
    }

    .intro-box > p { font-size: 14px; }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .card,
    .step,
    .info-item {
        padding: 18px 16px;
    }

    .info-item p,
    .faq-item p,
    .help-box li {
        font-size: 13px;
    }

    .faq-item {
        padding: 0 14px;
    }

    .faq-item summary {
        font-size: 14px;
        padding: 14px 24px 14px 0;
    }

    .legal-page { padding: 24px 0 40px; }
    .legal-page h1 { font-size: 22px; }
    .legal-body { padding: 20px 16px; }

    .site-footer {
        padding: 24px 0;
        font-size: 12px;
    }

    .footer-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px 0;
    }
}

/* Narrow phones */
@media (max-width: 400px) {
    .brand span { max-width: 140px; }
    .hero h1 { font-size: 24px; }
    .steps,
    .steps.cols-4,
    .stat-grid {
        grid-template-columns: 1fr;
    }
    .btn { font-size: 13px; }
}
