/* 茄子视频：结构化、可维护的响应式样式表 */
:root {
    --ink: #29243b;
    --muted: #686479;
    --violet: #712ca1;
    --light: #f7f4fb;
    --border: #e9e3f0;
    --white: #fff;
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    font: 16px/1.75 system-ui,-apple-system,"Microsoft YaHei",sans-serif;
    background: #fcfbfe;
}

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

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

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

button,input {
    font: inherit;
}

.container {
    width: min(1180px,calc(100% - 40px));
    margin-inline: auto;
}

.skip {
    position: absolute;
    left: -999px;
}

.skip:focus {
    left: 12px;
    top: 12px;
    background: #fff;
    padding: 8px;
    z-index: 9;
}

.topbar {
    background: #fff;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 5;
}

.navwrap {
    display: flex;
    align-items: center;
    gap: 26px;
    min-height: 76px;
}

.brand {
    font-size: 25px;
    font-weight: 900;
    color: #59207f;
    white-space: nowrap;
}

.brand span {
    font-size: 26px;
    margin-right: 7px;
}

.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-left: auto;
    font-size: 14px;
    font-weight: 650;
}

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

.hero {
    margin-top: 30px;
    display: grid;
    grid-template-columns: 1.4fr .6fr;
    gap: 22px;
}

.hero-main {
    min-height: 365px;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    background: radial-gradient(circle at 77% 42%,#bb7fe1,transparent 30%),linear-gradient(115deg,#35194f,#7a35a2 65%,#be79cf);
    color: #fff;
    padding: 54px;
}

.hero-main:after {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    border: 34px solid #ffffff33;
    border-radius: 50%;
    right: 10%;
    top: 12%;
    box-shadow: 0 0 0 36px #ffffff12;
}

.hero-main>* {
    position: relative;
    z-index: 1;
}

.eyebrow {
    font-size: 12px;
    font-weight: 750;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.hero h1 {
    font-size: clamp(30px,3.3vw,46px);
    line-height: 1.25;
    max-width: 550px;
    margin: 20px 0;
}

.hero p {
    max-width: 550px;
    line-height: 1.9;
}

.pill {
    display: inline-block;
    background: #fff;
    color: #5b267e;
    border-radius: 40px;
    padding: 9px 22px;
    font-weight: 750;
    margin-top: 15px;
}

.hero-aside {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 28px;
}

.hero-aside h2 {
    margin: 0 0 12px;
    font-size: 21px;
}

.hero-aside p {
    font-size: 14px;
    color: var(--muted);
}

.hero-aside ul {
    padding-left: 18px;
    font-size: 14px;
}

.quick {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 14px;
    margin-top: 20px;
}

.quick a {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 18px;
    font-weight: 750;
}

.quick small {
    display: block;
    font-weight: 400;
    color: var(--muted);
    font-size: 12px;
}

.quick b {
    color: var(--violet);
    margin-right: 8px;
}

.section {
    margin-top: 50px;
}

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

.section-head h2 {
    font-size: 27px;
    line-height: 1.3;
    margin: 0;
}

.section-head p {
    color: var(--muted);
    font-size: 14px;
    margin: 6px 0 0;
}

.section-head a {
    color: var(--violet);
    font-size: 14px;
}

.feature {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 22px;
}

.feature>a,.feature>.feature-copy {
    border-radius: 20px;
    overflow: hidden;
}

.feature img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
}

.feature-copy {
    background: #f2eafa;
    padding: 35px;
}

.feature-copy h3 {
    font-size: 26px;
    line-height: 1.4;
    margin: 10px 0;
}

.feature-copy p {
    color: #554b63;
}

.kicker {
    color: var(--violet);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
}

.cards {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 20px;
}

.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    transition: transform .2s,box-shadow .2s;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px #311d4910;
}

.card img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
}

.card-body {
    padding: 18px;
}

.card h3 {
    font-size: 18px;
    line-height: 1.45;
    margin: 8px 0;
}

.card p {
    color: var(--muted);
    font-size: 14px;
    margin: 0;
}

.topic-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 18px;
}

.topic {
    padding: 25px;
    border-radius: 18px;
    background: linear-gradient(145deg,#eee3f8,#fff);
    border: 1px solid var(--border);
}

.topic:nth-child(2) {
    background: linear-gradient(145deg,#e8f2f4,#fff);
}

.topic:nth-child(3) {
    background: linear-gradient(145deg,#fff0e7,#fff);
}

.topic:nth-child(4) {
    background: linear-gradient(145deg,#ececfa,#fff);
}

.topic h3 {
    font-size: 20px;
    margin: 0 0 8px;
}

.topic p {
    font-size: 14px;
    color: var(--muted);
    margin: 0;
}

.article-layout {
    display: grid;
    grid-template-columns: minmax(0,1fr) 270px;
    gap: 35px;
    margin-top: 38px;
}

.article {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 38px;
}

.article h1 {
    font-size: clamp(26px,3vw,38px);
    line-height: 1.35;
    margin: 14px 0;
}

.article h2 {
    font-size: 23px;
    margin: 34px 0 12px;
}

.article p {
    color: #49465a;
}

.article .lead {
    font-size: 18px;
    color: #51435c;
}

.article figure {
    margin: 26px 0;
}

.article figure img {
    width: 100%;
    border-radius: 16px;
}

.article figcaption {
    font-size: 12px;
    color: var(--muted);
    margin-top: 8px;
}

.sidebar {
    background: #f4eef9;
    border-radius: 20px;
    padding: 24px;
    height: max-content;
}

.sidebar h2 {
    font-size: 19px;
}

.sidebar a {
    display: block;
    padding: 11px 0;
    border-bottom: 1px solid #dfd5e7;
    font-size: 14px;
}

.breadcrumb {
    color: var(--muted);
    font-size: 13px;
}

.footer {
    margin-top: 65px;
    background: #24172f;
    color: #f2eafa;
    padding: 35px 0;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.footer p {
    font-size: 13px;
    color: #c7bcd1;
    margin: 5px 0;
}

.footer a {
    color: #fff;
}

.intro {
    max-width: 850px;
    color: var(--muted);
}

@media (max-width:900px) {
    .hero,.feature,.article-layout {
        grid-template-columns: 1fr;
    }

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

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

    .navwrap {
        flex-wrap: wrap;
        padding: 12px 0;
    }

    .nav {
        margin-left: 0;
    }

    .hero-main {
        min-height: 300px;
    }

    .hero-aside {
        display: none;
    }
}

@media (max-width:600px) {
    .container {
        width: min(100% - 28px,1180px);
    }

    .brand {
        font-size: 21px;
    }

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

    .hero-main {
        padding: 30px 24px;
    }

    .hero-main:after {
        right: -100px;
    }

    .quick,.topic-grid,.cards {
        grid-template-columns: 1fr;
    }

    .section {
        margin-top: 35px;
    }

    .article {
        padding: 23px;
    }

    .section-head h2 {
        font-size: 23px;
    }
}

/* 首页首屏：原创影像插画和文字双栏布局 */
.hero-main {
    background: linear-gradient(105deg, rgba(39, 14, 65, .96) 0%, rgba(69, 27, 103, .90) 54%, rgba(80, 29, 110, .28) 100%), url("visual-01.svg") center / cover no-repeat;
}
.hero-main::after { display: none; }
.hero-main h1, .hero-main p { text-shadow: 0 1px 8px rgba(22, 5, 33, .3); }
.card:focus-within, .topic:focus-visible, .quick a:focus-visible { outline: 3px solid #ad65d5; outline-offset: 3px; }
@media (max-width: 600px) {
    .hero-main { min-height: 340px; background-position: 60% center; }
    .hero-main h1 { font-size: 29px; }
    .hero-aside { display: block; }
    .nav { width: 100%; gap: 8px 16px; }
    .card img { aspect-ratio: 16 / 9; }
}
