:root {
    --bg: #f7f9fc;
    --bg-soft: #eef3f8;
    --panel: rgba(255, 255, 255, 0.96);
    --panel-strong: #ffffff;
    --text: #132033;
    --muted: #5e7086;
    --line: rgba(19, 32, 51, 0.1);
    --brand: #1f8efa;
    --brand-soft: #ebf4ff;
    --accent: #12b3a6;
    --accent-soft: #e7fbf8;
    --shadow: 0 18px 40px rgba(30, 48, 76, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Trebuchet MS", "Microsoft YaHei", sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(31, 142, 250, 0.08), transparent 28%),
        radial-gradient(circle at top right, rgba(18, 179, 166, 0.08), transparent 24%),
        linear-gradient(180deg, #fbfdff 0%, #f5f8fc 48%, #eef3f8 100%);
    color: var(--text);
}

a {
    color: inherit;
}

header {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 28px;
    padding: 18px clamp(18px, 4vw, 64px);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(19, 32, 51, 0.06);
    box-shadow: 0 10px 30px rgba(30, 48, 76, 0.04);
}

.header-left,
.header-right {
    display: flex;
    align-items: center;
}

.header-left {
    gap: clamp(26px, 4vw, 56px);
}

.header-right {
    gap: 14px;
}

.header-link-chip {
    display: none;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid rgba(19, 32, 51, 0.12);
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.2s ease;
}

.header-link-chip:hover {
    color: var(--brand);
    border-color: rgba(31, 142, 250, 0.24);
    background: var(--brand-soft);
}

.logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 0.18em;
    color: #17365d;
}

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

.main-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    color: var(--muted);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover,
.logo-link:hover .logo {
    color: var(--brand);
    transform: translateY(-1px);
}

.nav-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 86px;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-action:hover {
    transform: translateY(-1px);
}

.nav-action-primary {
    background: linear-gradient(135deg, var(--brand), #3a9efb);
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(31, 142, 250, 0.18);
}

.nav-action-secondary {
    background: #ffffff;
    color: var(--text);
    border: 1px solid rgba(19, 32, 51, 0.12);
}

.home-shell {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding-bottom: 72px;
}

.hero {
    position: relative;
    min-height: calc(100vh - 84px);
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    align-items: center;
    gap: clamp(28px, 5vw, 72px);
    padding: clamp(42px, 7vw, 92px) 0;
}

.hero-home::before {
    content: "";
    position: absolute;
    inset: 6% auto auto 2%;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(31, 142, 250, 0.12), transparent 70%);
    pointer-events: none;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--brand-soft);
    border: 1px solid rgba(31, 142, 250, 0.12);
    color: #2367ae;
    font-size: 14px;
    letter-spacing: 0.04em;
}

.hero h1 {
    margin-top: 20px;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.04;
    letter-spacing: -0.03em;
    color: #10233c;
}

.hero p {
    margin-top: 20px;
    max-width: 640px;
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.8;
    color: var(--muted);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 22px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--brand), #3a9efb);
    color: #ffffff;
    box-shadow: 0 16px 30px rgba(31, 142, 250, 0.18);
}

.btn-secondary {
    background: #ffffff;
    border: 1px solid rgba(19, 32, 51, 0.1);
    color: var(--text);
}

.hero-panel {
    display: grid;
    gap: 18px;
}

.hero-card {
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 253, 0.98));
    border: 1px solid rgba(19, 32, 51, 0.08);
    box-shadow: var(--shadow);
}

.hero-card-main {
    padding: 28px;
}

.hero-card-title {
    font-size: 14px;
    color: var(--brand);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-points {
    margin-top: 18px;
    list-style: none;
    display: grid;
    gap: 14px;
}

.hero-points li {
    position: relative;
    padding-left: 24px;
    color: #24384f;
    line-height: 1.7;
}

.hero-points li::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), var(--accent));
    box-shadow: 0 0 0 6px rgba(31, 142, 250, 0.08);
}

.hero-card-mini {
    padding: 22px 24px;
}

.hero-card-mini span {
    display: block;
    color: var(--muted);
    font-size: 14px;
}

.hero-card-mini strong {
    display: block;
    margin-top: 8px;
    font-size: 20px;
    line-height: 1.5;
    color: #17365d;
}

.section-block {
    padding: 36px 0 24px;
}

.section-heading {
    max-width: 760px;
}

.section-eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--brand);
    font-size: 14px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.section-heading h2 {
    font-size: clamp(28px, 4.5vw, 46px);
    line-height: 1.16;
    color: #10233c;
}

.section-heading p {
    margin-top: 14px;
    color: var(--muted);
    line-height: 1.8;
}

.scenario-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-top: 30px;
}

.scenario-card,
.step-card,
.card,
.article,
.form-box {
    background: var(--panel);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.scenario-card {
    padding: 26px;
    border-radius: 24px;
}

.scenario-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    height: 34px;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand);
    font-weight: 700;
}

.scenario-card h3 {
    margin-top: 20px;
    font-size: 24px;
    line-height: 1.35;
    color: #17365d;
}

.scenario-card p {
    margin-top: 14px;
    color: var(--muted);
    line-height: 1.8;
}

.scenario-tag {
    margin-top: 18px;
    color: #2367ae;
    font-size: 14px;
}

.step-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.step-card {
    padding: 24px;
    border-radius: 22px;
}

.step-no {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), #3a9efb);
    color: #ffffff;
    font-weight: 800;
}

.step-card h3 {
    margin-top: 18px;
    font-size: 22px;
    color: #17365d;
}

.step-card p {
    margin-top: 12px;
    color: var(--muted);
    line-height: 1.75;
}

.page {
    width: min(1000px, calc(100% - 32px));
    margin: 0 auto;
    padding: 86px 0 56px;
    text-align: center;
}

.page h2 {
    color: #17365d;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.card {
    padding: 34px 24px;
    border-radius: 22px;
}

.card h3 {
    color: #17365d;
}

.card p {
    margin-top: 12px;
    color: var(--muted);
    line-height: 1.8;
}

.price {
    margin: 15px 0;
    color: var(--brand);
    font-size: 32px;
}

.pricing-page {
    width: min(1200px, calc(100% - 32px));
    padding-top: 64px;
    padding-bottom: 72px;
}

.pricing-shell {
    display: grid;
    gap: 28px;
}

.pricing-hero,
.pricing-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: var(--shadow);
}

.pricing-hero {
    padding: 34px;
    text-align: left;
}

/* 购买页顶部说明卡片改为左列同宽，避免横向铺满后显得过高过宽。 */
.purchase-page-hero {
    width: calc((100% - 24px) * 0.6);
    max-width: 100%;
    padding: 20px 24px;
}

.pricing-badge,
.pricing-eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: var(--brand-soft);
    color: #2367ae;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.pricing-hero h2 {
    margin-top: 18px;
    font-size: clamp(34px, 5vw, 54px);
    color: #10233c;
    text-align: left;
}

.pricing-hero p {
    margin-top: 16px;
    max-width: 760px;
    color: var(--muted);
    line-height: 1.9;
    text-align: left;
}

.plans-page-intro {
    padding: 0 4px;
    margin-bottom: -14px;
    text-align: left;
}

.plans-page-intro .pricing-badge {
    min-height: 30px;
    padding: 0 12px;
    font-size: 12px;
}

.purchase-page-hero h2 {
    margin-top: 10px;
    font-size: clamp(28px, 3.8vw, 40px);
}

.purchase-page-hero p {
    margin-top: 10px;
    max-width: 100%;
    line-height: 1.68;
}

/* 套餐页新版对比布局 */
.plan-overview-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.plan-summary-card,
.plan-table-card,
.plan-mobile-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: var(--shadow);
}

.plan-summary-card {
    padding: 24px 26px;
    text-align: left;
}

.plan-summary-card span {
    display: block;
    color: #5f7a97;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.plan-summary-card strong {
    display: block;
    margin-top: 14px;
    color: #17365d;
    font-size: 26px;
    line-height: 1.3;
}

.plan-summary-card p {
    margin-top: 12px;
    color: var(--muted);
    line-height: 1.8;
}

.plan-table-card {
    padding: 28px;
    text-align: left;
}

.plan-table-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 18px;
}

.plan-table-head h3 {
    margin-top: 14px;
    color: #17365d;
    font-size: 30px;
}

.plan-table-head p {
    max-width: 460px;
    color: var(--muted);
    line-height: 1.8;
}

.plan-table-wrap {
    margin-top: 24px;
    overflow-x: auto;
    border: 1px solid rgba(19, 32, 51, 0.08);
    border-radius: 22px;
    background: #ffffff;
}

.plan-table {
    width: 100%;
    min-width: 1180px;
    border-collapse: separate;
    border-spacing: 0;
}

.plan-table th,
.plan-table td {
    padding: 20px 18px;
    border-bottom: 1px solid rgba(19, 32, 51, 0.08);
    text-align: left;
    vertical-align: middle;
    color: #27405a;
}

.plan-table thead th {
    background: #f7fbff;
    color: #4f6b87;
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
}

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

.plan-type-cell {
    min-width: 170px;
}

.plan-tier {
    display: grid;
    gap: 10px;
}

.plan-name {
    display: block;
    color: #17365d;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.3;
}

.plan-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.plan-badge-free {
    background: #ebf8f2;
    color: #16946f;
}

.plan-badge-starter {
    background: #eef6ff;
    color: #1c6fd1;
}

.plan-badge-middle {
    background: #fff7e9;
    color: #b86d14;
}

.plan-badge-advanced {
    background: #f3efff;
    color: #5b49b7;
}

.plan-badge-custom {
    background: #edf7ff;
    color: #0c7bbd;
}

.plan-price-text {
    color: #17365d;
    font-size: 18px;
}

.plan-price-free {
    color: #14956f;
    font-size: 18px;
    font-weight: 800;
}

.plan-action-cell {
    width: 132px;
    text-align: center;
}

.plan-entry-btn,
.plan-contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 42px;
    padding: 0 18px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand), #3a9efb);
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    box-shadow: 0 12px 24px rgba(31, 142, 250, 0.16);
}

.plan-entry-btn:hover,
.plan-contact-btn:hover {
    transform: translateY(-1px);
}

.plan-entry-btn:disabled,
.plan-contact-btn:disabled {
    cursor: not-allowed;
    opacity: 0.72;
    transform: none;
}

.plan-entry-btn-free {
    background: linear-gradient(135deg, #1fa66b, #28be7c);
    box-shadow: 0 12px 24px rgba(31, 166, 107, 0.16);
}

.plan-row-custom td {
    background: linear-gradient(180deg, #fbfdff 0%, #f5f9fd 100%);
}

.plan-custom-cell {
    display: grid;
    gap: 8px;
}

.plan-custom-cell strong {
    color: #17365d;
    font-size: 18px;
}

.plan-custom-cell span {
    color: var(--muted);
    line-height: 1.8;
}

.plan-mobile-list {
    display: none;
    gap: 18px;
}

.plan-mobile-card {
    padding: 24px;
    text-align: left;
}

.plan-mobile-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.plan-mobile-meta {
    margin-top: 18px;
    list-style: none;
    display: grid;
    gap: 12px;
}

.plan-mobile-meta li {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(19, 32, 51, 0.08);
}

.plan-mobile-meta li span {
    color: var(--muted);
}

.plan-mobile-meta li strong {
    color: #17365d;
    text-align: right;
    line-height: 1.6;
}

.plan-mobile-prices {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.plan-mobile-price-card {
    padding: 16px 14px;
    border-radius: 18px;
    background: #fbfdff;
    border: 1px solid rgba(19, 32, 51, 0.08);
}

.plan-mobile-price-card span {
    display: block;
    color: var(--muted);
    font-size: 13px;
}

.plan-mobile-price-card strong {
    display: block;
    margin-top: 10px;
}

.plan-mobile-action {
    margin-top: 18px;
}

.plan-mobile-action .plan-entry-btn,
.plan-mobile-action .plan-contact-btn {
    width: 100%;
}

.plan-mobile-card-custom {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 250, 255, 0.98));
}

.plan-mobile-custom-copy {
    margin-top: 18px;
    color: var(--muted);
    line-height: 1.9;
}

.pricing-card {
    padding: 32px;
    text-align: left;
}

.pricing-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.pricing-card-head h3 {
    margin-top: 14px;
    font-size: 32px;
    color: #17365d;
}

.pricing-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand), #3a9efb);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.pricing-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 26px;
}

.pricing-feature-item {
    padding: 22px 20px;
    border-radius: 20px;
    background: #fbfdff;
    border: 1px solid rgba(19, 32, 51, 0.08);
}

.pricing-feature-item strong {
    display: block;
    font-size: 32px;
    color: var(--brand);
    line-height: 1;
}

.pricing-feature-item span {
    display: block;
    margin-top: 10px;
    color: #4f647a;
    line-height: 1.7;
}

.billing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 28px;
}

.billing-option {
    padding: 24px 22px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid rgba(19, 32, 51, 0.1);
}

.billing-option-active {
    background: linear-gradient(180deg, #fafdff 0%, #eef6ff 100%);
    border-color: rgba(31, 142, 250, 0.26);
    box-shadow: 0 16px 30px rgba(31, 142, 250, 0.1);
}

.billing-label {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: #f4f8fc;
    color: #5b7088;
    font-size: 13px;
    font-weight: 700;
}

.billing-price {
    margin-top: 18px;
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.billing-price strong {
    font-size: 42px;
    color: #17365d;
    line-height: 1;
}

.billing-price span {
    color: var(--muted);
    padding-bottom: 5px;
}

.billing-option p {
    margin-top: 16px;
    color: var(--muted);
    line-height: 1.8;
}

.pricing-note-list {
    margin-top: 24px;
    padding-left: 20px;
    color: var(--muted);
    line-height: 1.9;
    text-align: left;
}

.pricing-calculator {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
    gap: 24px;
    align-items: start;
}

.pricing-main {
    display: grid;
    gap: 24px;
}

.plan-purchase-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 24px;
    align-items: start;
}

.pricing-section,
.pricing-summary-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: var(--shadow);
}

.pricing-section {
    padding: 28px;
    text-align: left;
}

.pricing-section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.pricing-section-head h3 {
    color: #17365d;
    font-size: 26px;
}

.pricing-section-head span {
    color: var(--muted);
    font-size: 14px;
}

.plan-purchase-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 22px;
}

.plan-purchase-feature-item {
    padding: 22px 20px;
    border-radius: 20px;
    background: #fbfdff;
    border: 1px solid rgba(19, 32, 51, 0.08);
}

.plan-purchase-feature-item span {
    display: block;
    color: var(--muted);
    font-size: 14px;
}

.plan-purchase-feature-item strong {
    display: block;
    margin-top: 12px;
    color: #17365d;
    font-size: 24px;
    line-height: 1.35;
}

.duration-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 22px;
}

.duration-card {
    padding: 22px 20px;
    border-radius: 22px;
    border: 1px solid rgba(19, 32, 51, 0.1);
    background: #ffffff;
    text-align: left;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.duration-card:hover {
    transform: translateY(-2px);
    border-color: rgba(31, 142, 250, 0.22);
}

.duration-card-active {
    background: linear-gradient(180deg, #fafdff 0%, #eef6ff 100%);
    border-color: rgba(31, 142, 250, 0.28);
    box-shadow: 0 16px 30px rgba(31, 142, 250, 0.1);
}

.duration-name {
    display: block;
    color: #5b7088;
    font-size: 14px;
    font-weight: 700;
}

.duration-card strong {
    display: block;
    margin-top: 14px;
    font-size: 34px;
    color: #17365d;
}

.duration-card small {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 14px;
}

.resource-list {
    display: grid;
    gap: 16px;
    margin-top: 22px;
}

.resource-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 20px 22px;
    border-radius: 22px;
    background: #fbfdff;
    border: 1px solid rgba(19, 32, 51, 0.08);
}

.resource-copy h4 {
    color: #17365d;
    font-size: 20px;
}

.resource-copy p {
    margin-top: 8px;
    color: var(--muted);
}

.stepper {
    display: inline-grid;
    grid-template-columns: 42px 86px 42px;
    gap: 10px;
    align-items: center;
}

.stepper-btn {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(19, 32, 51, 0.12);
    border-radius: 12px;
    background: #ffffff;
    color: #17365d;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.stepper-input {
    width: 86px;
    height: 42px;
    padding: 0 10px;
    border: 1px solid rgba(19, 32, 51, 0.12);
    border-radius: 12px;
    background: #ffffff;
    color: #17365d;
    text-align: center;
    font-weight: 700;
}

.pricing-summary {
    min-width: 0;
}

/* 订单汇总继续上移，尽量与顶部购买套餐卡片保持平齐。 */
.purchase-summary-panel {
    margin-top: -208px;
}

.pricing-summary-card {
    padding: 28px;
    text-align: left;
    position: sticky;
    top: 98px;
}

.pricing-summary-card h3 {
    margin-top: 14px;
    font-size: 30px;
    color: #17365d;
}

/* 购买页右侧订单汇总卡片使用更紧凑的排版，避免信息过长导致视觉松散。 */
.purchase-summary-card {
    padding: 24px;
}

.purchase-summary-card .pricing-eyebrow {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 8px;
}

.summary-list {
    margin-top: 24px;
    display: grid;
    gap: 14px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(19, 32, 51, 0.08);
    color: var(--muted);
}

.summary-item strong {
    color: #17365d;
    font-size: 18px;
}

.purchase-summary-card .summary-list {
    margin-top: 16px;
    gap: 12px;
}

.purchase-summary-card .summary-list-brief,
.purchase-summary-card .summary-list-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.purchase-summary-card .summary-item {
    min-width: 0;
    padding: 14px 16px;
    border: 1px solid rgba(19, 32, 51, 0.08);
    border-bottom: none;
    border-radius: 16px;
    background: #f8fbff;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.purchase-summary-card .summary-item span {
    font-size: 12px;
    color: #6d7d92;
    line-height: 1.4;
}

.purchase-summary-card .summary-item strong {
    width: 100%;
    font-size: 15px;
    line-height: 1.5;
    word-break: break-word;
}

.purchase-summary-card .summary-item-wide {
    grid-column: 1 / -1;
}

.summary-total {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
}

.summary-total span {
    color: #17365d;
    font-size: 18px;
    font-weight: 700;
}

.summary-total strong {
    color: var(--brand);
    font-size: 42px;
    line-height: 1;
}

.purchase-summary-card .summary-total {
    margin-top: 18px;
    padding: 18px 20px;
    border-radius: 20px;
    background: linear-gradient(135deg, #f7fbff, #eef6ff);
    border: 1px solid rgba(31, 142, 250, 0.12);
    align-items: center;
}

.purchase-summary-card .summary-total span {
    font-size: 16px;
}

.purchase-summary-card .summary-total strong {
    font-size: 34px;
}

.summary-section-title {
    margin-top: 22px;
    color: #17365d;
    font-size: 15px;
    font-weight: 800;
}

.summary-list-compact {
    margin-top: 16px;
}

.purchase-summary-card .summary-section-title {
    margin-top: 20px;
    font-size: 14px;
}

.purchase-btn {
    margin-top: 24px;
    width: 100%;
    min-height: 50px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--brand), #3a9efb);
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    box-shadow: 0 16px 28px rgba(31, 142, 250, 0.18);
}

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

.purchase-btn:disabled {
    cursor: not-allowed;
    opacity: 0.72;
    transform: none;
}

.purchase-btn-free {
    background: linear-gradient(135deg, #1fa66b, #28be7c);
    box-shadow: 0 16px 28px rgba(31, 166, 107, 0.18);
}

.purchase-btn-locked {
    background: linear-gradient(135deg, #a7b6c7, #92a3b8);
    box-shadow: none;
}

.purchase-tip {
    margin-top: 14px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.8;
}

.purchase-summary-card .purchase-btn {
    margin-top: 18px;
}

.purchase-summary-card .purchase-tip {
    margin-top: 12px;
}

.purchase-preview-notice {
    display: none;
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(31, 142, 250, 0.14);
    background: #f6faff;
    color: #24507a;
    font-size: 13px;
    line-height: 1.8;
}

.purchase-preview-notice:not([hidden]) {
    display: block;
}

.purchase-summary-card .purchase-preview-notice {
    margin-top: 14px;
}

.purchase-preview-info {
    border-color: rgba(31, 142, 250, 0.14);
    background: #f6faff;
    color: #24507a;
}

.purchase-preview-warning {
    border-color: rgba(219, 154, 47, 0.22);
    background: #fffaf0;
    color: #8a5b06;
}

.plan-back-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 46px;
    margin-top: 14px;
    border-radius: 14px;
    border: 1px solid rgba(19, 32, 51, 0.12);
    background: #ffffff;
    color: #17365d;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.plan-back-link:hover {
    background: #f6faff;
    border-color: rgba(31, 142, 250, 0.24);
    transform: translateY(-1px);
}

.payment-return-notice {
    display: none;
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(31, 142, 250, 0.14);
    background: #f6faff;
    color: #24507a;
    font-size: 13px;
    line-height: 1.8;
}

.payment-return-notice:not([hidden]) {
    display: block;
}

.payment-return-info {
    border-color: rgba(31, 142, 250, 0.14);
    background: #f6faff;
    color: #24507a;
}

.payment-return-success {
    border-color: rgba(31, 166, 107, 0.18);
    background: #f4fff8;
    color: #13653f;
}

.payment-return-warning {
    border-color: rgba(219, 154, 47, 0.22);
    background: #fffaf0;
    color: #8a5b06;
}

.form-box {
    max-width: 460px;
    margin: 30px auto 0;
    padding: 28px;
    border-radius: 20px;
    text-align: left;
}

.form-box input {
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 15px;
    border-radius: 12px;
    border: 1px solid rgba(19, 32, 51, 0.12);
    background: #ffffff;
    color: var(--text);
}

.form-box input::placeholder {
    color: #8090a2;
}

.form-box button {
    width: 100%;
    min-height: 48px;
    padding: 12px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--brand), #3a9efb);
    color: #ffffff;
    font-weight: 800;
    cursor: pointer;
}

.captcha-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 132px;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
}

.captcha-row input {
    margin-bottom: 0;
}

.captcha-image {
    width: 132px;
    height: 48px;
    border-radius: 12px;
    border: 1px solid rgba(19, 32, 51, 0.12);
    background: #f7fbff;
    object-fit: cover;
    cursor: pointer;
}

.article-list {
    max-width: 880px;
    margin: 40px auto 0;
}

.article {
    margin-bottom: 15px;
    padding: 20px 22px;
    border-radius: 16px;
    text-align: left;
    color: #17365d;
}

footer {
    padding: 28px 16px 36px;
    text-align: center;
    color: #7b8da2;
}

.form-links {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin: 8px 0 20px;
    font-size: 14px;
}

.form-links a {
    color: var(--brand);
    text-decoration: none;
    transition: color 0.2s ease;
}

.form-links a:hover {
    color: #0e6ece;
}

.form-links-center {
    justify-content: center;
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(10, 22, 35, 0.22);
    justify-content: center;
    align-items: center;
}

.modal-content {
    width: min(320px, calc(100% - 32px));
    padding: 24px;
    border-radius: 18px;
    background: #ffffff;
    color: var(--text);
    text-align: center;
    border: 1px solid rgba(19, 32, 51, 0.08);
    box-shadow: 0 20px 36px rgba(30, 48, 76, 0.12);
}

.modal-content button {
    margin-top: 16px;
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--brand), #3a9efb);
    color: #ffffff;
    cursor: pointer;
    font-weight: 700;
}

.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 10000;
    display: grid;
    gap: 12px;
    pointer-events: none;
}

.toast-message {
    min-width: 220px;
    max-width: min(360px, calc(100vw - 32px));
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(19, 32, 51, 0.08);
    background: rgba(255, 255, 255, 0.98);
    color: #17365d;
    box-shadow: 0 18px 32px rgba(20, 42, 67, 0.14);
    transform: translateY(-10px);
    opacity: 0;
    transition: transform 0.22s ease, opacity 0.22s ease;
}

.toast-visible {
    transform: translateY(0);
    opacity: 1;
}

.toast-success {
    border-color: rgba(31, 166, 107, 0.18);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(240, 252, 246, 0.98));
}

.user-menu {
    position: relative;
    display: inline-block;
}

.dropdown {
    display: none;
    position: absolute;
    top: 50px;
    right: 0;
    min-width: 150px;
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(19, 32, 51, 0.08);
    box-shadow: 0 18px 30px rgba(20, 42, 67, 0.12);
}

.dropdown a {
    display: block;
    padding: 12px 14px;
    color: #1b2b3b;
    text-decoration: none;
}

.dropdown a:hover {
    background: #eef4fb;
}

.dashboard-shell {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 44px 0 72px;
}

.content-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.dashboard-content {
    min-width: 0;
}

.dashboard-content-full {
    width: 100%;
}

.dashboard-panel {
    display: none;
}

.dashboard-panel.active {
    display: block;
}

.content-card {
    padding: 28px;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.panel-header h2 {
    color: #17365d;
    font-size: 30px;
}

.panel-header p {
    margin-top: 8px;
    color: var(--muted);
    line-height: 1.7;
}

.tunnel-list {
    display: grid;
    gap: 16px;
}

.tunnel-item {
    padding: 20px;
    border: 1px solid rgba(19, 32, 51, 0.08);
    border-radius: 18px;
    background: #fbfdff;
}

.tunnel-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.tunnel-head {
    min-width: 0;
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    align-items: center;
    column-gap: 28px;
}

.tunnel-main h3 {
    color: #17365d;
    font-size: 20px;
    min-width: 0;
}

.tunnel-main p {
    margin-top: 8px;
    color: var(--muted);
}

.tunnel-meta {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    color: #5f7489;
    font-size: 14px;
}

.tunnel-public {
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    border: none;
    background: transparent;
    min-width: 0;
    overflow: hidden;
}

.tunnel-public-label {
    flex: 0 0 auto;
    color: #5f82a8;
    font-size: 14px;
    font-weight: 700;
}

.tunnel-public strong {
    flex: 0 1 auto;
    color: #0f62b8;
    font-size: 15px;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 720px) {
    .tunnel-head {
        grid-template-columns: 1fr;
        row-gap: 6px;
    }
}

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 82px;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: #eef3f8;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.status-running {
    background: #e8faf6;
    color: #129e78;
}

.status-stopped {
    background: #eef3f8;
    color: #73859a;
}

.info-section + .info-section {
    margin-top: 28px;
}

.info-section h3 {
    margin-bottom: 16px;
    color: #17365d;
    font-size: 20px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.info-item {
    padding: 18px;
    border-radius: 18px;
    background: #fbfdff;
    border: 1px solid rgba(19, 32, 51, 0.08);
}

.info-item span {
    display: block;
    color: var(--muted);
    font-size: 14px;
}

.info-item strong {
    display: block;
    margin-top: 8px;
    color: #17365d;
    line-height: 1.6;
    word-break: break-all;
}

.password-form {
    display: grid;
    gap: 16px;
    max-width: 560px;
}

.form-row label {
    display: block;
    margin-bottom: 8px;
    color: #17365d;
    font-weight: 700;
}

.form-row input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid rgba(19, 32, 51, 0.12);
    background: #ffffff;
    color: var(--text);
}

.dashboard-submit {
    margin-top: 4px;
    border: none;
    cursor: pointer;
    width: auto;
    min-width: 160px;
    justify-self: start;
}

.empty-state {
    padding: 24px;
    border-radius: 18px;
    border: 1px dashed rgba(19, 32, 51, 0.14);
    background: #fbfdff;
    color: var(--muted);
    text-align: center;
}

@media (max-width: 960px) {
    header {
        align-items: flex-start;
        flex-direction: column;
    }

    .header-left,
    .header-right {
        width: 100%;
        justify-content: space-between;
    }

    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-top: 34px;
    }

    .scenario-grid,
    .step-row {
        grid-template-columns: 1fr;
    }

    .plan-overview-grid {
        grid-template-columns: 1fr;
    }

    .plan-table-card {
        display: none;
    }

    .plan-mobile-list {
        display: grid;
    }

    .pricing-feature-grid,
    .billing-grid {
        grid-template-columns: 1fr;
    }

    .plan-purchase-layout,
    .pricing-calculator,
    .duration-grid {
        grid-template-columns: 1fr;
    }

    .purchase-page-hero {
        width: 100%;
        padding: 24px;
    }

    .plan-purchase-feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pricing-summary-card {
        position: static;
    }

    .purchase-summary-panel {
        margin-top: 0;
    }

    .purchase-summary-card .summary-list-brief,
    .purchase-summary-card .summary-list-compact {
        grid-template-columns: 1fr;
    }

    .resource-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .captcha-row {
        grid-template-columns: 1fr;
    }

    .captcha-image {
        width: 100%;
    }

    .header-left,
    .header-right {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .main-nav {
        gap: 22px;
    }

    .logo {
        font-size: 24px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn,
    .nav-action {
        width: 100%;
    }

    .page {
        padding-top: 68px;
    }

    .pricing-page {
        padding-top: 40px;
    }

    .plan-summary-card,
    .plan-mobile-card {
        padding: 22px;
    }

    .plan-mobile-head,
    .plan-mobile-meta li {
        flex-direction: column;
        align-items: flex-start;
    }

    .plan-mobile-meta li strong {
        text-align: left;
    }

    .plan-mobile-prices {
        grid-template-columns: 1fr;
    }

    .plan-purchase-feature-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .pricing-section-head,
    .summary-item,
    .summary-total {
        flex-direction: column;
        align-items: flex-start;
    }

    .stepper {
        width: 100%;
        grid-template-columns: 42px minmax(0, 1fr) 42px;
    }

    .stepper-input {
        width: 100%;
    }

    .section-block {
        padding-top: 22px;
    }

    .toast-container {
        top: 16px;
        right: 16px;
        left: 16px;
    }

    .toast-message {
        min-width: 0;
        max-width: none;
    }
}
