/* ============================================
   巷子里 · 手作面馆  样式表
   暖色调 · 有食欲 · 优雅大气
   ============================================ */

:root {
    /* 色板 —— 暖色系，激发食欲 */
    --crimson: #8B1E1E;        /* 主品牌红 */
    --crimson-deep: #6E1414;   /* 深红 */
    --gold: #C9923B;           /* 金黄 */
    --gold-light: #E0B45E;     /* 浅金 */
    --ink: #2B1810;            /* 墨褐（正文） */
    --ink-soft: #5C4636;       /* 柔褐 */
    --cream: #FDF6EC;          /* 米白底 */
    --cream-warm: #F7EBD8;     /* 暖米 */
    --paper: #FFFDF8;          /* 纸白 */
    --line: #E6D6BF;           /* 分隔线 */
    --shadow: 30 23 16;        /* 阴影色基 */
}

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

html { scroll-behavior: smooth; }

body {
    font-family: "Noto Sans SC", -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--ink);
    background: var(--cream);
    line-height: 1.75;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* 通用标题字体 */
.section-title,
.hero-title,
h1, h2, h3 {
    font-family: "Noto Serif SC", "Songti SC", serif;
    font-weight: 700;
    letter-spacing: .02em;
}

/* ============ 导航栏 ============ */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 18px 0;
    transition: all .4s ease;
}
.navbar.scrolled {
    background: rgba(253, 246, 236, .96);
    backdrop-filter: blur(12px);
    box-shadow: 0 6px 30px rgba(var(--shadow), .12);
    padding: 12px 0;
}
.nav-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark {
    width: 42px; height: 42px;
    display: grid; place-items: center;
    background: linear-gradient(135deg, var(--crimson), var(--crimson-deep));
    color: var(--gold-light);
    font-family: "Ma Shan Zheng", "Noto Serif SC", serif;
    font-size: 26px;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(110, 20, 20, .35);
}
.logo-text {
    font-family: "Noto Serif SC", serif;
    font-weight: 700;
    font-size: 19px;
    color: var(--cream);
    transition: color .4s;
}
.navbar.scrolled .logo-text { color: var(--ink); }

.nav-links { display: flex; gap: 34px; }
.nav-links a {
    font-size: 15px;
    font-weight: 500;
    color: rgba(253, 246, 236, .92);
    position: relative;
    padding: 6px 0;
    transition: color .3s;
}
.navbar.scrolled .nav-links a { color: var(--ink-soft); }
.nav-links a::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 0; height: 2px;
    background: var(--gold);
    transition: width .3s;
}
.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
    padding: 10px 24px;
    border-radius: 30px;
    background: var(--gold);
    color: #fff !important;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 6px 18px rgba(201, 146, 59, .4);
    transition: transform .25s, box-shadow .25s;
}
.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(201, 146, 59, .5);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}
.nav-toggle span {
    width: 26px; height: 2px;
    background: var(--cream);
    border-radius: 2px;
    transition: .3s;
}
.navbar.scrolled .nav-toggle span { background: var(--ink); }
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ Hero ============ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}
.hero-bg {
    position: absolute; inset: 0;
    background: url("images/hero.png") center / cover no-repeat;
    transform: scale(1.08);
    animation: heroZoom 18s ease-in-out infinite alternate;
}
@keyframes heroZoom {
    to { transform: scale(1.18); }
}
.hero-overlay {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at center, rgba(43, 24, 16, .35) 0%, rgba(43, 24, 16, .78) 100%),
        linear-gradient(180deg, rgba(43,24,16,.5) 0%, rgba(110,20,20,.4) 100%);
}
.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    padding: 0 24px;
    animation: fadeUp 1.2s ease both;
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}
.hero-tag {
    font-family: "Noto Serif SC", serif;
    font-size: 15px;
    letter-spacing: .25em;
    color: var(--gold-light);
    margin-bottom: 22px;
}
.hero-title {
    font-size: clamp(48px, 8vw, 92px);
    line-height: 1.1;
    font-weight: 900;
    text-shadow: 0 6px 30px rgba(0,0,0,.5);
    margin-bottom: 26px;
}
.hero-title .accent {
    color: var(--gold-light);
    position: relative;
}
.hero-title .accent::after {
    content: "";
    position: absolute;
    left: 50%; bottom: -10px;
    transform: translateX(-50%);
    width: 70px; height: 3px;
    background: var(--gold);
    border-radius: 3px;
}
.hero-subtitle {
    font-size: clamp(16px, 2vw, 19px);
    color: rgba(255,255,255,.9);
    margin-bottom: 40px;
    line-height: 2;
}
.hero-actions { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }

.btn {
    display: inline-block;
    padding: 15px 38px;
    border-radius: 40px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all .3s;
    border: 2px solid transparent;
}
.btn-primary {
    background: linear-gradient(135deg, var(--crimson), var(--crimson-deep));
    color: #fff;
    box-shadow: 0 10px 30px rgba(110, 20, 20, .45);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 38px rgba(110, 20, 20, .55);
}
.btn-ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,.55);
}
.btn-ghost:hover {
    background: rgba(255,255,255,.12);
    border-color: #fff;
}
.btn.big { padding: 18px 46px; font-size: 16px; }

.scroll-hint {
    position: absolute;
    bottom: 34px; left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: rgba(255,255,255,.7);
    font-size: 12px;
    letter-spacing: .2em;
    text-align: center;
}
.scroll-line {
    width: 1px; height: 46px;
    margin: 10px auto 0;
    background: rgba(255,255,255,.4);
    position: relative;
    overflow: hidden;
}
.scroll-line::after {
    content: "";
    position: absolute;
    top: -46px; left: 0;
    width: 100%; height: 46px;
    background: var(--gold-light);
    animation: scrollDot 2s ease-in-out infinite;
}
@keyframes scrollDot {
    to { top: 46px; }
}

/* ============ 通用区块 ============ */
section { padding: 110px 32px; }
.section-head {
    max-width: 680px;
    margin: 0 auto 64px;
    text-align: center;
}
.kicker {
    font-size: 13px;
    letter-spacing: .35em;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 14px;
}
.kicker.light { color: var(--gold-light); }
.section-title {
    font-size: clamp(32px, 4.5vw, 46px);
    color: var(--ink);
    margin-bottom: 18px;
    line-height: 1.25;
}
.section-title.left { text-align: left; }
.section-title.light { color: #fff; }
.section-desc {
    font-size: 17px;
    color: var(--ink-soft);
    line-height: 1.9;
}

/* ============ 招牌面食 ============ */
.menu { background: var(--cream); }
.menu-grid {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
}
.dish-card {
    background: var(--paper);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(var(--shadow), .10);
    transition: transform .4s cubic-bezier(.2,.7,.3,1), box-shadow .4s;
    border: 1px solid var(--line);
}
.dish-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 24px 56px rgba(var(--shadow), .18);
}
.dish-card.featured {
    border-color: var(--gold);
    box-shadow: 0 12px 40px rgba(201,146,59,.18);
}
.dish-img {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}
.dish-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .8s ease;
}
.dish-card:hover .dish-img img { transform: scale(1.08); }
.dish-badge {
    position: absolute;
    top: 18px; left: 18px;
    padding: 7px 16px;
    background: var(--crimson);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    letter-spacing: .05em;
    box-shadow: 0 4px 14px rgba(110,20,20,.4);
}
.dish-badge.gold {
    background: linear-gradient(135deg, var(--gold), #b87f2c);
    box-shadow: 0 4px 14px rgba(201,146,59,.5);
}
.dish-body { padding: 28px 26px 30px; }
.dish-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 14px;
}
.dish-top h3 {
    font-size: 22px;
    color: var(--ink);
}
.dish-price {
    font-family: "Noto Serif SC", serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--crimson);
}
.dish-body p {
    font-size: 14.5px;
    color: var(--ink-soft);
    line-height: 1.9;
    margin-bottom: 20px;
}
.dish-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.dish-tags span {
    padding: 5px 13px;
    background: var(--cream-warm);
    color: var(--ink-soft);
    font-size: 12px;
    border-radius: 14px;
    border: 1px solid var(--line);
}
.menu-note {
    text-align: center;
    margin-top: 50px;
    color: var(--ink-soft);
    font-size: 15px;
    font-style: italic;
}

/* ============ 品牌故事 ============ */
.story {
    background: var(--cream-warm);
    padding: 120px 32px;
}
.story-wrap {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}
.story-img {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(var(--shadow), .22);
}
.story-img img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}
.story-img-cap {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 26px 28px;
    background: linear-gradient(transparent, rgba(43,24,16,.85));
    color: var(--gold-light);
    font-family: "Noto Serif SC", serif;
    font-size: 15px;
    letter-spacing: .05em;
}
.story-text .section-title { margin-bottom: 26px; }
.story-lead {
    font-size: 19px;
    color: var(--crimson-deep);
    font-weight: 500;
    line-height: 1.9;
    margin-bottom: 18px;
    font-family: "Noto Serif SC", serif;
}
.story-text p {
    font-size: 15.5px;
    color: var(--ink-soft);
    margin-bottom: 16px;
    line-height: 2;
}
.story-stats {
    display: flex;
    gap: 40px;
    margin-top: 36px;
    padding-top: 32px;
    border-top: 2px solid var(--line);
}
.stat { display: flex; flex-direction: column; }
.stat-num {
    font-family: "Noto Serif SC", serif;
    font-size: 42px;
    font-weight: 900;
    color: var(--crimson);
    line-height: 1;
}
.stat-num em {
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    color: var(--ink-soft);
    margin-left: 2px;
}
.stat-label {
    font-size: 13px;
    color: var(--ink-soft);
    margin-top: 8px;
    letter-spacing: .1em;
}

/* ============ 食材理念 ============ */
.craft {
    background:
        linear-gradient(rgba(43,24,16,.92), rgba(43,24,16,.95)),
        url("images/beef-noodle.png") center / cover fixed no-repeat;
    color: #fff;
    position: relative;
}
.craft-inner {
    max-width: 1180px;
    margin: 0 auto;
    text-align: center;
}
.craft .section-title { margin-bottom: 56px; }
.craft-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: left;
}
.craft-item {
    padding: 36px 30px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(224,180,94,.25);
    border-radius: 18px;
    backdrop-filter: blur(4px);
    transition: all .4s;
}
.craft-item:hover {
    background: rgba(201,146,59,.12);
    border-color: var(--gold);
    transform: translateY(-6px);
}
.craft-num {
    font-family: "Noto Serif SC", serif;
    font-size: 30px;
    font-weight: 900;
    color: var(--gold-light);
    margin-bottom: 18px;
    opacity: .85;
}
.craft-item h3 {
    font-size: 20px;
    color: #fff;
    margin-bottom: 14px;
}
.craft-item p {
    font-size: 14.5px;
    color: rgba(255,255,255,.78);
    line-height: 1.95;
}

/* ============ 到店 ============ */
.visit { background: var(--cream); }
.visit-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.info-card {
    background: var(--paper);
    border-radius: 20px;
    padding: 42px 32px;
    text-align: center;
    border: 1px solid var(--line);
    box-shadow: 0 10px 34px rgba(var(--shadow), .08);
    transition: transform .35s, box-shadow .35s;
}
.info-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 44px rgba(var(--shadow), .14);
}
.info-icon {
    font-size: 38px;
    margin-bottom: 18px;
}
.info-card h3 {
    font-size: 20px;
    color: var(--ink);
    margin-bottom: 12px;
}
.info-card p {
    font-size: 15px;
    color: var(--ink-soft);
    line-height: 2;
}
.info-card p strong { color: var(--crimson); font-size: 17px; }

.cta-band {
    max-width: 1000px;
    margin: 64px auto 0;
    padding: 50px 56px;
    background: linear-gradient(135deg, var(--crimson), var(--crimson-deep));
    border-radius: 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
    box-shadow: 0 24px 60px rgba(110,20,20,.35);
    position: relative;
    overflow: hidden;
}
.cta-band::before {
    content: "面";
    position: absolute;
    right: -30px; top: 50%;
    transform: translateY(-50%);
    font-family: "Ma Shan Zheng", serif;
    font-size: 220px;
    color: rgba(255,255,255,.06);
    line-height: 1;
}
.cta-text { position: relative; z-index: 1; }
.cta-text h3 {
    color: #fff;
    font-size: 26px;
    margin-bottom: 8px;
}
.cta-text p { color: rgba(255,255,255,.85); font-size: 15px; }
.cta-band .btn { position: relative; z-index: 1; }

/* ============ 页脚 ============ */
.footer {
    background: var(--ink);
    color: rgba(255,255,255,.7);
    padding: 60px 32px 36px;
}
.footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand .logo-mark { width: 38px; height: 38px; font-size: 22px; }
.footer-brand strong {
    font-family: "Noto Serif SC", serif;
    color: #fff;
    font-size: 18px;
    display: block;
}
.footer-brand p { font-size: 13px; color: var(--gold-light); }
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-links a {
    font-size: 14px;
    color: rgba(255,255,255,.7);
    transition: color .3s;
}
.footer-links a:hover { color: var(--gold-light); }
.footer-copy {
    width: 100%;
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,.45);
    padding-top: 30px;
    margin-top: 10px;
    border-top: 1px solid rgba(255,255,255,.12);
}

/* ============ 滚动渐入动画 ============ */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.3,1);
}
.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* ============ 响应式 ============ */
@media (max-width: 960px) {
    .menu-grid, .craft-grid, .visit-grid { grid-template-columns: 1fr 1fr; }
    .story-wrap { grid-template-columns: 1fr; gap: 44px; }
    .story-img { max-width: 560px; margin: 0 auto; width: 100%; }
}
@media (max-width: 760px) {
    section { padding: 80px 22px; }
    .nav-links {
        position: fixed;
        top: 0; right: -100%;
        width: 75%; max-width: 320px;
        height: 100vh;
        background: var(--cream);
        flex-direction: column;
        justify-content: center;
        gap: 30px;
        padding: 40px;
        box-shadow: -10px 0 40px rgba(0,0,0,.15);
        transition: right .4s ease;
    }
    .nav-links.open { right: 0; }
    .nav-links a { color: var(--ink) !important; font-size: 18px; }
    .nav-toggle { display: flex; z-index: 101; }
    .nav-cta { display: none; }
    .logo-text { color: var(--ink); }

    .menu-grid, .craft-grid, .visit-grid { grid-template-columns: 1fr; }
    .story-stats { gap: 26px; flex-wrap: wrap; }
    .stat-num { font-size: 34px; }
    .cta-band { padding: 38px 28px; flex-direction: column; text-align: center; }
    .footer-inner { flex-direction: column; text-align: center; }
}
