/* ============================================
   庆芳大米 · 单页宣传站
   风格：米白底 / 墨绿主色 / 细金点缀，克制留白
   ============================================ */

:root {
    --ink: #1F2421;
    --ink-soft: #5A635D;
    --ink-light: #8B948D;
    --green: #2F5D3A;
    --green-deep: #24482D;
    --gold: #B99552;
    --bg: #FCFAF6;
    --bg-alt: #F4F0E7;
    --line: #E4DED2;
    --white: #fff;
    --wrap: 1080px;
    --radius: 4px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.75;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

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

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

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- 顶部 ---------- */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: linear-gradient(180deg, rgba(20, 26, 21, .55) 0%, rgba(20, 26, 21, 0) 100%);
    transition: background .3s ease, box-shadow .3s ease, border-color .3s ease;
    border-bottom: 1px solid transparent;
}

.topbar.solid {
    background: rgba(252, 250, 246, .96);
    backdrop-filter: blur(8px);
    border-bottom-color: var(--line);
}

/* 顶部未滚动态：浅色文字，衬深色头图 */
.topbar:not(.solid) .brand-name,
.topbar:not(.solid) .brand-name em,
.topbar:not(.solid) .topnav a {
    color: rgba(255, 255, 255, .92);
}

.topbar:not(.solid) .brand-name em {
    color: rgba(255, 255, 255, .72);
}

.topbar:not(.solid) .brand-mark {
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .55);
    color: #fff;
}

.topbar:not(.solid) .topnav a:hover {
    color: #fff;
    border-bottom-color: var(--gold);
}


.topbar-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    height: 64px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.brand-mark {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--green);
    color: #F6F1E4;
    font-size: 17px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Songti SC", "SimSun", serif;
}

.brand-name {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--green-deep);
}

.brand-name em {
    font-style: normal;
    font-weight: 400;
    color: var(--ink-soft);
    margin-left: 2px;
}

.topnav {
    display: flex;
    gap: 28px;
    margin-left: auto;
}

.topnav a {
    font-size: 14px;
    color: var(--ink-soft);
    letter-spacing: 1px;
    padding: 4px 0;
    border-bottom: 1px solid transparent;
    transition: color .2s, border-color .2s;
}

.topnav a:hover {
    color: var(--green);
    border-bottom-color: var(--gold);
}

/* ---------- 头图 ---------- */
.hero {
    position: relative;
    min-height: 74vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #2A302B;
}

.hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
}

.hero-mask {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20, 26, 21, .58) 0%, rgba(20, 26, 21, .34) 45%, rgba(20, 26, 21, .62) 100%);
}

.hero-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    padding-top: 64px;
    padding-bottom: 48px;
}

.hero-tag {
    display: inline-block;
    font-size: 13px;
    letter-spacing: 4px;
    color: #EADFC8;
    border: 1px solid rgba(234, 223, 200, .5);
    border-radius: 100px;
    padding: 5px 18px;
    margin-bottom: 26px;
}

.hero h1,
.hero-title {
    font-size: clamp(22px, 3.4vw, 34px);
    font-weight: 600;
    letter-spacing: 6px;
    line-height: 1.4;
    margin-bottom: 14px;
    color: #fff;
    text-shadow: 0 2px 20px rgba(0, 0, 0, .4);
}

.hero-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 18px;
    width: 100%;
}

.hero-brand-cn {
    font-family: "Songti SC", "STSong", "SimSun", serif;
    font-size: clamp(46px, 8vw, 76px);
    font-weight: 700;
    color: #fff;
    letter-spacing: 10px;
    line-height: 1;
    text-shadow: 0 3px 28px rgba(0, 0, 0, .45);
}

.hero-brand-line {
    display: block;
    width: 2px;
    height: clamp(30px, 5vw, 48px);
    background: linear-gradient(180deg, rgba(185, 149, 82, 0) 0%, #C9A961 50%, rgba(185, 149, 82, 0) 100%);
}

.hero-brand-sub {
    font-family: "Songti SC", "STSong", "SimSun", serif;
    font-size: clamp(15px, 2.4vw, 22px);
    color: #E8D9B8;
    letter-spacing: 6px;
    line-height: 1;
}

.hero-sub {
    font-size: clamp(14px, 1.7vw, 17px);
    letter-spacing: 2px;
    color: rgba(255, 255, 255, .88);
    margin-bottom: 34px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---------- 按钮 ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 28px;
    font-size: 15px;
    letter-spacing: 1px;
    border-radius: 100px;
    border: 1px solid transparent;
    cursor: pointer;
    font-family: inherit;
    transition: background .22s, color .22s, border-color .22s, transform .22s;
}

.btn-solid {
    background: var(--green);
    color: var(--white);
    border-color: var(--green);
}

.btn-solid:hover {
    background: var(--green-deep);
    border-color: var(--green-deep);
}

.btn-ghost {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, .6);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, .12);
}

.section .btn-ghost {
    color: var(--green);
    border-color: var(--line);
}

.section .btn-ghost:hover {
    background: var(--bg-alt);
}

.btn-block {
    width: 100%;
}

/* ---------- 三条实话 ---------- */
.facts {
    background: var(--bg-alt);
    border-bottom: 1px solid var(--line);
}

.facts-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    padding-top: 34px;
    padding-bottom: 34px;
}

.fact {
    text-align: center;
    padding: 0 20px;
    border-left: 1px solid var(--line);
}

.fact:first-child {
    border-left: none;
}

.fact b {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: var(--green-deep);
    letter-spacing: 2px;
    margin-bottom: 4px;
}

.fact span {
    font-size: 13px;
    color: var(--ink-soft);
    letter-spacing: .5px;
}

/* ---------- 通用区块 ---------- */
.section {
    padding: 84px 0;
}

.section-alt {
    background: var(--bg-alt);
}

.sec-title {
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 700;
    color: var(--green-deep);
    letter-spacing: 4px;
    margin-bottom: 12px;
    position: relative;
    padding-left: 18px;
}

.sec-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 22px;
    background: var(--gold);
    border-radius: 2px;
}

.sec-sub {
    font-size: 14px;
    color: var(--ink-soft);
    margin-bottom: 42px;
    letter-spacing: .5px;
}

/* ---------- 风景图集 ---------- */
.scenes {
    display: grid;
    grid-template-columns: 0.82fr 1fr;
    gap: 20px;
    align-items: start;
}

.scene {
    margin: 0;
    display: block;
}

.scene .scene-frame {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--bg-alt);
    aspect-ratio: 4 / 5;
}

.scene:nth-child(2) .scene-frame {
    aspect-ratio: 4 / 3;
    margin-top: 34px;
}

.scene img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .6s ease;
}

.scene:hover img {
    transform: scale(1.04);
}

.scene figcaption {
    font-size: 13px;
    color: var(--ink-soft);
    letter-spacing: .5px;
    line-height: 1.7;
    padding: 12px 2px 0;
}

/* ---------- 关于 ---------- */
.about {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 56px;
    align-items: center;
}

.about-text p {
    font-size: 15px;
    color: var(--ink-soft);
    line-height: 1.95;
    margin-bottom: 16px;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-img {
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--line);
}

.about-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---------- 联系 ---------- */
.contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.contact-row {
    display: flex;
    gap: 18px;
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
    align-items: center;
}

a.contact-row:hover .contact-v {
    color: var(--green);
}

.contact-k {
    flex-shrink: 0;
    width: 56px;
    color: var(--ink-light);
    font-size: 13px;
    letter-spacing: 2px;
}

.contact-v {
    color: var(--ink);
    font-weight: 600;
    letter-spacing: .5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.copy-btn {
    font-family: inherit;
    font-size: 12px;
    color: var(--green);
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 100px;
    padding: 2px 10px;
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s;
    font-weight: 400;
}

.copy-btn:hover {
    background: var(--bg-alt);
}

.copy-btn.done {
    background: var(--green);
    border-color: var(--green);
    color: var(--white);
}

.contact-right h3 {
    font-size: 17px;
    color: var(--green-deep);
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.form-tip {
    font-size: 13px;
    color: var(--ink-light);
    margin-bottom: 22px;
    line-height: 1.8;
}

.lead-form label {
    display: block;
    font-size: 13px;
    color: var(--ink-soft);
    margin-bottom: 6px;
    letter-spacing: 1px;
}

.lead-form input,
.lead-form textarea {
    width: 100%;
    font-family: inherit;
    font-size: 14.5px;
    color: var(--ink);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 11px 14px;
    margin-bottom: 16px;
    transition: border-color .2s, box-shadow .2s;
}

.lead-form textarea {
    resize: vertical;
    min-height: 96px;
    line-height: 1.7;
}

.lead-form input:focus,
.lead-form textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(185, 149, 82, .12);
}

.lead-form .btn {
    margin-top: 4px;
}

.lead-done {
    background: var(--bg-alt);
    border-radius: var(--radius);
    padding: 26px 22px;
    text-align: center;
}

.lead-done p {
    font-size: 15px;
    color: var(--green-deep);
    font-weight: 600;
    margin-bottom: 18px;
}

.lead-done-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---------- 页脚 ---------- */
.footer {
    border-top: 1px solid var(--line);
    padding: 30px 0;
    background: var(--bg);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--ink-light);
    letter-spacing: .5px;
}

.footer-inner a {
    color: var(--ink-soft);
}

.footer-inner a:hover {
    color: var(--green);
}

/* ---------- 返回顶部 ---------- */
.to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--green);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .25s, transform .25s, visibility .25s, background .2s;
    z-index: 40;
}

.to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.to-top:hover {
    background: var(--green-deep);
}

/* ---------- 滚动淡入 ---------- */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .65s ease, transform .65s ease;
}

.reveal.in {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
    .scenes {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .scene-frame {
        aspect-ratio: 16 / 10;
    }

    .about {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .about-img {
        aspect-ratio: 16 / 10;
        order: -1;
    }

    .contact {
        grid-template-columns: 1fr;
        gap: 44px;
    }
}

@media (max-width: 720px) {
    .topnav {
        margin-left: auto;
        gap: 20px;
    }

    .topnav a {
        font-size: 13px;
    }

    .topbar-inner {
        height: 58px;
        gap: 10px;
    }

    .brand-mark {
        width: 28px;
        height: 28px;
        font-size: 15px;
    }

    .brand-name {
        font-size: 15px;
        letter-spacing: 1px;
    }

    .brand-name em {
        display: none;
    }

    .hero-brand {
        gap: 10px;
        margin-bottom: 14px;
    }

    .hero-brand-cn {
        letter-spacing: 6px;
    }

    .hero-brand-line {
        height: 26px;
    }

    .hero-brand-sub {
        letter-spacing: 3px;
    }

    .hero {
        min-height: 68vh;
    }

    .hero-tag {
        letter-spacing: 2px;
        font-size: 12px;
    }

    .hero h1 {
        letter-spacing: 2px;
    }

    .facts-inner {
        grid-template-columns: 1fr;
        gap: 20px;
        padding-top: 26px;
        padding-bottom: 26px;
    }

    .fact {
        border-left: none;
        border-top: 1px solid var(--line);
        padding-top: 18px;
    }

    .fact:first-child {
        border-top: none;
        padding-top: 0;
    }

    .section {
        padding: 56px 0;
    }

    .sec-sub {
        margin-bottom: 30px;
    }

    .scenes {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .contact {
        gap: 36px;
    }

    .footer-inner {
        flex-direction: column;
        gap: 6px;
        text-align: center;
        align-items: center;
    }
}

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

    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .scene img {
        transition: none;
    }
}
