@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Noto+Sans+SC:wght@400;500;600;700&display=swap');

:root {
    --blue: #1677ff;
    --blue-hover: #4096ff;
    --blue-bg: #e6f4ff;
    --text: #262626;
    --text-2: #595959;
    --text-3: #8c8c8c;
    --border: #f0f0f0;
    --bg: #ffffff;
    --bg-page: #f5f5f5;
    --radius: 8px;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    --container: 1080px;
}

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

body {
    font-family: 'Noto Sans SC', 'Inter', -apple-system, 'Microsoft YaHei', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-2);
    background: var(--bg-page);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: var(--blue);
    text-decoration: none;
}

a:hover {
    color: var(--blue-hover);
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

.navbar {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    gap: 32px;
}

.logo {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 28px;
    flex: 1;
}

.nav-links a {
    color: var(--text-2);
    font-size: 14px;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--blue);
}

.nav-kami {
    display: inline-flex;
    align-items: stretch;
    flex-shrink: 0;
    height: 36px;
    padding: 0;
    margin-left: auto;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #fafafa;
    cursor: pointer;
    font-family: inherit;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-kami:hover {
    border-color: #d9d9d9;
    box-shadow: var(--shadow);
}

.nav-kami-meta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 12px 0 14px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-3);
    white-space: nowrap;
}

.nav-kami-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #52c41a;
    box-shadow: 0 0 0 3px rgba(82, 196, 26, 0.16);
}

.nav-kami-action {
    display: inline-flex;
    align-items: center;
    padding: 0 14px 0 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    border-left: 1px solid var(--border);
    background: #fff;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.nav-kami:hover .nav-kami-action {
    color: var(--blue);
}

.hamburger {
    display: none;
    width: 40px;
    height: 40px;
    margin-left: 4px;
    padding: 10px 8px;
    border: none;
    background: transparent;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    flex-shrink: 0;
}

.hamburger span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 1px;
    background: var(--text);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 8px;
    min-width: 160px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 4px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: 0.2s ease;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 10px 16px;
    color: var(--text-2);
    font-size: 14px;
}

.dropdown-item:hover {
    background: #fafafa;
    color: var(--blue);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    border-radius: var(--radius);
    border: 1px solid transparent;
    cursor: pointer;
    transition: 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.btn-primary {
    background: var(--blue);
    color: #fff;
    border-color: var(--blue);
}

.btn-primary:hover {
    background: var(--blue-hover);
    border-color: var(--blue-hover);
    color: #fff;
}

.btn-outline {
    background: var(--bg);
    color: var(--text);
    border-color: #d9d9d9;
}

.btn-outline:hover {
    color: var(--blue);
    border-color: var(--blue);
}

.btn-ghost {
    background: transparent;
    border-color: transparent;
    color: var(--text-2);
}

.btn-ghost:hover {
    background: #f5f5f5;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 13px;
}

.btn-block {
    width: 100%;
}

/* Hero */
.hero {
    background: linear-gradient(180deg, var(--blue-bg) 0%, var(--bg-page) 100%);
    padding: 72px 0 48px;
}

.hero-inner {
    text-align: center;
}

.hero-tag {
    display: inline-block;
    font-size: 13px;
    color: var(--blue);
    background: var(--bg);
    border: 1px solid #91caff;
    padding: 4px 12px;
    border-radius: 999px;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: clamp(28px, 5vw, 40px);
    font-weight: 700;
    color: var(--text);
    line-height: 1.25;
    margin-bottom: 16px;
}

.hero-desc {
    max-width: 560px;
    margin: 0 auto 28px;
    font-size: 16px;
    color: var(--text-2);
}

.hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

/* Stats */
.stats {
    padding: 0 24px 48px;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg);
}

.stats-row > div {
    padding: 20px 16px;
    text-align: center;
    background: var(--bg);
}

.stats-row b {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.stats-row span {
    font-size: 13px;
    color: var(--text-3);
}

#features,
#pricing,
#deliver {
    scroll-margin-top: 72px;
}

.section {
    padding: 56px 24px;
}

.section-alt {
    background: var(--bg);
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}

.section-alt > .section-title,
.section-alt > .pricing-row,
.section-alt > .fine-print {
    max-width: var(--container);
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

.section-title-sub {
    margin-top: 40px;
    margin-bottom: 24px;
}

.pricing-row-extra {
    grid-template-columns: repeat(2, 1fr);
    max-width: 720px;
    margin-top: 0;
}

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

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

.section-title p {
    font-size: 15px;
    color: var(--text-3);
}

.cards-3,
.cards-4 {
    display: grid;
    gap: 20px;
}

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

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

.card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
}

.card h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 10px;
}

.card p {
    font-size: 14px;
    color: var(--text-2);
    line-height: 1.65;
}

/* Pricing */
.pricing-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: stretch;
}

.price-card {
    position: relative;
    display: flex;
    flex-direction: column;
}

.price-card ul {
    list-style: none;
    margin: 0 0 24px;
    flex: 1;
}

.price-card li {
    font-size: 14px;
    padding: 6px 0;
    color: var(--text-2);
    border-bottom: 1px solid #fafafa;
}

.price-card li::before {
    content: '· ';
    color: var(--blue);
    font-weight: 700;
}

.price-num {
    font-size: 32px;
    font-weight: 700;
    color: var(--text);
    margin: 8px 0 16px;
}

.price-num small {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-3);
}

.price-card-hot {
    border-color: var(--blue);
    box-shadow: 0 0 0 2px var(--blue), var(--shadow);
    transform: scale(1.02);
}

.price-card-limited {
    opacity: 0.92;
    background: #fafafa;
}

.pricing-recommend {
    text-align: center;
    font-size: 14px;
    color: var(--text);
    background: var(--blue-bg);
    border: 1px solid #91caff;
    border-radius: var(--radius);
    padding: 12px 16px;
    margin: 0 auto 24px;
    max-width: var(--container);
    padding-left: 24px;
    padding-right: 24px;
}

.section-alt > .pricing-recommend {
    max-width: calc(var(--container) - 48px);
}

.price-notice {
    font-size: 12px;
    color: #cf1322;
    margin: -4px 0 8px;
    font-weight: 500;
}

.price-notice-full {
    color: #389e0d;
}

.price-card li.li-warn {
    color: #cf1322;
    font-size: 13px;
}

.price-card li.li-warn::before {
    content: '! ';
    color: #cf1322;
}

.price-card li.li-full {
    color: var(--text);
    font-weight: 500;
}

.badge {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    background: var(--blue);
    padding: 2px 8px;
    border-radius: 4px;
}

.badge-muted {
    background: #8c8c8c;
    color: #fff;
}

.fine-print {
    text-align: center;
    font-size: 13px;
    color: var(--text-3);
    margin-top: 24px;
}

.deliver-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 48px;
}

.deliver-pane {
    padding: 36px 32px 32px;
}

.deliver-pane-alt {
    border-left: 1px solid var(--border);
    background: #fafafa;
}

.deliver-kicker {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--blue);
    margin-bottom: 10px;
}

.deliver-pane h3 {
    font-size: 20px;
    font-weight: 650;
    color: var(--text);
    margin-bottom: 10px;
}

.deliver-pane p {
    font-size: 14px;
    color: var(--text-2);
    line-height: 1.7;
    margin-bottom: 16px;
    max-width: 420px;
}

.deliver-meta {
    list-style: none;
    margin: 0 0 24px;
}

.deliver-meta li {
    position: relative;
    padding: 5px 0 5px 14px;
    font-size: 13px;
    color: var(--text-2);
}

.deliver-meta li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--blue);
}

/* Footer */
.footer {
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 32px 24px;
    text-align: center;
}

.footer p {
    font-size: 13px;
    color: var(--text-3);
}

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

.footer-links a {
    color: var(--text-2);
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.45);
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal.show {
    display: flex;
}

.modal-box {
    background: var(--bg);
    border-radius: 12px;
    padding: 28px;
    width: 100%;
    max-width: 440px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.modal-wide {
    max-width: 480px;
}

.modal-box h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 12px;
    padding-right: 28px;
}

.modal-meta {
    font-size: 14px;
    color: var(--text-2);
    margin-bottom: 16px;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    border: none;
    background: none;
    font-size: 24px;
    line-height: 1;
    color: var(--text-3);
    cursor: pointer;
}

.modal-close:hover {
    color: var(--text);
}

.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.modal-actions.stack {
    flex-direction: column;
}

.modal-error {
    border-top: 3px solid #ff4d4f;
}

.field-label {
    display: block;
    font-size: 13px;
    color: var(--text-3);
    margin-bottom: 6px;
}

.field-input {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    border: 1px solid #d9d9d9;
    border-radius: var(--radius);
    font-family: ui-monospace, Consolas, monospace;
}

.field-input:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 2px rgba(22, 119, 255, 0.15);
}

.field-row {
    display: flex;
    gap: 8px;
}

.field-row .field-input {
    flex: 1;
}

.field-tip {
    font-size: 12px;
    color: var(--text-3);
    margin-top: 8px;
}

.pay-qr-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
    padding: 16px 12px 12px;
    background: #fafafa;
    border: 1px solid var(--border, #f0f0f0);
    border-radius: var(--radius);
}

#usdt-qr-canvas {
    width: 168px;
    height: 168px;
    padding: 8px;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    image-rendering: pixelated;
}

.pay-qr-tip {
    font-size: 12px;
    color: var(--text-3);
    margin: 0;
}

.pay-plan-hint {
    font-size: 13px;
    padding: 8px 12px;
    border-radius: var(--radius);
    margin-bottom: 12px;
}

.pay-plan-hint-warn {
    background: #fff2f0;
    border: 1px solid #ffccc7;
    color: #cf1322;
}

.pay-plan-hint-full {
    background: #f6ffed;
    border: 1px solid #b7eb8f;
    color: #389e0d;
}

.pay-amount {
    background: #f6ffed;
    border: 1px solid #b7eb8f;
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
    margin-bottom: 12px;
}

.pay-label {
    display: block;
    font-size: 12px;
    color: #389e0d;
    margin-bottom: 4px;
}

.pay-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
}

.pay-hint {
    display: block;
    font-size: 12px;
    color: var(--text-3);
    margin-top: 8px;
}

.pay-network {
    font-size: 13px;
    color: #d48806;
    background: #fffbe6;
    border: 1px solid #ffe58f;
    padding: 8px 12px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    text-align: center;
}

.pay-status {
    font-size: 14px;
    padding: 10px 12px;
    background: #fafafa;
    border-radius: var(--radius);
    margin: 12px 0;
    border-left: 3px solid #d9d9d9;
}

.pay-status.is-waiting {
    border-left-color: var(--blue);
}

.pay-status.is-success {
    border-left-color: #52c41a;
    background: #f6ffed;
}

.pay-status.is-error {
    border-left-color: #ff4d4f;
    background: #fff2f0;
}

.pay-kami {
    background: #f6ffed;
    border: 1px solid #b7eb8f;
    border-radius: var(--radius);
    padding: 12px;
    margin-bottom: 12px;
}

.pay-kami.hidden,
.pay-step.hidden,
#pay-email-step.hidden {
    display: none;
}

#pay-email-step {
    margin: 8px 0 16px;
}

#pay-email-step .field-input {
    margin-bottom: 8px;
}

#pay-email-confirm-btn {
    margin-top: 10px;
}

.pay-kami-sub {
    margin: 10px 0 0;
    font-size: 13px;
    color: #389e0d;
}

.pay-kami-line span {
    font-size: 12px;
    color: #389e0d;
    min-width: 36px;
}

.pay-kami-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 8px;
}

.pay-kami code {
    font-size: 16px;
    padding: 4px 8px;
    background: var(--bg);
    border-radius: 4px;
}

.pay-steps {
    margin: 12px 0 0 18px;
    font-size: 13px;
    color: var(--text-2);
    line-height: 1.8;
}

#kami-input {
    margin-bottom: 8px;
}

@media (max-width: 1024px) {
    .cards-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-row,
    .pricing-row-extra {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
    }

    .price-card-hot {
        transform: none;
    }
}

@media (max-width: 768px) {
    body.nav-open {
        overflow: hidden;
    }

    .navbar {
        position: relative;
        gap: 12px;
        height: 56px;
    }

    .logo {
        font-size: 15px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 56px;
        left: 0;
        right: 0;
        z-index: 120;
        flex-direction: column;
        background: var(--bg);
        padding: 8px 16px 20px;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
        gap: 0;
        max-height: calc(100vh - 56px);
        overflow-y: auto;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links > li {
        border-bottom: 1px solid var(--border);
    }

    .nav-links a {
        display: block;
        padding: 14px 4px;
        font-size: 15px;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        min-width: 0;
        margin: 0 0 8px;
        padding: 0 0 4px 12px;
        border: none;
        box-shadow: none;
        background: transparent;
    }

    .dropdown:hover .dropdown-menu {
        display: none;
    }

    .dropdown.open .dropdown-menu {
        display: block;
    }

    .dropdown-item {
        padding: 10px 4px;
    }

    .nav-kami {
        height: 32px;
        margin-right: 0;
        margin-left: auto;
    }

    .nav-kami-meta {
        display: none;
    }

    .nav-kami-action {
        border-left: none;
        padding: 0 12px;
        background: transparent;
        font-size: 12px;
    }

    .hamburger {
        display: flex;
    }

    .hero {
        padding: 48px 0 32px;
    }

    .hero-tag {
        font-size: 12px;
        padding: 4px 10px;
        max-width: 100%;
        line-height: 1.4;
    }

    .hero-desc {
        font-size: 14px;
        margin-bottom: 20px;
        padding: 0 8px;
    }

    .hero-btns .btn {
        min-height: 42px;
        flex: 1 1 140px;
        max-width: 200px;
    }

    .stats {
        padding: 0 16px 32px;
    }

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

    .stats-row > div {
        padding: 16px 10px;
    }

    .stats-row b {
        font-size: 18px;
    }

    .section {
        padding: 40px 16px;
    }

    .section-title {
        margin-bottom: 24px;
    }

    .section-title h2 {
        font-size: 22px;
    }

    .cards-3,
    .cards-4 {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .card {
        padding: 20px 18px;
    }

    .section-alt > .section-title,
    .section-alt > .pricing-row,
    .section-alt > .fine-print,
    .section-alt > .pricing-recommend {
        padding-left: 16px;
        padding-right: 16px;
    }

    .pricing-recommend {
        font-size: 13px;
        line-height: 1.6;
        text-align: left;
    }

    .price-num {
        font-size: 28px;
    }

    .deliver-panel {
        grid-template-columns: 1fr;
        margin-bottom: 24px;
    }

    .deliver-pane {
        padding: 24px 20px;
    }

    .deliver-pane-alt {
        border-left: none;
        border-top: 1px solid var(--border);
    }

    .deliver-pane h3 {
        font-size: 18px;
    }

    .modal {
        padding: 12px;
        align-items: flex-end;
    }

    .modal-box {
        padding: 20px 16px 16px;
        max-height: 88vh;
        border-radius: 12px 12px 8px 8px;
    }

    .modal-actions {
        flex-wrap: wrap;
    }

    .modal-actions .btn {
        flex: 1 1 120px;
        min-height: 42px;
    }

    .field-row {
        flex-direction: column;
    }

    .pay-value {
        font-size: 20px;
        word-break: break-all;
    }

    .footer {
        padding: 24px 16px;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0 12px;
    }

    .hero-inner {
        padding: 0 4px;
    }

    .hero-btns {
        width: 100%;
    }

    .hero-btns .btn {
        max-width: none;
    }

    .stats-row b {
        font-size: 16px;
    }

    .stats-row span {
        font-size: 12px;
    }
}
