:root {
    --niubiz-blue: #0755a5;
    --niubiz-blue-2: #0b73ce;
    --niubiz-cyan: #00a7e8;
    --ink: #152238;
    --muted: #66758a;
    --line: #dce5ef;
    --surface: #ffffff;
    --background: #f3f7fb;
    --success: #16875d;
    --danger: #b94343;
    --shadow: 0 18px 45px rgba(20, 54, 90, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background:
        radial-gradient(circle at 8% 5%, rgba(0,167,232,.10), transparent 26rem),
        radial-gradient(circle at 95% 18%, rgba(7,85,165,.08), transparent 25rem),
        var(--background);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

a { transition: .2s ease; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255,255,255,.95);
    border-bottom: 1px solid rgba(220,229,239,.9);
    box-shadow: 0 8px 28px rgba(22,52,86,.06);
}
.header-inner {
    max-width: 1180px;
    margin: 0 auto;
    min-height: 74px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand img { width: 132px; height: auto; display: block; }
.brand-copy { padding-left: 14px; border-left: 1px solid var(--line); }
.brand-copy strong { display: block; font-size: .92rem; letter-spacing: .02em; }
.brand-copy span { display: block; color: var(--muted); font-size: .78rem; margin-top: 2px; }
.header-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 12px; border-radius: 999px;
    background: #eef8ff; color: var(--niubiz-blue);
    font-weight: 700; font-size: .78rem;
}
.header-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #23b26d; box-shadow: 0 0 0 4px rgba(35,178,109,.12); }

.hero {
    max-width: 1180px;
    margin: 30px auto 20px;
    padding: 0 20px;
}
.hero-panel {
    position: relative; overflow: hidden;
    border-radius: 24px;
    background: linear-gradient(125deg, #063f82 0%, #0875c9 60%, #00a5e8 100%);
    box-shadow: 0 22px 55px rgba(7,85,165,.22);
    color: #fff;
    padding: 42px 46px;
    display: grid;
    grid-template-columns: minmax(0,1.5fr) minmax(220px,.5fr);
    align-items: center;
    gap: 30px;
}
.hero-panel::after {
    content: ""; position: absolute; width: 310px; height: 310px; right: -90px; top: -120px;
    border: 1px solid rgba(255,255,255,.18); border-radius: 50%; box-shadow: 0 0 0 42px rgba(255,255,255,.035), 0 0 0 84px rgba(255,255,255,.025);
}
.eyebrow { margin: 0 0 10px; font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 800; opacity: .84; }
.hero h1 { margin: 0; font-size: clamp(2rem, 5vw, 3.25rem); line-height: 1.04; font-weight: 800; }
.hero p { max-width: 690px; margin: 16px 0 0; font-size: 1rem; line-height: 1.65; color: rgba(255,255,255,.88); }
.qr-visual { position: relative; z-index: 2; display: flex; justify-content: center; }
.qr-card {
    width: 178px; height: 178px; border-radius: 24px; padding: 18px; background: rgba(255,255,255,.97);
    box-shadow: 0 18px 40px rgba(0,0,0,.18); transform: rotate(3deg); animation: qrFloat 4s ease-in-out infinite;
}
.qr-grid { width: 100%; height: 100%; border-radius: 10px; background-color: #fff; background-image: linear-gradient(90deg, #0a315e 14%, transparent 14%, transparent 28%, #0a315e 28%, #0a315e 42%, transparent 42%, transparent 56%, #0a315e 56%, #0a315e 70%, transparent 70%), linear-gradient(#0a315e 14%, transparent 14%, transparent 28%, #0a315e 28%, #0a315e 42%, transparent 42%, transparent 56%, #0a315e 56%, #0a315e 70%, transparent 70%); background-size: 34px 34px; opacity: .92; }
@keyframes qrFloat { 0%,100%{ transform: rotate(3deg) translateY(0); } 50%{ transform: rotate(1deg) translateY(-8px); } }

.page-shell { max-width: 1180px; margin: 0 auto 42px; padding: 0 20px; }
.section-card { background: var(--surface); border: 1px solid rgba(214,225,236,.9); border-radius: 20px; box-shadow: var(--shadow); margin: 20px 0; overflow: hidden; }
.section-toggle {
    width: 100%; border: 0; background: #fff; padding: 21px 24px; cursor: pointer;
    display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--ink); text-align: left;
}
.section-toggle:hover { background: #fafdff; }
.section-title { display: flex; align-items: center; gap: 13px; }
.section-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg,#e8f6ff,#edf3ff); color: var(--niubiz-blue); font-weight: 900; }
.section-title h2 { margin: 0; font-size: 1.05rem; font-weight: 800; }
.section-title small { display: block; color: var(--muted); font-size: .78rem; margin-top: 3px; font-weight: 500; }
.chevron { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #f1f6fa; color: var(--niubiz-blue); font-size: 1.1rem; transition: transform .25s ease; }
.section-toggle[aria-expanded="false"] .chevron { transform: rotate(-90deg); }
.section-body { padding: 5px 24px 24px; border-top: 1px solid #eef3f7; }
.section-body.is-collapsed { display: none; }

.form-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; padding-top: 20px; }
.form-group { margin-bottom: 0; }
.form-group label, .field-label { display: block; color: #34455a; font-size: .79rem; font-weight: 750; margin-bottom: 7px; }
.form-control, .transparent-input, .transparent-select, .transparent-textarea {
    width: 100%; border: 1px solid #cfdae5; border-radius: 10px; background: #fbfdff; color: var(--ink); box-shadow: none;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.form-control, .transparent-input, .transparent-select { min-height: 44px; padding: 9px 12px; }
.form-control:focus, .transparent-input:focus, .transparent-select:focus, .transparent-textarea:focus { border-color: #54a8df; background: #fff; box-shadow: 0 0 0 3px rgba(0,144,214,.10); outline: none; }
.form-control:disabled, textarea:disabled { color: #53667b; background: #f5f8fb; opacity: 1; }
.required { color: #d24a4a; }

.action-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; padding: 12px 0 4px; }
.btn-ui { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 10px; border: 1px solid transparent; font-weight: 750; font-size: .88rem; text-decoration: none !important; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.btn-ui:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(20,54,90,.12); }
.btn-primary-ui { color: #fff; background: linear-gradient(135deg,var(--niubiz-blue),var(--niubiz-blue-2)); }
.btn-light-ui { color: var(--niubiz-blue); background: #f2f8fd; border-color: #d9e8f4; }
.btn-outline-ui { color: #42566c; background: #fff; border-color: #d4dfe9; }

.notice { display: flex; gap: 12px; padding: 14px 16px; margin-top: 18px; border-radius: 12px; background: #f1f8fd; color: #49637a; font-size: .83rem; line-height: 1.5; }
.notice-mark { flex: 0 0 25px; height: 25px; border-radius: 50%; display: grid; place-items: center; background: #dceffc; color: var(--niubiz-blue); font-weight: 900; }

.api-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.api-row { padding-top: 18px; }
.api-label { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.api-label strong { font-size: .8rem; color: #3b4f65; text-transform: uppercase; letter-spacing: .05em; }
.code-area { min-height: 115px; resize: vertical; padding: 13px; font-family: Consolas, Monaco, monospace; font-size: .78rem; line-height: 1.55; }
.two-cols { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }

.qr-result { text-align: center; padding: 28px 20px 32px; }
.qr-result h2 { margin: 0 0 6px; font-size: 1.2rem; }
.qr-result p { color: var(--muted); margin: 0 0 20px; font-size: .86rem; }
.qr-result img { max-width: 280px; width: 100%; height: auto; padding: 14px; border: 1px solid #e0e8f0; border-radius: 18px; background: #fff; box-shadow: 0 16px 35px rgba(20,54,90,.12); transition: transform .2s ease; }
.qr-result img:hover { transform: scale(1.025); }
#result { max-width: 760px; margin: 20px auto 0; word-break: break-all; color: #40546a; font-size: .85rem; }

.site-footer { margin-top: 44px; background: #092d56; color: rgba(255,255,255,.82); }
.footer-inner { max-width: 1180px; margin: 0 auto; padding: 24px 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: .8rem; }
.footer-brand { color: #fff; font-weight: 800; }
.footer-note { opacity: .72; text-align: right; }

@media (max-width: 991px) {
    .form-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .hero-panel { grid-template-columns: 1fr; padding: 34px; }
    .qr-visual { display: none; }
}
@media (max-width: 640px) {
    .header-inner { min-height: 66px; padding: 10px 16px; }
    .brand img { width: 108px; }
    .brand-copy, .header-badge { display: none; }
    .hero { margin-top: 18px; padding: 0 14px; }
    .hero-panel { padding: 28px 22px; border-radius: 18px; }
    .page-shell { padding: 0 14px; }
    .section-toggle { padding: 17px; }
    .section-body { padding: 4px 17px 19px; }
    .form-grid, .two-cols { grid-template-columns: 1fr; gap: 14px; }
    .footer-inner { flex-direction: column; text-align: center; }
    .footer-note { text-align: center; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
