* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f5f7fa;
    min-height: 100vh;
    font-size: 14px;
    padding-bottom: calc(80px + env(safe-area-inset-bottom));
    color: #333;
}

/* 通用容器 */
.page-container {
    padding-bottom: calc(80px + env(safe-area-inset-bottom));
    min-height: 100vh;
    box-sizing: border-box;
}

/* 头部店招 - 纯色玻璃风 */
.shop-header {
    position: relative;
    width: 100%;
    min-height: 86px;
    overflow: hidden;
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-bottom: none;
}

.shop-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.shop-header-content {
    position: relative;
    z-index: 10;
    padding: 16px 20px;
    padding-top: calc(16px + env(safe-area-inset-top));
    display: flex;
    align-items: center;
}

.shop-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.shop-logo-wrapper {
    position: relative;
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

.shop-logo, .shop-logo-default {
    position: absolute;
    top: 0;
    left: 0;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 
        0 1px 2px rgba(0,0,0,0.08),
        0 4px 12px rgba(0,0,0,0.12);
    object-fit: cover;
}

.shop-logo-default {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    background: rgba(255, 255, 255, 0.95);
    color: #6366f1;
}

.shop-logo {
    display: none;
    z-index: 1;
}

.shop-detail {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.shop-name {
    font-size: 17px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.shop-app-name {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.contact-btn {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    margin-top: env(safe-area-inset-top);
    z-index: 10;
    background: rgba(255, 255, 255, 0.95);
    padding: 8px 14px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
    border: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.contact-icon {
    font-size: 14px;
}

/* 轮播图 */
.swiper {
    width: calc(100% - 30px);
    height: 180px;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    margin: 15px;
}

.swiper-wrapper {
    display: flex;
    transition: transform 0.3s ease;
}

.swiper-slide {
    flex-shrink: 0;
    width: 100%;
    position: relative;
}

.swiper-slide img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    object-position: center;
    background: #f5f7fa;
}

.banner-title {
    position: absolute;
    bottom: 30px;
    left: 15px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    pointer-events: none;
    z-index: 10;
}

.swiper-pagination {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}

.swiper-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    transition: all 0.3s;
}

.swiper-dot.active {
    width: 16px;
    border-radius: 3px;
    background: white;
}

/* 轮播左右箭头 */
.swiper-prev,
.swiper-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.3s;
    z-index: 20;
    user-select: none;
}

.swiper-prev:hover,
.swiper-next:hover {
    background: rgba(0, 0, 0, 0.5);
}

.swiper-prev {
    left: 10px;
}

.swiper-next {
    right: 10px;
}

/* 分类导航 */
.category-nav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    padding: 15px;
    background: white;
    margin-bottom: 10px;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.category-icon {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    overflow: hidden;
}

.category-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    padding: 5px;
}

.category-name {
    font-size: 12px;
    color: #666;
}

/* 商品列表 */
.product-section {
    background: white;
    margin-bottom: 10px;
    padding: 15px;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title::before {
    content: '';
    width: 3px;
    height: 16px;
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    border-radius: 2px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    cursor: pointer;
    transition: transform 0.2s;
}

.product-card:active {
    transform: scale(0.98);
}

.product-img {
    width: 100%;
    height: 160px;
    object-fit: contain;
    object-position: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 10px;
}

.product-info {
    padding: 10px;
}

.product-name {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 5px;
    flex-wrap: wrap;
}

.price-original {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
}

.price-current {
    font-size: 18px;
    font-weight: 600;
    color: #e74c3c;
}

.price-member {
    font-size: 11px;
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
}

/* 底部导航 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    display: flex;
    padding: 8px 0;
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
    box-shadow: 0 -2px 10px rgba(0,0,0,0.06);
    z-index: 1000;
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
    position: relative;
}

.nav-item.active {
    color: #4a90e2;
}

.nav-icon {
    font-size: 22px;
    position: relative;
}

.nav-badge {
    position: absolute;
    top: 2px;
    right: 50%;
    transform: translateX(15px);
    background: #e74c3c;
    color: white;
    font-size: 10px;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    z-index: 10;
}

.nav-text {
    font-size: 11px;
}

/* 加载动画 */
.loading-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: #999;
}

.loading-icon {
    font-size: 32px;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Toast提示 */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.75);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    z-index: 9999;
    font-size: 14px;
    max-width: 80%;
    text-align: center;
}

/* 返回按钮 */
.back-btn {
    position: fixed;
    top: calc(15px + env(safe-area-inset-top));
    left: 15px;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    font-size: 18px;
}

/* 登录页 */
.login-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    padding: 20px;
    padding-top: calc(40px + env(safe-area-inset-top));
}

.login-logo {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

.login-logo .logo-icon {
    font-size: 60px;
    margin-bottom: 15px;
}

.login-logo h1 {
    font-size: 24px;
    font-weight: 600;
}

.login-form-wrap {
    background: white;
    border-radius: 16px;
    padding: 30px 25px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.login-tabs {
    display: flex;
    margin-bottom: 25px;
    border-bottom: 2px solid #f0f0f0;
}

.login-tab {
    flex: 1;
    text-align: center;
    padding: 10px;
    font-size: 15px;
    color: #999;
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
}

.login-tab.active {
    color: #4a90e2;
    font-weight: 600;
}

.login-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: #4a90e2;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group .input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #999;
}

.form-input {
    width: 100%;
    height: 50px;
    padding: 0 15px 0 45px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    transition: border-color 0.3s;
    outline: none;
}

.form-input:focus {
    border-color: #4a90e2;
}

.submit-btn {
    width: 100%;
    height: 50px;
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.submit-btn:active {
    opacity: 0.8;
}

/* 分类页 */
.category-page {
    display: flex;
    height: calc(100vh - 70px);
    overflow: hidden;
}

.category-sidebar {
    width: 90px;
    background: #f8f9fa;
    overflow-y: auto;
    flex-shrink: 0;
}

.category-sidebar-item {
    padding: 15px 10px;
    text-align: center;
    font-size: 12px;
    color: #666;
    cursor: pointer;
    border-left: 3px solid transparent;
    transition: all 0.2s;
}

.category-sidebar-item.active {
    background: white;
    color: #4a90e2;
    font-weight: 600;
    border-left-color: #4a90e2;
}

.category-content {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: white;
}

.category-product-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.category-product-item {
    display: flex;
    gap: 12px;
    background: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
    padding: 10px;
}

.category-product-img {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.category-product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.category-product-name {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.category-product-price {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

/* 购物车 */
.cart-header {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    padding: 15px 20px;
    padding-top: calc(15px + env(safe-area-inset-top));
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

.cart-header h1 {
    font-size: 18px;
    font-weight: 600;
}

.cart-edit-btn {
    font-size: 14px;
    cursor: pointer;
}

.cart-list {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.cart-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    color: white;
    flex-shrink: 0;
    transition: all 0.2s;
}

.cart-checkbox.checked {
    background: #4a90e2;
    border-color: #4a90e2;
}

.cart-item-img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.cart-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cart-item-name {
    font-size: 14px;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.cart-item-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-item-price {
    font-size: 16px;
    font-weight: 600;
    color: #e74c3c;
}

.cart-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-quantity button {
    width: 28px;
    height: 28px;
    border: 1px solid #ddd;
    background: #f8f9fa;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-quantity button:active {
    background: #e9ecef;
}

.cart-quantity span {
    min-width: 30px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
}

.cart-delete-btn {
    color: #e74c3c;
    font-size: 12px;
    cursor: pointer;
}

.cart-bottom-bar {
    position: fixed;
    bottom: 70px;
    left: 0;
    right: 0;
    background: white;
    display: flex;
    align-items: center;
    padding: 12px 15px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.06);
    z-index: 999;
}

.cart-select-all {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.cart-total {
    flex: 1;
    text-align: right;
    padding-right: 15px;
}

.cart-total-text {
    font-size: 12px;
    color: #666;
}

.cart-total-price {
    font-size: 18px;
    font-weight: 600;
    color: #e74c3c;
}

.cart-checkout-btn {
    padding: 10px 25px;
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.cart-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.cart-empty-icon {
    font-size: 60px;
    margin-bottom: 15px;
}

/* 个人中心 */
.mine-header {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    padding: 20px;
    padding-top: calc(20px + env(safe-area-inset-top));
    color: white;
}

.mine-user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.mine-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    flex-shrink: 0;
}

.mine-user-name {
    flex: 1;
}

.mine-user-name h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.mine-member-level {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
}

.mine-stats {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.mine-stat-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.mine-stat-value {
    font-size: 20px;
    font-weight: 600;
}

.mine-stat-label {
    font-size: 12px;
    opacity: 0.9;
}

.member-card {
    margin: -10px 15px 15px;
    background: white;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.member-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.member-level-display {
    display: flex;
    align-items: center;
    gap: 10px;
}

.member-level-icon {
    font-size: 28px;
}

.member-level-name {
    font-size: 16px;
    font-weight: 600;
    color: #f39c12;
}

.member-discount {
    font-size: 12px;
    color: #666;
}

.member-next-level {
    font-size: 12px;
    color: #999;
}

.member-progress-wrap {
    margin-bottom: 10px;
}

.member-progress-bar {
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 5px;
}

.member-progress {
    height: 100%;
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    border-radius: 4px;
    transition: width 0.3s;
}

.member-progress-text {
    font-size: 12px;
    color: #999;
    text-align: right;
}

.member-upgrade-btn {
    width: 100%;
    margin-top: 10px;
    padding: 10px 15px;
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    animation: pulse 2s infinite;
}

.member-upgrade-btn:active {
    transform: scale(0.98);
    opacity: 0.9;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(243, 156, 18, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(243, 156, 18, 0);
    }
}

/* 菜单列表 */
.menu-section {
    background: white;
    margin: 10px 15px;
    border-radius: 12px;
    overflow: hidden;
}

.menu-title {
    padding: 15px;
    font-size: 14px;
    color: #999;
    border-bottom: 1px solid #f0f0f0;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 15px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item:active {
    background: #f8f9fa;
}

.menu-icon {
    width: 28px;
    font-size: 20px;
    margin-right: 12px;
    text-align: center;
}

.menu-text {
    flex: 1;
    font-size: 14px;
}

.menu-arrow {
    color: #ccc;
    font-size: 16px;
}

.menu-badge {
    background: #e74c3c;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 8px;
    margin-right: 8px;
}

/* 订单模块 */
.order-section {
    background: white;
    margin: 10px 15px;
    border-radius: 12px;
    overflow: hidden;
}

.order-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.order-header h3 {
    font-size: 15px;
    font-weight: 600;
}

.order-see-all {
    font-size: 12px;
    color: #999;
    cursor: pointer;
}

.order-tabs {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.order-tab {
    flex: 1;
    text-align: center;
    font-size: 12px;
    color: #666;
    cursor: pointer;
    position: relative;
}

.order-tab.active {
    color: #4a90e2;
    font-weight: 600;
}

.order-tab-badge {
    position: absolute;
    top: -5px;
    right: 50%;
    transform: translateX(20px);
    background: #e74c3c;
    color: white;
    font-size: 10px;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.order-list {
    padding: 15px;
    padding-bottom: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.order-card {
    background: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
}

.order-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: white;
    border-bottom: 1px solid #f0f0f0;
}

.order-no {
    font-size: 12px;
    color: #999;
}

.order-status {
    font-size: 13px;
    color: #4a90e2;
    font-weight: 500;
}

.order-product-item {
    display: flex;
    gap: 12px;
    padding: 12px 15px;
    background: white;
    border-bottom: 1px solid #f0f0f0;
}

.order-product-img {
    width: 70px;
    height: 70px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.order-product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.order-product-name {
    font-size: 13px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.order-product-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.order-product-price {
    font-size: 15px;
    font-weight: 600;
    color: #e74c3c;
}

.order-product-quantity {
    font-size: 13px;
    color: #999;
}

.order-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: white;
}

.order-total-info {
    font-size: 13px;
    color: #666;
}

.order-total-price {
    font-size: 15px;
    font-weight: 600;
    color: #e74c3c;
}

.order-actions {
    display: flex;
    gap: 10px;
}

.order-action-btn {
    padding: 6px 15px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 15px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.order-action-btn.primary {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: white;
    border-color: transparent;
}

.order-action-btn.danger {
    color: #e74c3c;
    border-color: #e74c3c;
}

/* 优惠券 */
.coupon-list {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.coupon-card {
    display: flex;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.coupon-left {
    width: 100px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px 10px;
    position: relative;
}

.coupon-left::before,
.coupon-left::after {
    content: '';
    position: absolute;
    right: -6px;
    width: 12px;
    height: 12px;
    background: #f5f7fa;
    border-radius: 50%;
}

.coupon-left::before {
    top: -6px;
}

.coupon-left::after {
    bottom: -6px;
}

.coupon-value {
    font-size: 28px;
    font-weight: 700;
}

.coupon-value small {
    font-size: 14px;
}

.coupon-condition {
    font-size: 11px;
    opacity: 0.9;
    margin-top: 5px;
}

.coupon-right {
    flex: 2;
    padding: 15px;
    position: relative;
    min-height: 80px;
    display: flex;
    flex-direction: column;
}

.coupon-name {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 3px;
    padding-right: 70px;
}

.coupon-merchant {
    font-size: 11px;
    color: #f39c12;
    background: #fef8e6;
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    margin-bottom: 4px;
    align-self: flex-start;
}

.coupon-validity {
    font-size: 11px;
    color: #999;
    flex: 1;
    padding-right: 70px;
}

.coupon-use-btn {
    position: absolute;
    right: 15px;
    bottom: 15px;
    padding: 6px 15px;
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 12px;
    cursor: pointer;
    min-width: 55px;
    text-align: center;
}

.coupon-card.used .coupon-left {
    background: #ccc;
}

.coupon-card.expired .coupon-left {
    background: #999;
}

.coupon-card.used .coupon-use-btn,
.coupon-card.expired .coupon-use-btn {
    background: #ccc;
}

/* 地址管理 */
.address-list {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.address-card {
    background: white;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.address-info {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.address-main {
    flex: 1;
}

.address-name {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.address-default-tag {
    font-size: 11px;
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
}

.address-detail {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

.address-actions {
    display: flex;
    gap: 20px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.address-action {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
}

.address-action.primary {
    color: #4a90e2;
}

.address-action.danger {
    color: #e74c3c;
}

.add-address-btn {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 40px;
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.4);
    z-index: 999;
}

/* 商品详情 */
.detail-page {
    padding-bottom: 60px;
}

.detail-swiper {
    width: 100%;
    height: 300px;
    position: relative;
    overflow: hidden;
    background: white;
}

.detail-swiper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.detail-info {
    background: white;
    padding: 15px;
    margin-bottom: 10px;
}

.detail-price-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.detail-price {
    font-size: 26px;
    font-weight: 700;
    color: #e74c3c;
}

.detail-price-original {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
}

.detail-member-tag {
    font-size: 12px;
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
}

.detail-member-price {
    font-size: 12px;
    color: #f39c12;
    margin-left: 5px;
}

.detail-sales {
    font-size: 12px;
    color: #999;
}

.detail-name {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 10px;
}

.detail-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

.detail-section {
    background: white;
    padding: 15px;
    margin-bottom: 10px;
}

.detail-section-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.detail-images {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.detail-images img {
    width: 100%;
    border-radius: 8px;
}

.detail-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    display: flex;
    align-items: center;
    padding: 10px 15px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
    box-shadow: 0 -2px 10px rgba(0,0,0,0.06);
    z-index: 1000;
}

.bar-icons {
    display: flex;
    gap: 20px;
    margin-right: 20px;
}

.bar-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    font-size: 12px;
    color: #666;
    cursor: pointer;
}

.bar-icon-item.active {
    color: #e74c3c;
}

.bar-icon {
    font-size: 22px;
}

.bar-buttons {
    flex: 1;
    display: flex;
    gap: 10px;
}

.bar-btn {
    flex: 1;
    height: 44px;
    border: none;
    border-radius: 22px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.bar-btn.add-cart {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
}

.bar-btn.buy-now {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
}

.bar-btn:active {
    opacity: 0.8;
}

/* 收藏图标状态 */
.favorite-btn {
    position: absolute;
    top: calc(15px + env(safe-area-inset-top));
    right: 15px;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    font-size: 20px;
    transition: all 0.3s;
}

.favorite-btn.active {
    color: #e74c3c;
    transform: scale(1.1);
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-icon {
    font-size: 60px;
    margin-bottom: 15px;
}

.empty-text {
    font-size: 14px;
    margin-bottom: 20px;
}

.empty-btn {
    padding: 10px 30px;
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
}

/* 表单通用样式 */
.form-container {
    padding: 20px;
}

.form-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.form-item {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.form-input-full {
    width: 100%;
    height: 48px;
    padding: 0 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

.form-input-full:focus {
    border-color: #4a90e2;
}

.form-textarea {
    width: 100%;
    min-height: 100px;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    resize: vertical;
    font-family: inherit;
}

.form-textarea:focus {
    border-color: #4a90e2;
}

.form-switch {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.switch-label {
    font-size: 14px;
}

.switch-input {
    width: 48px;
    height: 26px;
    background: #ddd;
    border-radius: 13px;
    position: relative;
    cursor: pointer;
    transition: background 0.3s;
}

.switch-input.active {
    background: #4a90e2;
}

.switch-input::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s;
}

.switch-input.active::after {
    transform: translateX(22px);
}

/* 底部安全区域 */
.safe-area-bottom {
    height: env(safe-area-inset-bottom);
    background: white;
}

/* 会员等级图标 */
.level-0 { color: #999; }
.level-1 { color: #cd7f32; }
.level-2 { color: #c0c0c0; }
.level-3 { color: #ffd700; }
.level-4 { color: #b9f2ff; }

/* 弹窗遮罩 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 100%;
    max-width: 320px;
    overflow: hidden;
}

.modal-header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
}

.modal-title {
    font-size: 17px;
    font-weight: 600;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    display: flex;
    border-top: 1px solid #f0f0f0;
}

.modal-btn {
    flex: 1;
    height: 50px;
    border: none;
    background: none;
    font-size: 15px;
    cursor: pointer;
    color: #666;
}

.modal-btn.primary {
    color: #4a90e2;
    font-weight: 600;
    border-left: 1px solid #f0f0f0;
}

/* 确认订单 */
.confirm-order-section {
    background: white;
    margin-bottom: 10px;
}

.confirm-address {
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.confirm-address-info {
    flex: 1;
}

.confirm-address-name {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
    font-weight: 600;
}

.confirm-address-detail {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

.confirm-address-arrow {
    color: #ccc;
}

.confirm-products {
    padding: 15px;
}

.confirm-product-item {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.confirm-product-item:last-child {
    border-bottom: none;
}

.confirm-product-img {
    width: 70px;
    height: 70px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.confirm-product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.confirm-product-name {
    font-size: 14px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.confirm-product-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.confirm-product-price {
    font-size: 15px;
    font-weight: 600;
    color: #e74c3c;
}

.confirm-product-quantity {
    font-size: 14px;
    color: #999;
}

.confirm-summary {
    background: white;
    padding: 15px;
}

.confirm-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
}

.confirm-summary-row.total {
    font-size: 16px;
    font-weight: 600;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
    margin-top: 5px;
}

.confirm-summary-value.total {
    color: #e74c3c;
}

.confirm-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
    box-shadow: 0 -2px 10px rgba(0,0,0,0.06);
    z-index: 1000;
}

.confirm-total-text {
    font-size: 14px;
}

.confirm-total-price {
    font-size: 20px;
    font-weight: 700;
    color: #e74c3c;
}

.confirm-submit-btn {
    padding: 12px 40px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    border: none;
    border-radius: 22px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

/* �Ż�ȯ���� */
.coupon-float {
    position: fixed;
    right: 15px;
    bottom: 100px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
    cursor: pointer;
    z-index: 999;
    animation: floatBounce 2s ease-in-out infinite;
}

@keyframes floatBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

.coupon-float-icon {
    font-size: 24px;
}

.coupon-float-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    background: #ff6b6b;
    color: white;
    font-size: 12px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}

/* �Ż�ȯ���� */
.coupon-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    display: none;
}

.coupon-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 350px;
    background: white;
    border-radius: 15px;
    z-index: 2000;
    display: none;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.coupon-modal-header {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.coupon-modal-header h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.coupon-modal-close {
    font-size: 24px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.coupon-modal-close:hover {
    opacity: 1;
}

.coupon-modal-content {
    padding: 15px;
    max-height: 400px;
    overflow-y: auto;
}

.coupon-modal-content .empty-state {
    padding: 30px 15px;
}

.coupon-modal-content .coupon-card {
    margin-bottom: 12px;
}

.coupon-modal-content .coupon-card:last-child {
    margin-bottom: 0;
}

/* �Ż�ȯ��Ƭ��ʽ */
.coupon-card {
    background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
    border-radius: 10px;
    padding: 15px;
    padding-bottom:18px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    border: 1px dashed #ffcccb;
}

.coupon-card.used {
    opacity: 0.6;
    background: #f5f5f5;
    border-color: #e0e0e0;
}

.coupon-card.expired {
    opacity: 0.5;
    background: #fafafa;
}

/* 支付方式弹窗样式 */
.pay-method-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    display: none;
}

.pay-method-modal {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-radius: 15px 15px 0 0;
    z-index: 2000;
    display: none;
    overflow: hidden;
    box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.15);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.pay-method-header {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #f0f0f0;
}

.pay-method-header h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.pay-method-close {
    font-size: 24px;
    cursor: pointer;
    color: #999;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f5f5f5;
}

.pay-method-content {
    padding: 15px;
}

.pay-method-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 12px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.pay-method-item:hover {
    background: #f0f0f0;
}

.pay-method-item.selected {
    border-color: #e74c3c;
    background: #fff5f5;
}

.pay-method-icon {
    font-size: 28px;
    margin-right: 12px;
}

.pay-method-check {
    width: 22px;
    height: 22px;
    border: 2px solid #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: white;
    font-weight: bold;
}

.pay-method-item.selected .pay-method-check {
    background: #e74c3c;
    border-color: #e74c3c;
}

.pay-method-submit {
    width: calc(100% - 30px);
    margin: 15px;
    margin-top: 5px;
    padding: 14px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;

    border-color: #eee;
}

.coupon-left {
    text-align: center;
    min-width: 80px;
    border-right: 2px dashed #ffcccb;
    padding-right: 15px;
    margin-right: 15px;
    padding: 10px 15px 10px 5px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    border-radius: 6px;
    margin-left: -5px;
}

.coupon-card.used .coupon-left,
.coupon-card.expired .coupon-left {
    border-right-color: #e0e0e0;
    background: #ccc;
}

.coupon-value {
    font-size: 28px;
    font-weight: 700;
    color: white;
    line-height: 1;
}

.coupon-value small {
    font-size: 16px;
}

.coupon-card.used .coupon-value,
.coupon-card.expired .coupon-value {
    color: white;
}

.coupon-condition {
    font-size: 12px;
    color: white;
    margin-top: 5px;
    opacity: 0.9;
}

.coupon-card.used .coupon-condition,
.coupon-card.expired .coupon-condition {
    color: #bbb;
}

.coupon-right {
    flex: 1;
    position: relative;
    min-height: 70px;
}

.coupon-name {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    line-height: 1.3;
    padding-right: 85px;
}

.coupon-validity {
    font-size: 12px;
    color: #999;
    padding-right: 85px;
}

.coupon-btn-wrapper {
    position: absolute;
    right: 0;
    bottom: 2px;
}

.coupon-use-btn {
    padding: 6px 15px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.coupon-use-btn:hover {
    transform: scale(1.05);
}

.coupon-use-btn.claimed {
    background: #95a5a6;
    cursor: not-allowed;
}

/* �Ż�ȯѡ��״̬ */
.coupon-card.selected {
    border: 2px solid #e74c3c;
    background: linear-gradient(135deg, #fff5f5 0%, #ffeaea 100%);
    position: relative;
}

.coupon-card.selected::after {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

/* Cute Header �ɰ�ͷ����ʽ */
.cute-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    padding-bottom: 30px;
    border-radius: 0 0 25px 25px;
    position: relative;
    overflow: hidden;
}

.cute-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.cute-header::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 150px;
    height: 150px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 2px;
}

.header-emoji {
    font-size: 30px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* ����ҳ��Tabs���� */
.order-section .cute-header + .order-tabs {
    margin-top: -15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 0 15px 15px;
    border-bottom: none;
}

.order-section .cute-header + .order-tabs .order-tab {
    color: rgba(255,255,255,0.8);
    padding: 8px 0;
    border-radius: 20px;
    margin: 0 3px;
    transition: all 0.3s;
}

.order-section .cute-header + .order-tabs .order-tab.active {
    color: #667eea;
    background: white;
    font-weight: 600;
}
.detail-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    display: flex;
    align-items: center;
    padding: 0 15px;
    padding-top: env(safe-area-inset-top);
    color: white;
    box-shadow: 0 2px 12px rgba(74, 144, 226, 0.3);
    z-index: 1000;
}
.detail-header .back-btn,
.detail-header .favorite-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    color: white;
    transition: all 0.3s ease;
    flex-shrink: 0;
}
.detail-header .back-btn:hover,
.detail-header .favorite-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}
.detail-header .back-btn:active,
.detail-header .favorite-btn:active {
    transform: scale(0.95);
}
.detail-header .favorite-btn {
    font-size: 18px;
}
.detail-header .favorite-btn.active {
    color: #ff6b6b;
    background: rgba(255,255,255,0.3);
    animation: heartBeat 0.5s ease;
}
@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}
.detail-header .header-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 17px;
    font-weight: 600;
    color: white;
    letter-spacing: 1px;
    text-align: center;
    pointer-events: none;
}
            .product-image-area {
                width: 100%;
                background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
            }
            .product-image-area img {
                width: 100%;
                height: 300px;
                object-fit: contain;
                display: block;
            }
            .product-info-area {
                padding: 15px;
                background: white;
            }
            .product-price {
                display: flex;
                align-items: baseline;
                gap: 10px;
                margin-bottom: 10px;
            }
            .current-price {
                font-size: 24px;
                font-weight: 700;
                color: #e74c3c;
            }
            .original-price {
                font-size: 14px;
                color: #999;
                text-decoration: line-through;
            }
            .product-name {
                font-size: 16px;
                font-weight: 600;
                color: #333;
                margin-bottom: 8px;
                line-height: 1.4;
            }
            .product-desc {
                font-size: 13px;
                color: #666;
                margin-bottom: 10px;
                line-height: 1.5;
            }
            .product-stock {
                font-size: 12px;
                color: #999;
            }
            .product-detail-section {
                margin-top: 10px;
                padding: 15px;
                background: white;
                margin-bottom: 70px;
            }
            .section-title {
                font-size: 15px;
                font-weight: 600;
                color: #333;
                padding-bottom: 10px;
                border-bottom: 1px solid #f0f0f0;
                margin-bottom: 15px;
            }
            .detail-content {
                font-size: 13px;
                color: #666;
                line-height: 1.6;
            }
            .bottom-action-bar {
                position: fixed;
                bottom: 0;
                left: 0;
                right: 0;
                height: 50px;
                background: white;
                display: flex;
                align-items: center;
                padding: 0 15px;
                box-shadow: 0 -2px 10px rgba(0,0,0,0.06);
                z-index: 100;
            }
            .action-icons {
                display: flex;
                gap: 20px;
                margin-right: 15px;
            }
            .action-icon {
                display: flex;
                flex-direction: column;
                align-items: center;
                font-size: 10px;
                color: #666;
                cursor: pointer;
            }
            .action-icon span:first-child {
                font-size: 20px;
                margin-bottom: 2px;
            }
            .action-buttons {
                flex: 1;
                display: flex;
                gap: 10px;
            }
            .btn {
                flex: 1;
                height: 36px;
                border: none;
                border-radius: 18px;
                font-size: 14px;
                font-weight: 600;
                cursor: pointer;
            }
            .btn.add-cart {
                background: #ff9500;
                color: white;
            }
            .btn.buy-now {
                background: #e74c3c;
                color: white;
            }