:root {
    color-scheme: light;
    --page-bg: #f3f6fb;
    --surface: #ffffff;
    --surface-soft: #f8fbff;
    --text: #172033;
    --muted: #586678;
    --brand: #245c9c;
    --brand-hover: #174879;
    --accent-cyan: #168aad;
    --accent-green: #16845d;
    --accent-gold: #b98513;
    --accent-magenta: #c4366e;
    --success: #22864f;
    --warning: #b7791f;
    --danger: #d13b3b;
    --pay-start: #c98b2d;
    --pay-end: #df6d55;
    --border: #dce3ee;
    --shadow: 0 16px 36px rgba(23, 32, 51, 0.13);
    --content-max: 1480px;
    --assistant-width: clamp(280px, 17vw, 330px);
    --layout-gap: clamp(18px, 2.4vw, 34px);
    --page-gutter: clamp(16px, 2vw, 38px);
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

body {
    min-height: 100vh;
    margin: 0;
    padding: 92px 0 44px;
    background: linear-gradient(180deg, #eef4fb 0, var(--page-bg) 360px, #f7fafc 100%);
    color: var(--text);
    font-family: "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
}

.top-navbar {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 20;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 68px;
    padding: 14px 30px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 12px rgba(31, 41, 55, 0.06);
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #182b4d;
    font-size: 18px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.site-brand img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.site-brand small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}

.site-nav {
    display: flex;
    align-items: stretch;
    align-self: stretch;
    gap: 4px;
}

.site-nav a {
    display: inline-flex;
    align-items: center;
    padding: 0 15px;
    border-bottom: 3px solid transparent;
    color: #334155;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
    border-bottom-color: var(--accent-cyan);
    color: var(--brand);
}

.auth-actions,
.auth-panel {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.wechat-kefu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 8px 22px;
    border-radius: 10px;
    background: #07c160;
    color: #ffffff;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 1px;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 2px 10px rgba(7, 193, 96, 0.35);
}

.wechat-kefu:hover {
    background: #06ad56;
    color: #ffffff;
}

.user-summary {
    color: #303846;
    font-size: 15px;
}

.divider {
    color: #9aa4b2;
    margin: 0 6px;
}

.balance {
    color: #c93232;
    font-weight: 700;
    margin: 0 4px;
}

.provider-select {
    min-height: 38px;
    padding: 7px 28px 7px 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #ffffff;
    color: var(--text);
    font: inherit;
}

.button {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 7px;
    padding: 8px 18px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.16s ease, filter 0.16s ease, opacity 0.16s ease;
}

.button:hover {
    transform: translateY(-1px);
    filter: brightness(0.97);
}

.button:disabled {
    cursor: not-allowed;
    opacity: 0.68;
    transform: none;
}

.button-success {
    background: var(--success);
}

.button-warning {
    background: var(--warning);
}

.button-primary {
    background: var(--brand);
}

.button-danger {
    background: var(--danger);
}

.button-pay {
    background: linear-gradient(135deg, var(--pay-start), var(--pay-end));
}

.button-full {
    width: 100%;
    border-radius: 6px;
}
.button-stacked {
    margin-top: 8px;
}

.container {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 0 var(--page-gutter) 34px;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    text-align: left;
}

.home-layout {
    display: grid;
    width: min(100%, calc(var(--assistant-width) + var(--layout-gap) + var(--content-max)));
    margin: 0 auto;
    grid-template-columns: minmax(0, var(--content-max));
    gap: var(--layout-gap);
    align-items: start;
    justify-content: center;
}

.home-layout > .knowledge-assistant {
    display: none;
}

.home-content > .service-row,
.home-content > .marketplace-row,
.home-content > .orders-section {
    display: none;
}

.tools-page .company-hero,
.tools-page .color-row,
.tools-page .dot-row,
.tools-page .home-news {
    display: none;
}

.tools-page .home-content > .service-row,
.tools-page .home-content > .marketplace-row {
    display: none;
    grid-template-columns: 1fr;
    margin-top: 16px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.restore-page .home-content > .marketplace-row,
.laser-page .home-content > .marketplace-row,
.prepress-page .home-content > .service-row,
.color-query-page .home-content > .service-row {
    display: grid;
}

.tools-page .business-row > .row-heading {
    display: none;
}

.restore-page .laser-only-market-card,
.restore-page .market-card:has(#lineScreenProcessorLink),
.laser-page .market-card:not(.laser-only-market-card):not(:has(#lineScreenProcessorLink)),
.prepress-page .service-card:nth-child(3) {
    display: none;
}

.restore-page .market-card-list,
.prepress-page .service-card-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.laser-page .market-card-list {
    grid-template-columns: minmax(0, 560px);
}

.home-content > .orders-section:not([hidden]) {
    display: block;
}

.tools-intro {
    margin-top: 18px;
    padding: clamp(24px, 3vw, 38px);
    border: 1px solid var(--border);
    border-left: 5px solid var(--accent-cyan);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 12px 28px rgba(23, 32, 51, .08);
}

.tools-intro h1 {
    margin-bottom: 10px;
}

.tools-intro > p:last-child {
    margin: 0;
    line-height: 1.7;
}

.home-news {
    display: grid;
    grid-template-columns: minmax(240px, .34fr) minmax(0, 1fr);
    gap: clamp(24px, 3.4vw, 54px);
    margin-top: 22px;
    padding: clamp(24px, 3vw, 38px);
    border: 1px solid var(--border);
    border-top: 4px solid var(--accent-magenta);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 12px 28px rgba(23, 32, 51, .08);
}

.news-heading { align-self: center; }
.news-heading h2 { margin: 0 0 12px; color: #182b4d; font-size: clamp(27px, 3vw, 42px); }
.news-heading > p:last-child { margin: 0; font-size: 16px; line-height: 1.7; }
.news-list { border-top: 2px solid #182b4d; }
.news-list article { display: grid; grid-template-columns: 94px minmax(0, 1fr); gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.news-list time { color: #758397; font-size: 12px; }
.news-list span { color: var(--accent-magenta); font-size: 12px; font-weight: 700; }
.news-list h3 { margin: 4px 0 5px; color: #22324a; font-size: 17px; line-height: 1.4; }
.news-list p { margin: 0; font-size: 13px; line-height: 1.6; }

.home-content {
    width: 100%;
    max-width: var(--content-max);
    min-width: 0;
}

.knowledge-assistant {
    position: sticky;
    top: 92px;
    display: flex;
    max-height: calc(100vh - 120px);
    min-height: 560px;
    flex-direction: column;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--border);
    border-top: 4px solid var(--accent-cyan);
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(23, 32, 51, 0.08);
}

.knowledge-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 18px 14px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, #ffffff 0, #f8fbff 100%);
}

.knowledge-kicker {
    margin: 0 0 6px;
    color: #6d7b8e;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.knowledge-header h2 {
    margin: 0;
    color: #182b4d;
    font-size: 22px;
    line-height: 1.25;
}

.assistant-icon-button {
    display: inline-flex;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: #ffffff;
    color: var(--brand);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.assistant-icon-button:hover {
    border-color: #b8c7dc;
    background: #eef4fb;
    transform: translateY(-1px);
}

.assistant-messages {
    display: flex;
    flex: 1;
    min-height: 260px;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    padding: 14px;
    background: #f8fbff;
}

.assistant-message {
    max-width: 92%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.65;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.assistant-message-bot {
    align-self: flex-start;
    background: #ffffff;
    color: #303846;
}

.assistant-message-user {
    align-self: flex-end;
    border-color: #b9d2eb;
    background: #eaf4ff;
    color: #182b4d;
}

.assistant-message-error {
    border-color: #f0c2c2;
    background: #fff5f5;
    color: #a52828;
}

.assistant-form {
    display: grid;
    gap: 10px;
    padding: 14px;
    border-top: 1px solid var(--border);
    background: #ffffff;
}

.assistant-input {
    width: 100%;
    min-height: 82px;
    max-height: 170px;
    resize: none;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: #ffffff;
    color: var(--text);
    font: inherit;
    font-size: 14px;
    line-height: 1.55;
}

.assistant-input:focus {
    outline: 2px solid rgba(49, 92, 159, 0.2);
    border-color: var(--brand);
}

.assistant-form-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.assistant-status {
    min-width: 0;
    color: #697386;
    font-size: 12px;
    line-height: 1.4;
}

.assistant-status.is-error {
    color: #d32f2f;
}

.assistant-submit {
    min-width: 72px;
    padding-inline: 16px;
}

h1 {
    margin: 0 0 12px;
    color: #182b4d;
    font-size: clamp(34px, 4.3vw, 58px);
    line-height: 1.14;
    letter-spacing: 0;
}

p {
    margin: 0 0 30px;
    color: var(--muted);
    font-size: 17px;
}

.card-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.card {
    min-height: 96px;
    background: var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.card:hover {
    transform: translateY(-4px);
    border-color: #b8c7dc;
    box-shadow: 0 8px 22px rgba(49, 92, 159, 0.15);
}

.card a {
    display: flex;
    min-height: 96px;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #182b4d;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.45;
    text-decoration: none;
}

.card a:hover {
    color: var(--brand-hover);
}

.orders-section {
    margin-top: 34px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
    text-align: left;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.section-header h2 {
    margin: 0;
    color: #263f73;
    font-size: 24px;
}

.orders-list,
.managed-files {
    display: grid;
    gap: 10px;
}

.orders-list {
    max-height: 560px;
    overflow: auto;
    padding-right: 4px;
}

.order-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #ffffff;
}

.order-table {
    width: 100%;
    min-width: 1220px;
    border-collapse: collapse;
    font-size: 13px;
}

.order-table th,
.order-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: middle;
}

.order-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #eef4fb;
    color: #263f73;
    font-weight: 700;
}

.order-table td {
    color: #303846;
}

.order-table tr:last-child td {
    border-bottom: 0;
}

.order-row,
.managed-file-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-soft);
}

.order-main,
.managed-file-main {
    min-width: 0;
}

.order-title,
.managed-file-name {
    color: #263f73;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.order-meta,
.managed-file-meta {
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.typed-upload-fields {
    display: grid;
    gap: 8px;
    margin: 12px 0;
    text-align: left;
}

.upload-field-label {
    color: #303846;
    font-size: 13px;
    font-weight: 700;
}

.status-pill {
    display: inline-flex;
    min-height: 24px;
    align-items: center;
    border-radius: 999px;
    padding: 2px 10px;
    font-size: 12px;
    font-weight: 700;
}

.status-paid {
    background: #d8f3e4;
    color: #17663d;
}

.status-created {
    background: #fff1c2;
    color: #805b11;
}

.order-actions,
.managed-file-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.small-button {
    min-height: 32px;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 13px;
}

.order-download-status {
    display: block;
    margin-top: 6px;
    max-width: 340px;
    margin-left: auto;
    font-size: 12px;
    line-height: 1.6;
    color: #5b6474;
    text-align: right;
}

.order-download-status.is-busy {
    color: #1d5fa8;
}

.order-download-status.is-done {
    color: #1a7f37;
}

.order-download-status.is-error {
    color: #c0392b;
}

.order-download-hint {
    color: #8a93a5;
}

.order-download-link {
    color: #1d5fa8;
    text-decoration: underline;
    word-break: break-all;
}

.order-download-link.is-primary {
    display: inline-block;
    margin: 6px 0 2px;
    padding: 5px 12px;
    background: #108ee9;
    color: #fff !important;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    line-height: 1.4;
    transition: background 0.15s ease;
}

.order-download-link.is-primary:hover {
    background: #096dd9;
    color: #fff !important;
    text-decoration: none;
}

.download-spinner {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 6px;
    vertical-align: -2px;
    border: 2px solid rgba(29, 95, 168, 0.25);
    border-top-color: #1d5fa8;
    border-radius: 50%;
    animation: download-spin 0.8s linear infinite;
}

@keyframes download-spin {
    to { transform: rotate(360deg); }
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(18, 24, 38, 0.52);
}

.modal-panel {
    width: min(340px, 100%);
    margin: 0;
    padding: 28px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
}
.payment-panel {
    width: min(400px, 100%);
}

.recharge-panel {
    width: min(420px, 100%);
    text-align: left;
}

.order-files-panel {
    width: min(560px, 100%);
}

.invoice-panel {
    width: min(620px, 100%);
    max-height: min(86vh, 760px);
    overflow-y: auto;
    text-align: left;
}

.invoice-panel h2 {
    text-align: center;
}

.invoice-bank-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.invoice-remarks {
    min-height: 86px;
    resize: vertical;
    line-height: 1.55;
}

.invoice-order-actions {
    justify-content: flex-start;
}

.invoice-autocomplete-wrap {
    position: relative;
    width: 100%;
}

.invoice-suggestions {
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    right: 0;
    z-index: 100;
    max-height: 220px;
    overflow-y: auto;
    background: #ffffff;
    border: 1px solid #c7d5e4;
    border-radius: 6px;
    box-shadow: 0 10px 28px rgba(18, 38, 63, 0.16);
}

.invoice-suggestion-item {
    padding: 10px 14px;
    border-bottom: 1px solid #f0f4f8;
    cursor: pointer;
    transition: background 0.15s ease;
    text-align: left;
}

.invoice-suggestion-item:last-child {
    border-bottom: none;
}

.invoice-suggestion-item:hover,
.invoice-suggestion-item.is-selected {
    background: #edf5fd;
}

.invoice-suggestion-title {
    font-size: 14px;
    font-weight: 600;
    color: #172b4d;
    line-height: 1.4;
}

.invoice-suggestion-meta {
    margin-top: 3px;
    font-size: 12px;
    color: #5e6c84;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.invoice-suggestion-tax {
    font-family: Consolas, Monaco, monospace;
    color: #1a5695;
    font-weight: 500;
}

.modal-panel h2 {
    margin: 0 0 18px;
    font-size: 24px;
    line-height: 1.25;
    text-align: center;
}

.modal-help {
    margin: -6px 0 16px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
    text-align: center;
}

.field-label {
    display: block;
    margin: 10px 0 2px;
    color: #303846;
    font-size: 13px;
    font-weight: 700;
}

.field {
    width: 100%;
    min-height: 42px;
    margin: 8px 0;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #ffffff;
    color: var(--text);
    font: inherit;
}

.field:focus {
    outline: 2px solid rgba(49, 92, 159, 0.2);
    border-color: var(--brand);
}

.amount-presets {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin: 4px 0 12px;
}

.amount-preset {
    min-height: 36px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #f8fbff;
    color: #263f73;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.amount-preset:hover,
.amount-preset.is-selected {
    border-color: #b8c7dc;
    background: #eaf4ff;
}

.message {
    min-height: 20px;
    margin-top: 10px;
    color: #d32f2f;
    font-size: 13px;
    line-height: 1.5;
}

.message.is-success {
    color: #2e7d32;
}
.order-info {
    margin-bottom: 10px;
    color: #303846;
    font-size: 14px;
    line-height: 1.6;
}
.qr-frame {
    display: flex;
    width: 232px;
    height: 232px;
    align-items: center;
    justify-content: center;
    margin: 12px auto;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #ffffff;
}
.qr-frame img {
    width: 210px;
    height: 210px;
    object-fit: contain;
}
.payment-note {
    min-height: 18px;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}
.pay-url {
    max-height: 54px;
    margin-bottom: 10px;
    overflow: auto;
    color: #697386;
    font-size: 12px;
    line-height: 1.5;
    word-break: break-all;
}

.text-button {
    margin-top: 10px;
    border: 0;
    background: transparent;
    color: #697386;
    font: inherit;
    cursor: pointer;
}

.text-button:hover {
    color: var(--text);
}

@media (max-width: 680px) {
    body {
        padding: 126px 14px 28px;
    }

    .top-navbar {
        flex-direction: column;
        align-items: stretch;
        justify-content: center;
        padding: 12px 14px;
    }

    .site-brand {
        display: none;
    }

    .site-nav {
        width: 100%;
        min-height: 40px;
        order: 2;
        overflow-x: auto;
        justify-content: flex-start;
    }

    .site-nav a {
        min-height: 40px;
        padding: 0 11px;
        white-space: nowrap;
    }

    .auth-actions,
    .auth-panel {
        width: 100%;
        flex-wrap: nowrap;
        justify-content: center;
    }

    .header-right {
        width: 100%;
        flex-direction: column;
        gap: 10px;
    }

    .wechat-kefu {
        width: 100%;
        font-size: 16px;
    }

    .user-summary {
        width: 100%;
        text-align: center;
    }

    .container {
        padding: 24px 16px;
    }

    .home-layout {
        grid-template-columns: 1fr;
    }

    .knowledge-assistant {
        position: static;
        max-height: none;
        min-height: 0;
    }

    .assistant-messages {
        max-height: 380px;
    }

    .section-header,
    .order-row,
    .managed-file-row {
        grid-template-columns: 1fr;
    }

    .section-header,
    .order-actions,
    .managed-file-actions {
        align-items: stretch;
        justify-content: stretch;
    }

    .invoice-bank-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    h1 {
        font-size: 28px;
    }

    .card-list {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

@media (min-width: 681px) and (max-width: 920px) {
    .card-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1101px) and (max-width: 1500px) {
    .home-layout {
        width: min(100%, var(--content-max));
        grid-template-columns: minmax(0, var(--content-max));
    }

    .knowledge-assistant {
        position: static;
        max-height: none;
        min-height: 0;
    }

    .assistant-messages {
        max-height: 380px;
    }
}

.order-action-note,
.orders-more-note {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.orders-more-note {
    padding: 8px 2px;
    text-align: center;
}

/* === Three-Zone Company Homepage === */
.company-hero {
    margin-bottom: 28px;
    padding: 22px 0 10px;
}

.brand-identity {
    display: grid;
    grid-template-columns: clamp(96px, 12vw, 148px) minmax(0, 1fr);
    gap: clamp(18px, 3vw, 34px);
    align-items: center;
}

.brand-mark {
    width: 100%;
    aspect-ratio: 1;
    display: block;
    filter: drop-shadow(0 16px 22px rgba(23, 32, 51, 0.16));
}

.brand-copy {
    min-width: 0;
}

.lead {
    width: min(940px, 100%);
    margin: 0;
    color: #3d4d61;
    font-size: clamp(17px, 1.45vw, 20px);
    line-height: 1.78;
}

.business-row {
    display: grid;
    grid-template-columns: minmax(260px, 0.34fr) minmax(0, 1fr);
    gap: clamp(24px, 3.4vw, 54px);
    align-items: stretch;
    margin-top: 22px;
    padding: clamp(24px, 3vw, 38px);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(23, 32, 51, 0.08);
}

.color-row {
    border-top: 4px solid var(--brand);
}

.dot-row {
    border-top: 4px solid var(--accent-green);
}

.service-row {
    border-top: 4px solid #6b7280;
}

.marketplace-row {
    border-top: 4px solid var(--accent-gold);
}

.proof-row {
    display: block;
    border-top: 4px solid var(--accent-cyan);
}

.proof-row .row-heading p:not(.row-kicker) {
    font-size: 16.5px;
    line-height: 1.9;
}

.proof-row .row-heading p:not(.row-kicker) + p:not(.row-kicker) {
    margin-top: 14px;
}

.row-heading {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
}

.row-kicker {
    margin: 0 0 10px;
    color: #6d7b8e;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.row-heading h2 {
    margin: 0 0 14px;
    color: #182b4d;
    font-size: clamp(27px, 3vw, 42px);
    line-height: 1.16;
}

.row-heading p:not(.row-kicker) {
    margin: 0;
    color: #526174;
    font-size: 16px;
    line-height: 1.75;
}

.row-card-list,
.service-card-list,
.market-card-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
    margin: 0;
    padding: 0;
    list-style: none;
}

.market-card-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.color-card-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dot-card-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.info-card,
.service-card,
.market-card {
    min-width: 0;
    min-height: 176px;
    background: linear-gradient(180deg, #ffffff 0, var(--surface-soft) 100%);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.info-card {
    padding: 22px;
}

.info-card:hover,
.service-card:hover,
.market-card:hover {
    transform: translateY(-3px);
    border-color: #b8c7dc;
    box-shadow: 0 10px 24px rgba(49, 92, 159, 0.13);
}

.info-card h3 {
    margin: 0 0 10px;
    color: #182b4d;
    font-size: 18px;
    line-height: 1.35;
}

.info-card p {
    margin: 0;
    color: #526174;
    font-size: 14px;
    line-height: 1.7;
}

.service-card a,
.market-card a {
    flex-direction: column;
    gap: 8px;
    min-height: 176px;
    padding: 24px;
    text-align: center;
}

.card-title {
    color: #182b4d;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.card-desc {
    color: var(--muted);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.55;
}

.card-purpose {
    display: block;
    margin: 2px 0;
    color: #c05621;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
}

.orders-section {
    width: min(100%, 1480px);
    margin-top: 34px;
    padding: 28px clamp(24px, 3vw, 38px) 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.site-footer {
    display: flex;
    width: min(100%, 1480px);
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    margin: 0 auto;
    padding: 8px clamp(24px, 4vw, 64px) 0;
    color: #687587;
    font-size: 13px;
    line-height: 1.6;
}

.filing-link {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    gap: 7px;
    color: #687587;
    text-decoration: none;
}

.filing-link:hover {
    color: var(--brand-hover);
    text-decoration: underline;
}

.filing-icon {
    display: inline-flex;
    min-width: 28px;
    height: 18px;
    align-items: center;
    justify-content: center;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    color: #526174;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

@media (min-width: 681px) and (max-width: 1100px) {
    .home-layout {
        grid-template-columns: 1fr;
    }

    .knowledge-assistant {
        position: static;
        max-height: none;
        min-height: 0;
    }

    .assistant-messages {
        max-height: 420px;
    }

    .business-row {
        grid-template-columns: 1fr;
    }

    .row-card-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .color-card-list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .dot-card-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    body {
        padding-top: 126px;
    }

    .container {
        padding: 0 14px 28px;
    }

    .company-hero {
        margin-bottom: 18px;
    }

    .brand-identity {
        grid-template-columns: 76px minmax(0, 1fr);
        gap: 14px;
        align-items: start;
    }

    .brand-mark {
        margin-top: 2px;
    }

    .lead {
        font-size: 16px;
        line-height: 1.68;
    }

    .business-row {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 20px 16px;
    }

    .home-news {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 20px 16px;
    }

    .news-list article {
        grid-template-columns: 76px minmax(0, 1fr);
        gap: 12px;
    }

    .row-heading h2 {
        font-size: 30px;
    }

    .row-card-list,
    .service-card-list,
    .market-card-list {
        grid-template-columns: 1fr;
    }

    .dot-card-list {
        grid-template-columns: 1fr;
    }

    .info-card,
    .service-card,
    .market-card,
    .service-card a,
    .market-card a {
        min-height: auto;
    }

    .orders-section {
        padding: 20px 16px 0;
    }

    .site-footer {
        flex-direction: column;
        gap: 4px;
        padding: 2px 14px 0;
    }
}

@media (min-width: 681px) and (max-width: 1200px) {
    .top-navbar {
        gap: 10px;
        padding-inline: 18px;
    }

    .site-brand {
        gap: 6px;
        font-size: 15px;
    }

    .site-brand img {
        width: 32px;
        height: 32px;
    }

    .site-brand small {
        display: none;
    }

    .site-nav a {
        padding-inline: 7px;
        font-size: 13px;
    }

    .auth-actions,
    .auth-panel {
        gap: 5px;
    }

    .auth-actions .button,
    .auth-panel .button {
        padding-inline: 10px;
        font-size: 12px;
    }

    .wechat-kefu {
        padding-inline: 14px;
        font-size: 14px;
    }

    .header-right {
        gap: 8px;
    }
}
/* ===== 注册弹层：服务条款 + 邮箱验证码 (2026-10-08) ===== */
.register-terms-body {
    max-height: 260px;
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.7;
    color: #444;
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px 16px;
    margin: 12px 0;
    text-align: left;
}

.register-terms-body ol {
    margin: 8px 0 0;
    padding-left: 20px;
}

.register-terms-body li {
    margin: 4px 0;
}

.register-code-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.register-code-row .field {
    flex: 1;
    min-width: 0;
}

.register-code-btn {
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 110px;
}
