/* ============================================================
   丹芝秀 · 植萃绿 v2.0 「翡翠质感版」  (2026-09-11)
   主色 #2C6E52 ｜ 圆角 10-16px ｜ 毛玻璃导航 ｜ 微交互
   ------------------------------------------------------------
   v2 变化：直角→大圆角 · 扁平→渐变质感 · 新增按压/聚焦反馈
   --gold* 为历史命名，实为品牌主色别名（257 处引用）
   ============================================================ */
:root {
    /* 品牌主色（绿） */
    --primary: #2C6E52;
    --primary-light: #4C8E70;
    --primary-dark: #1C4C39;

    /* 兼容层：--gold* 映射为绿（历史引用零改动） */
    --gold: #2C6E52;
    --gold-light: #4C8E70;
    --gold-dark: #1C4C39;
    --gold-muted: #3A7A5E;
    --gold-faint: rgba(44,110,82,0.06);
    --gold-faint-strong: rgba(44,110,82,0.1);
    --gold-glow: rgba(44,110,82,0.12);

    /* 品牌渐变（v2 新增：翡翠质感） */
    --grad-primary: linear-gradient(135deg, #3D8466 0%, #2C6E52 55%, #1F5540 100%);
    --grad-primary-soft: linear-gradient(135deg, #E8F4EE 0%, #DCEBE3 100%);
    --grad-hero: linear-gradient(160deg, #2C6E52 0%, #276148 45%, #1C4C39 100%);

    /* 背景与容器 */
    --bg: #F4F8F5;
    --bg-deep: #EDF3EF;
    --bg-secondary: #EDF3EF;
    --bg-elevated: #FFFFFF;
    --card: #FFFFFF;
    --card-hover: #F7FBF8;

    /* 文字 */
    --text: #1A2620;
    --text-secondary: #5C6B62;
    --text-light: var(--text-secondary);
    --text-tertiary: #84937F;
    --title-color: #16221C;

    /* 描边 */
    --border: #DCE7E0;
    --border-light: #EAF1EC;
    --border-gold: rgba(44,110,82,0.22);

    /* 状态色 */
    --success: #3A7519;
    --warning: #96530C;
    --danger: #B23F2C;
    --info: #226479;

    /* 阴影（v2：更柔和分层） */
    --shadow: 0 2px 16px rgba(26,38,32,0.07);
    --shadow-sm: 0 1px 5px rgba(26,38,32,0.05);
    --shadow-lg: 0 10px 36px rgba(26,38,32,0.10);
    --shadow-gold: 0 4px 16px rgba(44,110,82,0.14);

    /* 圆角（v2：全面升级） */
    --radius: 10px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 999px;

    /* 按钮与导航 */
    --btn-text: #FFFFFF;
    --btn-text-dark: #1A2620;
    --nav-bg: rgba(247,250,248,0.88);
    --nav-text: #1A2620;

    /* 等级横幅 */
    --level-banner-from: #EAF4EE;
    --level-banner-to: #DFEEE6;
    --level-banner-end: #D3E7DC;
    --banner-text: #1C4C39;
    --banner-text-sub: rgba(28,76,57,0.85);
    --banner-dot-color: rgba(255,255,255,0.14);
    --banner-dot-color2: rgba(255,255,255,0.07);
    --banner-border: rgba(44,110,82,0.15);
    --banner-stat-bg: rgba(255,255,255,0.7);

    /* 图标底纹 */
    --icon-bg-gold: rgba(44,110,82,0.1);
    --icon-bg-green: rgba(58,117,25,0.1);
    --icon-bg-info: rgba(34,100,121,0.1);
    --icon-bg-danger: rgba(178,63,44,0.08);
    --icon-bg-ink: rgba(92,107,98,0.08);

    /* 商品图占位 */
    --product-img-from: #EDF3EF;
    --product-img-to: #DCE7E0;

    /* 字体与缓动 */
    --serif: "Source Han Serif CN", "Noto Serif SC", "SimSun", Georgia, serif;
    --sans: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: var(--sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    padding-bottom: calc(78px + env(safe-area-inset-bottom));
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: 0.02em;
}

::selection { background: var(--gold); color: #fff; }

::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
::-webkit-scrollbar-track { background: transparent; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
input, button, textarea { font-family: inherit; font-size: inherit; }

.container { max-width: 750px; margin: 0 auto; padding: 0 16px; }

/* ========== 顶部导航（v2：毛玻璃 + 渐变下缘） ========== */
.top-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(247,250,248,0.86);
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    border-bottom: 1px solid rgba(44,110,82,0.06);
    padding: 0 16px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.top-nav .title {
    font-size: 17px;
    font-weight: 600;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    color: var(--nav-text);
    letter-spacing: 2px;
    white-space: nowrap;
}
.top-nav .back { font-size: 22px; color: var(--text); cursor: pointer; opacity: 0.65; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: background 0.2s; }
.top-nav .back:active { background: var(--gold-faint-strong); }
.top-nav .action { font-size: 14px; color: var(--gold-muted); cursor: pointer; letter-spacing: 1px; }

/* ========== 底部导航（v2：浮动胶囊） ========== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255,255,255,0.94);
    backdrop-filter: blur(28px) saturate(1.5);
    -webkit-backdrop-filter: blur(28px) saturate(1.5);
    border-top: 1px solid rgba(44,110,82,0.07);
    display: flex;
    padding-bottom: env(safe-area-inset-bottom);
}
.bottom-nav a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 9px 0 7px;
    font-size: 11px;
    color: var(--text-tertiary);
    transition: color 0.3s var(--ease-out);
    letter-spacing: 1px;
    position: relative;
}
.bottom-nav a svg { width: 23px; height: 23px; margin-bottom: 3px; fill: currentColor; opacity: 0.8; transition: transform 0.35s var(--ease-spring), opacity 0.3s; }
.bottom-nav a.active { color: var(--gold); font-weight: 600; }
.bottom-nav a.active svg { transform: translateY(-2px) scale(1.12); opacity: 1; }
.bottom-nav a.active::after {
    content: '';
    position: absolute;
    top: 6px;
    width: 18px;
    height: 3px;
    background: var(--grad-primary);
    border-radius: 2px;
}

/* ========== 卡片（v2：大圆角 + 悬浮层感） ========== */
.card {
    background: var(--card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 12px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}
.card-body { padding: 20px; }
.card-header {
    padding: 18px 20px 14px;
    font-size: 16px;
    font-weight: 600;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text);
    letter-spacing: 2px;
}
.card-header .more { font-size: 12px; color: var(--text-tertiary); font-weight: 400; letter-spacing: 1px; }

/* ========== 按钮（v2：渐变胶囊 + 光泽扫过） ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: var(--radius-full);
    padding: 0 32px;
    height: 46px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.25s var(--ease-spring), box-shadow 0.3s, opacity 0.2s;
    outline: none;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
}
.btn::after {
    content: '';
    position: absolute;
    top: 0; left: -80%; bottom: 0;
    width: 50%;
    background: linear-gradient(105deg, transparent, rgba(255,255,255,0.25), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s var(--ease-out);
}
.btn:active { transform: scale(0.96); }
.btn:active::after { left: 130%; }
.btn-primary {
    background: var(--grad-primary);
    color: #fff;
    box-shadow: 0 4px 14px rgba(44,110,82,0.28);
}
.btn-primary:active { box-shadow: 0 2px 8px rgba(44,110,82,0.2); }
.btn-outline {
    background: transparent;
    border: 1.5px solid var(--border);
    color: var(--text-secondary);
}
.btn-outline:active { border-color: var(--gold); color: var(--gold); background: var(--gold-faint); }
.btn-gold { background: var(--grad-primary); color: #fff; box-shadow: 0 4px 14px rgba(44,110,82,0.25); }
.btn-block { display: flex; width: 100%; }
.btn-sm { height: 34px; padding: 0 18px; font-size: 12px; letter-spacing: 1px; }
.btn[disabled] { opacity: 0.35; pointer-events: none; }

/* ========== 表单（v2：聚焦呼吸光圈） ========== */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 14px; color: var(--text-secondary); margin-bottom: 8px; font-weight: 500; letter-spacing: 1px; }
.form-input {
    width: 100%;
    height: 50px;
    padding: 0 18px;
    border: 1.5px solid var(--border);
    border-radius: 14px;
    font-size: 15px;
    color: var(--text);
    background: #fff;
    outline: none;
    transition: border-color 0.25s, box-shadow 0.25s;
}
.form-input:focus { border-color: var(--primary-light); box-shadow: 0 0 0 4px rgba(76,142,112,0.12); }
.form-input::placeholder { color: var(--text-tertiary); }

/* ========== Toast（v2：顶部浮动胶囊） ========== */
.toast {
    position: fixed;
    top: calc(16px + env(safe-area-inset-top));
    left: 24px;
    right: 24px;
    padding: 14px 20px;
    border-radius: 16px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 9999;
    box-shadow: 0 16px 44px rgba(0,0,0,0.22);
    animation: toastIn 0.45s cubic-bezier(0.34,1.3,0.64,1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    letter-spacing: 0.5px;
}
@keyframes toastIn {
    from { opacity: 0; transform: translateY(-28px) scale(0.92); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.toast-success { background: linear-gradient(135deg, rgba(48,98,22,0.96), rgba(58,117,25,0.96)); color: #fff; }
.toast-danger { background: linear-gradient(135deg, rgba(158,47,32,0.96), rgba(178,63,44,0.96)); color: #fff; }
.toast-warning { background: linear-gradient(135deg, rgba(126,66,6,0.96), rgba(150,83,12,0.96)); color: #fff; }

/* ========== 标签 ========== */
.tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 500;
}
.tag-primary { background: var(--icon-bg-gold); color: var(--gold-dark); }
.tag-gold { background: var(--icon-bg-gold); color: var(--gold-dark); }
.tag-success { background: var(--icon-bg-green); color: var(--success); }
.tag-warning { background: var(--icon-bg-info); color: var(--warning); }
.tag-danger { background: var(--icon-bg-danger); color: var(--danger); }

/* ========== 列表项（v2：图标圆底 + 按压反馈） ========== */
.list-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
    gap: 14px;
    transition: background 0.2s;
}
.list-item:last-child { border-bottom: none; }
.list-item:active { background: var(--card-hover); }
.list-item .icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.list-item .info { flex: 1; min-width: 0; }
.list-item .info h4 { font-size: 15px; font-weight: 600; color: var(--text); letter-spacing: 0.3px; }
.list-item .info p { font-size: 12px; color: var(--text-secondary); margin-top: 3px; }
.list-item .arrow { color: var(--text-tertiary); font-size: 14px; }

/* ========== 头像 ========== */
.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--grad-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(44,110,82,0.25);
}
.avatar-lg { width: 72px; height: 72px; font-size: 28px; }

/* ========== 等级横幅（v2：翡翠渐变深底） ========== */
.level-banner {
    background: var(--grad-primary);
    border-radius: var(--radius-lg);
    padding: 22px;
    color: #F2F8F4;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(28,76,57,0.25);
}
.level-banner::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(255,255,255,0.14) 0%, transparent 70%);
    border-radius: 50%;
}
.level-banner::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -30px;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    border-radius: 50%;
}
.level-banner .level-name { font-size: 20px; font-weight: 700; letter-spacing: 2px; position: relative; z-index: 1; }
.level-banner .level-desc { font-size: 12px; opacity: 0.85; margin-top: 4px; position: relative; z-index: 1; }

/* ========== 数据统计（v2：渐变数字） ========== */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.stat-box {
    background: var(--card);
    border-radius: var(--radius-md);
    padding: 18px 16px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: transform 0.25s var(--ease-spring);
}
.stat-box:active { transform: scale(0.97); }
.stat-box .val { font-size: 24px; font-weight: 800; color: var(--title-color); font-variant-numeric: tabular-nums; }
.stat-box .val.primary { color: var(--gold); }
.stat-box .val.gold { color: var(--gold); }
.stat-box .val.success { color: var(--success); }
.stat-box .label { font-size: 12px; color: var(--text-secondary); margin-top: 4px; }

/* ========== 商品网格（v2：悬浮卡片 + 圆角图） ========== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.product-card {
    background: var(--card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s var(--ease-spring);
    border: 1px solid var(--border-light);
}
.product-card:active { transform: scale(0.97); }
.product-card .img {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--product-img-from) 0%, var(--product-img-to) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    font-size: 40px;
}
.product-card .info { padding: 12px 14px 14px; }
.product-card .info h4 { font-size: 14px; font-weight: 500; line-height: 1.4; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card .info .price { color: var(--gold); font-size: 18px; font-weight: 800; margin-top: 6px; font-variant-numeric: tabular-nums; }
.product-card .info .price small { font-size: 11px; font-weight: 500; }
.product-card .info .points { color: var(--text-tertiary); font-size: 11px; margin-top: 3px; }

/* ========== 商品大卡（featured） ========== */
.product-featured {
    background: var(--card);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.25s var(--ease-spring);
    border: 1px solid var(--border-light);
}
.product-featured:active { transform: scale(0.98); }
.product-featured .feat-img {
    width: 100%;
    aspect-ratio: 16/10;
    background: linear-gradient(135deg, var(--product-img-from) 0%, var(--product-img-to) 50%, var(--product-img-from) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    position: relative;
    overflow: hidden;
}
.product-featured .feat-img::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 44px;
    background: linear-gradient(transparent, var(--card));
}
.product-featured .feat-body {
    padding: 22px 24px;
}
.product-featured .feat-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--title-color);
    line-height: 1.4;
    letter-spacing: 0.5px;
}
.product-featured .feat-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 6px;
    line-height: 1.8;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-featured .feat-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
}
.product-featured .feat-price {
    font-size: 26px;
    font-weight: 800;
    color: var(--gold);
    font-variant-numeric: tabular-nums;
}
.product-featured .feat-price small {
    font-size: 13px;
    font-weight: 500;
}
.product-featured .feat-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 24px;
    border-radius: var(--radius-full);
    background: var(--grad-primary);
    color: var(--btn-text);
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    letter-spacing: 1px;
    transition: transform 0.2s var(--ease-spring), box-shadow 0.25s;
    box-shadow: 0 4px 12px rgba(44,110,82,0.25);
}
.product-featured .feat-btn:active { transform: scale(0.95); }
.product-featured .feat-tags {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}
.product-featured .feat-tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 500;
}
.product-featured .feat-tag.hot {
    background: var(--icon-bg-danger);
    color: var(--danger);
}
.product-featured .feat-tag.points {
    background: var(--icon-bg-gold);
    color: var(--gold-dark);
}
.product-featured .feat-tag.stock {
    background: var(--icon-bg-gold);
    color: var(--gold-dark);
}

/* ========== 空状态（v2：轻浮动动画） ========== */
.empty {
    text-align: center;
    padding: 56px 16px;
    color: var(--text-tertiary);
}
.empty svg { width: 64px; height: 64px; fill: var(--text-tertiary); margin-bottom: 12px; opacity: 0.6; animation: floatY 3s ease-in-out infinite; }
.empty p { font-size: 14px; }

.empty-state {
    text-align: center;
    padding: 56px 16px;
    color: var(--text-tertiary);
}
.empty-state div { font-size: 48px; margin-bottom: 12px; animation: floatY 3s ease-in-out infinite; }
.empty-state p { font-size: 14px; }
@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* ========== 工具类 ========== */
.text-primary { color: var(--gold) !important; }
.text-gold { color: var(--gold) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-success { color: var(--success) !important; }
.text-danger { color: var(--danger) !important; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.font-bold { font-weight: 700; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.px-16 { padding-left: 16px; padding-right: 16px; }
.py-16 { padding-top: 16px; padding-bottom: 16px; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.flex-1 { flex: 1; }
.truncate { overflow: hidden; text-decoration: ellipsis; white-space: nowrap; }
.rounded-full { border-radius: 50%; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.animate-in { animation: fadeIn 0.3s ease-out; }

.gold-text {
    color: var(--gold);
    letter-spacing: 2px;
}

.ink-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
    margin: 16px 0;
}

/* ========== 搜索栏（v2：胶囊 + 聚焦光环） ========== */
.search-bar {
    display: flex;
    align-items: center;
    background: var(--card);
    border-radius: var(--radius-full);
    padding: 0 18px;
    height: 42px;
    gap: 8px;
    border: 1.5px solid var(--border);
    transition: border-color 0.25s, box-shadow 0.25s;
}
.search-bar:focus-within { border-color: var(--primary-light); box-shadow: 0 0 0 4px rgba(76,142,112,0.12); }
.search-bar input { flex: 1; border: none; background: transparent; outline: none; font-size: 14px; color: var(--text); }
.search-bar input::placeholder { color: var(--text-tertiary); }
.search-bar svg { width: 18px; height: 18px; fill: var(--text-tertiary); flex-shrink: 0; }

/* ========== 签到周条 ========== */
.week-row { display: flex; gap: 6px; }
.week-row .day {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    border-radius: 12px;
    font-size: 12px;
}
.week-row .day.checked { background: var(--icon-bg-green); color: var(--success); }
.week-row .day.today { background: var(--icon-bg-gold); color: var(--gold); font-weight: 600; }
.week-row .day .num { font-size: 16px; font-weight: 600; display: block; }

/* ========== Tabs（v2：胶囊滑动指示条） ========== */
.tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
    background: var(--card);
}
.tabs a {
    flex: 1;
    text-align: center;
    padding: 13px 0;
    font-size: 14px;
    color: var(--text-secondary);
    position: relative;
    transition: color 0.25s;
}
.tabs a.active { color: var(--gold); font-weight: 700; }
.tabs a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 3px;
    background: var(--grad-primary);
    border-radius: 2px;
    animation: tabIn 0.3s var(--ease-spring);
}
@keyframes tabIn { from { width: 0; } to { width: 28px; } }

.divider { height: 1px; background: var(--border-light); margin: 0 16px; }

/* ========== 登录/注册页（v3：翡翠奢华版） ========== */
.auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    position: relative;
    overflow: hidden;
}
.auth-page::before {
    content: '';
    position: absolute;
    top: -180px;
    left: -60px;
    right: -60px;
    height: 480px;
    background: var(--grad-hero);
    border-radius: 0 0 46% 46% / 0 0 20% 20%;
    pointer-events: none;
}
.auth-page::after {
    content: '';
    position: absolute;
    top: -180px;
    left: -60px;
    right: -60px;
    height: 480px;
    background:
        radial-gradient(circle at 78% 42%, rgba(255,255,255,0.14) 0%, transparent 50%),
        radial-gradient(circle at 12% 88%, rgba(255,225,154,0.10) 0%, transparent 45%);
    border-radius: 0 0 46% 46% / 0 0 20% 20%;
    pointer-events: none;
}
.auth-header {
    padding: 46px 32px 34px;
    position: relative;
    z-index: 1;
    text-align: center;
}
.auth-logo {
    width: 62px;
    height: 62px;
    border-radius: 19px;
    background: linear-gradient(150deg, rgba(255,255,255,0.22), rgba(255,255,255,0.08));
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.32);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    box-shadow: 0 8px 24px rgba(18,48,36,0.32), inset 0 1px 0 rgba(255,255,255,0.35);
    animation: authFloat 5s ease-in-out infinite;
}
@keyframes authFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}
.auth-logo svg { width: 28px; height: 28px; fill: #FFE19A; filter: drop-shadow(0 2px 8px rgba(0,0,0,0.18)); }
.auth-brand-name {
    font-size: 12px;
    color: rgba(255,225,154,0.92);
    letter-spacing: 5px;
    font-weight: 500;
    margin-bottom: 6px;
}
.auth-title {
    font-size: 25px;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: 3px;
    font-family: var(--serif);
    margin-bottom: 10px;
    text-shadow: 0 2px 14px rgba(18,48,36,0.35);
}
.auth-title-rule {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 9px;
}
.auth-title-rule::before,
.auth-title-rule::after {
    content: '';
    width: 34px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,225,154,0.65), transparent);
}
.auth-title-rule i {
    width: 5px;
    height: 5px;
    background: #FFE19A;
    transform: rotate(45deg);
    box-shadow: 0 0 8px rgba(255,225,154,0.8);
}
.auth-subtitle {
    font-size: 14px;
    color: rgba(255,255,255,0.85);
    font-weight: 400;
    letter-spacing: 1.5px;
}
.auth-body {
    flex: 1;
    padding: 34px 26px 36px;
    position: relative;
    z-index: 1;
}
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: var(--card);
    border-radius: 24px;
    padding: 30px 24px;
    box-shadow: 0 18px 44px rgba(18,48,36,0.16), 0 2px 8px rgba(18,48,36,0.06);
    border: 1px solid rgba(255,255,255,0.9);
    position: relative;
    animation: authCardIn 0.7s var(--ease-out) both;
}
@keyframes authCardIn {
    from { opacity: 0; transform: translateY(26px); }
    to { opacity: 1; transform: translateY(0); }
}
.auth-field {
    position: relative;
    margin-bottom: 16px;
}
.auth-field .field-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    fill: var(--text-tertiary);
    transition: fill 0.2s;
    pointer-events: none;
    z-index: 2;
}
.auth-field input {
    width: 100%;
    height: 54px;
    padding: 0 16px 0 48px;
    border: 1.5px solid var(--border);
    border-radius: 16px;
    font-size: 15px;
    color: var(--text);
    background: var(--bg);
    outline: none;
    transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
    -webkit-appearance: none;
}
.auth-field input:focus {
    border-color: var(--primary-light);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(76,142,112,0.12);
}
.auth-field input:focus + .field-icon,
.auth-field input:focus ~ .field-icon {
    fill: var(--gold);
}
.auth-field input::placeholder {
    color: var(--text-tertiary);
    font-weight: 400;
}
.auth-field .toggle-pwd {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    fill: var(--text-tertiary);
    cursor: pointer;
    z-index: 2;
    padding: 4px;
    transition: fill 0.2s;
}
.auth-field .toggle-pwd:hover { fill: var(--text-secondary); }
.auth-btn {
    width: 100%;
    height: 56px;
    border: none;
    border-radius: 28px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    background: var(--grad-primary);
    color: var(--btn-text);
    letter-spacing: 4px;
    box-shadow: 0 8px 24px rgba(44,110,82,0.35), inset 0 1px 0 rgba(255,255,255,0.22);
    transition: transform 0.25s var(--ease-spring), box-shadow 0.3s;
    margin-top: 8px;
    position: relative;
    overflow: hidden;
}
.auth-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -80%;
    width: 50%;
    height: 100%;
    background: linear-gradient(105deg, transparent, rgba(255,255,255,0.25), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s var(--ease-out);
}
.auth-btn::after {
    content: '';
    position: absolute;
    left: 14px;
    right: 14px;
    top: 5px;
    height: 46%;
    background: linear-gradient(180deg, rgba(255,255,255,0.16), transparent);
    border-radius: 24px 24px 60% 60%;
    pointer-events: none;
}
.auth-btn:active {
    transform: scale(0.97);
    box-shadow: 0 4px 12px rgba(44,110,82,0.25);
}
.auth-btn:active::before { left: 130%; }
.auth-footer {
    text-align: center;
    padding: 0 32px 40px;
    position: relative;
    z-index: 1;
}
.auth-footer .link {
    color: var(--gold);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: opacity 0.2s;
}
.auth-footer .link:hover { opacity: 0.8; }
.auth-footer .link span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.auth-footer .link strong { font-weight: 700; }
.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
    color: var(--text-tertiary);
    font-size: 12px;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}
.auth-toast {
    padding: 14px 18px;
    border-radius: 14px;
    font-size: 14px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideDown 0.35s var(--ease-out);
}
.auth-toast svg { width: 18px; height: 18px; flex-shrink: 0; }
.auth-toast-danger { background: var(--icon-bg-danger); color: var(--danger); border: 1px solid rgba(178,63,44,0.3); }
.auth-toast-danger svg { fill: var(--danger); }
.auth-toast-success { background: var(--icon-bg-green); color: var(--success); border: 1px solid rgba(58,117,25,0.3); }
.auth-toast-success svg { fill: var(--success); }
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
/* 推荐人信息卡片 */
.ref-card {
    background: var(--grad-primary-soft);
    border: 1px solid rgba(44,110,82,0.15);
    border-radius: 16px;
    padding: 0;
    margin-bottom: 8px;
    overflow: hidden;
}
.ref-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(44,110,82,0.07);
    font-size: 13px;
    font-weight: 600;
    color: var(--gold);
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(44,110,82,0.08);
}
.ref-card-header svg {
    fill: var(--gold);
}
.ref-card-body {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
}
.ref-avatar {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: var(--grad-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(44,110,82,0.25);
}
.ref-info {
    flex: 1;
    min-width: 0;
}
.ref-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}
.ref-mobile {
    font-size: 13px;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}
.ref-check {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(58,117,25,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ref-check svg {
    fill: var(--success);
}
.auth-features {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
}
.auth-features .feat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.auth-features .feat-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: transform 0.3s var(--ease-spring);
}
.auth-features .feat:active .feat-icon { transform: scale(1.15) rotate(-6deg); }
.auth-features .feat-icon svg {
    width: 20px;
    height: 20px;
    fill: var(--primary-dark);
}
.auth-features .feat-icon.orange { background: var(--icon-bg-info); }
.auth-features .feat-icon.gold { background: var(--icon-bg-gold); }
.auth-features .feat-icon.gold svg { fill: var(--gold-dark); }
.auth-features .feat-icon.green { background: var(--icon-bg-green); }
.auth-features .feat-icon.orange svg { fill: #226479; }
.auth-features .feat span {
    font-size: 11px;
    color: var(--text-secondary);
    white-space: nowrap;
}

/* ========== 下拉/文本域（v2：圆角统一） ========== */
select {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    font-size: 15px;
    color: var(--text);
    background: var(--card);
    outline: none;
    transition: border-color 0.25s, box-shadow 0.25s;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='%23797D80'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}
select:focus { border-color: var(--primary-light); box-shadow: 0 0 0 4px rgba(76,142,112,0.12); }

textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    font-size: 15px;
    color: var(--text);
    background: var(--card);
    outline: none;
    resize: vertical;
    transition: border-color 0.25s, box-shadow 0.25s;
}
textarea:focus { border-color: var(--primary-light); box-shadow: 0 0 0 4px rgba(76,142,112,0.12); }
textarea::placeholder { color: var(--text-tertiary); }

/* ========== 惊喜彩蛋：页面加载淡入 + 减少动态偏好 ========== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
