/* ============================================================
   Candlewowo · Design Apple 覆盖层
   借鉴 Apple 设计纪律（保留暖金品牌令牌，不改变品牌色）：
   摄影优先 / 单一强调色 / 克制的层级 / 组件一致 / 留白节奏
   作用域：前台登录页 + 商品详情页
   引入顺序：位于 style.css / mobile.css 之后，可安全覆盖
   ============================================================ */

:root {
    --gold: #B8864F;
    --gold-dark: #9A6F3C;
    --shadow-focus: 0 0 0 4px rgba(184, 134, 79, 0.16);
    --ease-apple: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- 通用：按钮 pill 化 + 克制的微交互 ---------- */
.btn {
    border-radius: var(--radius-full) !important;
    transition: transform 0.18s var(--ease-apple),
        box-shadow 0.18s var(--ease-apple),
        background 0.18s ease !important;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.98); }

/* ============================================================
   登录页：毛玻璃 + 表单精致化
   ============================================================ */
.auth-card {
    background: rgba(255, 255, 255, 0.86);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    backdrop-filter: blur(24px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
    padding: 42px 38px;
}

.auth-brand { letter-spacing: 0.08em; }

.auth-sub {
    margin: 10px 0 26px;
    letter-spacing: 0.02em;
}

.auth-form .auth-field { margin-bottom: 18px; }

.auth-field label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.auth-field input {
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(184, 134, 79, 0.28);
    background: rgba(255, 255, 255, 0.75);
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.auth-field input:focus {
    border-color: var(--gold);
    box-shadow: var(--shadow-focus);
    background: #fff;
}

.auth-submit {
    padding: 14px;
    background: var(--gold) !important;
    box-shadow: 0 8px 22px rgba(184, 134, 79, 0.32);
    font-weight: 600;
}
.auth-submit:hover {
    background: var(--gold-dark) !important;
    transform: translateY(-1px);
}

.auth-remember { margin-bottom: 18px; }
.auth-footer { margin-top: 22px; }

/* ============================================================
   商品页：标题层级 / 价格突出 / 属性卡紧凑 / 分享按钮统一
   ============================================================ */
.detail-name {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

.detail-info .detail-price {
    font-family: var(--font-sans);
    font-weight: 700;
    letter-spacing: 0.01em;
    font-size: 26px;
    color: var(--gold-dark);
    line-height: 1.3;
}

.quantity-row { margin: 14px 0 18px; }
.quantity-row label { font-size: 13px; color: var(--text-secondary); }
.quantity-row input[type="number"] {
    border-radius: 10px;
    border-color: var(--border-light);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.quantity-row input[type="number"]:focus {
    border-color: var(--gold);
    box-shadow: var(--shadow-focus);
}

/* 属性卡：紧凑小格（Apple 式 chip 网格） */
.attr-cards { gap: 8px; }
.attr-card {
    border-radius: 14px;
    border: 1px solid var(--border-light);
    background: var(--bg-white);
    padding: 10px 12px;
    transition: box-shadow 0.2s, transform 0.2s;
}
.attr-card:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}
.attr-card-icon { color: var(--gold); opacity: 0.9; }
.attr-card-icon svg { width: 16px; height: 16px; }
.attr-card-label { font-size: 11px; color: var(--text-secondary); letter-spacing: 0.02em; }
.attr-card-value { font-size: 13px; font-weight: 600; color: var(--text-primary); }

/* 分享按钮：统一圆形小按钮 */
.share-row { margin-top: 26px; padding-top: 18px; }
.share-row .btn.btn-outline.btn-sm.share-btn {
    width: 38px;
    height: 38px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50% !important;
    border: 1px solid var(--border-light) !important;
    background: #fff !important;
    transition: transform 0.18s, box-shadow 0.18s, background 0.18s;
}
.share-row .btn.btn-outline.btn-sm.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

/* ============================================================
   移动端收敛：仅在超窄屏回退紧凑（不破坏 mobile.css 布局逻辑）
   ============================================================ */
@media (max-width: 480px) {
    .auth-card { padding: 32px 24px; }
    .auth-field input { padding: 11px 12px; font-size: 14px; }
    .share-row .btn.btn-outline.btn-sm.share-btn { width: 34px; height: 34px; }
}

/* ============================================================
   首页品牌标语区（hero-dark）重新设计
   ============================================================ */
.hero-dark {
    min-height: 60vh;
    padding: 100px 24px 70px;
}
.hero-tagline {
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--gold-dark);
    margin-bottom: 20px;
    opacity: 0.85;
}
.hero-dark h1 {
    font-family: var(--font-serif);
    font-size: 42px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--text-primary);
    margin-bottom: 20px;
    line-height: 1.3;
}
.hero-divider {
    width: 48px;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), var(--gold-dark));
    margin: 0 auto 24px;
    border-radius: 2px;
}
.hero-dark p {
    font-size: 15px;
    color: rgba(44, 36, 28, 0.68);
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.8;
}
@media (min-width: 768px) {
    .hero-dark h1 { font-size: 56px; }
    .hero-tagline { font-size: 13px; }
}

/* ===== 顶部导航重设计 v2（Mac 高分屏友好 · 高端氛围） ===== */
.site-header {
    height: 64px;
    padding: 0 28px;
}
.site-header .logo {
    font-size: 23px;
    letter-spacing: 0.05em;
}
.site-header .nav-links {
    gap: 34px;
    margin-left: 44px;
}
.site-header .nav-links a {
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.015em;
}
.site-header .nav-links a::after {
    bottom: -5px;
    border-radius: 2px;
}
.cart-icon {
    width: 40px;
    height: 40px;
}
.cart-icon svg {
    width: 24px;
    height: 24px;
}
.site-header .nav-cs svg {
    width: 20px;
    height: 20px;
}
.site-header .nav-cs .nav-cs-text {
    font-size: 15px;
    font-weight: 500;
}
.msg-trigger svg {
    width: 22px;
    height: 22px;
}
.member-avatar {
    width: 32px;
    height: 32px;
    font-size: 14px;
}
.member-name {
    font-size: 14px;
    font-weight: 500;
}
/* 移动端全屏菜单项：字号放大更易点按 */
@media (max-width: 768px) {
    .site-header .nav-links a {
        font-size: 22px;
    }
}

/* ===== 2026-09-06 移动端全屏菜单收敛：缩小字号与间距 ===== */
@media (max-width: 768px) {
    .site-header .nav-links {
        gap: 14px;
        padding: 24px;
    }
    .site-header .nav-links a {
        font-size: 16px;
    }
    .site-header .nav-links .member-name,
    .site-header .nav-links .nav-cs-text,
    .site-header .nav-links .msg-label,
    .site-header .nav-links .cart-label {
        font-size: 16px;
    }
    .site-header .nav-links .cart-icon svg,
    .site-header .nav-links .nav-cs svg,
    .site-header .nav-links .msg-trigger svg {
        width: 22px;
        height: 22px;
    }
    .site-header .nav-links .cart-badge,
    .site-header .nav-links .msg-trigger .cart-badge {
        font-size: 11px;
        min-width: 16px;
        height: 16px;
        line-height: 16px;
    }
}
/* ===== 2026-09-06 移动端菜单：header 下方下拉面板，不遮挡 logo ===== */
@media (max-width: 768px) {
    .site-header .nav-links {
        top: 64px;
        right: 0;
        left: auto;
        width: 72%;
        max-width: 280px;
        bottom: auto;
        height: auto;
        max-height: calc(100vh - 64px);
        overflow-y: auto;
        justify-content: flex-start;
        align-items: stretch;
        padding: 18px 24px 22px;
        border-radius: 18px 0 0 18px;
        box-shadow: 0 14px 34px rgba(0, 0, 0, 0.14);
        z-index: 999;
        transform: translateX(120%);
        transition: transform 0.35s ease;
    }
    .site-header .nav-links.open {
        transform: translateX(0);
    }
    .site-header .nav-links a {
        padding: 6px 0;
    }
}
/* ===== 2026-09-06 分享按钮正圆化：等宽高 + 图标统一 ===== */
@media (max-width: 768px) {
    .share-row .share-btn {
        width: 44px !important;
        height: 44px !important;
        min-height: 44px !important;
        padding: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 50% !important;
        box-sizing: border-box !important;
        line-height: 1 !important;
        flex: 0 0 auto !important;
    }
    .share-row .share-btn i,
    .share-row .share-btn svg {
        font-size: 18px !important;
        width: 18px !important;
        height: 18px !important;
        display: block;
        margin: 0;
    }
}
