:root {
    --guide-bg: #030303;
    --guide-panel: #0b0b0b;
    --guide-panel-soft: #11100e;
    --guide-gold: #c4a565;
    --guide-gold-light: #efd89f;
    --guide-text: #f5f3ed;
    --guide-muted: rgba(239, 236, 227, 0.65);
    --guide-line: rgba(255, 255, 255, 0.09);
    --guide-gold-line: rgba(196, 165, 101, 0.36);
    --guide-shadow: 0 26px 80px rgba(0, 0, 0, 0.4);
    --guide-serif: "Cinzel", Georgia, serif;
    --guide-sans: "Manrope", Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
    overflow-x: hidden;
    background: var(--guide-bg);
}

body {
    min-width: 320px;
    overflow-x: hidden;
    background:
        radial-gradient(65% 28% at 50% 0%, rgba(196, 165, 101, 0.09), transparent 74%),
        var(--guide-bg);
    color: var(--guide-text);
    font-family: var(--guide-sans);
    line-height: 1.75;
}

body::before {
    content: "";
    position: fixed;
    z-index: -1;
    inset: 0;
    opacity: 0.1;
    pointer-events: none;
    background-image: radial-gradient(rgba(255, 255, 255, 0.24) 0.45px, transparent 0.45px);
    background-size: 6px 6px;
    mask-image: linear-gradient(180deg, #000, transparent 58%);
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: var(--guide-gold-light);
    text-decoration: none;
}

a:hover {
    color: #fff0c8;
}

h1,
h2,
h3 {
    font-family: var(--guide-serif);
    font-weight: 500;
    line-height: 1.2;
    text-wrap: balance;
}

.guide-container {
    width: min(100%, 1320px);
    margin-inline: auto;
    padding-inline: clamp(20px, 4vw, 54px);
}

.skip-link {
    position: fixed;
    z-index: 2000;
    top: 10px;
    left: 12px;
    padding: 10px 14px;
    border-radius: 7px;
    background: var(--guide-gold-light);
    color: #090704;
    font-weight: 700;
    transform: translateY(-160%);
    transition: transform 0.2s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

.guide-header {
    position: sticky;
    z-index: 1000;
    top: 0;
    border-bottom: 1px solid var(--guide-line);
    background: rgba(0, 0, 0, 0.82);
    box-shadow: 0 10px 34px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(16px) saturate(125%);
    -webkit-backdrop-filter: blur(16px) saturate(125%);
}

.guide-nav {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.guide-brand {
    display: inline-flex;
    align-items: center;
    flex: 0 1 250px;
}

.guide-brand img {
    width: 230px;
    height: auto;
    object-fit: contain;
}

.guide-nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.guide-nav-links > a {
    padding: 9px 11px;
    border-radius: 7px;
    color: rgba(245, 243, 237, 0.72);
    font-size: 0.78rem;
    font-weight: 600;
}

.guide-nav-links > a:hover {
    background: rgba(196, 165, 101, 0.08);
    color: var(--guide-gold-light);
}

.guide-nav-links .guide-nav-cta {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    padding-inline: 15px;
    border: 1px solid var(--guide-gold-line);
    color: #fff8e7;
    font-family: var(--guide-serif);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.guide-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-block: 24px 18px;
    color: rgba(245, 243, 237, 0.43);
    font-size: 0.72rem;
}

.guide-breadcrumbs a {
    color: rgba(245, 243, 237, 0.7);
}

.guide-hero {
    position: relative;
    isolation: isolate;
    min-height: clamp(560px, 72vw, 760px);
    border: 1px solid var(--guide-line);
    border-radius: 20px;
    overflow: hidden;
    background: #0b0b0b;
    box-shadow: var(--guide-shadow);
}

.guide-hero picture,
.guide-hero-media,
.guide-hero-shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.guide-hero-media {
    object-fit: cover;
    object-position: center;
    filter: saturate(0.9) contrast(1.03);
}

.guide-hero-shade {
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.08) 20%, rgba(0, 0, 0, 0.84) 88%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.55), transparent 60%);
}

.guide-hero-copy {
    position: absolute;
    z-index: 2;
    right: clamp(22px, 5vw, 66px);
    bottom: clamp(26px, 6vw, 70px);
    left: clamp(22px, 5vw, 66px);
    max-width: 880px;
}

.guide-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    color: var(--guide-gold-light);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.guide-kicker::before {
    content: "";
    width: 34px;
    height: 1px;
    background: linear-gradient(90deg, var(--guide-gold), transparent);
}

.guide-hero h1 {
    max-width: 920px;
    color: #fff;
    font-size: clamp(2.2rem, 5vw, 4.8rem);
    letter-spacing: -0.02em;
    text-shadow: 0 14px 38px rgba(0, 0, 0, 0.58);
}

.guide-hero-intro {
    max-width: 760px;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.8);
    font-size: clamp(0.96rem, 1.3vw, 1.1rem);
    line-height: 1.75;
    text-shadow: 0 8px 22px rgba(0, 0, 0, 0.7);
}

.guide-byline {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.56);
    font-size: 0.7rem;
}

.guide-overview {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 24px 0 0;
    border: 1px solid var(--guide-line);
    border-radius: 14px;
    overflow: hidden;
    background: rgba(10, 10, 10, 0.88);
}

.guide-overview-item {
    min-width: 0;
    padding: 18px;
    border-right: 1px solid var(--guide-line);
}

.guide-overview-item:last-child {
    border-right: 0;
}

.guide-overview-item small {
    display: block;
    margin-bottom: 5px;
    color: rgba(245, 243, 237, 0.4);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.guide-overview-item strong {
    color: #f7f1e4;
    font-family: var(--guide-serif);
    font-size: 0.88rem;
    font-weight: 500;
}

.guide-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: clamp(34px, 5vw, 72px);
    align-items: start;
    padding-block: clamp(58px, 8vw, 100px);
}

.guide-article {
    min-width: 0;
}

.guide-lede {
    margin-bottom: 42px;
    color: rgba(247, 245, 238, 0.82);
    font-family: var(--guide-serif);
    font-size: clamp(1.2rem, 2vw, 1.55rem);
    line-height: 1.65;
}

.guide-article h2 {
    margin: 56px 0 18px;
    color: #fff;
    font-size: clamp(1.65rem, 3vw, 2.35rem);
}

.guide-article h3 {
    margin: 28px 0 10px;
    color: #f4e5bd;
    font-size: clamp(1.05rem, 1.8vw, 1.3rem);
}

.guide-article p {
    max-width: 74ch;
    margin-bottom: 20px;
    color: var(--guide-muted);
    font-size: 0.98rem;
}

.guide-article strong {
    color: rgba(255, 255, 255, 0.9);
}

.guide-article ul {
    max-width: 74ch;
    display: grid;
    gap: 10px;
    margin: 0 0 24px 20px;
    color: var(--guide-muted);
}

.guide-route {
    display: grid;
    gap: 12px;
    margin-block: 24px 42px;
}

.guide-stop {
    position: relative;
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 22px;
    padding: 22px;
    border: 1px solid var(--guide-line);
    border-radius: 13px;
    background: linear-gradient(145deg, rgba(18, 17, 14, 0.96), rgba(7, 7, 7, 0.98));
}

.guide-stop-time {
    padding-top: 3px;
    color: var(--guide-gold-light);
    font-family: var(--guide-serif);
    font-size: 0.82rem;
    letter-spacing: 0.06em;
}

.guide-stop h3 {
    margin: 0 0 8px;
}

.guide-stop p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.7;
}

.guide-note {
    margin: 34px 0;
    padding: 24px;
    border: 1px solid var(--guide-gold-line);
    border-radius: 13px;
    background:
        linear-gradient(135deg, rgba(196, 165, 101, 0.1), transparent 58%),
        #0a0908;
}

.guide-note .guide-kicker {
    margin-bottom: 10px;
}

.guide-note p:last-child {
    margin-bottom: 0;
}

.guide-choice-grid,
.guide-faq-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 22px;
}

.guide-choice,
.guide-faq {
    padding: 22px;
    border: 1px solid var(--guide-line);
    border-radius: 13px;
    background: linear-gradient(150deg, rgba(17, 17, 17, 0.98), rgba(7, 7, 7, 0.98));
}

.guide-choice h3,
.guide-faq h3 {
    margin: 0 0 9px;
}

.guide-choice p,
.guide-faq p {
    margin: 0;
    font-size: 0.9rem;
}

.guide-sources {
    margin-top: 50px;
    padding-top: 26px;
    border-top: 1px solid var(--guide-line);
}

.guide-sources h2 {
    margin-top: 0;
    font-size: 1.2rem;
}

.guide-sources p,
.guide-sources li {
    font-size: 0.82rem;
}

.guide-aside {
    position: sticky;
    top: 102px;
    display: grid;
    gap: 14px;
}

.guide-booking-card,
.guide-toc {
    padding: 23px;
    border: 1px solid var(--guide-line);
    border-radius: 14px;
    background: rgba(10, 10, 10, 0.9);
    box-shadow: 0 18px 52px rgba(0, 0, 0, 0.28);
}

.guide-booking-card {
    border-color: var(--guide-gold-line);
    background:
        radial-gradient(circle at 90% 0%, rgba(196, 165, 101, 0.13), transparent 48%),
        #0b0a09;
}

.guide-booking-card h2,
.guide-toc h2 {
    margin: 0 0 12px;
    font-size: 1.12rem;
}

.guide-booking-card p {
    color: var(--guide-muted);
    font-size: 0.82rem;
}

.guide-card-actions {
    display: grid;
    gap: 9px;
    margin-top: 18px;
}

.guide-button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 15px;
    border: 1px solid var(--guide-gold);
    border-radius: 7px;
    background: var(--guide-gold);
    color: #090704;
    font-family: var(--guide-serif);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-align: center;
    text-transform: uppercase;
    transition: transform 0.22s ease, background 0.22s ease;
}

.guide-button:hover {
    background: #e0bd75;
    color: #090704;
    transform: translateY(-1px);
}

.guide-button-secondary {
    border-color: var(--guide-gold-line);
    background: transparent;
    color: #f8efda;
}

.guide-button-secondary:hover {
    background: rgba(196, 165, 101, 0.08);
    color: #fff6df;
}

.guide-toc ol {
    display: grid;
    gap: 9px;
    margin-left: 18px;
    color: rgba(245, 243, 237, 0.42);
    font-size: 0.78rem;
}

.guide-toc a {
    color: rgba(245, 243, 237, 0.68);
}

.guide-cta {
    position: relative;
    margin-bottom: clamp(70px, 9vw, 120px);
    padding: clamp(38px, 7vw, 78px);
    border: 1px solid var(--guide-gold-line);
    border-radius: 18px;
    overflow: hidden;
    background:
        linear-gradient(100deg, rgba(3, 3, 3, 0.98), rgba(3, 3, 3, 0.66)),
        var(--guide-cta-image, url("../pictures/shanghai-private-tour-bund-1600.webp")) center 56% / cover;
    box-shadow: var(--guide-shadow);
}

.guide-cta::before {
    content: "";
    position: absolute;
    inset: 0 12% auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--guide-gold-light), transparent);
}

.guide-cta-inner {
    position: relative;
    max-width: 680px;
}

.guide-cta h2 {
    font-size: clamp(1.75rem, 4vw, 3rem);
}

.guide-cta p {
    margin: 15px 0 22px;
    color: rgba(255, 255, 255, 0.72);
}

.guide-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.guide-footer {
    padding: 54px 0 38px;
    border-top: 1px solid var(--guide-line);
    background: #050505;
}

.guide-footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(180px, 0.5fr);
    gap: 40px;
    align-items: start;
}

.guide-footer-logo {
    width: 230px;
    height: auto;
    object-fit: contain;
}

.guide-footer p {
    max-width: 680px;
    margin-top: 14px;
    color: rgba(245, 243, 237, 0.5);
    font-size: 0.82rem;
}

.guide-footer-links {
    display: grid;
    gap: 9px;
    font-size: 0.82rem;
}

@media (max-width: 980px) {
    .guide-layout {
        grid-template-columns: 1fr;
    }

    .guide-aside {
        position: static;
        grid-row: 1;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .guide-overview {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .guide-overview-item:nth-child(2) {
        border-right: 0;
    }

    .guide-overview-item:nth-child(-n+2) {
        border-bottom: 1px solid var(--guide-line);
    }
}

@media (max-width: 720px) {
    .guide-nav {
        min-height: 70px;
    }

    .guide-brand {
        flex-basis: 184px;
    }

    .guide-brand img {
        width: 184px;
    }

    .guide-nav-links > a:not(.guide-nav-cta) {
        display: none;
    }

    .guide-nav-links .guide-nav-cta {
        min-height: 40px;
        padding-inline: 11px;
        font-size: 0.58rem;
    }

    .guide-breadcrumbs {
        overflow: hidden;
        white-space: nowrap;
    }

    .guide-breadcrumbs span:last-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .guide-hero {
        min-height: 610px;
        border-radius: 14px;
    }

    .guide-hero-media {
        object-position: 58% center;
    }

    .guide-hero-shade {
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.08) 16%, rgba(0, 0, 0, 0.92) 82%);
    }

    .guide-hero h1 {
        font-size: clamp(2rem, 10vw, 3.15rem);
    }

    .guide-hero-intro {
        font-size: 0.92rem;
    }

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

    .guide-overview-item,
    .guide-overview-item:nth-child(2) {
        border-right: 0;
        border-bottom: 1px solid var(--guide-line);
    }

    .guide-overview-item:last-child {
        border-bottom: 0;
    }

    .guide-layout {
        padding-block: 52px;
    }

    .guide-aside {
        grid-template-columns: 1fr;
    }

    .guide-toc {
        display: none;
    }

    .guide-choice-grid,
    .guide-faq-grid {
        grid-template-columns: 1fr;
    }

    .guide-stop {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 20px;
    }

    .guide-stop-time {
        font-size: 0.72rem;
    }

    .guide-cta {
        padding: 42px 22px;
        border-radius: 14px;
    }

    .guide-cta-actions {
        display: grid;
    }

    .guide-footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 420px) {
    .guide-container {
        padding-inline: 15px;
    }

    .guide-brand {
        flex-basis: 150px;
    }

    .guide-brand img {
        width: 150px;
    }

    .guide-nav-links .guide-nav-cta {
        padding-inline: 9px;
        letter-spacing: 0.04em;
    }

    .guide-hero {
        min-height: 650px;
    }

    .guide-hero-copy {
        right: 18px;
        bottom: 24px;
        left: 18px;
    }

    .guide-byline {
        display: grid;
        gap: 3px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
    }
}
