:root {
    --farm-primary: #2d7d46;
    --farm-primary-dark: #1e5c34;
    --farm-primary-light: #4caf75;
    --farm-primary-soft: #e8f5e9;
    --farm-accent: #ff8c42;
    --farm-accent-dark: #e67e22;
    --farm-bg: #f6f8f5;
    --farm-surface: #ffffff;
    --farm-text: #1a1a1a;
    --farm-text-secondary: #5c5c5c;
    --farm-text-muted: #8a8a8a;
    --farm-border: #e8ebe6;
    --farm-border-light: #f0f2ee;
    --farm-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --farm-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --farm-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    --farm-shadow-lg: 0 12px 32px rgba(45, 125, 70, 0.14);
    --farm-radius-xs: 6px;
    --farm-radius-sm: 10px;
    --farm-radius: 14px;
    --farm-radius-lg: 20px;
    --farm-transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);

    /* 兼容旧模板中使用的变量名 */
    --primary: var(--farm-primary);
    --primary-dark: var(--farm-primary-dark);
    --primary-light: var(--farm-primary-light);
    --accent: var(--farm-accent);
    --success: var(--farm-primary);
    --bg: var(--farm-bg);
    --surface: var(--farm-surface);
    --text: var(--farm-text);
    --text-secondary: var(--farm-text-secondary);
    --text-muted: var(--farm-text-muted);
    --border: var(--farm-border);
    --border-light: var(--farm-border-light);
    --shadow-xs: var(--farm-shadow-xs);
    --shadow-sm: var(--farm-shadow-sm);
    --shadow: var(--farm-shadow);
    --shadow-lg: var(--farm-shadow-lg);
    --radius-xs: var(--farm-radius-xs);
    --radius-sm: var(--farm-radius-sm);
    --radius: var(--farm-radius);
    --radius-lg: var(--farm-radius-lg);

    --dafa-primary: var(--farm-primary);
    --dafa-primary-dark: var(--farm-primary-dark);
    --dafa-primary-light: var(--farm-primary-light);
    --dafa-accent: var(--farm-accent);
    --dafa-success: var(--farm-primary);
    --dafa-bg: var(--farm-bg);
    --dafa-surface: var(--farm-surface);
    --dafa-text: var(--farm-text);
    --dafa-text-secondary: var(--farm-text-secondary);
    --dafa-text-muted: var(--farm-text-muted);
    --dafa-border: var(--farm-border);
    --dafa-border-light: var(--farm-border-light);
    --dafa-shadow-xs: var(--farm-shadow-xs);
    --dafa-shadow-sm: var(--farm-shadow-sm);
    --dafa-shadow: var(--farm-shadow);
    --dafa-shadow-lg: var(--farm-shadow-lg);
    --dafa-radius-xs: var(--farm-radius-xs);
    --dafa-radius-sm: var(--farm-radius-sm);
    --dafa-radius: var(--farm-radius);
    --dafa-radius-lg: var(--farm-radius-lg);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    background-color: var(--farm-bg);
    color: var(--farm-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: var(--farm-primary);
    text-decoration: none;
    transition: var(--farm-transition);
}

a:hover { color: var(--farm-primary-dark); }

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== 顶部栏 ===== */
.topbar {
    background: var(--farm-primary-dark);
    color: rgba(255,255,255,0.82);
    font-size: 13px;
    padding: 9px 0;
    letter-spacing: 0.2px;
}

.topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar-left { font-weight: 500; }

.topbar a {
    color: rgba(255,255,255,0.88);
    margin: 0 6px;
    font-weight: 500;
}

.topbar a:hover { color: #fff; }

.topbar-sep {
    opacity: 0.35;
    margin: 0 4px;
}

/* ===== 主导航 ===== */
.site-header {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    box-shadow: var(--farm-shadow-xs);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 74px;
    gap: 32px;
}

.site-header .logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.site-header .logo img {
    max-height: 46px;
    width: auto;
    transition: var(--farm-transition);
}

.site-header .logo:hover img { transform: scale(1.02); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    justify-content: center;
}

.nav-links a {
    color: var(--farm-text);
    font-size: 15px;
    font-weight: 500;
    padding: 9px 18px;
    border-radius: 24px;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 20px;
    height: 3px;
    background: var(--farm-primary);
    border-radius: 2px;
    transition: var(--farm-transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--farm-primary);
    background: var(--farm-primary-soft);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    transform: translateX(-50%) scaleX(1);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.header-search-mini { position: relative; }

.header-search-mini input {
    width: 220px;
    padding: 11px 38px 11px 16px;
    border: 1.5px solid var(--farm-border);
    border-radius: 26px;
    font-size: 14px;
    background: var(--farm-bg);
    outline: none;
    transition: var(--farm-transition);
    color: var(--farm-text);
}

.header-search-mini input:focus {
    border-color: var(--farm-primary-light);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(76, 175, 117, 0.12);
}

.header-search-mini input::placeholder { color: var(--farm-text-muted); }

.header-search-mini button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--farm-primary);
    color: #fff;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--farm-transition);
}

.header-search-mini button:hover { background: var(--farm-primary-dark); }

.header-cart {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--farm-text);
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 26px;
    background: var(--farm-bg);
    transition: var(--farm-transition);
}

.header-cart:hover {
    background: var(--farm-primary-soft);
    color: var(--farm-primary);
}

.header-cart .count {
    background: linear-gradient(135deg, var(--farm-accent), var(--farm-accent-dark));
    color: #fff;
    font-size: 11px;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    font-weight: 700;
}

/* ===== 移动端菜单 ===== */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: var(--farm-transition);
}

.mobile-menu-toggle:hover { background: var(--farm-bg); }

.mobile-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--farm-text);
    border-radius: 2px;
    transition: var(--farm-transition);
    transform-origin: center;
}

.mobile-menu-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1098;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    background: var(--farm-surface);
    z-index: 1099;
    box-shadow: var(--farm-shadow-lg);
    transform: translateX(110%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--farm-border);
    background: var(--farm-bg);
}

.mobile-nav-header .welcome {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--farm-text);
}

.mobile-nav-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--farm-text-secondary);
    cursor: pointer;
    border-radius: 50%;
    transition: var(--farm-transition);
}

.mobile-nav-close:hover { background: var(--farm-border-light); color: var(--farm-text); }

.mobile-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 500;
    color: var(--farm-text);
    border-bottom: 1px solid var(--farm-border-light);
    transition: var(--farm-transition);
}

.mobile-nav a::after {
    content: '›';
    font-size: 18px;
    color: var(--farm-text-muted);
}

.mobile-nav a:hover,
.mobile-nav a.active {
    background: var(--farm-primary-soft);
    color: var(--farm-primary);
    padding-left: 24px;
}

.mobile-nav a.active::after { color: var(--farm-primary); }

/* 菜单打开状态 */
#menu-toggle:checked ~ .mobile-menu-overlay {
    opacity: 1;
    pointer-events: auto;
}

#menu-toggle:checked ~ .mobile-nav {
    transform: translateX(0);
}

body.menu-open .mobile-menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

body.menu-open .mobile-menu-toggle span:nth-child(2) {
    opacity: 0;
}

body.menu-open .mobile-menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-bottom-nav,
.mobile-search,
.menu-toggle-checkbox { display: none; }

/* ===== 按钮 ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--farm-radius-sm);
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--farm-transition);
    background: var(--farm-primary);
    color: #fff;
    box-shadow: var(--farm-shadow-xs);
    letter-spacing: 0.3px;
}

.btn:hover {
    background: var(--farm-primary-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--farm-shadow-lg);
}

.btn:active { transform: translateY(0); }

.btn-outline {
    background: transparent;
    color: var(--farm-primary);
    border: 1.5px solid var(--farm-primary);
    box-shadow: none;
}

.btn-outline:hover {
    background: var(--farm-primary);
    color: #fff;
    box-shadow: var(--farm-shadow-sm);
}

.btn-accent {
    background: linear-gradient(135deg, var(--farm-accent), var(--farm-accent-dark));
    color: #fff;
}

.btn-accent:hover {
    background: linear-gradient(135deg, #ff9f5a, #d96e1a);
    color: #fff;
}

.btn-lg { padding: 15px 34px; font-size: 16px; border-radius: var(--farm-radius); }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-block { width: 100%; }

/* ===== Hero 区域 ===== */
.hero-section {
    position: relative;
    min-height: 560px;
    display: flex;
    align-items: center;
    background:
        radial-gradient(circle at 85% 20%, rgba(255,255,255,0.12) 0%, transparent 40%),
        linear-gradient(105deg, rgba(25, 85, 48, 0.94) 0%, rgba(45, 125, 70, 0.88) 55%, rgba(76, 175, 117, 0.78) 100%);
    background-size: cover;
    background-position: center;
    color: #fff;
    overflow: hidden;
    padding: 90px 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.6;
    pointer-events: none;
}

.hero-content {
    position: relative;
    max-width: 620px;
    padding: 90px 0;
}

.hero-subtitle {
    display: inline-block;
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
    background: rgba(255,255,255,0.15);
    padding: 7px 16px;
    border-radius: 20px;
    margin-bottom: 20px;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.hero-title {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 22px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.hero-title span {
    color: #ffd93d;
    position: relative;
}

.hero-desc {
    font-size: 18px;
    opacity: 0.94;
    margin-bottom: 36px;
    max-width: 520px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-buttons .btn-outline {
    border-color: rgba(255,255,255,0.8);
    color: #fff;
}

.hero-buttons .btn-outline:hover {
    background: rgba(255,255,255,0.15);
    border-color: #fff;
    color: #fff;
}

.hero-stats {
    display: flex;
    gap: 48px;
    margin-top: 52px;
    padding-top: 28px;
    border-top: 1px solid rgba(255,255,255,0.22);
}

.hero-stat strong {
    display: block;
    font-size: 34px;
    font-weight: 800;
    margin-bottom: 4px;
}

.hero-stat span {
    font-size: 14px;
    opacity: 0.85;
    font-weight: 500;
}

/* ===== 通用区块 ===== */
.section { padding: 72px 0; }
.section-bg { background: var(--farm-surface); }

.section-header {
    text-align: center;
    margin-bottom: 52px;
}

.section-label {
    display: inline-block;
    color: var(--farm-primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
    background: var(--farm-primary-soft);
    padding: 6px 14px;
    border-radius: 20px;
}

.section-title {
    font-size: 34px;
    font-weight: 800;
    color: var(--farm-text);
    margin-bottom: 14px;
    letter-spacing: -0.3px;
}

.section-desc {
    color: var(--farm-text-secondary);
    font-size: 16px;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ===== 分类卡片 ===== */
.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.category-card {
    background: var(--farm-surface);
    border-radius: var(--farm-radius);
    padding: 34px 22px;
    text-align: center;
    box-shadow: var(--farm-shadow-sm);
    transition: var(--farm-transition);
    border: 1px solid var(--farm-border-light);
    border-top: 3px solid var(--farm-primary-light);
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--farm-shadow-lg);
    border-color: var(--farm-primary-light);
}

.category-icon {
    width: 68px;
    height: 68px;
    margin: 0 auto 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 26px;
    font-weight: 800;
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.category-icon::after { content: '农'; }
.category-icon.icon-fruits { background: linear-gradient(135deg, #ff6b6b, #ee5a24); }
.category-icon.icon-fruits::after { content: '果'; }
.category-icon.icon-nuts { background: linear-gradient(135deg, #cd853f, #8b4513); }
.category-icon.icon-nuts::after { content: '仁'; }
.category-icon.icon-vegetables { background: linear-gradient(135deg, #2ecc71, #27ae60); }
.category-icon.icon-vegetables::after { content: '蔬'; }
.category-icon.icon-mushrooms { background: linear-gradient(135deg, #a55eea, #8854d0); }
.category-icon.icon-mushrooms::after { content: '菇'; }
.category-icon.icon-herbs { background: linear-gradient(135deg, #26de81, #20bf6b); }
.category-icon.icon-herbs::after { content: '草'; }
.category-icon.icon-grains { background: linear-gradient(135deg, #f7b731, #e58e26); }
.category-icon.icon-grains::after { content: '粮'; }
.category-icon.icon-oil { background: linear-gradient(135deg, #fd9644, #fa8231); }
.category-icon.icon-oil::after { content: '油'; }
.category-icon.icon-eggs { background: linear-gradient(135deg, #d1ccc0, #84817a); }
.category-icon.icon-eggs::after { content: '蛋'; }

.category-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--farm-text);
    font-weight: 700;
}

.category-card p {
    font-size: 13px;
    color: var(--farm-text-muted);
    margin: 0;
    line-height: 1.5;
}

/* ===== 产品卡片 ===== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.product-card {
    background: var(--farm-surface);
    border-radius: var(--farm-radius);
    overflow: hidden;
    box-shadow: var(--farm-shadow-sm);
    transition: var(--farm-transition);
    border: 1px solid var(--farm-border-light);
    border-top: 3px solid var(--farm-primary-light);
}

.product-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--farm-shadow-lg);
}

.product-card .img-wrap {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--farm-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card .img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .img-wrap img { transform: scale(1.06); }

.product-card .tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, var(--farm-accent), var(--farm-accent-dark));
    color: #fff;
    font-size: 12px;
    padding: 5px 11px;
    border-radius: 14px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    z-index: 2;
}

.placeholder-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
    color: var(--farm-primary);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.6;
}

.product-card .info { padding: 18px; }

.product-card h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.55;
    height: 46px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-card h3 a { color: var(--farm-text); }
.product-card h3 a:hover { color: var(--farm-primary); }

.product-card .meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    font-size: 13px;
    color: var(--farm-text-muted);
}

.product-card .rating {
    color: #ffb800;
    font-weight: 700;
}

.product-card .bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-card .price {
    font-size: 22px;
    font-weight: 800;
    color: #e53935;
    letter-spacing: -0.5px;
}

.product-card .price small {
    font-size: 14px;
    font-weight: 500;
    color: var(--farm-text-muted);
    margin-right: 2px;
}

.product-card .add-cart {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    padding: 0;
    font-size: 20px;
    font-weight: 400;
}

/* ===== 特性区块 ===== */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-card {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 26px;
    background: var(--farm-surface);
    border-radius: var(--farm-radius);
    box-shadow: var(--farm-shadow-sm);
    border: 1px solid var(--farm-border-light);
    border-top: 3px solid var(--farm-primary-light);
    transition: var(--farm-transition);
}

.feature-card:hover { transform: translateY(-4px); box-shadow: var(--farm-shadow); }

.feature-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    background: linear-gradient(135deg, var(--farm-primary-light), var(--farm-primary));
    border-radius: var(--farm-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(45, 125, 70, 0.25);
}

.feature-icon::after { content: '森'; }
.feature-icon.icon-origin::after { content: '源'; }
.feature-icon.icon-green::after { content: '绿'; }
.feature-icon.icon-delivery::after { content: '速'; }
.feature-icon.icon-service::after { content: '服'; }
.feature-icon.icon-quality::after { content: '选'; }

.feature-card h4 {
    font-size: 17px;
    margin-bottom: 7px;
    font-weight: 700;
}

.feature-card p {
    font-size: 14px;
    color: var(--farm-text-secondary);
    margin: 0;
    line-height: 1.6;
}

/* ===== 关于我们区块 ===== */
.about-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

.about-image {
    border-radius: var(--farm-radius);
    overflow: hidden;
    box-shadow: var(--farm-shadow-lg);
    position: relative;
}

.about-image::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--farm-radius);
    pointer-events: none;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.about-image:hover img { transform: scale(1.03); }

.about-content h2 {
    font-size: 34px;
    margin-bottom: 18px;
    font-weight: 800;
}

.about-content p {
    color: var(--farm-text-secondary);
    margin-bottom: 18px;
    line-height: 1.8;
}

.about-content .btn { margin-top: 8px; }

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 28px;
}

.about-stat {
    text-align: center;
    padding: 18px 12px;
    background: var(--farm-bg);
    border-radius: var(--farm-radius-sm);
    border: 1px solid var(--farm-border-light);
}

.about-stat strong {
    display: block;
    font-size: 26px;
    color: var(--farm-primary);
    font-weight: 800;
    margin-bottom: 4px;
}

.about-stat span {
    font-size: 13px;
    color: var(--farm-text-secondary);
    font-weight: 500;
}

/* ===== 页脚 ===== */
.site-footer {
    background: linear-gradient(180deg, var(--farm-primary-dark) 0%, #163d25 100%);
    color: rgba(255,255,255,0.78);
    padding-top: 72px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 56px;
}

.footer-brand h3 {
    color: #fff;
    font-size: 24px;
    margin-bottom: 18px;
    font-weight: 800;
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.85;
    margin-bottom: 18px;
    color: rgba(255,255,255,0.68);
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    margin-bottom: 10px;
    color: rgba(255,255,255,0.78);
}

.footer-col h4 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 22px;
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 28px;
    height: 2px;
    background: var(--farm-primary-light);
    border-radius: 2px;
}

.footer-col a {
    display: block;
    color: rgba(255,255,255,0.68);
    font-size: 14px;
    margin-bottom: 12px;
    transition: var(--farm-transition);
}

.footer-col a:hover {
    color: #fff;
    padding-left: 6px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 24px 0;
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    background: rgba(0,0,0,0.12);
}

/* ===== 分类页 ===== */
.page-hero {
    background: linear-gradient(135deg, var(--farm-primary-dark) 0%, var(--farm-primary) 50%, var(--farm-primary-light) 100%);
    color: #fff;
    padding: 56px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.page-hero .container { position: relative; }

.page-hero h1 {
    font-size: 40px;
    margin-bottom: 10px;
    font-weight: 800;
    text-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.page-hero p {
    opacity: 0.9;
    font-size: 16px;
    font-weight: 500;
}

.breadcrumb {
    padding: 20px 0;
    font-size: 14px;
    color: var(--farm-text-secondary);
}

.breadcrumb a {
    color: var(--farm-text-secondary);
    font-weight: 500;
}

.breadcrumb a:hover { color: var(--farm-primary); }
.breadcrumb span { margin: 0 8px; color: var(--farm-text-muted); }
.breadcrumb strong { color: var(--farm-text); font-weight: 600; }

.category-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 28px;
    padding: 24px 0 64px;
}

.category-sidebar {
    background: var(--farm-surface);
    border-radius: var(--farm-radius);
    padding: 24px;
    box-shadow: var(--farm-shadow-sm);
    height: fit-content;
    border: 1px solid var(--farm-border-light);
    border-top: 3px solid var(--farm-primary-light);
}

.category-sidebar h3 {
    font-size: 17px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--farm-border);
    font-weight: 700;
}

.category-sidebar a {
    display: block;
    padding: 11px 14px;
    border-radius: var(--farm-radius-sm);
    color: var(--farm-text-secondary);
    font-size: 14px;
    margin-bottom: 5px;
    font-weight: 500;
    transition: var(--farm-transition);
}

.category-sidebar a:hover {
    background: var(--farm-primary-soft);
    color: var(--farm-primary);
}

.category-sidebar a.active {
    background: var(--farm-primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(45, 125, 70, 0.25);
}

.category-sidebar a.active:hover { background: var(--farm-primary-dark); }

.category-main .toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--farm-surface);
    padding: 16px 22px;
    border-radius: var(--farm-radius-sm);
    margin-bottom: 22px;
    box-shadow: var(--farm-shadow-sm);
    border: 1px solid var(--farm-border-light);
    flex-wrap: wrap;
    gap: 12px;
}

.category-main .result-count {
    font-size: 14px;
    color: var(--farm-text-secondary);
    font-weight: 500;
}

.category-main .result-count strong {
    color: var(--farm-primary);
    font-weight: 700;
}

.sort-bar {
    display: flex;
    gap: 6px;
    background: var(--farm-bg);
    padding: 4px;
    border-radius: 22px;
}

.sort-bar a {
    padding: 7px 16px;
    border-radius: 18px;
    font-size: 13px;
    color: var(--farm-text-secondary);
    font-weight: 500;
    transition: var(--farm-transition);
}

.sort-bar a:hover {
    color: var(--farm-primary);
    background: rgba(45, 125, 70, 0.06);
}

.sort-bar a.active {
    background: var(--farm-primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(45, 125, 70, 0.2);
}

.sort-bar a.active:hover { background: var(--farm-primary-dark); color: #fff; }

/* ===== 产品详情页 ===== */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 52px;
    padding: 36px 0;
}

.product-gallery {
    background: var(--farm-surface);
    border-radius: var(--farm-radius);
    overflow: hidden;
    box-shadow: var(--farm-shadow);
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--farm-border-light);
}

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

.product-info h1 {
    font-size: 30px;
    margin-bottom: 10px;
    line-height: 1.35;
    font-weight: 800;
}

.product-info .subtitle {
    color: var(--farm-text-secondary);
    font-size: 15px;
    margin-bottom: 22px;
    line-height: 1.6;
}

.product-info .meta-row {
    display: flex;
    gap: 24px;
    margin-bottom: 22px;
    font-size: 14px;
    color: var(--farm-text-secondary);
    flex-wrap: wrap;
}

.product-info .meta-row span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.product-info .price-box {
    background: linear-gradient(135deg, #fff5f5, #fff);
    padding: 22px 24px;
    border-radius: var(--farm-radius-sm);
    margin-bottom: 24px;
    border: 1px solid #ffe0e0;
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.product-info .price {
    font-size: 38px;
    font-weight: 800;
    color: #e53935;
    letter-spacing: -1px;
}

.product-info .price small {
    font-size: 18px;
    font-weight: 500;
    margin-right: 2px;
}

.product-info .price-label {
    font-size: 14px;
    color: var(--farm-text-muted);
    font-weight: 500;
}

.product-info .service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.product-info .service-tags span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: var(--farm-primary-dark);
    background: var(--farm-primary-soft);
    padding: 7px 13px;
    border-radius: 18px;
    font-weight: 500;
}

.product-info .quantity-row {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 26px;
}

.product-info .quantity-row label {
    font-weight: 600;
    color: var(--farm-text);
}

.quantity-control {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--farm-border);
    border-radius: var(--farm-radius-sm);
    overflow: hidden;
    background: var(--farm-surface);
}

.quantity-control button {
    width: 42px;
    height: 42px;
    border: none;
    background: var(--farm-bg);
    cursor: pointer;
    font-size: 20px;
    color: var(--farm-text);
    transition: var(--farm-transition);
    font-weight: 500;
}

.quantity-control button:hover { background: var(--farm-primary-soft); color: var(--farm-primary); }

.quantity-control input {
    width: 64px;
    height: 42px;
    border: none;
    text-align: center;
    font-size: 16px;
    outline: none;
    font-weight: 600;
    color: var(--farm-text);
}

.product-info .actions {
    display: flex;
    gap: 14px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.product-tabs {
    margin-top: 56px;
    background: var(--farm-surface);
    border-radius: var(--farm-radius);
    box-shadow: var(--farm-shadow-sm);
    overflow: hidden;
    border: 1px solid var(--farm-border-light);
}

.product-tabs .tab-nav {
    display: flex;
    border-bottom: 1px solid var(--farm-border);
    background: var(--farm-bg);
    overflow-x: auto;
}

.product-tabs .tab-nav a {
    padding: 18px 30px;
    font-size: 15px;
    font-weight: 600;
    color: var(--farm-text-secondary);
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    transition: var(--farm-transition);
}

.product-tabs .tab-nav a.active {
    color: var(--farm-primary);
    border-bottom-color: var(--farm-primary);
    background: var(--farm-surface);
}

.product-tabs .tab-nav a:hover:not(.active) {
    color: var(--farm-primary);
    background: rgba(45, 125, 70, 0.04);
}

.product-tabs .tab-content {
    padding: 32px;
}

.tab-pane { display: none; }
.tab-pane.active { display: block; animation: fadeIn 0.3s ease; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.product-desc {
    color: var(--farm-text-secondary);
    line-height: 1.9;
    font-size: 15px;
}

.product-desc p { margin-bottom: 14px; }

/* ===== 评价 ===== */
.review-item {
    display: flex;
    gap: 16px;
    padding: 22px 0;
    border-bottom: 1px solid var(--farm-border-light);
}

.review-item:last-child { border-bottom: none; }

.review-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--farm-primary-light), var(--farm-primary));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(45, 125, 70, 0.2);
}

.review-body { flex: 1; }

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    align-items: center;
}

.review-name { font-weight: 700; color: var(--farm-text); }

.review-date { font-size: 13px; color: var(--farm-text-muted); }

.review-rating {
    color: #ffb800;
    font-size: 14px;
    margin-bottom: 8px;
    font-weight: 700;
}

.review-text {
    color: var(--farm-text-secondary);
    font-size: 14px;
    line-height: 1.75;
}

/* ===== 购物车/结算 ===== */
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 28px;
    padding: 36px 0 72px;
}

.checkout-card {
    background: var(--farm-surface);
    border-radius: var(--farm-radius);
    padding: 28px;
    box-shadow: var(--farm-shadow-sm);
    border: 1px solid var(--farm-border-light);
    margin-bottom: 22px;
    border-top: 3px solid var(--farm-primary-light);
}

.checkout-card h3 {
    font-size: 18px;
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--farm-border);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-item-row {
    display: flex;
    gap: 18px;
    padding: 18px 0;
    border-bottom: 1px solid var(--farm-border-light);
    align-items: center;
}

.cart-item-row:last-child { border-bottom: none; }

.cart-item-row img {
    width: 84px;
    height: 84px;
    object-fit: cover;
    border-radius: var(--farm-radius-sm);
    background: var(--farm-bg);
    border: 1px solid var(--farm-border-light);
}

.cart-item-info { flex: 1; }

.cart-item-info h4 {
    font-size: 15px;
    margin-bottom: 6px;
    font-weight: 600;
}

.cart-item-info p {
    font-size: 13px;
    color: var(--farm-text-muted);
    margin: 0;
}

.cart-item-price {
    font-size: 17px;
    font-weight: 800;
    color: #e53935;
    min-width: 100px;
    text-align: right;
}

.cart-item-qty {
    min-width: 80px;
    text-align: center;
    color: var(--farm-text-secondary);
    font-weight: 500;
}

.checkout-summary {
    background: var(--farm-surface);
    border-radius: var(--farm-radius);
    padding: 28px;
    box-shadow: var(--farm-shadow-sm);
    border: 1px solid var(--farm-border-light);
    height: fit-content;
    position: sticky;
    top: 104px;
    border-top: 3px solid var(--farm-primary-light);
}

.checkout-summary h3 {
    font-size: 18px;
    margin-bottom: 22px;
    font-weight: 700;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--farm-border);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 14px;
    font-size: 14px;
    color: var(--farm-text-secondary);
    font-weight: 500;
}

.summary-row.total {
    font-size: 18px;
    font-weight: 700;
    color: var(--farm-text);
    padding-top: 14px;
    border-top: 2px solid var(--farm-border);
    margin-top: 6px;
}

.summary-row.total span {
    color: #e53935;
    font-size: 26px;
    font-weight: 800;
}

.form-group { margin-bottom: 18px; }

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 7px;
    color: var(--farm-text);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 13px 15px;
    border: 1.5px solid var(--farm-border);
    border-radius: var(--farm-radius-sm);
    font-size: 15px;
    outline: none;
    transition: var(--farm-transition);
    font-family: inherit;
    color: var(--farm-text);
    background: var(--farm-surface);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--farm-primary-light);
    box-shadow: 0 0 0 4px rgba(76, 175, 117, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--farm-text-muted); }

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border: 1.5px solid var(--farm-border);
    border-radius: var(--farm-radius-sm);
    cursor: pointer;
    transition: var(--farm-transition);
    background: var(--farm-surface);
}

.payment-option:hover { border-color: var(--farm-primary-light); background: var(--farm-bg); }
.payment-option.active { border-color: var(--farm-primary); background: var(--farm-primary-soft); }

.payment-option input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--farm-primary);
}

.payment-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
}

.payment-icon.alipay { background: #1677ff; }
.payment-icon.wechat { background: #07c160; }

/* ===== 分页 ===== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 44px;
}

.pagination a,
.pagination span {
    min-width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--farm-radius-sm);
    font-size: 14px;
    border: 1px solid var(--farm-border);
    background: var(--farm-surface);
    color: var(--farm-text-secondary);
    font-weight: 500;
    transition: var(--farm-transition);
}

.pagination a:hover {
    border-color: var(--farm-primary);
    color: var(--farm-primary);
    background: var(--farm-primary-soft);
}

.pagination span.current {
    background: var(--farm-primary);
    color: #fff;
    border-color: var(--farm-primary);
    box-shadow: 0 4px 12px rgba(45, 125, 70, 0.25);
    font-weight: 700;
}

.pagination span.ellipsis { border: none; background: transparent; }

/* ===== 空状态 ===== */
.empty-state {
    text-align: center;
    padding: 72px 24px;
    background: var(--farm-surface);
    border-radius: var(--farm-radius);
    box-shadow: var(--farm-shadow-sm);
    border-top: 3px solid var(--farm-primary-light);
}

.empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--farm-primary-soft);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--farm-primary);
}

.empty-state p {
    color: var(--farm-text-secondary);
    margin-bottom: 22px;
    font-size: 15px;
}

/* ===== 提示条 ===== */
.alert {
    padding: 14px 18px;
    border-radius: var(--farm-radius-sm);
    margin-bottom: 18px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.alert-success { background: #e8f5e9; color: #2e7d32; border: 1px solid #c8e6c9; }
.alert-error { background: #ffebee; color: #c62828; border: 1px solid #ffcdd2; }

/* ===== 回到顶部 ===== */
.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--farm-primary);
    color: #fff;
    border: none;
    cursor: pointer;
    box-shadow: var(--farm-shadow-lg);
    font-size: 18px;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--farm-transition);
}

.back-to-top:hover {
    background: var(--farm-primary-dark);
    transform: translateY(-3px);
}

/* ===== 会员/关于页面卡片 ===== */
.member-card {
    background: var(--farm-surface);
    border-radius: var(--farm-radius);
    padding: 36px;
    box-shadow: var(--farm-shadow-sm);
    border: 1px solid var(--farm-border-light);
    border-top: 3px solid var(--farm-primary-light);
}

.member-card h2 {
    color: var(--farm-text);
    font-size: 26px;
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--farm-border);
    font-weight: 800;
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
    .category-grid,
    .product-grid,
    .feature-grid { grid-template-columns: repeat(3, 1fr); }
    
    .footer-content { grid-template-columns: repeat(2, 1fr); }
    
    .checkout-layout { grid-template-columns: 1fr; }
    .checkout-summary { position: static; }
}

@media (max-width: 768px) {
    .container { padding: 0 16px; }

    .topbar { font-size: 12px; }
    .topbar .container {
        justify-content: center;
        flex-wrap: wrap;
        gap: 6px;
    }
    .topbar-left { display: none; }
    .topbar-right { text-align: center; }
    
    .site-header .container { height: 64px; gap: 12px; }
    .site-header .logo img { max-height: 40px; }
    
    .nav-links,
    .header-search-mini { display: none; }
    
    .mobile-menu-toggle { display: flex; }
    
    .header-cart {
        padding: 8px 12px;
        background: transparent;
    }
    .header-cart span:not(.count) { display: none; }
    
    .hero-section { min-height: 480px; padding: 64px 0; }
    .hero-content { padding: 56px 0; }
    .hero-title { font-size: 32px; }
    .page-hero { padding: 44px 0 48px; }
    .hero-desc { font-size: 15px; }
    .hero-buttons { flex-direction: column; width: 100%; }
    .hero-buttons .btn { width: 100%; }
    .hero-stats { gap: 24px; margin-top: 36px; padding-top: 22px; }
    .hero-stat strong { font-size: 24px; }
    .hero-stat span { font-size: 13px; }
    
    .section { padding: 52px 0; }
    .section-title { font-size: 26px; }
    
    .category-grid,
    .product-grid,
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    
    .category-card { padding: 24px 14px; }
    .category-icon { width: 54px; height: 54px; font-size: 20px; }
    
    .about-section,
    .product-detail,
    .category-layout { grid-template-columns: 1fr; gap: 32px; }
    
    .category-sidebar { order: 2; }
    .category-main .toolbar { flex-direction: column; align-items: flex-start; }
    
    .product-info h1 { font-size: 24px; }
    .product-info .price { font-size: 30px; }
    .product-tabs .tab-nav a { padding: 14px 18px; font-size: 14px; }
    .product-tabs .tab-content { padding: 22px; }
    
    .footer-content { grid-template-columns: 1fr; gap: 32px; }
    
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(255,255,255,0.98);
        border-top: 1px solid var(--farm-border);
        z-index: 1001;
        justify-content: space-around;
        padding: 8px 0 10px;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
        backdrop-filter: blur(10px);
    }
    
    .mobile-bottom-nav a {
        flex: 1;
        text-align: center;
        font-size: 12px;
        color: var(--farm-text-secondary);
        padding: 4px;
        font-weight: 500;
    }
    
    .mobile-bottom-nav a.active { color: var(--farm-primary); }
    
    body { padding-bottom: 64px; }
    
    .member-card { padding: 24px; }
}

/* ===== 认证框（登录/注册） ===== */
.auth-box {
    max-width: 440px;
    margin: 48px auto 80px;
    background: var(--farm-surface);
    border-radius: var(--farm-radius);
    padding: 36px 32px;
    box-shadow: var(--farm-shadow);
    border: 1px solid var(--farm-border-light);
    border-top: 3px solid var(--farm-primary-light);
}

.auth-box h2 {
    text-align: center;
    margin-bottom: 28px;
    font-size: 26px;
    font-weight: 800;
    color: var(--farm-text);
}

.auth-box p {
    text-align: center;
    margin-top: 18px;
    font-size: 14px;
    color: var(--farm-text-secondary);
}

/* ===== 购物车 ===== */
.step-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 24px 0 32px;
    padding: 18px;
    background: var(--farm-surface);
    border-radius: var(--farm-radius-sm);
    box-shadow: var(--farm-shadow-sm);
    border: 1px solid var(--farm-border-light);
}

.step-progress .step {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--farm-text-muted);
    font-weight: 500;
}

.step-progress .step.active { color: var(--farm-primary); font-weight: 700; }

.step-progress .step .num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--farm-bg);
    border: 1.5px solid var(--farm-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
}

.step-progress .step.active .num {
    background: var(--farm-primary);
    border-color: var(--farm-primary);
    color: #fff;
}

.step-progress .line {
    flex: 1;
    max-width: 60px;
    height: 2px;
    background: var(--farm-border);
    border-radius: 1px;
}

.cart-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--farm-surface);
    border-radius: var(--farm-radius);
    overflow: hidden;
    box-shadow: var(--farm-shadow-sm);
    border: 1px solid var(--farm-border-light);
    border-top: 3px solid var(--farm-primary-light);
    margin-bottom: 24px;
}

.cart-table thead th {
    background: var(--farm-bg);
    color: var(--farm-text);
    font-size: 14px;
    font-weight: 700;
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--farm-border);
}

.cart-table tbody td {
    padding: 16px;
    border-bottom: 1px solid var(--farm-border-light);
    font-size: 14px;
    color: var(--farm-text-secondary);
    vertical-align: middle;
}

.cart-table tbody tr:last-child td { border-bottom: none; }

.cart-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.cart-item img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: var(--farm-radius-sm);
    background: var(--farm-bg);
    border: 1px solid var(--farm-border-light);
}

.cart-item .name {
    font-weight: 600;
    color: var(--farm-text);
    line-height: 1.5;
}

.qty-stepper {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid var(--farm-border);
    border-radius: var(--farm-radius-sm);
    overflow: hidden;
    background: var(--farm-surface);
}

.qty-stepper button {
    width: 34px;
    height: 34px;
    border: none;
    background: var(--farm-bg);
    cursor: pointer;
    font-size: 16px;
    color: var(--farm-text);
    transition: var(--farm-transition);
    font-weight: 500;
}

.qty-stepper button:hover { background: var(--farm-primary-soft); color: var(--farm-primary); }

.qty-stepper input {
    width: 50px;
    height: 34px;
    border: none;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    outline: none;
    color: var(--farm-text);
    background: var(--farm-surface);
}

.cart-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    background: var(--farm-surface);
    padding: 22px;
    border-radius: var(--farm-radius);
    box-shadow: var(--farm-shadow-sm);
    border: 1px solid var(--farm-border-light);
    border-top: 3px solid var(--farm-primary-light);
}

.cart-total {
    font-size: 16px;
    color: var(--farm-text);
    font-weight: 600;
}

.cart-total strong {
    font-size: 26px;
    color: #e53935;
    font-weight: 800;
    margin-left: 6px;
}

/* ===== 会员中心 ===== */
.member-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 28px;
    margin: 24px 0 72px;
}

.member-sidebar {
    background: var(--farm-surface);
    border-radius: var(--farm-radius);
    padding: 24px;
    box-shadow: var(--farm-shadow-sm);
    border: 1px solid var(--farm-border-light);
    border-top: 3px solid var(--farm-primary-light);
    height: fit-content;
}

.member-sidebar .profile {
    text-align: center;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--farm-border);
    margin-bottom: 16px;
}

.member-sidebar .avatar {
    width: 72px;
    height: 72px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--farm-primary-light), var(--farm-primary));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    box-shadow: 0 6px 16px rgba(45, 125, 70, 0.25);
}

.member-sidebar .username {
    font-size: 17px;
    font-weight: 700;
    color: var(--farm-text);
    margin-bottom: 4px;
}

.member-sidebar .email {
    font-size: 13px;
    color: var(--farm-text-muted);
}

.member-menu {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.member-menu a {
    display: block;
    padding: 12px 16px;
    border-radius: var(--farm-radius-sm);
    color: var(--farm-text-secondary);
    font-size: 14px;
    font-weight: 600;
    transition: var(--farm-transition);
}

.member-menu a:hover {
    background: var(--farm-primary-soft);
    color: var(--farm-primary);
}

.member-menu a.active {
    background: var(--farm-primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(45, 125, 70, 0.2);
}

.member-menu a.active:hover { background: var(--farm-primary-dark); color: #fff; }

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--farm-surface);
    border-radius: var(--farm-radius);
    padding: 22px;
    text-align: center;
    box-shadow: var(--farm-shadow-sm);
    border: 1px solid var(--farm-border-light);
    border-top: 3px solid var(--farm-primary-light);
    transition: var(--farm-transition);
}

.stat-card:hover { transform: translateY(-4px); box-shadow: var(--farm-shadow); }

.stat-card .icon {
    width: 44px;
    height: 44px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: var(--farm-primary-soft);
    color: var(--farm-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 800;
}

.stat-card.primary .icon { background: var(--farm-primary-soft); color: var(--farm-primary); }
.stat-card.accent .icon { background: #fff2e8; color: var(--farm-accent); }
.stat-card.success .icon { background: #e8f5e9; color: var(--farm-primary); }

.stat-card .value {
    font-size: 30px;
    font-weight: 800;
    color: var(--farm-text);
    margin-bottom: 4px;
}

.stat-card .label {
    font-size: 13px;
    color: var(--farm-text-secondary);
    font-weight: 500;
}

/* ===== 表格通用 ===== */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
}

table thead th {
    background: var(--farm-bg);
    color: var(--farm-text);
    font-weight: 700;
    padding: 14px;
    text-align: left;
    border-bottom: 1px solid var(--farm-border);
}

table tbody td {
    padding: 14px;
    border-bottom: 1px solid var(--farm-border-light);
    color: var(--farm-text-secondary);
    vertical-align: middle;
}

table tbody tr:last-child td { border-bottom: none; }

/* ===== 标签 ===== */
.badge {
    display: inline-block;
    padding: 5px 11px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
}

.badge-blue { background: #e6f4ff; color: #0958d9; }
.badge-green { background: #e8f5e9; color: #2e7d32; }
.badge-red { background: #ffebee; color: #c62828; }
.badge-gray { background: #f5f5f5; color: #666; }

/* ===== 按钮变体补充 ===== */
.btn-secondary {
    background: var(--farm-bg);
    color: var(--farm-text);
    border: 1.5px solid var(--farm-border);
    box-shadow: none;
}

.btn-secondary:hover {
    background: var(--farm-primary-soft);
    color: var(--farm-primary);
    border-color: var(--farm-primary-light);
    box-shadow: var(--farm-shadow-sm);
}

.btn-danger {
    background: #ffebee;
    color: #c62828;
    border: 1.5px solid #ffcdd2;
    box-shadow: none;
}

.btn-danger:hover {
    background: #c62828;
    color: #fff;
    border-color: #c62828;
}

/* ===== 小屏补充 ===== */
@media (max-width: 768px) {
    .auth-box { margin: 28px auto 56px; padding: 28px 22px; }
    .cart-table thead { display: none; }
    .cart-table tbody tr {
        display: block;
        padding: 16px;
        border-bottom: 1px solid var(--farm-border-light);
    }
    .cart-table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 0;
        border: none;
        text-align: right;
    }
    .cart-table tbody td::before {
        content: attr(data-label);
        font-weight: 700;
        color: var(--farm-text);
        margin-right: auto;
    }
    .cart-table tbody td[data-label="商品"] { justify-content: flex-start; text-align: left; }
    .cart-table tbody td[data-label="商品"]::before { display: none; }
    .cart-summary { flex-direction: column; align-items: stretch; }
    .cart-summary .btn { width: 100%; }
    .cart-total { text-align: center; }
    .member-layout { grid-template-columns: 1fr; }
    .member-sidebar { order: -1; }
    .member-menu { flex-direction: row; flex-wrap: wrap; gap: 8px; }
    .member-menu a { flex: 1; min-width: 80px; text-align: center; }
    .dashboard-stats { grid-template-columns: repeat(3, 1fr); }
    .step-progress { flex-wrap: wrap; }
    .step-progress .line { display: none; }
}


/* 兼容 dafa-style 变量名，使改造页面可直接复用参考站视觉 */
:root {
  --dafa-primary: var(--farm-primary);
  --dafa-primary-dark: var(--farm-primary-dark);
  --dafa-primary-light: var(--farm-primary-light);
  --dafa-primary-soft: var(--farm-primary-soft);
  --dafa-accent: var(--farm-accent);
  --dafa-accent-dark: var(--farm-accent-dark);
  --dafa-bg: var(--farm-bg);
  --dafa-surface: var(--farm-surface);
  --dafa-text: var(--farm-text);
  --dafa-text-secondary: var(--farm-text-secondary);
  --dafa-text-muted: var(--farm-text-muted);
  --dafa-border: var(--farm-border);
  --dafa-border-light: var(--farm-border-light);
  --dafa-shadow-xs: var(--farm-shadow-xs);
  --dafa-shadow-sm: var(--farm-shadow-sm);
  --dafa-shadow: var(--farm-shadow);
  --dafa-shadow-lg: var(--farm-shadow-lg);
  --dafa-radius-xs: var(--farm-radius-xs);
  --dafa-radius-sm: var(--farm-radius-sm);
  --dafa-radius: var(--farm-radius);
  --dafa-radius-lg: var(--farm-radius-lg);
  --dafa-transition: var(--farm-transition);
}

/* 达发水果分类图标覆盖（与参考站单字图标风格保持一致） */
.category-icon.icon-fruits { background: linear-gradient(135deg, #ff6b6b, #ee5a24); }
.category-icon.icon-fruits::after { content: '果'; }
.category-icon.icon-gift { background: linear-gradient(135deg, #ff9f43, #ee5a24); }
.category-icon.icon-gift::after { content: '礼'; }
.category-icon.icon-platter { background: linear-gradient(135deg, #2ecc71, #27ae60); }
.category-icon.icon-platter::after { content: '切'; }
.category-icon.icon-package { background: linear-gradient(135deg, #f7b731, #e58e26); }
.category-icon.icon-package::after { content: '包'; }


/* 达发水果：footer 联系信息样式补充 */
.footer-contact { margin-top: 18px; }
.footer-contact p {
    font-size: 14px;
    color: rgba(255,255,255,0.72);
    margin: 10px 0;
    line-height: 1.6;
    display: flex;
    align-items: center;
    gap: 10px;
}
.footer-contact p span {
    flex-shrink: 0;
}
