/**
 * 日本线路专题 — 对齐 test/jp/code.html
 * 仅作用于 .jp-page
 */
.jp-page.route-landing {
    background: #f8f9fa;
    color: #191c1d;
    font-family: "Inter", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.jp-page .route-section {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.jp-page .route-section.route-hero.jp-hero-section {
    padding-top: 5rem;
    padding-bottom: 8rem;
    overflow: hidden;
    background: #f8f9fa;
}

.jp-page .route-section--compact {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
}

.jp-page .route-section--alt {
    background: #f3f4f5;
}

.jp-page .route-section--white {
    background: #fff;
}

.jp-page .route-section.jp-flow-section {
    background: #101d25;
    color: #fff;
    overflow: hidden;
}

.jp-page .route-main {
    max-width: 1280px;
    padding-left: 24px;
    padding-right: 24px;
}

/* —— 按钮（站点 nf-btn 无全局样式，此处按原型补全） —— */
.jp-page .nf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.9375rem;
    line-height: 1.2;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
    box-sizing: border-box;
}

.jp-page .nf-btn--primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: 0 10px 28px rgba(var(--primary-rgb), 0.22);
}

.jp-page .nf-btn--primary:hover {
    transform: scale(1.03);
    color: #fff;
}

.jp-page .nf-btn--ghost {
    background: #e1e3e4;
    color: #191c1d;
}

.jp-page .nf-btn--ghost:hover {
    background: #edeeef;
    color: #191c1d;
}

.jp-page .route-cta {
    gap: 1rem;
}

/* —— Hero —— */
.jp-page .route-hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: center;
}

@media (min-width: 992px) {
    .jp-page .route-hero-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

.jp-page .route-badge {
    display: inline-block;
    padding: 4px 12px;
    margin-bottom: 1.5rem;
    border-radius: 999px;
    background: #ffd9e1;
    color: #8f0044;
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.jp-page .route-h1 {
    margin: 0 0 2rem;
    font-size: clamp(2.5rem, 4.5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.04em;
    color: #191c1d;
}

.jp-page .route-h1 .accent {
    color: var(--primary);
    font-style: normal;
}

.jp-page .route-lead {
    margin: 0 0 2.5rem;
    max-width: 32rem;
    font-size: 1.125rem;
    line-height: 1.75;
    color: #5a4046;
}

.jp-page .jp-hero-visual {
    position: relative;
}

.jp-page .jp-hero-img-wrap {
    aspect-ratio: 4 / 5;
    max-height: 560px;
    width: 100%;
    border-radius: 2rem;
    overflow: hidden;
    position: relative;
    z-index: 1;
    box-shadow: 0 32px 64px -12px rgba(var(--primary-rgb), 0.08);
}

.jp-page .jp-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
    display: block;
}

.jp-page .jp-hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(64px);
    pointer-events: none;
    z-index: 0;
}

.jp-page .jp-hero-blob--1 {
    width: 16rem;
    height: 16rem;
    bottom: -2.5rem;
    left: -2.5rem;
    background: rgba(var(--primary-rgb), 0.06);
}

.jp-page .jp-hero-blob--2 {
    width: 20rem;
    height: 20rem;
    top: -2.5rem;
    right: -2.5rem;
    background: rgba(214, 228, 240, 0.55);
}

.jp-page .jp-float-card {
    position: absolute;
    bottom: 3rem;
    right: -1.5rem;
    z-index: 2;
    width: min(260px, 88%);
    padding: 1.5rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

@media (min-width: 992px) {
    .jp-page .jp-float-card {
        right: -3rem;
    }
}

.jp-page .jp-float-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.jp-page .jp-float-ico {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: #ffd9e1;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.jp-page .jp-float-ico .material-symbols-outlined {
    font-size: 1.25rem;
    font-variation-settings: "FILL" 1;
}

.jp-page .jp-float-k {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #64748b;
}

.jp-page .jp-float-v {
    font-size: 1.25rem;
    font-weight: 800;
    color: #191c1d;
    line-height: 1.2;
}

.jp-page .jp-float-bar {
    height: 6px;
    border-radius: 999px;
    background: #edeeef;
    overflow: hidden;
}

.jp-page .jp-float-bar span {
    display: block;
    width: 92%;
    height: 100%;
    background: var(--primary);
    border-radius: 999px;
}

/* —— 区块标题 —— */
.jp-page .route-h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.jp-page .jp-section-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.jp-page .jp-section-deco {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.jp-page .jp-section-deco .material-symbols-outlined {
    font-size: 1.375rem;
}

/* —— Bento —— */
.jp-page .jp-bento {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .jp-page .jp-bento {
        grid-template-columns: repeat(12, minmax(0, 1fr));
    }
}

.jp-page .jp-bento-card {
    border-radius: 2.5rem;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.4s ease;
}

@media (min-width: 768px) {
    .jp-page .jp-bento-card {
        padding: 3rem;
    }
    .jp-page .jp-bento-card--8,
    .jp-page .jp-bento-card--4 {
        padding: 3rem;
    }
}

.jp-page .jp-bento-card--8 {
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 300px;
}

@media (min-width: 768px) {
    .jp-page .jp-bento-card--8 {
        grid-column: span 8;
    }
    .jp-page .jp-bento-card--4 {
        grid-column: span 4;
    }
    .jp-page .jp-bento-card--6 {
        grid-column: span 6;
    }
}

.jp-page .jp-bento-card--8:hover {
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.1);
}

.jp-page .jp-bento-card--primary {
    background: var(--primary);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 280px;
}

.jp-page .jp-bento-card--primary h3 {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 0 1rem;
}

.jp-page .jp-bento-card--primary p {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.875rem;
    line-height: 1.75;
    max-width: 16rem;
    position: relative;
    z-index: 2;
}

.jp-page .jp-watermark {
    margin-top: 2rem;
    font-size: clamp(2.5rem, 4vw, 3rem);
    font-weight: 900;
    opacity: 0.22;
    letter-spacing: 0.04em;
    line-height: 1;
    position: relative;
    z-index: 2;
}

.jp-page .jp-bento-ship {
    position: absolute;
    right: -2rem;
    bottom: -2rem;
    font-size: 10rem;
    opacity: 0.1;
    color: #fff;
    pointer-events: none;
    line-height: 1;
}

.jp-page .jp-bento-card--primary .jp-bento-ship .material-symbols-outlined {
    font-size: 10rem;
}

.jp-page .jp-bento-ico {
    color: var(--primary);
    margin-bottom: 1.5rem;
    display: block;
}

.jp-page .jp-bento-ico .material-symbols-outlined {
    font-size: 2.25rem;
    font-variation-settings: "FILL" 1;
}

.jp-page .jp-bento-card--8 h3 {
    margin: 0 0 1rem;
    font-size: 1.5rem;
    font-weight: 800;
}

.jp-page .jp-bento-card--8 p {
    margin: 0;
    color: #5d5e61;
    line-height: 1.75;
    max-width: 36rem;
}

.jp-page .jp-bento-link {
    margin-top: 2rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.jp-page .jp-bento-card--row {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: #e1e3e4;
}

.jp-page .jp-bento-card--border {
    background: #fff;
    border: 1px solid #e7e8e9;
}

.jp-page .jp-bento-card--row h3 {
    margin: 0 0 0.75rem;
    font-size: 1.25rem;
    font-weight: 800;
}

.jp-page .jp-bento-card--row p {
    margin: 0;
    font-size: 0.875rem;
    color: #5d5e61;
    line-height: 1.7;
}

.jp-page .jp-ico-box {
    width: 6rem;
    height: 6rem;
    flex-shrink: 0;
    border-radius: 1.5rem;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.jp-page .jp-ico-box .material-symbols-outlined {
    font-size: 2.25rem;
    color: var(--primary);
}

.jp-page .jp-ico-box--muted {
    background: #f3f4f5;
    box-shadow: none;
}

/* —— 定价 —— */
.jp-page .route-block-head--center {
    margin-bottom: 4rem;
}

.jp-page .jp-tiers {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: stretch;
}

@media (min-width: 768px) {
    .jp-page .jp-tiers {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.jp-page .jp-tier {
    padding: 2.5rem;
    border-radius: 2rem;
    background: #f8f9fa;
    border: 1px solid #edeeef;
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s ease;
}

.jp-page .jp-tier:hover {
    border-color: rgba(var(--primary-rgb), 0.25);
}

.jp-page .jp-tier--hot {
    background: #fff;
    border: 2px solid var(--primary);
    box-shadow: 0 25px 50px -12px rgba(var(--primary-rgb), 0.18);
    transform: scale(1.05);
    z-index: 1;
    position: relative;
}

.jp-page .jp-tier-tag {
    position: absolute;
    top: 0;
    right: 0;
    padding: 0.5rem 1.5rem;
    background: var(--primary);
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 0 2rem 0 1rem;
}

.jp-page .jp-tier-label {
    font-size: 0.875rem;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.jp-page .jp-tier-price {
    font-size: 2.25rem;
    font-weight: 900;
    color: #191c1d;
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.jp-page .jp-tier-price small {
    font-size: 1.125rem;
    font-weight: 400;
    color: #94a3b8;
}

.jp-page .jp-tier-desc {
    margin: 0 0 2rem;
    font-size: 0.875rem;
    color: #5d5e61;
}

.jp-page .jp-tier-list {
    margin: 0 0 2.5rem;
    padding: 0;
    list-style: none;
    flex: 1;
}

.jp-page .jp-tier-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 1rem;
    font-size: 0.875rem;
    color: #191c1d;
}

.jp-page .jp-tier-list li .material-symbols-outlined {
    font-size: 1.125rem;
    color: var(--primary);
    flex-shrink: 0;
}

.jp-page .jp-tier-list li.is-muted {
    color: #94a3b8;
}

.jp-page .jp-tier-list li.is-muted .material-symbols-outlined {
    color: #cbd5e1;
    font-size: 1.125rem;
}

.jp-page .jp-tier-list--bold li {
    font-weight: 700;
}

.jp-page .jp-tier-btn {
    width: 100%;
    border-radius: 0.75rem !important;
    padding: 1rem 1.25rem !important;
}

.jp-page .jp-tier:not(.jp-tier--hot) .jp-tier-btn.nf-btn--ghost:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.jp-page .jp-tier--hot .jp-tier-btn {
    border-radius: 0.75rem !important;
    box-shadow: 0 10px 28px rgba(var(--primary-rgb), 0.2);
}

/* —— 流程（对齐 test/jp/code.html Process Flow） —— */
.jp-page .jp-flow-title {
    margin: 0 0 4rem;
    text-align: center;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #fff;
    line-height: 1.2;
}

.jp-page .jp-flow-track {
    position: relative;
    padding: 3rem 0;
}

/* 连接线：穿过四个圆形图标中心 */
.jp-page .jp-flow-line {
    display: none;
}

@media (min-width: 768px) {
    .jp-page .jp-flow-line {
        display: block;
        position: absolute;
        z-index: 0;
        left: 8%;
        right: 8%;
        top: calc(3rem + 2rem);
        height: 1px;
        background: rgba(255, 255, 255, 0.1);
        pointer-events: none;
    }
}

.jp-page .jp-flow-steps {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .jp-page .jp-flow-steps {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 3rem;
    }
}

.jp-page .jp-flow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.jp-page .jp-flow-ico {
    width: 4rem;
    height: 4rem;
    margin: 0 0 1.5rem;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    box-shadow: 0 0 40px rgba(var(--primary-rgb), 0.4);
}

.jp-page .jp-flow-ico .material-symbols-outlined {
    font-size: 1.5rem;
    line-height: 1;
}

/* 第 4 步：primary-container 深色圆，无外发光 */
.jp-page .jp-flow-ico--alt {
    background: linear-gradient(145deg, var(--primary-dark), var(--primary));
    box-shadow: none;
}

.jp-page .jp-flow-ico--alt .material-symbols-outlined {
    font-variation-settings: "FILL" 1;
}

.jp-page .jp-flow-step h4 {
    margin: 0 0 0.5rem;
    font-size: 1.125rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.3;
}

.jp-page .jp-flow-step p {
    margin: 0;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.65;
}

/* 底部统计条 */
.jp-page .jp-flow-stats {
    margin-top: 5rem;
    padding: 2rem;
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2rem;
}

@media (min-width: 768px) {
    .jp-page .jp-flow-stats {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 2rem;
    }
}

.jp-page .jp-flow-stats-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .jp-page .jp-flow-stats-group {
        flex-direction: row;
        align-items: center;
        gap: 2rem;
        flex: 1;
    }
}

.jp-page .jp-stat {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
}

.jp-page .jp-stat-n {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
    letter-spacing: -0.02em;
    flex-shrink: 0;
}

.jp-page .jp-stat-l {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.55;
    text-align: left;
}

.jp-page .jp-stat-divider {
    display: none;
    width: 1px;
    height: 3rem;
    background: rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .jp-page .jp-stat-divider {
        display: block;
    }
}

.jp-page .jp-flow-data-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    background: #fff;
    color: #101d25;
    font-weight: 800;
    font-size: 0.9375rem;
    text-decoration: none;
    border: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.2s ease, color 0.2s ease;
}

.jp-page .jp-flow-data-btn:hover {
    background: var(--primary);
    color: #fff;
}

/* —— 服务支持 —— */
.jp-page .jp-support-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

@media (min-width: 992px) {
    .jp-page .jp-support-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.jp-page .jp-support-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.jp-page .jp-support-card {
    padding: 2rem;
    border-radius: 1.5rem;
    background: #f3f4f5;
}

.jp-page .jp-support-card--wide {
    grid-column: span 2;
    background: rgba(var(--primary-rgb), 0.05);
    border: 1px solid rgba(var(--primary-rgb), 0.1);
}

.jp-page .jp-support-ico {
    color: var(--primary);
    display: block;
    margin-bottom: 1rem;
}

.jp-page .jp-support-ico .material-symbols-outlined {
    font-size: 1.75rem;
}

.jp-page .jp-support-card h5 {
    margin: 0 0 0.5rem;
    font-weight: 800;
    font-size: 1rem;
}

.jp-page .jp-support-card p {
    margin: 0 0 1rem;
    font-size: 0.75rem;
    color: #5d5e61;
    line-height: 1.7;
}

.jp-page .jp-hub-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 0 0 1rem;
}

.jp-page .jp-hub-tags span {
    padding: 0.35rem 0.75rem;
    background: #fff;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.jp-page .jp-checks {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.jp-page .jp-check {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.jp-page .jp-check-ico {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: #ffd9e1;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.jp-page .jp-check-ico .material-symbols-outlined {
    font-size: 0.875rem;
    font-variation-settings: "FILL" 0;
}

.jp-page .jp-check h6 {
    margin: 0 0 0.25rem;
    font-size: 0.875rem;
    font-weight: 800;
}

.jp-page .jp-check p {
    margin: 0;
    font-size: 0.75rem;
    color: #5d5e61;
    line-height: 1.7;
}

.jp-page .material-symbols-outlined {
    font-family: "Material Symbols Outlined";
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
}

@media (max-width: 991px) {
    .jp-page .jp-float-card {
        position: static;
        margin-top: 1.25rem;
        width: 100%;
    }
    .jp-page .jp-tier--hot {
        transform: none;
    }
    .jp-page .jp-bento-card--row {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 575px) {
    .jp-page .jp-support-cards {
        grid-template-columns: 1fr;
    }
    .jp-page .jp-support-card--wide {
        grid-column: span 1;
    }
    .jp-page .jp-flow-steps {
        grid-template-columns: 1fr;
    }
    .jp-page .jp-flow-data-btn {
        width: 100%;
        text-align: center;
    }
}
