/* ==========================================================================
   橙味小厨 · 前台主题样式
   主色：橙 #FF7A18 / 深橙 #E85D04
   ========================================================================== */

:root {
    --orange: #FF7A18;
    --orange-deep: #E85D04;
    --orange-light: #FFB067;
    --orange-soft: #FFF0E2;
    --cream: #FFF9F3;
    --cream-2: #FFF3E7;
    --ink: #2B1A10;
    --ink-2: #4A3223;
    --muted: #8B7565;
    --line: #F1E3D4;
    --white: #FFFFFF;
    --green: #6FA37C;
    --danger: #D9534F;
    --radius: 20px;
    --radius-sm: 12px;
    --shadow: 0 24px 48px -30px rgba(92, 45, 12, .35);
    --shadow-hover: 0 30px 60px -28px rgba(232, 93, 4, .32);
    --maxw: 1200px;
    --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
    --font-serif: "Songti SC", "Noto Serif SC", "SimSun", Georgia, serif;
}

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--ink);
    background: var(--cream);
    font-size: 15px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: var(--orange-deep);
}

img {
    display: block;
    max-width: 100%;
}

button {
    font-family: inherit;
    cursor: pointer;
}

input,
textarea,
select {
    font-family: inherit;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

h1,
h2,
h3,
h4,
h5 {
    margin: 0;
    font-weight: 800;
    letter-spacing: -.01em;
}

p {
    margin: 0;
}

.container {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 30px 0;
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 34px;
}

.section-head.compact {
    margin-bottom: 20px;
}

.section-head.center {
    justify-content: center;
    text-align: center;
}

.section-head h2 {
    font-size: 34px;
    line-height: 1.2;
    margin-top: 8px;
}

.section-head h4 {
    font-size: 22px;
}

.section-sub {
    color: var(--muted);
    font-size: 14px;
    margin-top: 8px;
}

.eyebrow {
    display: inline-block;
    font-size: 11px;
    letter-spacing: .22em;
    color: var(--orange-deep);
    font-weight: 700;
    text-transform: uppercase;
}

.eyebrow.light {
    color: rgba(255, 255, 255, .78);
}

.section-more {
    color: var(--ink-2);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.section-more span {
    color: var(--orange);
    display: inline-block;
    transition: transform .25s;
}

.section-more:hover span {
    transform: translateX(4px);
}

/* ---------- 按钮 ---------- */
.btn-primary,
.btn-publish,
.btn-cta,
.btn-fav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #FF8B2C, var(--orange-deep));
    color: #fff !important;
    border: 0;
    border-radius: 999px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 12px 24px -12px rgba(232, 93, 4, .7);
    transition: transform .2s, box-shadow .2s;
}

.btn-primary:hover,
.btn-publish:hover,
.btn-cta:hover,
.btn-fav:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 30px -12px rgba(232, 93, 4, .55);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #fff;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 11px 22px;
    font-size: 14px;
    font-weight: 600;
    transition: all .2s;
}

.btn-ghost:hover {
    border-color: var(--orange);
    color: var(--orange-deep);
    background: #FFF8F1;
}

.btn-primary.small,
.btn-ghost.small {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-lg {
    padding: 15px 38px;
    font-size: 16px;
}

.btn-block {
    width: 100%;
    padding: 14px 20px;
}

.btn-mini {
    background: var(--orange-soft);
    color: var(--orange-deep);
    border: 0;
    border-radius: 10px;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 700;
}

.btn-mini:hover {
    background: #FFE3CC;
}

.btn-fav {
    padding: 13px 26px;
}

.btn-fav.is-active {
    background: linear-gradient(135deg, #F4A15C, #D9822B);
}

.icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:hover {
    color: var(--danger);
    border-color: #F3C5C5;
}

/* ---------- 头像 ---------- */
.mini-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FFA45B, var(--orange-deep));
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    flex: 0 0 auto;
}

.dot-sep {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #D8C7B8;
    display: inline-block;
}

/* ---------- 顶部导航 ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 249, 243, .92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(241, 227, 212, .8);
}

.header-inner {
    height: 76px;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: nowrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    flex: 0 0 auto;
}

.brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, #FF9A44, var(--orange-deep));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px -10px rgba(232, 93, 4, .65);
}

.brand-mark svg {
    width: 28px;
    height: 28px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.brand-text strong {
    font-size: 19px;
    letter-spacing: .02em;
}

.brand-text em {
    font-style: normal;
    font-size: 9px;
    letter-spacing: .18em;
    color: var(--muted);
    margin-top: 4px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-left: 6px;
    flex: 0 0 auto;
}

.main-nav a {
    font-size: 15px;
    color: var(--ink-2);
    font-weight: 500;
    position: relative;
    padding: 6px 0;
    white-space: nowrap;
}

.main-nav a:hover {
    color: var(--orange-deep);
}

.main-nav a.active {
    color: var(--orange-deep);
    font-weight: 700;
}

.main-nav a.active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -6px;
    width: 18px;
    height: 3px;
    border-radius: 3px;
    background: var(--orange);
    transform: translateX(-50%);
}

.header-search {
    margin-left: auto;
    position: relative;
    flex: 1 1 150px;
    min-width: 110px;
    max-width: 250px;
}

.header-search i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: 16px;
}

.header-search input {
    width: 100%;
    height: 42px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #fff;
    padding: 0 16px 0 40px;
    font-size: 14px;
    color: var(--ink);
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}

.header-search input:focus {
    border-color: var(--orange-light);
    box-shadow: 0 0 0 4px rgba(255, 122, 24, .1);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 0 0 auto;
}

.btn-publish {
    padding: 9px 18px;
    font-size: 14px;
    white-space: nowrap;
}

.guest-actions .btn-login {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink-2);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 18px;
    background: #fff;
}

.guest-actions .btn-login:hover {
    border-color: var(--orange);
    color: var(--orange-deep);
}

.header-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FFA45B, var(--orange-deep));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.user-actions {
    position: relative;
}

.user-dropdown {
    position: absolute;
    right: 0;
    top: 54px;
    width: 156px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 8px;
    display: none;
    z-index: 20;
}

/* 补上头像与下拉菜单之间的悬停空隙，避免鼠标下移时菜单消失 */
.user-dropdown::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -14px;
    height: 14px;
}

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 9px;
    font-size: 13px;
    color: var(--ink-2);
}

.user-dropdown a:hover {
    background: var(--cream-2);
    color: var(--orange-deep);
}

.user-dropdown a i {
    font-size: 15px;
}

.user-actions:hover .user-dropdown,
.user-dropdown:hover {
    display: block;
}

.nav-toggle {
    display: none;
    margin-left: auto;
    border: 0;
    background: transparent;
    font-size: 22px;
    color: var(--ink);
}

.mobile-nav {
    display: none;
    padding: 12px 24px 22px;
    border-top: 1px solid var(--line);
    background: #FFF9F3;
}

.mobile-nav>a {
    display: block;
    padding: 11px 4px;
    font-size: 15px;
    border-bottom: 1px dashed var(--line);
}

.mobile-search {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.mobile-search input {
    flex: 1;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0 16px;
}

.mobile-search button {
    border: 0;
    background: var(--orange);
    color: #fff;
    border-radius: 999px;
    padding: 0 18px;
    font-weight: 600;
}

/* ---------- 首页 Hero ---------- */
.home-hero {
    padding: 10px 0 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.02fr .98fr;
    gap: 56px;
    align-items: center;
}

.hero-panel {
    padding: 20px 0 12px;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--orange-deep);
    font-weight: 600;
    background: var(--orange-soft);
    border-radius: 999px;
    padding: 7px 14px;
}

.hero-kicker .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--orange);
    box-shadow: 0 0 0 4px rgba(255, 122, 24, .16);
}

.hero-panel h1 {
    font-family: var(--font-serif);
    font-size: 62px;
    line-height: 1.13;
    margin: 22px 0 18px;
    letter-spacing: -.02em;
}

.hero-panel h1 span {
    color: var(--orange-deep);
    position: relative;
}

.hero-panel h1 span::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 6px;
    height: 14px;
    background: linear-gradient(90deg, #FFE1C4, transparent);
    z-index: -1;
    border-radius: 3px;
}

.hero-desc {
    color: var(--muted);
    max-width: 480px;
    font-size: 15px;
    line-height: 1.9;
}

.hero-search {
    margin-top: 30px;
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 999px;
    padding: 6px 6px 6px 20px;
    border: 1px solid var(--line);
    box-shadow: 0 16px 36px -26px rgba(90, 45, 12, .5);
    max-width: 520px;
}

.hero-search i {
    color: var(--muted);
    font-size: 18px;
}

.hero-search input {
    flex: 1;
    border: 0;
    outline: none;
    height: 46px;
    padding: 0 12px;
    font-size: 15px;
    background: transparent;
}

.hero-search button {
    border: 0;
    background: linear-gradient(135deg, #FF8B2C, var(--orange-deep));
    color: #fff;
    border-radius: 999px;
    height: 46px;
    padding: 0 24px;
    font-size: 15px;
    font-weight: 700;
}

.hero-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
    font-size: 13px;
    color: var(--muted);
}

.hero-tags a {
    color: var(--ink-2);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 3px 12px;
    font-size: 12px;
}

.hero-tags a:hover {
    color: var(--orange-deep);
    border-color: var(--orange-light);
}

.hero-stats {
    display: flex;
    gap: 34px;
    margin-top: 38px;
    padding-top: 24px;
    border-top: 1px dashed var(--line);
    max-width: 520px;
}

.hero-stats div {
    display: flex;
    flex-direction: column;
}

.hero-stats b {
    font-size: 26px;
    line-height: 1.1;
    color: var(--ink);
}

.hero-stats b::first-letter {
    letter-spacing: 0;
}

.hero-stats span {
    font-size: 12px;
    color: var(--muted);
    margin-top: 6px;
}

.hero-visual {
    position: relative;
}

.hero-image {
    height: 470px;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 40px 70px -40px rgba(92, 45, 12, .55);
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 122, 24, .06), rgba(43, 26, 16, .22));
    border-radius: 30px;
}

.floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 14px 18px;
    box-shadow: 0 24px 40px -22px rgba(60, 30, 8, .45);
    z-index: 2;
}

.floating-card b {
    display: block;
    font-size: 14px;
    line-height: 1.4;
}

.floating-card small {
    color: var(--muted);
    font-size: 12px;
}

.fc-top {
    top: 26px;
    left: -34px;
}

.fc-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--orange-soft);
    color: var(--orange-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.fc-bottom {
    bottom: 30px;
    right: -22px;
    padding-right: 34px;
}

.fc-arrow {
    position: absolute;
    right: 12px;
    color: var(--orange);
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(1px);
    z-index: -1;
}

.orb-one {
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(255, 170, 94, .5), transparent 70%);
    top: -40px;
    right: -30px;
}

.orb-two {
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(255, 213, 170, .55), transparent 68%);
    bottom: -60px;
    left: -50px;
}

/* ---------- 分类 ---------- */
.categories-section {
    padding-top: 20px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.category-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: transform .25s, box-shadow .25s, border-color .25s;
    position: relative;
    overflow: hidden;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: #FFDCC1;
    color: inherit;
}

.category-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
    margin-bottom: 14px;
}

.category-card b {
    font-size: 17px;
}

.category-card small {
    color: var(--muted);
    font-size: 12px;
    margin-top: 4px;
}

.category-card em {
    position: absolute;
    right: 20px;
    bottom: 20px;
    font-style: normal;
    font-size: 11px;
    color: var(--orange-deep);
    background: var(--orange-soft);
    border-radius: 999px;
    padding: 2px 9px;
}

/* ---------- 精选 ---------- */
.featured-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 20px;
}

.featured-main {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    min-height: 430px;
    display: block;
    color: #fff;
}

.featured-main img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s;
}

.featured-main:hover img {
    transform: scale(1.04);
}

.featured-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(30, 16, 6, .05) 30%, rgba(30, 16, 6, .82));
}

.featured-badge {
    position: absolute;
    top: 22px;
    left: 22px;
    background: rgba(255, 255, 255, .92);
    color: var(--orange-deep);
    font-size: 12px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.featured-content {
    position: absolute;
    left: 30px;
    right: 30px;
    bottom: 30px;
    color: #fff;
}

.featured-cat {
    font-size: 12px;
    color: rgba(255, 255, 255, .8);
}

.featured-content h3 {
    font-size: 34px;
    margin: 8px 0 6px;
    color: #fff;
}

.featured-content p {
    color: rgba(255, 255, 255, .85);
    font-size: 14px;
    max-width: 480px;
}

.featured-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 12px;
    color: rgba(255, 255, 255, .85);
}

.featured-meta .mini-avatar {
    background: rgba(255, 255, 255, .24);
    border: 1px solid rgba(255, 255, 255, .4);
}

.featured-meta i {
    margin-left: 8px;
}

.featured-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.featured-small {
    display: grid;
    grid-template-columns: 150px 1fr;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    overflow: hidden;
    color: inherit;
    transition: transform .25s, box-shadow .25s;
}

.featured-small:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    color: inherit;
}

.featured-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 180px;
}

.featured-small-body {
    padding: 22px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-small-body span {
    font-size: 11px;
    color: var(--orange-deep);
    font-weight: 600;
}

.featured-small-body h4 {
    font-size: 21px;
    margin: 6px 0;
}

.featured-small-body p {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.7;
}

.mini-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--muted);
    margin-top: 12px;
}

.mini-meta i {
    color: var(--orange-light);
}

/* ---------- 菜谱卡片 ---------- */
.recipe-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.recipe-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .28s, box-shadow .28s;
    color: inherit;
}

.recipe-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    color: inherit;
}

.card-cover {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--cream-2);
}

.card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s;
}

.recipe-card:hover .card-cover img {
    transform: scale(1.05);
}

.time-chip {
    position: absolute;
    left: 12px;
    bottom: 12px;
    background: rgba(43, 26, 16, .66);
    color: #fff;
    font-size: 11px;
    padding: 5px 10px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 4px;
    backdrop-filter: blur(6px);
}

.fav-btn {
    position: absolute;
    right: 12px;
    top: 12px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .9);
    border: 0;
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .2s, color .2s, background .2s;
}

.fav-btn:hover {
    color: var(--orange-deep);
    transform: scale(1.1);
}

.fav-btn.is-active {
    color: #fff;
    background: var(--orange-deep);
}

.card-body {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.tag-solid {
    background: var(--orange-soft);
    color: var(--orange-deep);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 6px;
}

.tag-line {
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 6px;
}

.tag-soft {
    color: var(--muted);
    font-size: 11px;
    padding: 2px 4px;
}

.card-body h3 {
    font-size: 20px;
    margin: 10px 0 4px;
}

.card-body p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px dashed var(--line);
    font-size: 12px;
    color: var(--muted);
}

.author {
    display: flex;
    align-items: center;
    gap: 7px;
}

.card-stat {
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-stat i {
    font-size: 13px;
    color: #C7A894;
    margin-left: 6px;
}

/* ---------- 榜单 / 贴士 ---------- */
.split-section {
    padding-top: 10px;
}

.split-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 24px;
    align-items: start;
}

.rank-panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 28px;
}

.rank-list {
    display: flex;
    flex-direction: column;
}

.rank-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
    border-top: 1px dashed var(--line);
    color: inherit;
}

.rank-item:first-child {
    border-top: 0;
}

.rank-item:hover {
    color: inherit;
}

.rank-num {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 700;
    color: #C9B7A8;
    width: 36px;
    flex: 0 0 auto;
}

.rank-num.top {
    color: var(--orange-deep);
}

.rank-item img {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    object-fit: cover;
}

.rank-info {
    flex: 1;
    min-width: 0;
}

.rank-info b {
    display: block;
    font-size: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rank-info small {
    color: var(--muted);
    font-size: 12px;
}

.rank-stat {
    font-size: 12px;
    color: var(--orange-deep);
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.home-aside {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.notice-card {
    position: relative;
    background: linear-gradient(135deg, #3A2314, #24150C);
    color: #fff;
    border-radius: 24px;
    padding: 28px;
    overflow: hidden;
}

.notice-card .notice-badge {
    display: inline-block;
    font-size: 11px;
    background: var(--orange);
    color: #fff;
    border-radius: 999px;
    padding: 3px 10px;
    font-weight: 700;
    letter-spacing: .08em;
}

.notice-card h4 {
    font-size: 21px;
    margin: 12px 0 8px;
    color: #fff;
}

.notice-card p {
    font-size: 13px;
    color: rgba(255, 255, 255, .72);
    line-height: 1.8;
    max-width: 320px;
}

.notice-card a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    font-size: 13px;
    font-weight: 700;
    color: var(--orange-light);
}

.notice-watermark {
    position: absolute;
    right: -12px;
    bottom: -18px;
    font-size: 96px;
    color: rgba(255, 255, 255, .06);
}

.tip-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 26px 28px;
}

.tip-head h3 {
    font-size: 23px;
    margin-top: 6px;
    margin-bottom: 8px;
}

.tip-item {
    display: flex;
    gap: 14px;
    padding: 15px 0;
    border-top: 1px dashed var(--line);
}

.tip-item:first-of-type {
    border-top: 0;
}

.tip-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--orange-soft);
    color: var(--orange-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.tip-item b {
    font-size: 14px;
}

.tip-item p {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.7;
    margin-top: 3px;
}

/* ---------- CTA ---------- */
.cta-banner {
    position: relative;
    background: linear-gradient(120deg, #FF8A33, #E85D04 55%, #C94C00);
    border-radius: 30px;
    padding: 54px 56px;
    overflow: hidden;
    color: #fff;
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 30px;
    align-items: center;
}

.cta-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, .16), transparent 22%), radial-gradient(circle at 80% 90%, rgba(255, 255, 255, .12), transparent 24%);
}

.cta-copy {
    position: relative;
    z-index: 2;
}

.cta-copy h2 {
    font-family: var(--font-serif);
    font-size: 44px;
    line-height: 1.2;
    margin: 12px 0 14px;
    color: #fff;
}

.cta-copy p {
    color: rgba(255, 255, 255, .82);
    max-width: 480px;
    font-size: 14px;
    line-height: 1.9;
}

.btn-cta {
    background: #fff;
    color: var(--orange-deep) !important;
    box-shadow: 0 16px 30px -14px rgba(60, 20, 0, .5);
    margin-top: 24px;
}

.cta-art {
    position: relative;
    height: 240px;
}

.cta-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, .09);
}

.cta-circle.c1 {
    width: 220px;
    height: 220px;
    right: -40px;
    top: -60px;
}

.cta-circle.c2 {
    width: 120px;
    height: 120px;
    right: 130px;
    bottom: -50px;
    background: rgba(255, 255, 255, .06);
}

.cta-card {
    position: absolute;
    right: 12px;
    top: 40px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, .96);
    color: var(--ink);
    border-radius: 14px;
    padding: 12px 16px;
    box-shadow: 0 24px 40px -22px rgba(50, 20, 0, .6);
    width: 270px;
    transform: rotate(-3deg);
}

.cta-card b {
    font-size: 13px;
    display: block;
    line-height: 1.4;
}

.cta-card small {
    color: var(--muted);
    font-size: 11px;
}

.cta-badge {
    margin-left: auto;
    color: var(--orange-deep);
    font-weight: 800;
    font-size: 14px;
}

.cta-card.second {
    top: 140px;
    right: 66px;
    transform: rotate(2deg);
}

.cta-banner.simple {
    grid-template-columns: 1fr .8fr;
}

.cta-quote {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%) rotate(-2deg);
    width: 330px;
    background: rgba(255, 255, 255, .97);
    color: var(--ink);
    border-radius: 18px;
    padding: 26px;
    box-shadow: 0 30px 50px -22px rgba(50, 20, 0, .55);
}

.cta-quote i {
    font-size: 30px;
    color: var(--orange);
}

.cta-quote p {
    color: var(--ink-2);
    font-size: 14px;
    line-height: 1.8;
    margin: 8px 0 12px;
}

.cta-quote span {
    font-size: 12px;
    color: var(--muted);
}

/* ---------- 页脚 ---------- */
.site-footer {
    margin-top: 60px;
    background: #24150C;
    color: rgba(255, 255, 255, .7);
    padding: 58px 0 24px;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.5fr .7fr .7fr 1fr;
    gap: 40px;
}

.brand-light .brand-text strong {
    color: #fff;
}

.brand-light .brand-text em {
    color: rgba(255, 255, 255, .5);
}

.footer-brand p {
    font-size: 13px;
    line-height: 1.9;
    margin-top: 16px;
    max-width: 340px;
    color: rgba(255, 255, 255, .6);
}

.footer-tags {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.footer-tags span {
    font-size: 11px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 999px;
    padding: 3px 10px;
    color: rgba(255, 255, 255, .5);
}

.footer-links h4,
.footer-contact h4 {
    font-size: 14px;
    color: #fff;
    margin-bottom: 16px;
}

.footer-links a {
    display: block;
    font-size: 13px;
    padding: 6px 0;
    color: rgba(255, 255, 255, .6);
}

.footer-links a:hover {
    color: var(--orange-light);
}

.footer-contact p {
    font-size: 12px;
    color: rgba(255, 255, 255, .55);
}

.subscribe-form {
    display: flex;
    margin-top: 14px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    padding: 4px 4px 4px 14px;
}

.subscribe-form input {
    flex: 1;
    background: transparent;
    border: 0;
    outline: none;
    color: #fff;
    font-size: 12px;
    min-width: 0;
}

.subscribe-form button {
    border: 0;
    background: var(--orange);
    color: #fff;
    border-radius: 999px;
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 600;
}

.footer-contact small {
    display: block;
    margin-top: 10px;
    font-size: 11px;
    color: rgba(255, 255, 255, .35);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: rgba(255, 255, 255, .4);
    margin-top: 44px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

/* ---------- 列表页 ---------- */
.sub-hero {
    background: linear-gradient(180deg, var(--cream-2), var(--cream));
    padding: 26px 0 40px;
    border-bottom: 1px solid rgba(241, 227, 212, .6);
}

.crumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 22px;
}

.crumbs a:hover {
    color: var(--orange-deep);
}

.crumbs em {
    font-style: normal;
    color: var(--ink-2);
}

.crumbs.light {
    color: rgba(255, 255, 255, .6);
}

.crumbs.light em {
    color: rgba(255, 255, 255, .9);
}

.sub-hero-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
}

.sub-hero-copy h1 {
    font-family: var(--font-serif);
    font-size: 42px;
    line-height: 1.2;
    margin: 8px 0 8px;
}

.sub-hero-copy p {
    font-size: 14px;
    color: var(--muted);
}

.sub-hero-copy p b {
    color: var(--orange-deep);
}

.list-search {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 5px 6px 5px 18px;
    width: 330px;
}

.list-search i {
    color: var(--muted);
}

.list-search input {
    border: 0;
    outline: none;
    flex: 1;
    height: 38px;
    font-size: 13px;
    min-width: 0;
}

.list-search button {
    border: 0;
    border-radius: 999px;
    background: var(--orange);
    color: #fff;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
}

.list-section {
    padding-top: 34px;
}

.filter-panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 10px 26px;
    margin-bottom: 30px;
}

.filter-row {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 12px 0;
    border-bottom: 1px dashed var(--line);
}

.filter-row:last-child {
    border-bottom: 0;
}

.filter-label {
    font-size: 13px;
    color: var(--muted);
    flex: 0 0 48px;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-chips a {
    font-size: 13px;
    color: var(--ink-2);
    padding: 5px 14px;
    border-radius: 999px;
    border: 1px solid transparent;
}

.filter-chips a:hover {
    background: var(--orange-soft);
    color: var(--orange-deep);
}

.filter-chips a.active {
    background: var(--orange-soft);
    border-color: #FFD3B0;
    color: var(--orange-deep);
    font-weight: 700;
}

.filter-sort {
    border-top: 0;
}

.list-grid {
    grid-template-columns: repeat(3, 1fr);
}

.list-grid .card-body h3 {
    font-size: 22px;
}

.pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 44px;
    flex-wrap: wrap;
}

.pager a,
.pager .pager-nav,
.pager>span {
    min-width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: #fff;
    font-size: 13px;
    color: var(--ink-2);
}

.pager a:hover {
    border-color: var(--orange);
    color: var(--orange-deep);
}

.pager a.active {
    background: var(--orange);
    border-color: var(--orange);
    color: #fff;
    font-weight: 700;
}

.pager .disabled {
    color: #C9B7A8;
    background: #FFFDFB;
}

.pager-info {
    border: 0 !important;
    background: transparent !important;
    color: var(--muted) !important;
    font-size: 12px !important;
}

.empty-state {
    text-align: center;
    padding: 80px 0 40px;
}

.empty-icon {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background: var(--orange-soft);
    color: var(--orange);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
}

.empty-state h3 {
    font-size: 22px;
    margin: 18px 0 6px;
}

.empty-state p {
    color: var(--muted);
    font-size: 14px;
}

.empty-state .btn-primary {
    margin-top: 20px;
}

/* ---------- 详情页 ---------- */
.detail-wrap {
    padding: 26px 0 20px;
}

.detail-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 26px;
}

.detail-header-main {
    max-width: 760px;
}

.detail-header h1 {
    font-family: var(--font-serif);
    font-size: 48px;
    line-height: 1.15;
    margin: 14px 0 8px;
}

.detail-subtitle {
    color: var(--muted);
    font-size: 15px;
}

.detail-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 18px;
    font-size: 12px;
    color: var(--muted);
}

.detail-meta .author {
    font-size: 13px;
    color: var(--ink-2);
}

.detail-meta .author em {
    font-style: normal;
    margin-left: 6px;
    font-size: 10px;
    color: var(--orange-deep);
    background: var(--orange-soft);
    border-radius: 4px;
    padding: 2px 6px;
}

.detail-meta .meta-divider {
    width: 1px;
    height: 16px;
    background: var(--line);
}

.detail-meta i {
    color: #C7A894;
    margin-right: 3px;
}

.detail-actions {
    display: flex;
    gap: 10px;
    padding-bottom: 4px;
}

.detail-cover {
    position: relative;
    height: 480px;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.detail-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cover-score {
    position: absolute;
    left: 26px;
    bottom: 26px;
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255, 255, 255, .94);
    border-radius: 16px;
    padding: 14px 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 34px -18px rgba(50, 25, 5, .5);
}

.score-num {
    font-family: var(--font-serif);
    font-size: 34px;
    font-weight: 800;
    color: var(--orange-deep);
    line-height: 1;
}

.cover-score b {
    display: block;
    font-size: 13px;
}

.cover-score small {
    font-size: 11px;
    color: var(--muted);
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 36px;
    margin-top: 36px;
    align-items: start;
}

.detail-main {
    min-width: 0;
}

.intro-quote {
    position: relative;
    background: linear-gradient(120deg, #FFF2E4, #FFF9F3);
    border-left: 4px solid var(--orange);
    border-radius: 0 18px 18px 0;
    padding: 26px 30px;
    margin-bottom: 24px;
}

.intro-quote p {
    font-size: 15px;
    line-height: 1.95;
    color: var(--ink-2);
}

.quote-mark {
    position: absolute;
    right: 18px;
    top: 14px;
    font-size: 30px;
    color: rgba(232, 93, 4, .18);
}

.content-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 30px;
    margin-bottom: 24px;
}

.card-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.card-head h2 {
    font-size: 26px;
    margin-top: 5px;
}

.card-head h2 em {
    font-style: normal;
    font-size: 13px;
    color: var(--orange-deep);
    background: var(--orange-soft);
    padding: 2px 8px;
    border-radius: 999px;
    vertical-align: middle;
    margin-left: 6px;
}

.serving-chip,
.step-total {
    font-size: 12px;
    color: var(--orange-deep);
    background: var(--orange-soft);
    border-radius: 999px;
    padding: 5px 13px;
    font-weight: 600;
}

.ingredient-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 34px;
    margin-bottom: 22px;
}

.ingredient-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px dashed var(--line);
    font-size: 14px;
}

.ingredient-item span {
    color: var(--ink-2);
}

.ingredient-item em {
    flex: 1;
    height: 1px;
    border-bottom: 1px dotted #E6D5C4;
}

.ingredient-item b {
    font-weight: 600;
    color: var(--orange-deep);
    font-size: 13px;
    white-space: nowrap;
}

.btn-add-list {
    border: 1px dashed #F2C6A0;
    background: #FFFAF5;
    color: var(--orange-deep);
    border-radius: 12px;
    padding: 11px 20px;
    font-size: 13px;
    font-weight: 600;
    width: 100%;
}

.btn-add-list:hover {
    background: var(--orange-soft);
}

.steps-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.step-item {
    display: flex;
    gap: 20px;
}

.step-num {
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF9A44, var(--orange-deep));
    color: #fff;
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 18px -10px rgba(232, 93, 4, .65);
}

.step-body {
    flex: 1;
    min-width: 0;
}

.step-body p {
    font-size: 15px;
    line-height: 1.9;
    color: var(--ink-2);
}

.step-image {
    margin-top: 14px;
    border-radius: 16px;
    overflow: hidden;
    background: var(--cream-2);
}

.step-image img {
    width: 100%;
    max-height: 340px;
    object-fit: cover;
}

.tips-panel {
    background: #2B1A10;
    color: #fff;
    border-radius: 24px;
    padding: 28px 30px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.tips-panel::after {
    content: "";
    position: absolute;
    right: -40px;
    top: -40px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(255, 122, 24, .1);
}

.tips-panel .card-head h2 {
    color: #fff;
}

.tips-panel .eyebrow {
    color: var(--orange-light);
}

.tips-panel ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    z-index: 2;
}

.tips-panel li {
    display: flex;
    gap: 12px;
    font-size: 14px;
    color: rgba(255, 255, 255, .82);
    line-height: 1.8;
}

.tips-panel li span {
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--orange-light);
}

.comments-card {
    padding-bottom: 18px;
}

.comment-form {
    background: var(--cream);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 26px;
}

.comment-input {
    display: flex;
    gap: 12px;
}

.comment-input textarea {
    flex: 1;
    border: 0;
    background: transparent;
    outline: none;
    resize: vertical;
    min-height: 64px;
    font-size: 14px;
    color: var(--ink);
}

.comment-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px dashed var(--line);
}

.comment-tip {
    font-size: 12px;
    color: var(--muted);
}

.comment-tip i {
    color: var(--orange-light);
}

.comment-tools .btn-primary {
    padding: 8px 20px;
    font-size: 13px;
}

.comment-list {
    display: flex;
    flex-direction: column;
}

.comment-item {
    display: flex;
    gap: 14px;
    padding: 20px 0;
    border-top: 1px dashed var(--line);
}

.comment-item:first-child {
    border-top: 0;
    padding-top: 0;
}

.comment-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    flex: 0 0 auto;
}

.comment-body {
    flex: 1;
    min-width: 0;
}

.comment-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.comment-head b {
    font-size: 14px;
}

.comment-head span {
    font-size: 11px;
    color: var(--muted);
}

.comment-body p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--ink-2);
    margin-top: 6px;
}

.comment-reply {
    background: var(--cream-2);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 12px;
    color: var(--ink-2);
    margin-top: 10px;
    line-height: 1.7;
}

.comment-reply b {
    color: var(--orange-deep);
}

.comment-actions {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}

.comment-actions button {
    border: 0;
    background: transparent;
    font-size: 12px;
    color: var(--muted);
    padding: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.comment-actions button:hover {
    color: var(--orange-deep);
}

.comment-item.is-new {
    animation: fadeSlide .45s ease;
}

@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.detail-aside {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.author-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 24px;
}

.author-top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FFA45B, var(--orange-deep));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
}

.author-top h4 {
    font-size: 17px;
}

.author-tag {
    display: inline-block;
    font-size: 10px;
    color: var(--orange-deep);
    background: var(--orange-soft);
    border-radius: 4px;
    padding: 1px 6px;
    margin-top: 4px;
}

.author-bio {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.8;
    margin-top: 14px;
}

.author-stats {
    display: flex;
    justify-content: space-between;
    padding: 16px 0;
    border-top: 1px dashed var(--line);
    border-bottom: 1px dashed var(--line);
    margin-top: 14px;
    text-align: center;
}

.author-stats b {
    display: block;
    font-size: 17px;
}

.author-stats small {
    font-size: 11px;
    color: var(--muted);
}

.author-btns {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.author-btns .btn-primary {
    flex: 1;
    padding: 9px 0;
    font-size: 13px;
}

.author-btns .btn-primary.is-followed {
    background: #fff;
    color: var(--orange-deep);
    border: 1px solid var(--orange-light);
    box-shadow: none;
}

.author-btns .btn-primary.is-followed:hover {
    background: var(--orange-soft);
    color: var(--orange-deep);
    box-shadow: none;
    transform: none;
}

.author-btns .btn-ghost {
    padding: 9px 18px;
    font-size: 13px;
}

.data-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 24px;
}

.data-card h4 {
    font-size: 17px;
    margin: 5px 0 16px;
}

.data-row {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0 14px;
    font-size: 12px;
    color: var(--muted);
    overflow: hidden;
}

.data-row b {
    color: var(--ink);
    font-size: 13px;
}

.data-row em {
    position: absolute;
    left: 0;
    bottom: 6px;
    height: 4px;
    border-radius: 4px;
    background: linear-gradient(90deg, #FFB067, var(--orange));
    max-width: 100%;
}

.aside-related {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 24px;
}

.related-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px dashed var(--line);
    color: inherit;
}

.related-item:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.related-item img {
    width: 62px;
    height: 62px;
    border-radius: 10px;
    object-fit: cover;
}

.related-item b {
    font-size: 14px;
    display: block;
}

.related-item small {
    font-size: 11px;
    color: var(--muted);
}

.related-item:hover b {
    color: var(--orange-deep);
}

/* ---------- 发布页 ---------- */
.create-hero {
    background: linear-gradient(120deg, #FFF1E2, #FFF9F3 60%);
}

.create-hero-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 16px 22px;
    color: var(--orange-deep);
    font-size: 13px;
    font-weight: 600;
    box-shadow: var(--shadow);
}

.create-hero-badge i {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--orange-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.create-section {
    padding-top: 40px;
}

.create-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    align-items: start;
}

.create-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 28px 30px;
}

.form-card-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 22px;
}

.form-step {
    font-family: var(--font-serif);
    font-size: 26px;
    font-weight: 800;
    color: var(--orange);
    line-height: 1;
    margin-top: 3px;
}

.form-card-head>div {
    flex: 1;
}

.form-card-head h2 {
    font-size: 21px;
}

.form-card-head p {
    font-size: 12px;
    color: var(--muted);
    margin-top: 3px;
}

.form-card-head .btn-mini {
    align-self: center;
    white-space: nowrap;
}

.field {
    margin-bottom: 18px;
}

.field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-2);
    margin-bottom: 7px;
}

.field label em {
    color: var(--orange-deep);
    font-style: normal;
}

.field-grid {
    display: grid;
    gap: 16px;
    margin-bottom: 0;
}

.field-grid.two {
    grid-template-columns: 1fr 1fr;
}

.field-grid.three {
    grid-template-columns: 1fr 1fr 1fr;
}

.layui-input,
.layui-textarea {
    border-radius: 10px !important;
    border-color: var(--line) !important;
    font-size: 14px;
    color: var(--ink);
    background: #FFFDFB !important;
}

.layui-input {
    height: 44px;
    line-height: 44px;
    padding: 0 14px;
}

.layui-input:focus,
.layui-textarea:focus {
    border-color: var(--orange-light) !important;
    box-shadow: 0 0 0 3px rgba(255, 122, 24, .08);
}

.layui-textarea {
    padding: 10px 14px;
    line-height: 1.7;
    resize: vertical;
    min-height: 80px;
}

select.layui-input {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #C9B7A8 50%), linear-gradient(135deg, #C9B7A8 50%, transparent 50%);
    background-position: calc(100% - 18px) 19px, calc(100% - 13px) 19px;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    padding-right: 34px;
}

.upload-cover {
    position: relative;
    border: 1.5px dashed #EDCFB5;
    border-radius: 18px;
    background: #FFFBF7;
    min-height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
    transition: border-color .2s, background .2s;
}

.upload-cover:hover {
    border-color: var(--orange);
    background: #FFF6EE;
}

.upload-empty {
    text-align: center;
    color: var(--muted);
    padding: 30px;
}

.upload-empty i {
    font-size: 34px;
    color: var(--orange-light);
    display: block;
    margin-bottom: 10px;
}

.upload-empty b {
    display: block;
    font-size: 15px;
    color: var(--ink-2);
}

.upload-empty small {
    font-size: 12px;
    margin-top: 4px;
    display: block;
}

.upload-preview {
    width: 100%;
    height: 340px;
    object-fit: cover;
}

.upload-cover.has-image {
    min-height: 0;
    border-style: solid;
}

.upload-mask {
    position: absolute;
    inset: 0;
    background: rgba(43, 26, 16, .55);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    opacity: 0;
    transition: opacity .2s;
}

.upload-cover:hover .upload-mask {
    opacity: 1;
}

.ing-editor,
.step-editor {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ing-edit-row {
    display: grid;
    grid-template-columns: 1.3fr 1fr 40px;
    gap: 10px;
    align-items: center;
}

.step-edit-block {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: #FFFCF8;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 16px;
}

.step-edit-num {
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--orange-soft);
    color: var(--orange-deep);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 4px;
}

.step-edit-body {
    flex: 1;
    min-width: 0;
}

.step-upload {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    color: var(--muted);
    font-size: 12px;
    border: 1px dashed var(--line);
    border-radius: 10px;
    padding: 8px 12px;
    background: #fff;
    cursor: pointer;
    min-height: 40px;
    min-width: 180px;
}

.step-upload i {
    color: var(--orange-light);
}

.step-preview {
    max-height: 140px;
    border-radius: 8px;
    object-fit: cover;
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: flex-end;
    padding: 6px 4px 10px;
}

.form-actions.left {
    justify-content: flex-start;
    margin-top: 6px;
}

.create-aside {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.guide-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 24px;
}

.guide-card h3 {
    font-size: 20px;
    margin: 6px 0 18px;
}

.guide-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px dashed var(--line);
}

.guide-item:first-of-type {
    border-top: 0;
}

.guide-item>span {
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--orange-soft);
    color: var(--orange-deep);
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.guide-item b {
    font-size: 14px;
}

.guide-item p {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.7;
    margin-top: 2px;
}

.guide-card.warm {
    background: linear-gradient(135deg, #33200F, #24150C);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.guide-card.warm h3 {
    color: #fff;
}

.guide-card.warm p {
    color: rgba(255, 255, 255, .7);
    font-size: 13px;
    line-height: 1.8;
}

.guide-card.warm a {
    display: inline-block;
    margin-top: 14px;
    font-size: 12px;
    color: var(--orange-light);
}

.guide-mark {
    position: absolute;
    right: -8px;
    top: -10px;
    font-size: 70px;
    color: rgba(255, 255, 255, .07);
}

/* ---------- 登录 / 注册 ---------- */
.auth-page {
    padding: 50px 0 20px;
}

.auth-card {
    max-width: 980px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #fff;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 40px 80px -50px rgba(92, 45, 12, .5);
    border: 1px solid var(--line);
}

.auth-art {
    position: relative;
    background: linear-gradient(150deg, #FF9A44, #E85D04 55%, #B84300);
    color: #fff;
    padding: 52px;
    overflow: hidden;
}

.auth-art-content {
    position: relative;
    z-index: 2;
}

.auth-brand {
    margin-bottom: 40px;
}

.auth-art h2 {
    font-family: var(--font-serif);
    font-size: 38px;
    line-height: 1.3;
    margin-bottom: 16px;
    color: #fff;
}

.auth-art p {
    color: rgba(255, 255, 255, .8);
    font-size: 13px;
    line-height: 1.9;
    max-width: 360px;
}

.auth-quote {
    margin-top: 44px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 16px;
    padding: 20px;
    backdrop-filter: blur(6px);
}

.quote-stars {
    color: #FFD9A8;
    font-size: 12px;
    display: flex;
    gap: 2px;
}

.auth-quote p {
    color: #fff;
    font-size: 13px;
    line-height: 1.8;
    margin: 8px 0;
}

.auth-quote span {
    font-size: 11px;
    color: rgba(255, 255, 255, .6);
}

.auth-orb {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, .07);
}

.auth-orb.a1 {
    width: 260px;
    height: 260px;
    right: -100px;
    top: -60px;
}

.auth-orb.a2 {
    width: 160px;
    height: 160px;
    left: -50px;
    bottom: -40px;
    background: rgba(255, 255, 255, .06);
}

.auth-form-wrap {
    padding: 44px 52px 40px;
}

.auth-tabs {
    display: inline-flex;
    background: var(--cream);
    border-radius: 999px;
    padding: 4px;
    margin-bottom: 26px;
}

.auth-tab {
    border: 0;
    background: transparent;
    padding: 8px 26px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
}

.auth-tab.active {
    background: #fff;
    color: var(--orange-deep);
    box-shadow: 0 6px 14px -8px rgba(90, 45, 12, .3);
}

.auth-form-head h3 {
    font-size: 26px;
}

.auth-form-head p {
    font-size: 13px;
    color: var(--muted);
    margin-top: 4px;
    margin-bottom: 24px;
}

.input-icon {
    position: relative;
}

.input-icon i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #C9B7A8;
    font-size: 16px;
    z-index: 2;
}

.input-icon .layui-input {
    padding-left: 42px;
    height: 48px;
    line-height: 48px;
}

.captcha-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.captcha-row .input-icon {
    flex: 1;
    min-width: 0;
}

.captcha-img {
    width: 120px;
    height: 48px;
    flex: none;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    object-fit: cover;
}

.code-input {
    display: flex;
    gap: 10px;
}

.code-input .layui-input {
    flex: 1;
}

.btn-code {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 10px;
    padding: 0 14px;
    font-size: 12px;
    color: var(--orange-deep);
    white-space: nowrap;
}

.btn-code:disabled {
    color: var(--muted);
}

.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 2px 0 22px;
    font-size: 12px;
    color: var(--muted);
}

.check-line {
    display: flex;
    align-items: center;
    gap: 6px;
}

.check-line input {
    accent-color: var(--orange);
}

.link {
    color: var(--orange-deep);
    font-size: 12px;
}

.auth-demo {
    margin-top: 16px;
    font-size: 12px;
    color: var(--muted);
    text-align: center;
}

.auth-demo i {
    color: var(--orange-light);
    margin-right: 4px;
}

/* ---------- 个人中心 ---------- */
.user-page {
    padding-bottom: 20px;
}

.user-banner {
    background: linear-gradient(120deg, #351F0F, #24150C 60%, #4A2A12);
    color: #fff;
    padding: 24px 0 40px;
    position: relative;
    overflow: hidden;
}

.user-banner::before {
    content: "";
    position: absolute;
    right: -80px;
    top: -120px;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 122, 24, .18), transparent 65%);
}

.user-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    min-width: 0;
}

.user-avatar {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FFB067, var(--orange-deep));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 800;
    font-family: var(--font-serif);
    border: 3px solid rgba(255, 255, 255, .2);
    flex: 0 0 auto;
}

.user-avatar.large {
    width: 72px;
    height: 72px;
    font-size: 26px;
}

.user-profile-info {
    min-width: 0;
}

.user-name-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.user-name-row h1 {
    font-size: 28px;
    color: #fff;
}

.level-chip {
    font-size: 11px;
    background: rgba(255, 122, 24, .2);
    border: 1px solid rgba(255, 176, 103, .4);
    color: #FFD3AC;
    border-radius: 999px;
    padding: 2px 9px;
}

.user-profile-info p {
    font-size: 13px;
    color: rgba(255, 255, 255, .6);
    margin-top: 4px;
    max-width: 420px;
}

.user-mini-stats {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 12px;
    font-size: 12px;
    color: rgba(255, 255, 255, .58);
    flex-wrap: wrap;
}

.user-mini-stats b {
    color: #fff;
    font-size: 15px;
}

.btn-profile {
    background: #fff !important;
    color: var(--orange-deep) !important;
    box-shadow: none !important;
    flex: 0 0 auto;
}

.user-metrics {
    display: flex;
    gap: 12px;
}

.metric {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 14px;
    padding: 14px 18px;
    min-width: 132px;
}

.metric i {
    font-size: 20px;
    color: var(--orange-light);
}

.metric b {
    font-size: 19px;
    display: block;
    line-height: 1.2;
    color: #fff;
}

.metric small {
    font-size: 11px;
    color: rgba(255, 255, 255, .55);
}

.user-body {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 24px;
    margin-top: -24px;
    position: relative;
    z-index: 3;
}

.user-menu {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 12px;
    height: fit-content;
    position: sticky;
    top: 98px;
}

.user-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 11px;
    font-size: 14px;
    color: var(--ink-2);
}

.user-menu-item i {
    color: var(--muted);
    font-size: 16px;
}

.user-menu-item em {
    margin-left: auto;
    font-style: normal;
    font-size: 11px;
    color: var(--orange-deep);
    background: var(--orange-soft);
    border-radius: 999px;
    padding: 1px 7px;
}

.user-menu-item.active {
    background: var(--orange-soft);
    color: var(--orange-deep);
    font-weight: 700;
}

.user-menu-item.active i {
    color: var(--orange-deep);
}

.user-menu-item:hover {
    background: var(--cream-2);
    color: var(--orange-deep);
}

.menu-divider {
    height: 1px;
    border-top: 1px dashed var(--line);
    margin: 8px 6px;
}

.user-content {
    min-width: 0;
}

.user-panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 28px;
}

.user-panel.hidden {
    display: none;
}

.panel-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.panel-head h2 {
    font-size: 24px;
    margin-top: 5px;
}

.panel-hint {
    font-size: 12px;
    color: var(--muted);
}

.fav-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.fav-item {
    display: flex;
    gap: 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 14px;
    transition: border-color .2s, box-shadow .2s;
}

.fav-item:hover {
    border-color: #FFD3B0;
    box-shadow: var(--shadow);
}

.fav-cover {
    width: 150px;
    height: 108px;
    border-radius: 12px;
    overflow: hidden;
    flex: 0 0 auto;
}

.fav-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fav-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.fav-title {
    font-size: 18px;
    font-weight: 700;
    margin: 6px 0 2px;
    display: block;
}

.fav-info p {
    font-size: 12px;
    color: var(--muted);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fav-info .mini-meta {
    margin-top: auto;
}

.fav-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
    align-items: flex-end;
}

.link-danger {
    border: 0;
    background: transparent;
    color: var(--danger);
    font-size: 12px;
    padding: 0;
}

.panel-more {
    text-align: center;
    margin-top: 22px;
}

.my-recipe-list,
.my-comment-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.my-recipe-item {
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 14px;
}

.my-recipe-item img {
    width: 90px;
    height: 66px;
    border-radius: 10px;
    object-fit: cover;
}

.my-recipe-info {
    flex: 1;
    min-width: 0;
}

.my-recipe-info .fav-title {
    font-size: 16px;
    margin: 0 0 2px;
}

.my-recipe-info p {
    font-size: 12px;
    color: var(--muted);
}

.my-recipe-actions {
    display: flex;
    gap: 6px;
}

.status-badge {
    font-size: 11px;
    padding: 3px 9px;
    border-radius: 999px;
    white-space: nowrap;
}

.status-badge.online {
    background: #EAF4EC;
    color: #4E8B5D;
}

.status-badge.review {
    background: #FFF0E2;
    color: var(--orange-deep);
}

.status-badge.offline {
    background: #F2F3F5;
    color: #86909C;
}

.my-comment-item {
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 16px 18px;
}

.my-comment-item .comment-head {
    justify-content: flex-start;
    gap: 10px;
}

.my-comment-item .comment-head small {
    color: var(--muted);
    font-size: 11px;
    display: block;
}

.my-comment-item .comment-head a {
    color: var(--orange-deep);
}

.my-comment-item>p {
    font-size: 13px;
    line-height: 1.8;
    margin-top: 10px;
}

.my-comment-item .comment-reply {
    font-size: 12px;
}

.profile-form {
    max-width: 640px;
}

.profile-avatar-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px dashed var(--line);
}

.profile-avatar-row b {
    font-size: 14px;
}

.profile-avatar-row p {
    font-size: 12px;
    color: var(--muted);
}

.profile-avatar-row .btn-ghost {
    margin-top: 8px;
}

/* ---------- 关于 ---------- */
.about-hero {
    background: linear-gradient(120deg, #FFF2E4, var(--cream) 70%);
    padding: 50px 0 30px;
}

.about-hero-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 56px;
    align-items: center;
}

.about-copy h1 {
    font-family: var(--font-serif);
    font-size: 47px;
    line-height: 1.25;
    margin: 12px 0 18px;
}

.about-copy h1 span {
    color: var(--orange-deep);
}

.about-copy p {
    color: var(--ink-2);
    font-size: 14px;
    line-height: 1.95;
    margin-bottom: 12px;
    max-width: 560px;
}

.about-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.about-visual {
    position: relative;
}

.about-visual img {
    width: 100%;
    height: 430px;
    object-fit: cover;
    border-radius: 26px;
    box-shadow: var(--shadow);
}

.about-stamp {
    position: absolute;
    left: -20px;
    bottom: 30px;
    background: #fff;
    border-radius: 16px;
    padding: 15px 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
}

.about-stamp b {
    font-family: var(--font-serif);
    font-size: 26px;
    color: var(--orange-deep);
    display: block;
    line-height: 1;
}

.about-stamp span {
    font-size: 11px;
    color: var(--muted);
}

.about-stats {
    background: #fff;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 34px 0;
}

.about-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}

.about-stat-grid b {
    font-family: var(--font-serif);
    font-size: 38px;
    color: var(--orange-deep);
    display: block;
    line-height: 1.2;
}

.about-stat-grid span {
    font-size: 12px;
    color: var(--muted);
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.value-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 28px;
    transition: transform .25s, box-shadow .25s;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.value-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--orange-soft);
    color: var(--orange-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 16px;
}

.value-card h3 {
    font-size: 19px;
    margin-bottom: 8px;
}

.value-card p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.9;
}

.about-story {
    padding-top: 20px;
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
}

.story-text h2 {
    font-size: 34px;
    line-height: 1.35;
    margin: 10px 0 18px;
}

.story-text p {
    font-size: 14px;
    color: var(--ink-2);
    line-height: 1.95;
    margin-bottom: 12px;
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-left: 2px solid var(--line);
    padding-left: 26px;
}

.timeline-item {
    position: relative;
    padding: 0 0 26px;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -34px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #EAD8C6;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px var(--line);
}

.timeline-item.now::before {
    background: var(--orange);
    box-shadow: 0 0 0 3px var(--orange-soft);
}

.timeline-item .year {
    font-family: var(--font-serif);
    font-size: 19px;
    font-weight: 700;
    color: var(--orange-deep);
}

.timeline-item b {
    display: block;
    font-size: 16px;
    margin: 3px 0;
}

.timeline-item p {
    font-size: 12px;
    color: var(--muted);
}

/* ---------- 首页美食转盘 ---------- */
.wheel-section {
    background: linear-gradient(180deg, #FFF9F3 0%, #FFF3E7 100%);
}

.wheel-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
    align-items: center;
}

.wheel-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.wheel-box {
    position: relative;
    width: 100%;
    max-width: 520px;
    aspect-ratio: 1 / 1;
    display: grid;
    place-items: center;
}

.wheel-box canvas {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 50%;
    background: var(--cream-2);
    box-shadow: 0 30px 60px -30px rgba(232, 93, 4, .45);
}

.wheel-pointer {
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 13px solid transparent;
    border-right: 13px solid transparent;
    border-top: 20px solid var(--orange-deep);
    z-index: 2;
    filter: drop-shadow(0 4px 6px rgba(90, 40, 8, .2));
}

.wheel-hub {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 112px;
    height: 112px;
    border: 6px solid #fff;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--orange), var(--orange-deep));
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    cursor: pointer;
    z-index: 2;
    box-shadow: 0 14px 30px -10px rgba(232, 93, 4, .7);
    transition: transform .2s, box-shadow .2s;
}

.wheel-hub b {
    font-size: 24px;
    line-height: 1.1;
    letter-spacing: .06em;
}

.wheel-hub small {
    font-size: 10px;
    letter-spacing: .28em;
    opacity: .85;
}

.wheel-hub:hover {
    transform: translate(-50%, -50%) scale(1.05);
    box-shadow: 0 18px 34px -10px rgba(232, 93, 4, .8);
}

.wheel-hub:disabled {
    cursor: default;
    opacity: .8;
}

.wheel-refresh {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--ink-2);
    font-size: 14px;
    cursor: pointer;
    transition: border-color .2s, color .2s;
}

.wheel-refresh:hover {
    border-color: var(--orange);
    color: var(--orange-deep);
}

.wheel-refresh:disabled {
    opacity: .6;
    cursor: default;
}

.wheel-result {
    min-height: 420px;
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.wheel-result-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 30px 10px;
    text-align: center;
    color: var(--muted);
}

.wheel-result-empty i {
    font-size: 44px;
    color: var(--orange-light);
}

.wheel-result-empty b {
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
}

.wheel-result-empty p {
    margin: 0;
    font-size: 13px;
}

.wr-hit {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.wr-head {
    display: flex;
    gap: 16px;
    align-items: center;
}

.wr-head img {
    width: 96px;
    height: 96px;
    flex: none;
    border-radius: 16px;
    object-fit: cover;
    background: var(--cream-2);
}

.wr-head h3 {
    margin: 2px 0 6px;
    font-size: 22px;
}

.wr-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--orange-soft);
    color: var(--orange-deep);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
}

.wr-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    font-size: 12px;
    color: var(--muted);
}

.wr-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.wr-meta i {
    font-size: 13px;
    color: var(--orange);
}

.wr-block h4 {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 8px;
    font-size: 14px;
    color: var(--ink);
}

.wr-block h4 i {
    color: var(--orange);
}

.wr-ings {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.wr-ings span {
    padding: 4px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--cream-2);
    color: var(--ink-2);
    font-size: 12.5px;
}

.wr-steps {
    margin: 0;
    padding-left: 20px;
    color: var(--ink-2);
    font-size: 13.5px;
    line-height: 1.9;
}

.wr-tips {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.8;
}

.wr-link {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--orange-deep);
}

.wr-link:hover {
    color: var(--orange);
}

/* ---------- 买菜清单 ---------- */
.shop-stats { display: flex; gap: 10px; flex: 0 0 auto; }
.shop-stats span { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 7px 18px; font-size: 13px; color: var(--muted); }
.shop-stats b { color: var(--orange-deep); font-size: 16px; margin-right: 4px; }

.shop-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; margin-bottom: 24px; }
.shop-card-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 24px; border-bottom: 1px solid var(--line); background: var(--cream-2); }
.shop-card-head h3 { font-size: 17px; display: flex; align-items: center; gap: 6px; }
.shop-card-head h3 em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--orange-deep); background: var(--orange-soft); border-radius: 999px; padding: 2px 10px; }
.shop-tools { display: flex; align-items: center; gap: 10px; }

.shop-list { padding: 4px 24px 12px; }
.shop-item { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.shop-item:last-child { border-bottom: 0; }
.shop-item.is-done .shop-name { color: var(--muted); text-decoration: line-through; }
.shop-item.is-done .shop-amount { color: var(--muted); text-decoration: line-through; }

.shop-check { width: 24px; height: 24px; flex: 0 0 auto; border-radius: 50%; border: 2px solid var(--line); background: #fff; color: transparent; display: inline-flex; align-items: center; justify-content: center; transition: all .18s; }
.shop-check i { font-size: 12px; }
.shop-check:hover { border-color: var(--orange-light); }
.shop-item.is-done .shop-check { background: var(--green); border-color: var(--green); color: #fff; }

.shop-name { font-weight: 600; color: var(--ink); min-width: 0; }
.shop-amount { font-size: 13px; color: var(--muted); }
.shop-source { margin-left: auto; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40%; }
.shop-source a { color: var(--orange-deep); }
.shop-source a:hover { text-decoration: underline; }

.shop-del { flex: 0 0 auto; border: 0; background: transparent; color: var(--muted); border-radius: 8px; padding: 4px 6px; line-height: 1; }
.shop-del:hover { color: var(--danger); background: #FFF2F2; }

.shop-empty { padding: 54px 24px; text-align: center; color: var(--muted); font-size: 14px; }
.shop-empty i { display: block; font-size: 42px; color: var(--orange-light); margin-bottom: 12px; }

@media (max-width: 600px) {
    .shop-card-head { padding: 14px 18px; }
    .shop-list { padding: 2px 18px 10px; }
    .shop-item { flex-wrap: wrap; gap: 8px 10px; }
    .shop-name { flex: 1 1 auto; }
    .shop-del { margin-left: auto; }
    .shop-source { order: 3; flex: 1 0 100%; margin-left: 36px; max-width: none; white-space: normal; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1240px) {
    .header-inner {
        gap: 18px;
    }

    .main-nav {
        gap: 16px;
        margin-left: 0;
    }

    .header-search {
        max-width: 190px;
    }
}

@media (max-width: 1100px) {
    .main-nav .nav-cat {
        display: none;
    }

    .header-search {
        max-width: 170px;
    }

    .main-nav {
        gap: 15px;
    }

    .hero-grid {
        gap: 36px;
    }

    .hero-panel h1 {
        font-size: 52px;
    }

    .hero-image {
        height: 420px;
    }

    .recipe-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .detail-grid {
        grid-template-columns: minmax(0, 1fr) 300px;
        gap: 26px;
    }

    .user-body {
        grid-template-columns: 210px minmax(0, 1fr);
    }

    .footer-main {
        grid-template-columns: 1.4fr .8fr .8fr;
    }

    .footer-contact {
        display: none;
    }
}

@media (max-width: 1000px) {
    .header-search {
        display: none;
    }

    .header-actions {
        margin-left: auto;
    }
}

@media (max-width: 900px) {

    .main-nav,
    .header-search,
    .header-actions {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        display: none;
    }

    .hero-panel h1 {
        font-size: 46px;
    }

    .featured-grid {
        grid-template-columns: 1fr;
    }

    .featured-main {
        min-height: 360px;
    }

    .featured-side {
        flex-direction: row;
    }

    .featured-small {
        grid-template-columns: 120px 1fr;
        flex: 1;
    }

    .split-grid {
        grid-template-columns: 1fr;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .list-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-banner {
        grid-template-columns: 1fr;
        padding: 40px;
    }

    .cta-art {
        display: none;
    }

    .detail-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .detail-cover {
        height: 360px;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .detail-aside {
        position: static;
    }

    .create-grid {
        grid-template-columns: 1fr;
    }

    .create-aside {
        position: static;
    }

    .auth-card {
        grid-template-columns: 1fr;
        max-width: 560px;
    }

    .auth-art {
        display: none;
    }

    .auth-form-wrap {
        padding: 36px 30px;
    }

    .user-metrics {
        width: 100%;
    }

    .metric {
        flex: 1;
        min-width: 0;
    }

    .user-body {
        grid-template-columns: 1fr;
    }

    .user-menu {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .menu-divider {
        display: none;
    }

    .about-hero-grid {
        grid-template-columns: 1fr;
    }

    .about-visual {
        display: none;
    }

    .about-stat-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 26px;
    }

    .value-grid {
        grid-template-columns: 1fr;
    }

    .story-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 6px;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 0 18px;
    }

    .section {
        padding: 50px 0;
    }

    .section-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .section-head h2 {
        font-size: 28px;
    }

    .hero-panel h1 {
        font-size: 38px;
    }

    .hero-stats {
        gap: 22px;
    }

    .hero-stats b {
        font-size: 21px;
    }

    .category-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .category-card {
        padding: 16px;
    }

    .category-icon {
        width: 38px;
        height: 38px;
        font-size: 17px;
        margin-bottom: 10px;
    }

    .category-card b {
        font-size: 15px;
    }

    .category-card small {
        display: none;
    }

    .recipe-grid,
    .list-grid {
        grid-template-columns: 1fr;
    }

    .featured-side {
        flex-direction: column;
    }

    .featured-content h3 {
        font-size: 26px;
    }

    .featured-content {
        left: 20px;
        right: 20px;
        bottom: 20px;
    }

    .sub-hero-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .sub-hero-copy h1 {
        font-size: 32px;
    }

    .list-search {
        width: 100%;
    }

    .filter-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .detail-header h1 {
        font-size: 34px;
    }

    .detail-cover {
        height: 260px;
    }

    .ingredient-grid {
        grid-template-columns: 1fr;
    }

    .step-item {
        gap: 12px;
    }

    .step-num {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .cta-copy h2 {
        font-size: 32px;
    }

    .cta-banner {
        padding: 30px 24px;
        border-radius: 22px;
    }

    .form-card {
        padding: 20px;
    }

    .field-grid.two,
    .field-grid.three {
        grid-template-columns: 1fr;
    }

    .ing-edit-row {
        grid-template-columns: 1fr 1fr 36px;
    }

    .fav-item {
        flex-wrap: wrap;
    }

    .fav-cover {
        width: 100%;
        height: 160px;
    }

    .fav-actions {
        flex-direction: row;
        align-items: center;
    }

    .my-recipe-item {
        flex-wrap: wrap;
    }

    .user-menu {
        grid-template-columns: 1fr;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-links {
        display: none;
    }

    .about-copy h1 {
        font-size: 34px;
    }

    .about-stat-grid b {
        font-size: 30px;
    }

    .pager a,
    .pager span {
        min-width: 34px;
        height: 34px;
    }
}

/* ==========================================================================
   食材百科（首页模块 / 列表页 / 详情弹层）
   ========================================================================== */
.kb-section {
    background: linear-gradient(180deg, var(--cream) 0%, #FFF3E7 100%);
}

.kb-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.kb-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: 0 18px 36px -32px rgba(92, 45, 12, .45);
    transition: transform .25s ease, box-shadow .25s ease;
}

.kb-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.kb-card[hidden] {
    display: none;
}

.kb-cover {
    position: relative;
    aspect-ratio: 16 / 10;
    background: var(--cream-2);
    overflow: hidden;
}

.kb-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kb-tag {
    display: inline-block;
    background: rgba(255, 255, 255, .94);
    color: var(--orange-deep);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    padding: 3px 10px;
    border-radius: 999px;
}

.kb-cover .kb-tag {
    position: absolute;
    left: 12px;
    top: 12px;
}

.kb-body {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 16px 18px 18px;
    flex: 1;
}

.kb-body h3 {
    display: flex;
    align-items: baseline;
    gap: 6px;
    font-size: 18px;
}

.kb-body h3 small {
    font-size: 12px;
    font-weight: 500;
    color: var(--muted);
}

.kb-summary {
    color: var(--ink-2);
    font-size: 13.5px;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.kb-meta {
    margin-top: auto;
    display: flex;
    gap: 6px;
    align-items: flex-start;
    background: var(--orange-soft);
    border-radius: 10px;
    padding: 8px 10px;
    color: var(--orange-deep);
    font-size: 12.5px;
}

.kb-meta i {
    margin-top: 3px;
}

.kb-meta span {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.js-kb-card {
    cursor: pointer;
}

.kb-more {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    color: var(--orange-deep);
    font-size: 12px;
    font-weight: 700;
}

.kb-empty {
    text-align: center;
    color: var(--muted);
    padding: 60px 0;
}

.kb-empty i {
    font-size: 30px;
    color: #E6D5C4;
}

.kb-empty p {
    margin-top: 8px;
}

.kb-filter button {
    font-size: 13px;
    color: var(--ink-2);
    padding: 5px 14px;
    border-radius: 999px;
    border: 1px solid transparent;
    background: none;
}

.kb-filter button em {
    font-style: normal;
    color: var(--muted);
    font-size: 11px;
    margin-left: 2px;
}

.kb-filter button:hover {
    background: var(--orange-soft);
    color: var(--orange-deep);
}

.kb-filter button.active {
    background: var(--orange-soft);
    border-color: #FFD3B0;
    color: var(--orange-deep);
    font-weight: 700;
}

/* 详情弹层 */
.kb-detail {
    max-height: 100%;
    overflow-y: auto;
    padding: 20px 24px 10px;
}

.kb-detail-head {
    display: flex;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 1px dashed var(--line);
}

.kb-detail-head img {
    width: 104px;
    height: 104px;
    flex: 0 0 104px;
    border-radius: 14px;
    object-fit: cover;
    background: var(--cream-2);
}

.kb-detail-head h2 {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: 24px;
    margin-top: 8px;
}

.kb-detail-head h2 small {
    font-size: 12px;
    font-weight: 500;
    color: var(--muted);
}

.kb-detail-head p {
    color: var(--ink-2);
    font-size: 13.5px;
    margin-top: 6px;
}

.kb-detail-row {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px dashed var(--line);
}

.kb-detail-row:last-child {
    border-bottom: 0;
}

.kb-detail-label {
    flex: 0 0 88px;
    display: flex;
    gap: 4px;
    align-items: flex-start;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--orange-deep);
    padding-top: 2px;
}

.kb-detail-text {
    font-size: 14px;
    line-height: 1.8;
    color: var(--ink-2);
}

@media (max-width: 1100px) {
    .kb-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .kb-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .kb-detail-head {
        flex-direction: column;
    }

    .kb-detail-head img {
        width: 100%;
        height: 180px;
        flex: none;
    }

    .kb-detail-row {
        flex-direction: column;
        gap: 4px;
    }

    .kb-detail-label {
        flex: none;
    }
}

/* ---------- 页脚友情链接 ---------- */
.footer-friend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 18px;
    margin-top: 34px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    font-size: 12px;
}

.footer-friend .friend-label {
    color: rgba(255, 255, 255, .4);
    letter-spacing: .08em;
}

.footer-friend a {
    color: rgba(255, 255, 255, .62);
}

.footer-friend a:hover {
    color: var(--orange-light);
}

/* ---------- 美食转盘响应式 ---------- */
@media (max-width: 900px) {
    .wheel-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .wheel-result {
        min-height: 0;
    }
}

@media (max-width: 600px) {
    .wheel-box {
        max-width: 340px;
    }

    .wheel-hub {
        width: 92px;
        height: 92px;
        border-width: 5px;
    }

    .wheel-hub b {
        font-size: 20px;
    }

    .wheel-result {
        padding: 22px;
    }

    .wr-head img {
        width: 76px;
        height: 76px;
    }

    .wr-head h3 {
        font-size: 19px;
    }
}

/* ---------- 开始做菜 ---------- */
.btn-start-cook {
    width: 100%;
    margin-top: 10px;
    border: 0;
    border-radius: 12px;
    padding: 12px 20px;
    font-size: 13.5px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #FF9A3D, #FF6A00);
    box-shadow: 0 8px 18px rgba(255, 122, 24, .24);
    cursor: pointer;
    transition: transform .15s, box-shadow .15s;
}

.btn-start-cook:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(255, 122, 24, .3);
}

body.cook-lock {
    overflow: hidden;
}

.cook-mode {
    position: fixed;
    inset: 0;
    z-index: 9998;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.cook-mode.is-open {
    display: flex;
}

.cook-mask {
    position: absolute;
    inset: 0;
    background: rgba(28, 18, 10, .72);
    backdrop-filter: blur(6px);
}

.cook-card {
    position: relative;
    width: min(880px, 92vw);
    height: min(620px, 86vh);
    background: #fff;
    border-radius: 26px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, .35);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.cook-head {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 26px 16px;
    border-bottom: 1px solid var(--line);
}

.cook-head-main {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cook-eyebrow {
    font-size: 10px;
    letter-spacing: .18em;
    font-weight: 700;
    color: var(--orange);
}

.cook-title {
    font-size: 17px;
    color: var(--ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cook-progress {
    flex: 0 0 auto;
    font-size: 12px;
    color: var(--muted);
    background: var(--cream-2);
    border-radius: 999px;
    padding: 5px 12px;
}

.cook-close {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: var(--cream-2);
    color: var(--ink-2);
    cursor: pointer;
}

.cook-close:hover {
    background: var(--orange-soft);
    color: var(--orange-deep);
}

.cook-viewport {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.cook-track {
    display: flex;
    height: 100%;
    transition: transform .35s cubic-bezier(.4, 0, .2, 1);
}

.cook-slide {
    flex: 0 0 100%;
    height: 100%;
    padding: 26px 34px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    text-align: center;
    overflow: hidden;
}

.cook-slide-no {
    font-size: 11px;
    letter-spacing: .2em;
    font-weight: 700;
    color: var(--orange);
}

.cook-slide-img {
    max-width: 100%;
    max-height: 52%;
    border-radius: 16px;
    overflow: hidden;
}

.cook-slide-img img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.cook-slide-text {
    font-size: 17px;
    line-height: 1.9;
    color: var(--ink);
    max-width: 620px;
}

.cook-foot {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 26px 18px;
    border-top: 1px solid var(--line);
}

.cook-nav {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 10px;
    padding: 9px 16px;
    font-size: 13px;
    color: var(--ink-2);
    cursor: pointer;
    white-space: nowrap;
}

.cook-nav:hover {
    border-color: var(--orange-light);
    color: var(--orange-deep);
}

.cook-nav.primary {
    border: 0;
    background: linear-gradient(135deg, #FF9A3D, #FF6A00);
    color: #fff;
    font-weight: 700;
}

.cook-nav:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.cook-dots {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px;
}

.cook-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #EADFD5;
    cursor: pointer;
    transition: transform .15s, background .15s;
}

.cook-dot.is-active {
    background: var(--orange);
    transform: scale(1.25);
}

.cook-hint {
    flex: 0 0 auto;
    padding: 0 0 14px;
    text-align: center;
    font-size: 12px;
    color: var(--muted);
}

@media (max-width: 768px) {
    .cook-mode {
        padding: 0;
    }

    .cook-card {
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        border-radius: 0;
    }

    .cook-head {
        padding: 14px 16px 12px;
    }

    .cook-viewport {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: y mandatory;
        overscroll-behavior: contain;
    }

    .cook-track {
        display: block;
        transform: none !important;
        transition: none;
    }

    .cook-slide {
        height: 100%;
        padding: 20px 20px 8px;
        gap: 14px;
        scroll-snap-align: start;
    }

    .cook-slide-img {
        max-height: 46%;
    }

    .cook-slide-text {
        font-size: 16px;
        line-height: 1.85;
    }

    .cook-foot {
        padding: 12px 16px;
    }

    .cook-dots {
        display: none;
    }

    .cook-nav {
        flex: 1 1 0;
        text-align: center;
    }

    .cook-hint {
        padding-bottom: 10px;
    }
}

/* ---------- 步骤语音（发布页） ---------- */
.step-media {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 10px;
    margin-top: 8px;
}

.step-media .step-upload {
    margin-top: 0;
}

.step-voice {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.step-voice-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 12px;
    font-size: 12px;
    color: var(--muted);
    background: #fff;
    border: 1px dashed var(--line);
    border-radius: 10px;
    cursor: pointer;
}

.step-voice-btn i {
    color: var(--orange-light);
}

.step-voice-btn:hover {
    border-color: var(--orange-light);
    color: var(--orange-deep);
}

.step-audio-box {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: var(--cream);
    border-radius: 10px;
}

.step-audio-box audio {
    height: 34px;
    max-width: 240px;
}

.step-audio-del {
    border: 0;
    background: transparent;
    color: var(--muted);
    padding: 4px;
    border-radius: 6px;
    cursor: pointer;
}

.step-audio-del:hover {
    color: #E5484D;
    background: #fff;
}

/* ---------- 做菜模式：语音播放 ---------- */
.cook-audio {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 600;
    color: var(--orange-deep);
    background: var(--orange-soft);
    border: 1px solid var(--orange-light);
    border-radius: 999px;
    cursor: pointer;
}

.cook-audio:hover {
    background: #FFE7D2;
}

.cook-audio.is-playing {
    background: var(--orange);
    border-color: var(--orange);
    color: #fff;
}