/* ============================================
   NEXUS MALL - Mobile CSS
   Modern Glassmorphism Theme - Mobile First
   ============================================ */

/* CSS Variables */
:root {
    /* 主色 - 现代紫蓝渐变 */
    --primary: #6366F1;
    --primary-light: #818CF8;
    --primary-dark: #4F46E5;
    --primary-bg: rgba(99, 102, 241, 0.08);

    /* 背景 - 温暖的灰白 */
    --bg: #F8F9FB;
    --bg-white: #FFFFFF;
    --bg-card: #FFFFFF;
    --bg-elevated: #F3F4F6;
    --bg-glass: rgba(255, 255, 255, 0.85);

    /* 文字 */
    --text-primary: #111827;
    --text-secondary: #4B5563;
    --text-muted: #9CA3AF;
    --text-white: #FFFFFF;

    /* 边框 */
    --border: #E5E7EB;
    --border-light: #F3F4F6;

    /* 状态色 */
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --info: #3B82F6;

    /* 圆角 - 更现代 */
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-xl: 24px;

    /* 阴影 - 更柔和 */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.02);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.04);
    --shadow-lg: 0 12px 24px rgba(0,0,0,0.08), 0 4px 8px rgba(0,0,0,0.04);
    --shadow-glow: 0 4px 20px rgba(99, 102, 241, 0.2);

    /* 兼容旧变量名 */
    --bg-primary: var(--bg);
    --bg-secondary: var(--bg-elevated);
    --bg-input: #F9FAFB;
    --bg-hover: #F3F4F6;
    --accent-purple: var(--primary);
    --accent-purple-light: var(--primary-light);
    --accent-cyan: var(--primary-light);
    --accent-cyan-light: #C7D2FE;
    --border-color: var(--border);

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}

/* CSS Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-family);
    background: var(--bg);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

button {
    border: none;
    outline: none;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    background: none;
}

input, textarea, select {
    border: none;
    outline: none;
    font-family: inherit;
    font-size: inherit;
    background: none;
}

ul, ol {
    list-style: none;
}

/* App Container */
.app-container {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
    background: var(--bg);
}

/* ============================================
   Top Navigation Bar
   ============================================ */
.top-nav {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    height: 52px;
    background: var(--bg-glass);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 100;
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    transition: var(--transition);
}

.top-nav .nav-back {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 22px;
    border-radius: 50%;
    transition: var(--transition);
}

.top-nav .nav-back:active {
    background: var(--bg-elevated);
    transform: scale(0.92);
}

.top-nav .nav-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.3px;
}

.top-nav .nav-action {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 18px;
    border-radius: 50%;
    transition: var(--transition);
}

.top-nav .nav-action:active {
    background: var(--bg-elevated);
}

.top-nav .logo-text {
    font-size: 18px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
}

/* ============================================
   Bottom Tab Bar
   ============================================ */
/* 悬浮胶囊导航 */
.tab-bar {
    position: fixed;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 28px);
    max-width: 452px;
    height: 62px;
    padding: 0 6px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 2px;
    z-index: 100;
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 22px;
    box-shadow: 0 10px 30px rgba(17, 24, 39, 0.14), 0 2px 8px rgba(17, 24, 39, 0.06);
    transition: var(--transition);
}

.tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    height: 48px;
    color: var(--text-muted);
    font-size: 10px;
    gap: 3px;
    border-radius: 16px;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

.tab-item.active {
    color: var(--primary);
}

.tab-item .tab-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 34px;
    border-radius: 12px;
    font-size: 22px;
    line-height: 1;
    transition: var(--transition);
}

.tab-item .tab-icon svg {
    display: block;
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tab-item.active .tab-icon {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    box-shadow: 0 6px 14px rgba(99, 102, 241, 0.35);
    transform: translateY(-1px);
}

.tab-item .tab-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.2px;
    line-height: 1;
    transition: var(--transition);
}

.tab-item.active .tab-label {
    color: var(--primary-dark);
}

.tab-item .cart-badge {
    position: absolute;
    top: -1px;
    left: 50%;
    margin-left: 7px;
    min-width: 16px;
    height: 16px;
    background: linear-gradient(135deg, var(--danger), #F87171);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
    animation: badgePop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes badgePop {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

/* Page content with tab bar */
.page-content {
    padding-top: 52px;
    padding-bottom: 88px;
    min-height: 100vh;
}

.page-content.no-tab {
    padding-bottom: 0;
}

/* ============================================
   Search Bar
   ============================================ */
.search-bar {
    padding: 12px 16px;
    background: transparent;
}

.search-bar .search-input-wrap {
    display: flex;
    align-items: center;
    background: var(--bg-white);
    border-radius: 24px;
    padding: 10px 16px;
    gap: 10px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.search-bar .search-input-wrap:focus-within {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1), var(--shadow-sm);
}

.search-bar .search-icon {
    color: var(--text-muted);
    font-size: 16px;
    flex-shrink: 0;
}

.search-bar .search-input {
    flex: 1;
    color: var(--text-primary);
    font-size: 14px;
    background: transparent;
}

.search-bar .search-input::placeholder {
    color: var(--text-muted);
}

/* ============================================
   Banner / Swiper
   ============================================ */
.banner-section {
    padding: 12px 16px;
}

.banner-card {
    width: 100%;
    height: 160px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-glow);
}

.banner-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 220px;
    height: 220px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.banner-card::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -20%;
    width: 180px;
    height: 180px;
    background: rgba(255,255,255,0.06);
    border-radius: 50%;
    animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(10px, -10px) scale(1.05); }
}

.banner-text {
    text-align: center;
    z-index: 1;
}

.banner-text h2 {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.banner-text p {
    font-size: 13px;
    color: rgba(255,255,255,0.85);
}

/* ============================================
   Category Section
   ============================================ */
.category-section {
    padding: 8px 16px 16px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px 8px;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.category-item:active {
    transform: scale(0.92);
}

.category-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    border: none;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.category-item:active .category-icon {
    background: var(--bg-elevated);
    box-shadow: var(--shadow-md);
}

.category-item.active .category-icon {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    box-shadow: var(--shadow-glow);
}

.category-name {
    font-size: 11px;
    color: var(--text-secondary);
    text-align: center;
    white-space: nowrap;
    font-weight: 500;
}

.category-item.active .category-name {
    color: var(--primary);
    font-weight: 600;
}

/* ============================================
   Section Title
   ============================================ */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 16px 12px;
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 18px;
    background: linear-gradient(180deg, var(--primary), var(--primary-light));
    border-radius: 2px;
}

.section-more {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 2px;
    transition: var(--transition);
}

.section-more:active {
    color: var(--primary);
}

/* ============================================
   Product Grid - Horizontal Card Layout
   ============================================ */
.product-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 12px 16px;
}

.product-card {
    display: flex;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: none;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.product-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.product-card:active {
    transform: scale(0.98);
    box-shadow: var(--shadow-sm);
}

.product-card .product-img {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--bg-elevated), var(--bg));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: var(--text-muted);
    position: relative;
    overflow: hidden;
}

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

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

.product-card .product-tag {
    position: absolute;
    top: 6px;
    left: 6px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
    z-index: 2;
}

.product-card .product-info {
    flex: 1;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    gap: 8px;
}

.product-card .product-name {
    font-size: 15px;
    color: var(--text-primary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 500;
}

.product-card .product-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
}

.product-card .product-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--danger);
}

.product-card .product-price .yen {
    font-size: 13px;
}

.product-card .product-sold {
    font-size: 11px;
    color: var(--text-muted);
}

.product-card .product-add-cart {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
    transition: var(--transition);
}

.product-card .product-add-cart:active {
    transform: scale(0.9);
}

/* ============================================
   Product Detail Page
   ============================================ */
.product-detail-img {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--bg-white), var(--bg-elevated));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    color: var(--text-muted);
}

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

.product-detail-info {
    padding: 16px;
    background: var(--bg-white);
    margin-top: -1px;
}

.product-detail-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--danger);
    margin-bottom: 8px;
}

.product-detail-price .yen {
    font-size: 16px;
}

.product-detail-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.5;
    margin-bottom: 8px;
}

.product-detail-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.product-detail-section {
    padding: 16px;
    margin-top: 10px;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.product-detail-section .section-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.product-detail-section .section-text {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Quantity Selector */
.qty-selector {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
}

.qty-selector .qty-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 18px;
    background: var(--bg-elevated);
    transition: var(--transition);
}

.qty-selector .qty-btn:active {
    background: var(--border);
    transform: scale(0.95);
}

.qty-selector .qty-value {
    width: 40px;
    height: 32px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    background: var(--bg-white);
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
}

/* Detail Bottom Bar */
.detail-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    height: 60px;
    background: var(--bg-glass);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 10px;
    z-index: 100;
    border-top: 1px solid rgba(229, 231, 235, 0.5);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.04);
}

.detail-bottom-bar .bar-icon-btn {
    width: 44px;
    height: 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 10px;
    gap: 2px;
    position: relative;
    border-radius: 50%;
    transition: var(--transition);
}

.detail-bottom-bar .bar-icon-btn:active {
    background: var(--bg-elevated);
}

.detail-bottom-bar .bar-icon-btn .icon {
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-bottom-bar .bar-icon-btn .icon svg {
    display: block;
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.detail-bottom-bar .bar-icon-btn:active {
    color: var(--primary);
}

.detail-bottom-bar .btn-add-cart {
    flex: 1;
    height: 42px;
    border-radius: 21px;
    background: linear-gradient(135deg, #E7A6B4, #C96A7E);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(169, 78, 98, 0.28);
    transition: var(--transition);
}

.detail-bottom-bar .btn-add-cart:active {
    transform: scale(0.97);
    box-shadow: 0 2px 6px rgba(169, 78, 98, 0.2);
}

.detail-bottom-bar .btn-buy-now {
    flex: 1;
    height: 42px;
    border-radius: 21px;
    background: linear-gradient(135deg, #C96A7E, #A94E62);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(169, 78, 98, 0.35);
    transition: var(--transition);
}

.detail-bottom-bar .btn-buy-now:active {
    transform: scale(0.97);
    box-shadow: 0 2px 6px rgba(169, 78, 98, 0.25);
}

/* ============================================
   Cart Page
   ============================================ */
.cart-list {
    padding: 8px 12px;
}

.cart-item {
    display: flex;
    gap: 12px;
    padding: 14px;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    margin-bottom: 10px;
    border: none;
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: var(--transition);
}

.cart-item:active {
    transform: scale(0.98);
    box-shadow: var(--shadow-md);
}

.cart-item .cart-checkbox {
    position: absolute;
    top: 14px;
    left: -4px;
}

.cart-item .cart-img {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--bg-elevated), var(--bg));
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: var(--text-muted);
    overflow: hidden;
}

.cart-item .cart-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item .cart-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.cart-item .cart-name {
    font-size: 13px;
    color: var(--text-primary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 500;
}

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

.cart-item .cart-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--danger);
}

.cart-item .cart-price .yen {
    font-size: 11px;
}

.cart-item .cart-delete {
    color: var(--text-muted);
    font-size: 18px;
    padding: 4px;
    border-radius: 50%;
    transition: var(--transition);
}

.cart-item .cart-delete:active {
    background: var(--bg-elevated);
    color: var(--danger);
}

/* Cart Bottom Bar */
.cart-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    height: 60px;
    background: var(--bg-glass);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    display: flex;
    align-items: center;
    padding: 0 16px;
    z-index: 100;
    border-top: 1px solid rgba(229, 231, 235, 0.5);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.04);
}

.cart-bottom-bar .cart-select-all {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 13px;
}

.cart-bottom-bar .cart-total {
    flex: 1;
    text-align: right;
    padding-right: 12px;
}

.cart-bottom-bar .cart-total .total-label {
    font-size: 13px;
    color: var(--text-secondary);
}

.cart-bottom-bar .cart-total .total-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--danger);
}

.cart-bottom-bar .cart-total .total-price .yen {
    font-size: 12px;
}

.cart-bottom-bar .btn-checkout {
    height: 42px;
    padding: 0 24px;
    border-radius: 21px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    transition: var(--transition);
}

.cart-bottom-bar .btn-checkout:disabled {
    opacity: 0.5;
    box-shadow: none;
}

.cart-bottom-bar .btn-checkout:not(:disabled):active {
    transform: scale(0.97);
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.2);
}

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--text-muted);
    animation: fadeIn 0.5s ease;
}

.empty-state .empty-icon {
    font-size: 60px;
    margin-bottom: 16px;
    opacity: 0.4;
}

.empty-state .empty-text {
    font-size: 14px;
    margin-bottom: 20px;
}

.empty-state .btn-go-shop {
    height: 42px;
    padding: 0 24px;
    border-radius: 21px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    transition: var(--transition);
}

.empty-state .btn-go-shop:active {
    transform: scale(0.97);
}

/* ============================================
   Checkout Page - Template Selection
   ============================================ */
.order-summary {
    padding: 16px;
    margin: 12px;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    border: none;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.order-summary:hover {
    box-shadow: var(--shadow-md);
}

.order-summary .summary-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.order-summary .summary-item {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 13px;
}

.order-summary .summary-item .label {
    color: var(--text-secondary);
}

.order-summary .summary-item .value {
    color: var(--text-primary);
    font-weight: 500;
}

.order-summary .summary-total {
    display: flex;
    justify-content: space-between;
    padding-top: 10px;
    margin-top: 8px;
    border-top: 1px solid var(--border-light);
}

.order-summary .summary-total .total-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.order-summary .summary-total .total-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--danger);
}

/* Template Grid */
.template-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0 12px 16px;
}

.template-card {
    background: var(--bg-white);
    border-radius: 18px;
    min-height: 76px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #F1E4DC;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.template-card.selected {
    border-color: var(--primary);
    background: rgba(201, 106, 126, 0.06);
    transform: translateY(-1px);
}

.template-card:active {
    transform: scale(0.97);
}

.template-card .tpl-brand-bar {
    width: 3px;
    height: 28px;
    border-radius: 2px;
    flex-shrink: 0;
    margin-bottom: 0;
    transition: var(--transition);
}

.template-card.selected .tpl-brand-bar {
    height: 34px;
}

.template-card .tpl-icon {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    margin-bottom: 0;
    color: #fff;
}

.template-card .tpl-name {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0;
    padding-right: 22px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.template-card .tpl-desc {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.4;
}

.template-card .tpl-check {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid #F1E4DC;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    color: #fff;
    transition: var(--transition);
    background: var(--bg-white);
}

.template-card.selected .tpl-check {
    background: #C96A7E;
    border-color: #C96A7E;
    box-shadow: 0 2px 6px rgba(169, 78, 98, 0.3);
}

/* Checkout Bottom Bar */
.checkout-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    height: 64px;
    background: var(--bg-glass);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 12px;
    z-index: 100;
    border-top: 1px solid rgba(229, 231, 235, 0.5);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.04);
}

.checkout-bottom-bar .checkout-info {
    flex: 1;
}

.checkout-bottom-bar .checkout-info .pay-label {
    font-size: 12px;
    color: var(--text-secondary);
}

.checkout-bottom-bar .checkout-info .pay-amount {
    font-size: 20px;
    font-weight: 700;
    color: var(--danger);
}

.checkout-bottom-bar .btn-go-pay {
    height: 46px;
    padding: 0 32px;
    border-radius: 23px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
    transition: var(--transition);
}

.checkout-bottom-bar .btn-go-pay:disabled {
    opacity: 0.5;
    box-shadow: none;
}

.checkout-bottom-bar .btn-go-pay:not(:disabled):active {
    transform: scale(0.97);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.2);
}

/* ============================================
   Buttons
   ============================================ */
.btn-primary {
    height: 46px;
    border-radius: 23px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    border: none;
    cursor: pointer;
}

.btn-primary:active {
    transform: scale(0.97);
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.2);
}

.btn-secondary {
    height: 46px;
    border-radius: 23px;
    background: var(--bg-white);
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    border: 1px solid var(--border);
    transition: var(--transition);
    cursor: pointer;
}

.btn-secondary:active {
    background: var(--bg-elevated);
    border-color: var(--primary);
    color: var(--primary);
}

/* ============================================
   Toast Notification
   ============================================ */
.toast-container {
    position: fixed;
    top: 66.67%; /* 屏幕自上而下三分之二处 */
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.toast {
    background: rgba(0, 0, 0, 0.82);
    color: #fff;
    padding: 12px 24px;
    border-radius: 24px;
    font-size: 13px;
    animation: toastIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), toastOut 0.3s ease 2.2s forwards;
    border: 1px solid rgba(255, 255, 255, 0.08);
    white-space: nowrap;
    box-shadow: var(--shadow-lg);
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.toast.success {
    border-color: rgba(255, 255, 255, 0.08);
    color: #fff;
    background: rgba(0, 0, 0, 0.82);
}

.toast.error {
    border-color: rgba(255, 255, 255, 0.08);
    color: #fff;
    background: rgba(0, 0, 0, 0.82);
}

@keyframes toastIn {
    from { opacity: 0; transform: translateY(-20px) scale(0.9); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toastOut {
    from { opacity: 1; transform: translateY(0) scale(1); }
    to { opacity: 0; transform: translateY(-10px) scale(0.9); }
}

/* ============================================
   Loading Spinner
   ============================================ */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ============================================
   Checkbox Custom
   ============================================ */
.checkbox-custom {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
    background: var(--bg-white);
}

.checkbox-custom.checked {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.checkbox-custom.checked::after {
    content: '\2713';
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

/* ============================================
   Utility Classes
   ============================================ */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-purple { color: var(--primary); }
.text-cyan { color: var(--primary-light); }
.text-danger { color: var(--danger); }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.p-16 { padding: 16px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { flex-direction: column; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.flex-1 { flex: 1; }
.hidden { display: none !important; }

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, var(--bg-elevated) 25%, var(--border-light) 50%, var(--bg-elevated) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 0;
    height: 0;
}

/* Safe area */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .cart-bottom-bar,
    .detail-bottom-bar,
    .checkout-bottom-bar {
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* ============================================
   Animations
   ============================================ */
@keyframes slideIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

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

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Page transitions */
.page-transition {
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Card hover lift */
.card-lift {
    transition: var(--transition);
}

.card-lift:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Glass morphism effect */
.glass {
    background: var(--bg-glass);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   Homepage v2 - Refined Commerce（仅首页，body.page-home）
   ============================================ */
body.page-home {
    background: #F5F6F8;
}

/* 顶部导航：半透明毛玻璃 */
.page-home .top-nav {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    border-bottom: 1px solid rgba(17, 24, 39, 0.06);
    box-shadow: none;
}
.page-home .top-nav .logo-text {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: #0F172A;
}

/* 搜索框 */
.page-home .search-bar {
    padding: 10px 16px 0;
}
.page-home .search-bar .search-input-wrap {
    height: 44px;
    padding: 0 14px;
    border-radius: 22px;
    background: #fff;
    border: 1px solid #ECEEF2;
    box-shadow: 0 2px 8px rgba(17, 24, 39, 0.04);
}
.page-home .search-bar .search-input-wrap:focus-within {
    border-color: rgba(99, 102, 241, 0.55);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}
.page-home .search-bar .search-icon {
    display: inline-flex;
    width: 18px;
    height: 18px;
    color: #9AA1AD;
}
.page-home .search-bar .search-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}
.page-home .search-bar .search-input {
    font-size: 14px;
}

/* 主横幅：深色质感 + 单侧光晕 */
.page-home .banner-section {
    padding: 12px 16px 0;
}
.page-home .banner-card.home-banner {
    height: 168px;
    padding: 0 24px;
    justify-content: flex-start;
    border-radius: 20px;
    background:
        radial-gradient(120% 140% at 100% 0%, rgba(129, 140, 248, 0.9) 0%, rgba(99, 102, 241, 0) 58%),
        linear-gradient(120deg, #0F172A 0%, #1E1B4B 55%, #4F46E5 100%);
    box-shadow: 0 16px 32px -16px rgba(30, 27, 75, 0.6);
}
.page-home .banner-card.home-banner::before,
.page-home .banner-card.home-banner::after {
    animation: none;
    background: rgba(255, 255, 255, 0.07);
}
.page-home .banner-card.home-banner::before {
    width: 240px;
    height: 240px;
    top: -92px;
    right: -64px;
}
.page-home .banner-card.home-banner::after {
    width: 140px;
    height: 140px;
    left: auto;
    right: 36px;
    bottom: -72px;
}
.page-home .banner-text {
    text-align: left;
    padding-right: 24px;
}
.page-home .banner-text h2 {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-shadow: none;
    margin-bottom: 6px;
}
.page-home .banner-text p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.72);
    letter-spacing: 0.3px;
}
.page-home .banner-section .dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 8px;
}
.page-home .banner-section .dot {
    width: 6px;
    height: 6px;
    border-radius: 3px;
    background: #D7DAE0;
}
.page-home .banner-section .dot.active {
    width: 18px;
    background: var(--primary);
}

/* 配置了轮播图时的样式 */
.page-home #carousel-section {
    padding: 12px 16px 0 !important;
}
.page-home #carousel-section #carousel-container {
    border-radius: 20px !important;
    box-shadow: 0 12px 28px -16px rgba(17, 24, 39, 0.35);
}
.page-home #carousel-slides img {
    height: 168px !important;
    border-radius: 20px !important;
}

/* 分区标题 */
.page-home .section-header {
    padding: 18px 16px 10px;
}
.page-home .section-title {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.2px;
    color: #0F172A;
}
.page-home .section-title::before {
    width: 3px;
    height: 16px;
    border-radius: 2px;
    background: linear-gradient(180deg, #6366F1, #A5B4FC);
}

/* 排序栏：胶囊分段 + 吸顶 */
.page-home #sort-bar {
    position: sticky;
    top: 48px;
    z-index: 60;
    display: flex;
    gap: 8px;
    margin: 0;
    padding: 10px 16px 12px;
    overflow-x: auto;
    background: rgba(245, 246, 248, 0.92);
    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.page-home #sort-bar::-webkit-scrollbar {
    display: none;
}
.page-home .sort-tab {
    flex: 0 0 auto;
    padding: 7px 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #ECEEF2;
    color: #4B5563;
    font-size: 13px;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
}
.page-home .sort-tab.active {
    background: #111827;
    border-color: #111827;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 6px 14px -8px rgba(17, 24, 39, 0.55);
}

/* 商品：双列网格卡片 */
.page-home .product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 0 12px 20px;
}
.page-home .product-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04), 0 8px 20px -14px rgba(17, 24, 39, 0.2);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.page-home .product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px -12px rgba(17, 24, 39, 0.28);
}
.page-home .product-card:active {
    transform: scale(0.985);
    box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04);
}
.page-home .product-card .product-img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    background: #F3F4F6;
    font-size: 34px;
}
.page-home .product-card .product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.page-home .product-card:hover .product-img img {
    transform: none;
}
.page-home .product-card .product-tag {
    top: 8px;
    left: 8px;
    padding: 3px 7px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 600;
    background: rgba(17, 24, 39, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: none;
}
.page-home .product-card .product-info {
    padding: 10px 12px 12px;
    gap: 6px;
    justify-content: flex-start;
}
.page-home .product-card .product-name {
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.45;
    color: #1F2937;
    min-height: 39px;
}
.page-home .product-card .product-price-row {
    margin-top: 0;
    align-items: flex-end;
}
.page-home .product-card .product-price {
    font-size: 18px;
    font-weight: 700;
    color: #E11D48;
    letter-spacing: -0.2px;
}
.page-home .product-card .product-price .yen {
    font-size: 12px;
    margin-right: 1px;
}
.page-home .product-card .product-sold {
    font-size: 11px;
    color: #9AA1AD;
}

/* 加载与页脚 */
.page-home #load-more {
    padding: 8px 0 4px;
}
.page-home #load-more span {
    font-size: 12px;
    color: #9AA1AD;
}
.page-home #icp-bar {
    background: transparent !important;
    color: #A0A6B1 !important;
    padding-bottom: 96px !important;
}
.page-home #icp-bar a {
    color: #A0A6B1 !important;
}

/* 分类面板 */
.page-home #categoryPanel {
    border-radius: 22px 22px 0 0;
    box-shadow: 0 -12px 32px -16px rgba(17, 24, 39, 0.3);
}
.page-home .cat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.page-home .cat-cell {
    padding: 14px 8px;
    border-radius: 12px;
    background: #F5F6F8;
    border: 1px solid transparent;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: #1F2937;
    cursor: pointer;
    transition: all 0.2s ease;
}
.page-home .cat-cell.active {
    background: rgba(99, 102, 241, 0.08);
    border-color: rgba(99, 102, 241, 0.5);
    color: var(--primary);
    font-weight: 600;
}

/* ============================================
   Flower Theme - French Romance（未审核/访客首页，body.page-flower）
   ============================================ */
body.page-flower {
    --primary: #C96A7E;
    --primary-light: #E7A6B4;
    --primary-dark: #A94E62;
    --primary-bg: rgba(201, 106, 126, 0.08);

    --bg: #FFFBF7;
    --bg-white: #FFFFFF;
    --bg-card: #FFFFFF;
    --bg-elevated: #FBF1EC;
    --bg-input: #FDF7F3;
    --bg-hover: #FBF1EC;

    --text-primary: #33272A;
    --text-secondary: #6F5C60;
    --text-muted: #B3A29C;

    --border: #F1E4DC;
    --border-light: #F7EEE8;

    --shadow-sm: 0 1px 3px rgba(120, 80, 70, 0.05);
    --shadow-md: 0 6px 18px -10px rgba(120, 80, 70, 0.25);
    --shadow-lg: 0 16px 34px -18px rgba(120, 80, 70, 0.3);

    --font-serif: 'Songti SC', 'Noto Serif SC', 'Source Han Serif SC', 'STSong', 'SimSun', serif;

    background: #FFFBF7;
    color: #33272A;
}

/* 顶部导航 */
.page-flower .top-nav {
    background: rgba(255, 251, 247, 0.9);
    border-bottom: 1px solid #F7EEE8;
}
.page-flower .top-nav .logo-text {
    font-family: var(--font-serif);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 2px;
    color: #8F3F50;
}

/* 搜索 */
.page-flower .search-bar .search-input-wrap {
    background: #FFFFFF;
    border: 1px solid #F1E4DC;
    box-shadow: 0 3px 12px -8px rgba(120, 80, 70, 0.35);
}
.page-flower .search-bar .search-input-wrap:focus-within {
    border-color: rgba(201, 106, 126, 0.5);
    box-shadow: 0 0 0 3px rgba(201, 106, 126, 0.1);
}
.page-flower .search-bar .search-icon {
    color: #C6AEA6;
}
.page-flower .search-bar .search-input::placeholder {
    color: #C6AEA6;
}

/* 花艺主横幅：奶油粉 + 宋体标题 */
.page-flower .banner-card.home-banner {
    height: 172px;
    padding: 0 24px;
    background:
        radial-gradient(110% 120% at 88% 8%, rgba(255, 255, 255, 0.75) 0%, rgba(255, 255, 255, 0) 55%),
        linear-gradient(118deg, #FBEDE9 0%, #F3D7DA 52%, #E3B3BE 100%);
    box-shadow: 0 18px 34px -20px rgba(169, 78, 98, 0.45);
}
.page-flower .banner-card.home-banner::before {
    width: 230px;
    height: 230px;
    top: -86px;
    right: -58px;
    background: rgba(255, 255, 255, 0.42);
}
.page-flower .banner-card.home-banner::after {
    width: 150px;
    height: 150px;
    bottom: -76px;
    right: 42px;
    background: rgba(255, 255, 255, 0.22);
}
.page-flower .banner-text h2 {
    font-family: var(--font-serif);
    font-size: 27px;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: #7A2F42;
    text-shadow: none;
    margin-bottom: 8px;
}
.page-flower .banner-text p {
    font-size: 12.5px;
    letter-spacing: 1px;
    color: #A9707D;
}
.page-flower .banner-section .dot {
    background: #EBD3D2;
}
.page-flower .banner-section .dot.active {
    background: var(--primary);
}

/* 分组标题：宋体 + 香槟金装饰条 */
.page-flower .section-title {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #3B2B2F;
}
.page-flower .section-title::before {
    background: linear-gradient(180deg, #C8A96A, #E7D6AE);
}

/* 排序栏 */
.page-flower #sort-bar {
    background: rgba(255, 251, 247, 0.92);
}
.page-flower .sort-tab {
    background: #FFFFFF;
    border-color: #F1E4DC;
    color: #6F5C60;
}
.page-flower .sort-tab.active {
    background: #C96A7E;
    border-color: #C96A7E;
    color: #FFFFFF;
    box-shadow: 0 6px 16px -8px rgba(169, 78, 98, 0.6);
}

/* 商品卡：4:5 竖图 + 暖色阴影 */
.page-flower .product-card {
    border-radius: 18px;
    background: #FFFFFF;
    box-shadow: 0 1px 2px rgba(120, 80, 70, 0.04), 0 10px 22px -16px rgba(120, 80, 70, 0.35);
}
.page-flower .product-card .product-img {
    aspect-ratio: 4 / 5;
    background: #FBF1EC;
}
.page-flower .product-card .product-tag {
    background: rgba(200, 169, 106, 0.92);
    border-radius: 10px;
    letter-spacing: 0.5px;
}
.page-flower .product-card .product-name {
    font-size: 13.5px;
    color: #3B2B2F;
    min-height: 39px;
}
.page-flower .product-card .product-price {
    color: #B34A5E;
}
.page-flower .product-card .product-sold {
    color: #B9A9A3;
}

/* 加载与页脚 */
.page-flower #load-more span {
    color: #B9A9A3;
    letter-spacing: 0.5px;
}
.page-flower #icp-bar {
    background: transparent !important;
    color: #C6B6B0 !important;
}
.page-flower #icp-bar a {
    color: #C6B6B0 !important;
}

/* 底部导航：奶油底 + 玫瑰激活 */
.page-flower .tab-bar {
    background: rgba(255, 251, 247, 0.94);
    border-top: 1px solid #F7EEE8;
}
.page-flower .tab-item {
    color: #B3A29C;
}
.page-flower .tab-item.active {
    color: #A94E62;
}
.page-flower .tab-item.active .tab-icon {
    background: linear-gradient(135deg, #D98C9C, #C96A7E);
    color: #FFFFFF;
    box-shadow: 0 8px 16px -8px rgba(169, 78, 98, 0.7);
}
.page-flower .tab-bar .cart-badge {
    background: #C96A7E;
}

/* 分类面板 */
.page-flower #categoryPanel {
    background: #FFFBF7;
    box-shadow: 0 -14px 34px -18px rgba(120, 80, 70, 0.4);
}
.page-flower #categoryPanel > div:first-child {
    border-bottom-color: #F7EEE8;
}
.page-flower .cat-cell {
    background: #FBF1EC;
    color: #3B2B2F;
}
.page-flower .cat-cell.active {
    background: rgba(201, 106, 126, 0.1);
    border-color: rgba(201, 106, 126, 0.55);
    color: #A94E62;
}

/* ============================================
   FLOWER SKIN - Shared Components（全站手机端通用组件）
   仅覆盖视觉：颜色/圆角/字体/阴影，不动布局与交互
   ============================================ */

/* 基础表面 */
.page-flower .app-container,
.page-flower .page-content,
.page-flower .loading-overlay {
    background: #FFFBF7;
}

/* 顶部导航标题 */
.page-flower .top-nav .nav-title {
    font-family: var(--font-serif);
    letter-spacing: 1px;
    color: #3B2B2F;
}

/* 主按钮：玫瑰渐变 + 暖色投影（替换原紫色阴影） */
.page-flower .btn-primary,
.page-flower .cart-bottom-bar .btn-checkout,
.page-flower .checkout-bottom-bar .btn-go-pay,
.page-flower .empty-state .btn-go-shop,
.page-flower .btn-auth {
    background: linear-gradient(135deg, #D98C9C 0%, #C96A7E 58%, #A94E62 100%);
    letter-spacing: 0.4px;
    box-shadow: 0 10px 22px -12px rgba(169, 78, 98, 0.6);
}
.page-flower .btn-primary:active,
.page-flower .detail-bottom-bar .btn-add-cart:active,
.page-flower .cart-bottom-bar .btn-checkout:not(:disabled):active,
.page-flower .checkout-bottom-bar .btn-go-pay:not(:disabled):active,
.page-flower .empty-state .btn-go-shop:active {
    box-shadow: 0 4px 12px -6px rgba(169, 78, 98, 0.5);
}

/* 次按钮 */
.page-flower .btn-secondary {
    background: #FFFFFF;
    border-color: #F1E4DC;
    color: #6F5C60;
    box-shadow: 0 4px 14px -12px rgba(120, 80, 70, 0.5);
}
.page-flower .btn-secondary:active {
    background: #FBF1EC;
    border-color: rgba(201, 106, 126, 0.55);
    color: #A94E62;
}

/* 底部操作栏：奶油玻璃底 */
.page-flower .detail-bottom-bar,
.page-flower .cart-bottom-bar,
.page-flower .checkout-bottom-bar {
    background: rgba(255, 251, 247, 0.94);
    border-top: 1px solid #F7EEE8;
    box-shadow: 0 -10px 26px -20px rgba(120, 80, 70, 0.5);
}
.page-flower .detail-bottom-bar .bar-icon-btn {
    color: #6F5C60;
}
.page-flower .detail-bottom-bar .bar-icon-btn:active {
    background: #FBF1EC;
}

/* 商品详情 */
.page-flower .product-detail-img {
    background: linear-gradient(135deg, #FBF1EC, #F7EEE8);
}
.page-flower .product-detail-info {
    background: #FFFFFF;
}
.page-flower .product-detail-price,
.page-flower .cart-item .cart-price,
.page-flower .cart-bottom-bar .total-price,
.page-flower .order-summary .total-value,
.page-flower .checkout-bottom-bar .pay-amount {
    color: #B34A5E;
}
.page-flower .product-detail-name,
.page-flower .product-detail-section .section-label {
    color: #3B2B2F;
}
.page-flower .product-detail-section {
    background: #FFFFFF;
    border-radius: 18px;
    box-shadow: 0 1px 2px rgba(120, 80, 70, 0.04), 0 12px 26px -20px rgba(120, 80, 70, 0.45);
}
.page-flower .product-detail-section .section-label {
    font-family: var(--font-serif);
    letter-spacing: 0.5px;
}

/* 数量选择器 */
.page-flower .qty-selector {
    border-color: #F1E4DC;
    background: #FFFFFF;
    box-shadow: 0 2px 10px -8px rgba(120, 80, 70, 0.5);
}
.page-flower .qty-selector .qty-btn {
    background: #FBF1EC;
    color: #A94E62;
}
.page-flower .qty-selector .qty-btn:active {
    background: #F3D7DA;
}
.page-flower .qty-selector .qty-value {
    background: #FFFFFF;
    border-left-color: #F1E4DC;
    border-right-color: #F1E4DC;
}

/* 购物车 */
.page-flower .cart-item {
    background: #FFFFFF;
    border-radius: 18px;
    box-shadow: 0 1px 2px rgba(120, 80, 70, 0.04), 0 10px 22px -18px rgba(120, 80, 70, 0.4);
}
.page-flower .cart-item:active {
    box-shadow: 0 8px 20px -16px rgba(120, 80, 70, 0.5);
}
.page-flower .cart-item .cart-img {
    background: linear-gradient(135deg, #FBF1EC, #F7EEE8);
    border-radius: 14px;
}
.page-flower .cart-item .cart-delete:active {
    background: #FBF1EC;
    color: #C96A7E;
}
.page-flower .cart-bottom-bar .cart-total .total-label {
    color: #6F5C60;
}

/* 结算 */
.page-flower .order-summary {
    background: #FFFFFF;
    border-radius: 18px;
    box-shadow: 0 1px 2px rgba(120, 80, 70, 0.04), 0 12px 26px -20px rgba(120, 80, 70, 0.45);
}
.page-flower .order-summary .summary-title {
    font-family: var(--font-serif);
    letter-spacing: 0.5px;
    color: #3B2B2F;
}
.page-flower .order-summary .summary-total {
    border-top-color: #F7EEE8;
}
.page-flower .template-card {
    background: #FFFFFF;
    border-color: #F7EEE8;
    border-radius: 18px;
}
.page-flower .template-card.selected {
    background: rgba(201, 106, 126, 0.06);
    border-color: #C96A7E;
    box-shadow: 0 10px 24px -16px rgba(169, 78, 98, 0.55);
}
.page-flower .template-card .tpl-name {
    color: #3B2B2F;
}
.page-flower .template-card .tpl-check {
    background: #FFFFFF;
    border-color: #F1E4DC;
}
.page-flower .template-card.selected .tpl-check {
    background: #C96A7E;
    border-color: #C96A7E;
    box-shadow: 0 2px 8px rgba(169, 78, 98, 0.35);
}

/* 自定义勾选 */
.page-flower .checkbox-custom {
    background: #FFFFFF;
    border-color: #E7D6D0;
}
.page-flower .checkbox-custom.checked {
    background: linear-gradient(135deg, #D98C9C, #C96A7E);
    border-color: #C96A7E;
    box-shadow: 0 2px 8px rgba(169, 78, 98, 0.35);
}

/* 空状态 */
.page-flower .empty-state {
    color: #B3A29C;
}
.page-flower .empty-state .empty-icon {
    opacity: 0.32;
}
.page-flower .empty-state .empty-text {
    font-family: var(--font-serif);
    letter-spacing: 0.5px;
}

/* Toast / Loading */
.page-flower .toast {
    background: rgba(51, 39, 42, 0.88);
    box-shadow: 0 14px 30px -18px rgba(51, 39, 42, 0.6);
}
.page-flower .spinner {
    border-color: #F1E4DC;
    border-top-color: #C96A7E;
}

/* 弹窗 */
.page-flower .modal-content {
    background: #FFFFFF;
    box-shadow: 0 -18px 44px -26px rgba(120, 80, 70, 0.5);
}
.page-flower .modal-header {
    border-bottom-color: #F7EEE8;
}
.page-flower .modal-title {
    font-family: var(--font-serif);
    letter-spacing: 0.5px;
    color: #3B2B2F;
}
.page-flower .modal-close {
    color: #B3A29C;
}

/* 表单 */
.page-flower .form-label {
    color: #6F5C60;
    letter-spacing: 0.3px;
}
.page-flower .form-input {
    background: #FBF1EC;
    color: #33272A;
    border-color: transparent;
}
.page-flower .form-input::placeholder {
    color: #C6AEA6;
}
.page-flower .form-input:focus {
    background: #FFFFFF;
    border-color: rgba(201, 106, 126, 0.55);
    box-shadow: 0 0 0 4px rgba(201, 106, 126, 0.1);
}
.page-flower .form-input:focus + .form-input-icon,
.page-flower .form-input-wrap:focus-within .form-input-icon {
    color: #C96A7E;
}
.page-flower .modal-btn-submit {
    background: linear-gradient(135deg, #D98C9C 0%, #C96A7E 58%, #A94E62 100%);
    letter-spacing: 0.4px;
    box-shadow: 0 10px 22px -12px rgba(169, 78, 98, 0.6);
}

/* ============================================
   FLOWER SKIN - Layout Refine（布局微调：留白/间距/圆角）
   只调视觉节奏，不改栅格列数、不增删区块
   ============================================ */

/* 左右留白 16 → 18，商品网格间距 12 → 14 */
.page-flower .search-bar,
.page-flower .banner-section,
.page-flower .section-header,
.page-flower .category-section {
    padding-left: 18px;
    padding-right: 18px;
}
.page-flower .product-grid {
    gap: 14px;
    padding: 0 18px 20px;
}
.page-flower .cart-list {
    padding: 10px 16px;
}
.page-flower .template-grid {
    gap: 14px;
    padding: 0 16px 16px;
}

/* 主按钮：1px 内高光，提升立体感 */
.page-flower .btn-primary,
.page-flower .btn-auth,
.page-flower .modal-btn-submit,
.page-flower .btn-pay,
.page-flower .detail-bottom-bar .btn-add-cart,
.page-flower .cart-bottom-bar .btn-checkout,
.page-flower .checkout-bottom-bar .btn-go-pay,
.page-flower .empty-state .btn-go-shop {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 10px 22px -12px rgba(169, 78, 98, 0.55);
}

/* 卡片圆角统一 18px */
.page-flower .btn-auth,
.page-flower .btn-pay,
.page-flower .modal-btn-submit {
    border-radius: 18px;
}
.page-flower .pay-methods,
.page-flower .order-info {
    border-radius: 18px;
}

/* 底部导航：暖色投影 */
.page-flower .tab-bar {
    box-shadow: 0 12px 30px -8px rgba(120, 80, 70, 0.24), 0 2px 8px rgba(120, 80, 70, 0.08);
}

/* 列表分隔线统一暖色 */
.page-flower .cart-item + .cart-item,
.page-flower .result-card .result-row,
.page-flower .order-info .row,
.page-flower .detail-specs .spec-row {
    border-color: #F7EEE8;
}
