:root {
    --ink: #18202b;
    --muted: #687386;
    --primary: #1467ff;
    --primary-dark: #0d4fc9;
    --card: #ffffff;
    --line: rgba(24, 32, 43, .1);
    --shadow: 0 18px 55px rgba(24, 32, 43, .09);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--ink);
    background: var(--site-background, #f5f7fb);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    line-height: 1.7;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.container { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }

/* 首页：参考宣传海报的纵向大图 + 两列套餐缩略图布局 */
.home-page {
    min-height: 100vh;
    background: var(--site-background, #f8d9df);
}

.home-shell {
    width: min(100%, 800px);
    min-height: 100vh;
    margin: 0 auto;
    overflow: hidden;
    background: #fff7f7;
    box-shadow: 0 0 42px rgba(60, 25, 34, .12);
}

.home-logo-area { margin: 0; background: #fce9eb; }
.home-logo-area > a { display: block; }
.home-logo-image { width: 100%; height: auto; }

.home-logo-fallback {
    display: flex;
    min-height: 430px;
    padding: 56px 30px;
    color: #dd4e79;
    text-align: center;
    background:
        radial-gradient(circle at 78% 25%, rgba(255,255,255,.75), transparent 28%),
        linear-gradient(145deg, #ffe7eb 0%, #fac9d3 100%);
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.home-logo-fallback h1 { margin: 0; font-size: clamp(38px, 8vw, 72px); line-height: 1.15; }
.home-logo-fallback p { margin: 18px 0 0; font-size: clamp(16px, 3.5vw, 26px); }
.home-package-section { padding: 10px; background: #fff; }
.home-package-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }

.home-package-item {
    display: flex;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, #ffe8e7, #ffd3d8);
    border: 1px solid rgba(219, 91, 112, .12);
    border-radius: 4px;
    align-items: center;
    justify-content: center;
}

.home-package-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.home-package-item:hover img { transform: scale(1.025); }

.home-package-fallback {
    display: flex;
    width: 100%;
    height: 100%;
    padding: 12px;
    color: #352d31;
    text-align: center;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.home-package-fallback strong { font-size: clamp(15px, 3.5vw, 25px); line-height: 1.3; }
.home-package-fallback small { margin-top: 5px; color: #8b7379; }
.home-package-fallback b { margin-top: 8px; color: #d94257; font-size: clamp(17px, 4vw, 27px); }
.home-package-fallback i { margin-right: 3px; font-size: .65em; font-style: normal; }
.home-empty { padding: 80px 20px; color: #9b7a82; text-align: center; background: #fff5f6; }

.home-contact {
    display: flex;
    padding: 22px 24px;
    color: #7c5962;
    background: #ffe8eb;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.home-contact-text { display: flex; min-width: 0; flex-direction: column; }
.home-contact-text strong { margin-bottom: 4px; color: #d74c70; font-size: 18px; }
.home-contact-text a, .home-contact-text span { overflow-wrap: anywhere; }
.home-contact img { width: 88px; height: 88px; flex: 0 0 auto; object-fit: cover; border-radius: 5px; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, .9);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { width: auto; max-width: 220px; height: 46px; object-fit: contain; }
.brand-text { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.header-contact, .back-link { color: var(--primary); font-weight: 650; }

.hero {
    padding: 104px 0 92px;
    color: #fff;
    text-align: center;
    background:
        radial-gradient(circle at 75% 20%, rgba(65, 179, 255, .35), transparent 30%),
        linear-gradient(135deg, #10234c 0%, #135fe9 100%);
}

.eyebrow { margin: 0 0 10px; color: #397bfa; font-size: 12px; font-weight: 800; letter-spacing: .22em; }
.hero .eyebrow { color: #a9ceff; }
.hero h1 { margin: 0; font-size: clamp(38px, 6vw, 68px); line-height: 1.15; letter-spacing: -.045em; }
.hero-subtitle { max-width: 720px; margin: 20px auto 0; color: rgba(255,255,255,.76); font-size: clamp(16px, 2.3vw, 21px); }

.packages-section { padding: 86px 0; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.section-heading h2, .contact-panel h2 { margin: 0; font-size: clamp(30px, 4vw, 44px); line-height: 1.2; }
.section-heading > span { color: var(--muted); }
.package-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.package-card { overflow: hidden; background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease; }
.package-card:hover { transform: translateY(-5px); box-shadow: 0 24px 64px rgba(24, 32, 43, .14); }
.package-cover { display: flex; height: 220px; background: linear-gradient(135deg, #dbe7ff, #eef5ff); align-items: center; justify-content: center; overflow: hidden; }
.package-cover img, .detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.cover-placeholder { padding: 24px; color: #2d5fa9; font-size: 22px; font-weight: 800; text-align: center; }
.package-body { padding: 24px; }
.package-body h3 { margin: 0; font-size: 22px; line-height: 1.35; }
.package-subtitle { min-height: 54px; margin: 10px 0 20px; color: var(--muted); }
.package-meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 17px; border-top: 1px solid var(--line); }
.price, .detail-price { color: #e5533d; font-size: 30px; font-weight: 850; letter-spacing: -.04em; }
.price small, .detail-price small { margin-right: 3px; font-size: 15px; }
.detail-link { color: var(--primary); font-weight: 700; }
.contact-line { display: block; margin-top: 13px; color: var(--muted); font-size: 14px; }
.empty-state { padding: 80px 24px; color: var(--muted); text-align: center; background: #fff; border: 1px dashed rgba(24, 32, 43, .18); border-radius: 20px; }

.contact-section { padding: 0 0 86px; }
.contact-panel { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 48px 54px; background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); }
.contact-panel p:not(.eyebrow) { color: var(--muted); }
.contact-items { display: flex; flex-wrap: wrap; gap: 12px 24px; font-weight: 700; }
.contact-items a { color: var(--primary); }
.qrcode { flex: 0 0 auto; margin: 0; text-align: center; }
.qrcode img { width: 132px; height: 132px; object-fit: cover; border-radius: 10px; }
.qrcode figcaption { margin-top: 8px; color: var(--muted); font-size: 13px; }

.detail-main { padding: 60px 0 86px; }
.detail-card { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); }
.detail-summary { display: grid; grid-template-columns: minmax(320px, .9fr) minmax(360px, 1.1fr); min-height: 460px; }
.detail-cover { display: flex; min-height: 380px; background: linear-gradient(135deg, #dbe7ff, #eef5ff); align-items: center; justify-content: center; overflow: hidden; }
.detail-intro { display: flex; padding: 54px; flex-direction: column; align-items: flex-start; justify-content: center; }
.detail-intro h1 { margin: 0; font-size: clamp(32px, 5vw, 52px); line-height: 1.2; letter-spacing: -.04em; }
.detail-subtitle { margin: 18px 0; color: var(--muted); font-size: 18px; }
.detail-price { margin: 2px 0 26px; font-size: 42px; }
.primary-button { display: inline-flex; min-height: 48px; padding: 10px 24px; color: #fff; background: var(--primary); border-radius: 12px; align-items: center; font-weight: 750; transition: background .2s ease; }
.primary-button:hover { background: var(--primary-dark); }
.wechat-line { margin: 14px 0 0; color: var(--muted); }
.detail-content { padding: 44px 54px 60px; border-top: 1px solid var(--line); }
.detail-content h2 { margin: 0 0 24px; font-size: 28px; }
.rich-content { color: #354052; overflow-wrap: anywhere; }
.rich-content img { height: auto !important; }
.rich-content table { display: block; max-width: 100%; overflow-x: auto; }

.site-footer { padding: 26px 0; color: rgba(255,255,255,.65); text-align: center; background: #101827; }

@media (max-width: 900px) {
    .package-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .detail-summary { grid-template-columns: 1fr; }
    .detail-cover { max-height: 480px; }
}

@media (max-width: 620px) {
    .container { width: min(100% - 28px, 1160px); }
    .header-inner { min-height: 64px; }
    .brand img { max-width: 150px; height: 38px; }
    .header-contact { font-size: 13px; }
    .hero { padding: 72px 0 65px; }
    .packages-section, .detail-main { padding: 52px 0; }
    .section-heading { display: block; }
    .section-heading > span { display: block; margin-top: 8px; }
    .package-grid { grid-template-columns: 1fr; }
    .package-cover { height: 210px; }
    .contact-panel { display: block; padding: 34px 26px; }
    .qrcode { margin-top: 28px; }
    .qrcode img { margin: 0 auto; }
    .detail-intro, .detail-content { padding: 32px 25px; }
    .detail-cover { min-height: 260px; }
    .home-shell { box-shadow: none; }
    .home-package-section { padding: 6px; }
    .home-package-grid { gap: 6px; }
    .home-package-item { border-radius: 2px; }
    .home-contact { padding: 18px; }
}

/* 套餐详情：移动端长图文 + 底部固定咨询栏 */
.package-detail-page {
    min-height: 100vh;
    padding-bottom: calc(96px + env(safe-area-inset-bottom));
    background: #f3f3f3;
}

.package-detail-shell {
    width: 100%;
    min-height: 100vh;
    margin: 0 auto;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 0 34px rgba(42, 34, 36, .1);
}

.package-detail-article {
    display: flex;
    min-height: 100vh;
    justify-content: center;
}

.detail-home-button {
    position: fixed;
    top: calc(18px + env(safe-area-inset-top));
    left: 18px;
    z-index: 110;
    display: flex;
    width: 48px;
    height: 48px;
    color: #666;
    appearance: none;
    -webkit-appearance: none;
    background: transparent !important;
    border: 1.5px solid rgba(70, 70, 70, .55) !important;
    border-radius: 50%;
    box-shadow: none !important;
    outline: 0 !important;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
    transition: background .2s ease, transform .2s ease;
}

.detail-home-button:hover,
.detail-home-button:focus,
.detail-home-button:active,
.detail-home-button:visited {
    color: #444;
    background: transparent !important;
    border: 1.5px solid rgba(70, 70, 70, .7) !important;
    box-shadow: none !important;
    outline: 0 !important;
    transform: translateY(-1px);
}

.detail-home-button span {
    width: 14px;
    height: 14px;
    margin-left: 5px;
    border-bottom: 3px solid currentColor;
    border-left: 3px solid currentColor;
    transform: rotate(45deg);
}

.package-detail-thumbnail {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
}

.package-detail-heading {
    padding: 28px 34px 26px;
    background: #fff;
    border-bottom: 1px solid #f2e6e8;
}

.package-list-link {
    display: inline-flex;
    margin-bottom: 10px;
    color: #e95555;
    font-size: 14px;
    font-weight: 700;
    align-items: center;
}

.package-list-link::before {
    width: 7px;
    height: 7px;
    margin-right: 7px;
    border-bottom: 2px solid currentColor;
    border-left: 2px solid currentColor;
    content: "";
    transform: rotate(45deg);
}

.package-detail-heading h1 {
    margin: 0;
    color: #332b2d;
    font-size: clamp(26px, 5vw, 40px);
    line-height: 1.3;
}

.package-detail-heading p {
    margin: 10px 0 0;
    color: #8d7a7f;
    font-size: 16px;
}

.package-rich-content {
    width: 100%;
    min-height: 100vh;
    padding: 0 0 40px;
    color: #3d3436;
    font-size: 16px;
    line-height: 1.85;
    text-align: left;
}

.package-rich-content > :first-child { margin-top: 0; }
.package-rich-content > :last-child { margin-bottom: 0; }
.package-rich-content p { width: 100%; max-width: none; margin: 0; padding: 0; }
.package-rich-content img { display: block; width: 100% !important; max-width: none; height: auto !important; margin: 0; }
.package-rich-content iframe, .package-rich-content video { max-width: 100%; }

.consult-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    padding-bottom: env(safe-area-inset-bottom);
    pointer-events: none;
}

.consult-bar-inner {
    display: flex;
    width: 100%;
    min-height: 96px;
    margin: 0 auto;
    padding: 12px 24px 12px 34px;
    background: #fff;
    box-shadow: 0 -7px 24px rgba(58, 32, 37, .1);
    align-items: center;
    pointer-events: auto;
}

.consult-price {
    display: flex;
    min-width: 0;
    padding-right: 18px;
    color: #dc421d;
    align-items: center;
    flex: 1 1 auto;
    white-space: nowrap;
}

.consult-price small { margin-right: 5px; font-size: 22px; font-weight: 800; }
.consult-price strong { overflow: hidden; font-size: clamp(24px, 4.4vw, 32px); line-height: 1; text-overflow: ellipsis; }

.consult-actions {
    display: flex;
    min-height: 64px;
    overflow: hidden;
    border-radius: 999px;
    flex: 0 0 auto;
}

.consult-action {
    display: inline-flex;
    min-width: 160px;
    padding: 0 24px;
    color: #fff;
    border: 0;
    border-radius: 0;
    font: inherit;
    font-size: 22px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.consult-wechat { background: #ffbd12; }
.consult-wechat:hover { background: #f5ad00; }
.consult-phone { background: #ff7f17; }
.consult-phone:hover { background: #f36f06; }

.copy-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 120;
    max-width: calc(100% - 40px);
    padding: 10px 18px;
    color: #fff;
    background: rgba(26, 22, 23, .88);
    border-radius: 999px;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, calc(-50% + 12px));
    transition: opacity .2s ease, transform .2s ease;
    white-space: nowrap;
}

.copy-toast.is-visible { opacity: 1; transform: translate(-50%, -50%); }

@media (max-width: 620px) {
    .package-detail-page { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
    .package-detail-shell { box-shadow: none; }
    .detail-home-button {
        top: calc(12px + env(safe-area-inset-top));
        left: 12px;
        width: 42px;
        height: 42px;
    }
    .package-rich-content { padding-bottom: 0px; font-size: 15px; }
    .consult-bar-inner { min-height: 70px; padding: 8px 10px 8px 16px; }
    .consult-price { padding-right: 8px; }
    .consult-price small { margin-right: 2px; font-size: 17px; }
    .consult-price strong { font-size: clamp(18px, 5.6vw, 26px); }
    .consult-actions { min-height: 54px; }
    .consult-action { min-width: 0; padding: 0 14px; font-size: clamp(15px, 4.2vw, 20px); flex: 0 0 auto; }
    .copy-toast { font-size: 14px; }
}

@media (max-width: 390px) {
    .consult-price { padding: 0 9px; }
    .consult-action { padding: 0 11px; }
}
