/* 蜜桃网：原创都市电影杂志布局。独立 CSS，便于维护。 */
:root {
    --ink:#30252b;
    --mute:#77686e;
    --rose:#c95074;
    --peach:#f7c7b0;
    --cream:#fff9f4;
    --paper:#fffefa;
    --border:#eedbd5;
    --dark:#35232f;
    --max:1180px;
}

* {
    box-sizing:border-box;
}

html {
    scroll-behavior:smooth;
}

body {
    margin:0;
    color:var(--ink);
    background:var(--cream);
    font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;
    line-height:1.8;
}

a {
    color:inherit;
    text-decoration:none;
}

a:hover {
    color:var(--rose);
}

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

.skip {
    position:absolute;
    top:-100px;
    left:12px;
    background:white;
    padding:8px;
    z-index:30;
}

.skip:focus {
    top:8px;
}

.shell {
    width:min(calc(100% - 40px),var(--max));
    margin-inline:auto;
}

.site-header {
    background:#fffdf9;
    border-bottom:1px solid var(--border);
}

.header-inner {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:24px;
    min-height:82px;
}

.brand {
    display:inline-flex;
    align-items:center;
    gap:12px;
    font-weight:900;
    font-size:25px;
    letter-spacing:.06em;
}

.brand-mark {
    display:grid;
    place-items:center;
    width:42px;
    height:42px;
    border-radius:16px 5px 16px 5px;
    background:#f5a5a3;
    color:#4a2633;
    font-size:23px;
}

.brand-sub {
    font-size:10px;
    letter-spacing:.18em;
    font-weight:600;
    color:var(--mute);
    display:block;
    line-height:1;
}

nav {
    display:flex;
    align-items:center;
    gap:23px;
    flex-wrap:wrap;
    font-size:14px;
    font-weight:650;
}

nav a[aria-current=page] {
    color:var(--rose);
}

.hero {
    display:grid;
    grid-template-columns:.95fr 1.05fr;
    gap:48px;
    align-items:center;
    padding-block:62px 54px;
}

.hero-note,.eyebrow {
    font-size:12px;
    font-weight:750;
    letter-spacing:.22em;
    color:var(--rose);
    text-transform:uppercase;
}

h1,h2,h3 {
    line-height:1.32;
    letter-spacing:-.025em;
}

h1 {
    font-size:clamp(38px,5.5vw,68px);
    margin:18px 0 22px;
    line-height:1.14;
}

.hero p {
    max-width:590px;
    color:#685a60;
    font-size:16px;
}

.btn {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:12px 23px;
    background:var(--dark);
    color:white;
    border-radius:30px;
    font-weight:650;
    margin-top:20px;
}

.btn:hover {
    background:var(--rose);
    color:white;
}

.hero-art {
    position:relative;
    min-width:0;
    display:grid;
    grid-template-columns:1.12fr .78fr;
    gap:13px;
    align-items:stretch;
}

.hero-art img {
    width:100%;
    height:430px;
    object-fit:cover;
    border-radius:145px 145px 12px 12px;
}

.hero-art img:nth-child(2) {
    height:325px;
    align-self:end;
    border-radius:120px 120px 12px 12px;
}

.hero-stamp {
    position:absolute;
    left:-26px;
    bottom:24px;
    background:var(--paper);
    border:1px solid #e9d1ca;
    padding:13px 18px;
    border-radius:50%;
    width:115px;
    height:115px;
    display:grid;
    place-items:center;
    text-align:center;
    font-size:13px;
    line-height:1.5;
    transform:rotate(-9deg);
    box-shadow:0 12px 24px #482b3019;
}

.band {
    background:#f5e7e0;
    border-block:1px solid #e9d5cb;
}

.band-inner {
    display:flex;
    gap:30px;
    justify-content:space-between;
    align-items:center;
    padding-block:21px;
    font-size:13px;
    color:#694c56;
    flex-wrap:wrap;
}

.section {
    padding-block:68px;
}

.section-head {
    display:flex;
    gap:25px;
    align-items:end;
    justify-content:space-between;
    margin-bottom:28px;
}

.section-head h2 {
    font-size:clamp(27px,3vw,39px);
    margin:7px 0 0;
}

.section-head p {
    max-width:450px;
    font-size:14px;
    color:var(--mute);
    margin:0;
}

.editorial {
    display:grid;
    grid-template-columns:1.3fr .9fr;
    gap:24px;
}

.feature {
    min-width:0;
    display:block;
    background:white;
    border:1px solid var(--border);
    border-radius:19px;
    overflow:hidden;
}

.feature img {
    width:100%;
    height:380px;
    object-fit:cover;
}

.feature .copy {
    padding:24px;
}

.feature h3 {
    font-size:25px;
    margin:6px 0 10px;
}

.feature p,.story p,.intro {
    color:var(--mute);
}

.feature-secondary {
    display:grid;
    grid-template-rows:1fr 1fr;
    gap:20px;
}

.feature-mini {
    display:grid;
    grid-template-columns:44% 1fr;
    min-height:0;
    background:white;
    border:1px solid var(--border);
    border-radius:16px;
    overflow:hidden;
}

.feature-mini img {
    height:100%;
    min-height:192px;
    width:100%;
    object-fit:cover;
}

.feature-mini .copy {
    padding:18px;
}

.feature-mini h3 {
    font-size:19px;
    margin:7px 0;
}

.feature-mini p {
    font-size:13px;
    margin:0;
    color:var(--mute);
}

.category-grid {
    display:grid;
    grid-template-columns:repeat(5,1fr);
    gap:12px;
}

.category {
    background:#fff;
    border:1px solid var(--border);
    padding:23px 15px;
    border-radius:14px;
    min-height:145px;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
}

.category b {
    font-size:20px;
}

.category small {
    font-size:12px;
    color:var(--mute);
    line-height:1.6;
}

.category:nth-child(2),.category:nth-child(5) {
    background:#fae9e0;
}

.story-grid {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:23px;
}

.story {
    background:#fff;
    border:1px solid var(--border);
    border-radius:17px;
    overflow:hidden;
    min-width:0;
}

.story img {
    width:100%;
    aspect-ratio:4/3;
    object-fit:cover;
}

.story-body {
    padding:19px 20px 23px;
}

.story h3 {
    font-size:19px;
    margin:8px 0;
}

.story p {
    font-size:13px;
    margin:0;
}

.story .tag {
    font-size:11px;
    color:var(--rose);
    font-weight:750;
}

.quote-section {
    margin-top:20px;
    background:#442e37;
    color:#fff5ef;
    padding:65px 0;
    overflow:hidden;
}

.quote-inner {
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:50px;
}

.quote-inner blockquote {
    font-size:clamp(22px,3vw,36px);
    max-width:790px;
    line-height:1.6;
    margin:0;
    font-weight:650;
}

.quote-inner span {
    color:#ecc6bf;
    font-size:14px;
}

.breadcrumb {
    font-size:12px;
    color:var(--mute);
    padding-top:32px;
}

.page-intro {
    padding:32px 0 25px;
    max-width:880px;
}

.page-intro h1 {
    font-size:clamp(34px,4.7vw,54px);
}

.article-layout {
    display:grid;
    grid-template-columns:minmax(0,1fr) 280px;
    gap:55px;
    padding:34px 0 80px;
}

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

.article-cover {
    width:100%;
    max-height:520px;
    object-fit:cover;
    border-radius:18px;
}

.article-main h2 {
    font-size:27px;
    margin:40px 0 15px;
}

.article-main p {
    font-size:16px;
    line-height:2.05;
    color:#53464c;
}

.article-aside {
    align-self:start;
    position:sticky;
    top:20px;
    background:#fff;
    border:1px solid var(--border);
    border-radius:15px;
    padding:20px;
}

.article-aside h2 {
    font-size:19px;
    margin:0 0 15px;
}

.article-aside a {
    display:block;
    padding:11px 0;
    border-bottom:1px solid var(--border);
    font-size:13px;
}

.article-aside a:last-child {
    border-bottom:0;
}

.site-footer {
    border-top:1px solid var(--border);
    background:#fffdf9;
    padding:38px 0;
}

.footer-grid {
    display:flex;
    justify-content:space-between;
    gap:30px;
    flex-wrap:wrap;
    font-size:13px;
    color:var(--mute);
}

.footer-grid strong {
    font-size:20px;
    color:var(--ink);
}

.footer-links {
    display:flex;
    gap:15px;
    flex-wrap:wrap;
}

@media(max-width:950px) {
    .hero {
        gap:22px;
    }

    .category-grid {
        grid-template-columns:repeat(3,1fr);
    }

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

    .feature-secondary {
        grid-template-columns:1fr 1fr;
        grid-template-rows:auto;
    }

    .feature-mini {
        display:block;
    }

    .feature-mini img {
        height:200px;
    }

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

    .article-layout {
        grid-template-columns:1fr;
    }

    .article-aside {
        position:static;
    }

}

@media(max-width:660px) {
    .shell {
        width:min(calc(100% - 28px),var(--max));
    }

    .header-inner {
        align-items:flex-start;
        flex-direction:column;
        gap:9px;
        padding-block:13px;
    }

    nav {
        gap:13px;
        font-size:12px;
    }

    .hero {
        grid-template-columns:1fr;
        padding-block:34px;
    }

    .hero-art {
        padding-left:15px;
    }

    .hero-art img {
        height:280px;
    }

    .hero-art img:nth-child(2) {
        height:210px;
    }

    .hero-stamp {
        left:-3px;
        bottom:4px;
        width:82px;
        height:82px;
        font-size:10px;
        padding:6px;
    }

    .section {
        padding-block:41px;
    }

    .section-head {
        display:block;
    }

    .section-head p {
        margin-top:12px;
    }

    .feature img {
        height:250px;
    }

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

    .feature-mini {
        display:grid;
        grid-template-columns:42% 1fr;
    }

    .feature-mini img {
        height:100%;
        min-height:145px;
    }

    .category-grid {
        grid-template-columns:repeat(2,1fr);
    }

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

    .quote-inner {
        display:block;
    }

    .quote-inner span {
        display:block;
        margin-top:20px;
    }

    .article-layout {
        padding-top:10px;
    }

    .page-intro {
        padding-top:14px;
    }

}

/* 可访问性、长标题及窄屏防溢出修正 */
:where(main, section, article, aside, header, footer) {
    min-width: 0;
}

:where(h1, h2, h3, p, a, small) {
    overflow-wrap: anywhere;
}

:where(a, button):focus-visible {
    outline: 3px solid #bd4f78;
    outline-offset: 4px;
}

.header-inner nav {
    min-width: 0;
}

.feature-mini,
.feature-mini > *,
.story,
.story-body,
.category {
    min-width: 0;
}

@media (max-width: 660px) {
    .header-inner nav {
        width: 100%;
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 4px 0 10px;
        scrollbar-width: thin;
    }

    .header-inner nav a {
        flex: none;
        white-space: nowrap;
    }

    .hero-art {
        grid-template-columns: minmax(0, 1.12fr) minmax(0, .78fr);
    }

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

    .feature-mini {
        grid-template-columns: minmax(0, 42%) minmax(0, 1fr);
    }
}

@media (max-width: 360px) {
    .hero-art img { height: 220px; }
    .hero-art img:nth-child(2) { height: 175px; }
    .category-grid { grid-template-columns: 1fr; }
}

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