.product-tour-page {
    background: #f4f7fb;
}

/* 演示过程保持画面完整；保留右侧咨询入口，但不自动弹出邀请层遮挡操作。 */
.product-tour-page #aff-im-root {
    display: none !important;
}

.tour-shell {
    width: min(1360px, calc(100% - 40px));
    margin: 0 auto;
    padding: 48px 0 72px;
}

.tour-heading {
    margin-bottom: 24px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
}

.tour-heading h1 {
    margin: 8px 0 10px;
    color: #101828;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.18;
    font-weight: 840;
    letter-spacing: -0.04em;
}

.tour-heading p {
    max-width: 760px;
    margin: 0;
    color: #667085;
    font-size: 14px;
    line-height: 1.75;
}

.tour-mode-switch {
    padding: 5px;
    display: flex;
    gap: 4px;
    background: #fff;
    border: 1px solid #e4e7ec;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(16, 24, 40, 0.05);
}

.tour-mode-switch a,
.tour-mode-switch button {
    min-height: 38px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    color: #475467;
    background: transparent;
    border: 0;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.tour-mode-switch a.is-active,
.tour-mode-switch button:hover {
    color: #1849a9;
    background: #eff4ff;
}

.tour-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 250px;
    align-items: start;
    gap: 20px;
}

.tour-stage {
    min-width: 0;
    position: relative;
    overflow: hidden;
    background: #e9eef6;
    border: 1px solid #d0d5dd;
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(16, 24, 40, 0.14);
}

.tour-browser-bar {
    height: 46px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    gap: 7px;
    color: #667085;
    background: #fff;
    border-bottom: 1px solid #e4e7ec;
    font-size: 11px;
    font-weight: 650;
}

.tour-browser-bar > span {
    width: 9px;
    height: 9px;
    background: #f97066;
    border-radius: 50%;
}

.tour-browser-bar > span:nth-child(2) { background: #fdb022; }
.tour-browser-bar > span:nth-child(3) { background: #32d583; }

.tour-browser-bar > div {
    min-width: 180px;
    margin-left: 8px;
    padding: 7px 12px;
    flex: 1;
    text-align: center;
    background: #f2f4f7;
    border-radius: 7px;
}

.tour-browser-bar em {
    color: #175cd3;
    font-style: normal;
}

.tour-app {
    min-height: 650px;
    padding: 22px;
    position: relative;
    background: #f7f9fc;
    transition: transform 600ms cubic-bezier(.2,.8,.2,1);
}

.tour-stage.is-search-focus .tour-app {
    transform: scale(1.08) translateY(14px);
    transform-origin: center 105px;
}

.tour-app-header {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tour-app-header small,
.tour-app-header strong {
    display: block;
}

.tour-app-header small {
    color: #175cd3;
    font-size: 10px;
    font-weight: 800;
}

.tour-app-header strong {
    margin-top: 3px;
    color: #101828;
    font-size: 22px;
    font-weight: 800;
}

.tour-app-header button {
    min-height: 36px;
    padding: 0 12px;
    color: #fff;
    background: #155eef;
    border: 0;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
}

.tour-search-panel {
    padding: 16px;
    background: #fff;
    border: 1px solid #e4e7ec;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(16, 24, 40, 0.04);
}

.tour-search-panel > label {
    margin-bottom: 8px;
    display: block;
    color: #344054;
    font-size: 11px;
    font-weight: 750;
}

.tour-search-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.tour-search-input-wrap {
    min-width: 0;
    position: relative;
}

.tour-search-input-wrap > span {
    width: 13px;
    height: 13px;
    position: absolute;
    top: 50%;
    left: 12px;
    border: 2px solid #98a2b3;
    border-radius: 50%;
    transform: translateY(-56%);
}

.tour-search-input-wrap > span::after {
    content: "";
    width: 6px;
    height: 2px;
    position: absolute;
    right: -5px;
    bottom: -3px;
    background: #98a2b3;
    transform: rotate(45deg);
}

.tour-search-row input {
    width: 100%;
    height: 40px;
    padding: 0 12px 0 38px;
    color: #1d2939;
    background: #fff;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    outline: 0;
    font: inherit;
    font-size: 12px;
}

.tour-search-row input:focus {
    border-color: #84adff;
    box-shadow: 0 0 0 3px #eff4ff;
}

.tour-search-row > button {
    min-width: 76px;
    color: #fff;
    background: #155eef;
    border: 0;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 750;
    cursor: pointer;
}

.tour-search-panel > p {
    margin: 7px 0 0;
    color: #98a2b3;
    font-size: 9px;
}

.tour-results-meta {
    margin: 16px 0 8px;
    display: flex;
    justify-content: space-between;
    color: #667085;
    font-size: 10px;
}

.tour-results-meta strong {
    color: #344054;
    font-size: 12px;
}

.tour-table-wrap {
    overflow: auto;
    background: #fff;
    border: 1px solid #e4e7ec;
    border-radius: 12px;
}

.tour-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}

.tour-table th,
.tour-table td {
    padding: 12px 10px;
    text-align: left;
    border-bottom: 1px solid #eaecf0;
    font-size: 10px;
    white-space: nowrap;
}

.tour-table th {
    color: #475467;
    background: #f8fafc;
    font-weight: 750;
}

.tour-table td {
    color: #344054;
}

.tour-table tbody tr {
    transition: background 160ms ease, opacity 200ms ease;
}

.tour-table tbody tr:hover,
.tour-table tbody tr.is-highlighted {
    background: #f5f8ff;
}

.tour-order-link,
.tour-view-button {
    padding: 0;
    color: #175cd3;
    background: transparent;
    border: 0;
    font: inherit;
    font-weight: 750;
    text-decoration: none;
    cursor: pointer;
}

.tour-view-button {
    padding: 5px 8px;
    background: #eff4ff;
    border-radius: 6px;
}

.tour-status {
    padding: 5px 7px;
    display: inline-flex;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 750;
}

.tour-status--pending { color: #475467; background: #f2f4f7; }
.tour-status--in_production { color: #b54708; background: #fffaeb; }
.tour-status--shipped { color: #067647; background: #ecfdf3; }

.tour-empty-row td {
    padding: 38px;
    color: #667085;
    text-align: center;
}

.tour-detail {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #f7f9fc;
    animation: tourDetailIn 320ms ease both;
}

.tour-detail[hidden] { display: none; }

@keyframes tourDetailIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.tour-detail__head {
    padding: 13px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border-bottom: 1px solid #e4e7ec;
}

.tour-detail__head small { color: #175cd3; font-size: 9px; font-weight: 800; }
.tour-detail__head h2 { margin: 4px 0 0; color: #101828; font-size: 24px; }
.tour-detail__head button { padding: 8px 10px; color: #344054; background: #fff; border: 1px solid #d0d5dd; border-radius: 7px; font-size: 10px; font-weight: 700; cursor: pointer; }
.tour-detail > iframe { width: 100%; min-height: 0; flex: 1; border: 0; background: #f4f7fb; }
.tour-detail__status { margin: 12px 0; padding: 11px 13px; color: #067647; background: #ecfdf3; border: 1px solid #abefc6; border-radius: 9px; font-size: 11px; font-weight: 750; }

.tour-detail__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    background: #eaecf0;
    border: 1px solid #eaecf0;
    border-radius: 11px;
}

.tour-detail__grid div { padding: 13px; background: #fff; }
.tour-detail__grid small,.tour-detail__grid strong { display: block; }
.tour-detail__grid small { color: #98a2b3; font-size: 9px; }
.tour-detail__grid strong { margin-top: 5px; color: #344054; font-size: 11px; }
.tour-detail__products { margin-top: 14px; padding: 16px; background: #fff; border: 1px solid #e4e7ec; border-radius: 11px; }
.tour-detail__products h3 { margin: 0 0 10px; color: #1d2939; font-size: 13px; }
.tour-detail__products article { padding: 10px 0; display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 12px; border-top: 1px solid #eaecf0; color: #475467; font-size: 10px; }

.tour-cursor {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    transition: left 700ms cubic-bezier(.2,.8,.2,1), top 700ms cubic-bezier(.2,.8,.2,1), opacity 180ms ease;
}

.tour-cursor.is-visible { opacity: 1; }
.tour-cursor i { width: 0; height: 0; display: block; border-top: 17px solid #101828; border-right: 12px solid transparent; transform: rotate(-18deg); filter: drop-shadow(0 2px 2px rgba(255,255,255,.9)); }
.tour-cursor span { margin: 2px 0 0 9px; padding: 4px 6px; display: block; color: #fff; background: #101828; border-radius: 5px; font-size: 8px; white-space: nowrap; }

.tour-click-ring {
    width: 30px;
    height: 30px;
    position: absolute;
    z-index: 9;
    opacity: 0;
    border: 3px solid #155eef;
    border-radius: 50%;
    pointer-events: none;
}

.tour-click-ring.is-clicking { animation: tourClick 520ms ease; }
@keyframes tourClick { 0% { opacity: .9; transform: scale(.25); } 100% { opacity: 0; transform: scale(1.7); } }

.tour-story {
    padding: 20px;
    position: sticky;
    top: 92px;
    background: #fff;
    border: 1px solid #e4e7ec;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(16,24,40,.06);
}

.tour-story > span { color: #175cd3; font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.tour-story ol { margin: 14px 0; padding: 0; list-style: none; counter-reset: tourstep; }
.tour-story li { padding: 11px 0 11px 30px; position: relative; border-bottom: 1px solid #eaecf0; counter-increment: tourstep; opacity: .52; transition: opacity 180ms ease; }
.tour-story li::before { content: "0" counter(tourstep); position: absolute; left: 0; top: 12px; color: #98a2b3; font-size: 9px; font-weight: 800; }
.tour-story li.is-active { opacity: 1; }
.tour-story li.is-active::before { color: #175cd3; }
.tour-story b,.tour-story small { display: block; }
.tour-story b { color: #344054; font-size: 11px; }
.tour-story small { margin-top: 3px; color: #667085; font-size: 9px; line-height: 1.5; }
.tour-story > p { margin: 14px 0 0; color: #667085; font-size: 10px; line-height: 1.65; }

.tour-real-detail {
    width: min(1440px, calc(100% - 40px));
    margin: 0 auto;
    padding: 32px 0 72px;
}

.product-tour-embedded .tour-real-detail {
    width: calc(100% - 24px);
    padding: 12px 0 30px;
}

.product-tour-embedded .tour-real-detail__hero {
    padding: 20px 22px;
    border-radius: 14px;
    box-shadow: none;
}

.product-tour-embedded .tour-real-detail__hero h1 { font-size: 30px; }
.product-tour-embedded .tour-real-card { margin-top: 12px; padding: 18px; border-radius: 14px; box-shadow: none; }
.product-tour-embedded .tour-real-status { margin: 12px 0; }

.tour-real-detail__nav {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #667085;
    font-size: 13px;
}

.tour-real-detail__nav a {
    color: #175cd3;
    font-weight: 750;
    text-decoration: none;
}

.tour-real-detail__hero {
    padding: 30px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    background: linear-gradient(135deg, #ffffff 0%, #f7f9ff 100%);
    border: 1px solid #dfe5ef;
    border-radius: 20px;
    box-shadow: 0 14px 36px rgba(16, 24, 40, 0.08);
}

.tour-real-detail__hero h1 {
    margin: 7px 0 6px;
    color: #101828;
    font-size: clamp(32px, 4vw, 50px);
    line-height: 1;
    letter-spacing: -0.04em;
}

.tour-real-detail__hero p {
    margin: 0;
    color: #667085;
    font-size: 15px;
}

.tour-real-detail__hero-side {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tour-real-detail__readonly,
.tour-real-readonly-tag {
    padding: 7px 10px;
    color: #344054;
    background: #f2f4f7;
    border: 1px solid #e4e7ec;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 750;
    white-space: nowrap;
}

.tour-real-status {
    margin: 18px 0;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid;
    border-radius: 14px;
}

.tour-real-status strong { font-size: 16px; }
.tour-real-status span { font-size: 13px; }
.tour-real-status--pending { color: #475467; background: #f8fafc; border-color: #d0d5dd; }
.tour-real-status--in_production { color: #93370d; background: #fffaeb; border-color: #fedf89; }
.tour-real-status--shipped { color: #05603a; background: #ecfdf3; border-color: #abefc6; }

.tour-real-card {
    margin-top: 18px;
    padding: 24px;
    min-width: 0;
    background: #fff;
    border: 1px solid #dfe5ef;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.05);
}

.tour-real-section-title {
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.tour-real-section-title > div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tour-real-section-title span {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    color: #175cd3;
    background: #eff4ff;
    border-radius: 9px;
    font-size: 11px;
    font-weight: 800;
}

.tour-real-section-title h2 {
    margin: 0;
    color: #1d2939;
    font-size: 18px;
}

.tour-real-section-title small { color: #98a2b3; font-size: 12px; }

.tour-real-info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: hidden;
    background: #eaecf0;
    border: 1px solid #eaecf0;
    border-radius: 13px;
    gap: 1px;
}

.tour-real-info-grid > div {
    min-height: 82px;
    padding: 17px 18px;
    background: #fff;
}

.tour-real-info-grid small,
.tour-real-info-grid strong { display: block; }
.tour-real-info-grid small { color: #98a2b3; font-size: 12px; }
.tour-real-info-grid strong { margin-top: 8px; color: #344054; font-size: 14px; line-height: 1.5; }

.tour-real-table-wrap {
    overflow-x: auto;
    border: 1px solid #e4e7ec;
    border-radius: 13px;
}

.tour-real-table {
    width: 100%;
    min-width: 1040px;
    border-collapse: collapse;
}

.tour-real-table th,
.tour-real-table td {
    padding: 15px 13px;
    text-align: left;
    border-bottom: 1px solid #eaecf0;
    color: #475467;
    font-size: 13px;
    white-space: nowrap;
}

.tour-real-table th { color: #344054; background: #f8fafc; font-weight: 750; }
.tour-real-table td strong { color: #1d2939; }
.tour-real-table tbody tr:last-child td { border-bottom: 0; }

.tour-real-detail__columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.tour-real-records {
    margin: 0;
    overflow: hidden;
    border: 1px solid #e4e7ec;
    border-radius: 13px;
}

.tour-real-records > div {
    padding: 14px 16px;
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 16px;
    border-bottom: 1px solid #eaecf0;
}

.tour-real-records > div:last-child { border-bottom: 0; }
.tour-real-records dt { color: #98a2b3; font-size: 12px; }
.tour-real-records dd { margin: 0; color: #344054; font-size: 13px; line-height: 1.55; }
.tour-real-records .tour-real-money { color: #175cd3; font-size: 18px; font-weight: 800; }

.tour-real-attachments {
    display: grid;
    gap: 10px;
}

.tour-real-attachments article {
    padding: 14px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 13px;
    background: #f8fafc;
    border: 1px solid #eaecf0;
    border-radius: 12px;
}

.tour-real-file-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: #175cd3;
    background: #eff4ff;
    border-radius: 10px;
    font-weight: 800;
}

.tour-real-attachments a,
.tour-real-attachments article > div:nth-child(2) > strong {
    display: block;
    color: #175cd3;
    font-size: 13px;
    font-weight: 750;
    text-decoration: none;
}

.tour-real-attachments article > div:nth-child(2) > span {
    margin-top: 4px;
    display: block;
    color: #98a2b3;
    font-size: 11px;
}

.tour-real-empty { padding: 26px; color: #98a2b3; text-align: center; }

.tour-real-cta {
    margin-top: 18px;
    padding: 30px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    color: #fff;
    background: linear-gradient(135deg, #102a56, #155eef);
    border-radius: 18px;
    box-shadow: 0 16px 38px rgba(21, 94, 239, 0.2);
}

.tour-real-cta span { color: #b2ccff; font-size: 12px; font-weight: 800; }
.tour-real-cta h2 { margin: 7px 0; color: #fff; font-size: 22px; }
.tour-real-cta p { margin: 0; color: #d1e0ff; font-size: 13px; }
.tour-real-cta .public-btn { color: #175cd3; background: #fff; white-space: nowrap; }

@media (max-width: 980px) {
    .tour-layout { grid-template-columns: 1fr; }
    .tour-story { position: static; }
    .tour-story ol { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
    .tour-story li { padding: 10px; border: 1px solid #eaecf0; border-radius: 8px; }
    .tour-story li::before { display: none; }
    .tour-real-info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tour-real-detail__columns { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
    .tour-shell { width: calc(100% - 24px); padding-top: 30px; }
    .tour-heading { align-items: flex-start; flex-direction: column; }
    .tour-mode-switch { width: 100%; box-sizing: border-box; }
    .tour-mode-switch a,.tour-mode-switch button { flex: 1; justify-content: center; }
    .tour-app { min-height: 600px; padding: 14px; }
    .tour-stage.is-search-focus .tour-app { transform: scale(1.04) translateY(8px); }
    .tour-app-header button { display: none; }
    .tour-search-row { grid-template-columns: 1fr; }
    .tour-search-row > button { height: 38px; }
    .tour-story ol { grid-template-columns: 1fr; }
    .tour-detail__grid { grid-template-columns: 1fr 1fr; }
    .tour-detail__products article { grid-template-columns: 1fr; gap: 4px; }
    .tour-real-detail { width: calc(100% - 24px); padding-top: 22px; }
    .tour-real-detail__nav span { display: none; }
    .tour-real-detail__hero { padding: 24px 20px; align-items: flex-start; flex-direction: column; }
    .tour-real-detail__hero-side { width: 100%; align-items: stretch; flex-direction: column; }
    .tour-real-detail__hero-side .public-btn { justify-content: center; }
    .tour-real-detail__readonly { align-self: flex-start; }
    .tour-real-card { padding: 18px; }
    .tour-real-info-grid { grid-template-columns: 1fr; }
    .tour-real-status { align-items: flex-start; flex-direction: column; }
    .tour-real-section-title { align-items: flex-start; }
    .tour-real-section-title > small { max-width: 150px; text-align: right; }
    .tour-real-records > div { grid-template-columns: 82px minmax(0, 1fr); }
    .tour-real-cta { padding: 24px 20px; align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    .tour-app,.tour-cursor { transition: none; }
}
