/* ========== Home Page ========== */
.page {
    animation: fadeIn 0.3s ease;
}

/* Hero Banner */
.hero-banner {
    position: relative;
    width: 100%;
    padding: 16px 16px;
}

.hero-banner-inner {
    position: relative;
    width: 100%;
    height: 200px;
    border-radius: 16px;
    overflow: hidden;
    background: url('../images/hero-bg.png') center center/cover no-repeat;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.hero-banner-inner::before {
    display: none;
}

.hero-banner-inner::after {
    display: none;
}

@keyframes floatGlow {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.6; }
    50% { transform: translate(-15px, 10px) scale(1.2); opacity: 1; }
}

.hero-banner-content {
    display: block;
    position: absolute;
    left: 16px;
    top: 35%;
    transform: translateY(-50%);
    z-index: 2;
}

.hero-banner-content h2 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 6px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hero-banner-content p {
    font-size: 12px;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-banner-content .brand-tag {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    margin-top: 8px;
}

/* Welcome Section */
.welcome-section {
    margin: 16px 16px 20px;
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow);
}

.welcome-tag {
    background: var(--primary);
    color: #fff;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.welcome-text {
    font-size: 13px;
    color: var(--text);
}

/* Quick Access */
.quick-access {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 0 20px;
    margin-bottom: 24px;
}

.quick-access-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: transform 0.3s;
}

.quick-access-item:active {
    transform: scale(0.92);
}

.quick-access-icon {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow: hidden;
}

.quick-access-item span {
    font-size: 13px;
    color: var(--text);
    font-weight: 500;
}

/* Zone Tabs */
.zone-tabs {
    display: flex;
    justify-content: center;
    gap: 16px;
    padding: 20px 16px;
    margin-bottom: 12px;
}

.zone-tab {
    padding: 10px 28px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.zone-tab.purple {
    background: linear-gradient(135deg, #00E676, #00C853);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0,230,118,0.3);
}

.zone-tab.orange {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #fff;
    box-shadow: 0 4px 12px rgba(249,115,22,0.3);
}

.zone-tab.inactive {
    background: var(--card-bg);
    color: var(--text-light);
    border: 1px solid var(--border);
    box-shadow: none;
}

/* Sub Category Tags */
.sub-categories {
    display: flex;
    justify-content: center;
    gap: 24px;
    padding: 0 16px 20px;
}

.sub-category {
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
}

.sub-category.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.sub-category:not(.active) {
    color: var(--text-light);
}

/* Product Card */
.product-card {
    margin: 0 16px 24px;
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:active {
    transform: scale(0.98);
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.product-card-banner {
    width: 100%;
    height: 160px;
    background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
    display: flex;
    align-items: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.product-card-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,255,255,0.1), transparent);
    border-radius: 50%;
    animation: pulseGlow 3s ease-in-out infinite;
}

.product-card-banner::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -15%;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255,69,124,0.15), transparent 70%);
    border-radius: 50%;
    animation: pulseGlow 4s ease-in-out infinite reverse;
}

@keyframes pulseGlow {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.3); opacity: 0.9; }
}

.product-card-info {
    position: relative;
    z-index: 2;
    color: #fff;
    text-align: left;
    flex: 1;
    padding-left: 16px;
}

.product-card-info.card-newseason {
    text-align: right;
    padding: 0 16px 0 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
}

.product-card-info .game-tag {
    font-size: 18px;
    font-weight: 600;
    color: #00E676;
    background: transparent;
    padding: 0;
    border-radius: 0;
    margin-bottom: 8px;
    margin-left: 0;
    display: inline-block;
}

.product-card-info.card-newseason .game-tag {
    display: none;
}

.product-card-info h3 {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    margin-left: 8px;
}

.product-card-info.card-newseason h3 {
    display: none;
}

.product-card-info p {
    font-size: 12px;
    opacity: 0.8;
    line-height: 1.5;
}

.product-card-enter {
    position: absolute;
    right: 20px;
    bottom: 20px;
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    cursor: pointer;
    backdrop-filter: blur(4px);
    flex-direction: column;
    gap: 2px;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.product-card-enter:active {
    background: rgba(255,255,255,0.3);
    transform: scale(0.9);
}

.product-card-enter i {
    font-size: 16px;
}

.product-card-body {
    padding: 16px 18px;
}

/* 新赛季卡片：背景图覆盖整张卡片 */
.product-card-newseason {
    position: relative;
    min-height: 280px;
}
.product-card-newseason .product-card-banner {
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
}
.product-card-newseason .product-card-body {
    position: relative;
    z-index: 2;
    background: transparent;
    color: #fff;
    padding-top: 130px;
}
.product-card-newseason .product-card-title {
    color: #00E676 !important;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.product-card-newseason .product-card-desc {
    color: #00E676 !important;
    font-size: 16px;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}
.product-card-newseason .product-price {
    color: #00E676 !important;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.product-card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}

.product-card-desc {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

.product-price small {
    font-size: 12px;
    font-weight: 400;
}

.product-buy-btn {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(255,69,124,0.3);
    border: none;
    transition: transform 0.3s;
}

.product-buy-btn:active {
    transform: scale(0.9);
}

/* Database-driven product catalog */
.catalog-page { min-height: 100%; padding: 16px 16px 28px; background: #f2f6f5; }
.catalog-page .hero-carousel { margin: 0 0 20px; }
.catalog-quick-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 0 0 18px; padding: 10px 6px; border: 1px solid #dde8e6; border-radius: 8px; background: #fff; box-shadow: 0 3px 12px rgba(19,80,80,.05); }
.catalog-quick-action { display: flex; min-width: 0; flex-direction: column; align-items: center; gap: 5px; border: 0; background: transparent; color: #435456; font: inherit; font-size: 11px; line-height: 1.3; padding: 2px; }
.catalog-quick-action:active { transform: scale(.95); }
.catalog-quick-action img { width: 42px; height: 42px; object-fit: contain; border-radius: 50%; }
.catalog-quick-icon { position: relative; display: inline-flex; }
.customer-service-unread-badge { position: absolute; top: -4px; right: -6px; z-index: 1; display: none; min-width: 16px; height: 16px; padding: 0 4px; align-items: center; justify-content: center; border: 2px solid #1c1c1c; border-radius: 9px; background: #e33b3b; color: #fff; font-size: 10px; font-style: normal; font-weight: 700; line-height: 1; box-sizing: border-box; }
.catalog-quick-action span { overflow: hidden; max-width: 100%; text-overflow: ellipsis; white-space: nowrap; }
.catalog-tax-notice { margin: 0 0 18px; border: 1px solid #e5d4a6; border-radius: 6px; background: #fffaf0; color: #765b20; }
.catalog-intro { display: flex; align-items: flex-end; justify-content: space-between; margin: 4px 0 18px; color: #17212b; }
.catalog-kicker { display: block; margin-bottom: 4px; color: #176b6a; font-size: 12px; font-weight: 700; }
.catalog-intro h1 { margin: 0; font-size: 27px; line-height: 1.15; letter-spacing: 0; }
.catalog-intro p { margin: 6px 0 0; color: #75808c; font-size: 13px; }
.catalog-refresh { width: 38px; height: 38px; flex: 0 0 38px; border: 1px solid #dce2e8; border-radius: 6px; background: #fff; color: #52606d; font-size: 16px; }
.catalog-refresh:active { background: #edf0f3; transform: scale(.96); }
.catalog-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.catalog-card { min-width: 0; overflow: hidden; border: 1px solid #e2e7ec; border-radius: 8px; background: #fff; box-shadow: 0 4px 14px rgba(30, 48, 64, .07); }
.catalog-image { position: relative; aspect-ratio: 1.35 / 1; overflow: hidden; background: #dfe6ec; }
.catalog-image > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.catalog-image-shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(13, 22, 32, .58)); pointer-events: none; }
.catalog-image-placeholder { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: #94a3b1; font-size: 26px; }
.catalog-id { position: absolute; right: 8px; bottom: 8px; max-width: calc(100% - 16px); overflow: hidden; color: #fff; font-size: 11px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.catalog-body { min-width: 0; padding: 11px; }
.catalog-title-row { display: flex; align-items: center; min-width: 0; gap: 7px; }
.catalog-icon { display: flex; width: 28px; height: 28px; flex: 0 0 28px; align-items: center; justify-content: center; overflow: hidden; border: 1px solid #edf0f3; border-radius: 5px; background: #fff; color: #176b6a; }
.catalog-icon img { width: 100%; height: 100%; object-fit: contain; }
.catalog-title-row h2 { min-width: 0; margin: 0; overflow: hidden; color: #1c2732; font-size: 15px; font-weight: 700; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.catalog-body > p { display: -webkit-box; min-height: 36px; margin: 9px 0 11px; overflow: hidden; color: #74808c; font-size: 12px; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.catalog-action { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.catalog-action strong { min-width: 0; overflow: visible; color: #b06f1f; font-size: 17px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.catalog-action button { display: inline-flex; height: 31px; flex: 0 0 auto; align-items: center; gap: 5px; border: 0; border-radius: 5px; background: #1d6f70; color: #fff; font-size: 12px; font-weight: 700; padding: 0 9px; }
.catalog-action button:active { background: #15595a; transform: scale(.97); }
.catalog-skeleton, .catalog-empty { display: flex; min-height: 230px; align-items: center; justify-content: center; flex-direction: column; gap: 10px; border: 1px solid #e2e7ec; border-radius: 8px; background: #fff; color: #7b8794; }
.catalog-skeleton i, .catalog-empty i { color: #176b6a; font-size: 28px; }
.catalog-empty strong { color: #33404c; font-size: 15px; }
.catalog-empty span { font-size: 13px; }
.catalog-empty button { border: 0; border-radius: 5px; background: #1d6f70; color: #fff; font-size: 13px; padding: 9px 14px; }
@media (min-width: 720px) { .catalog-page { max-width: 920px; margin: 0 auto; } .catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }

/* Quantity picker and WeChat WebView-friendly profile sizing. */
.product-quantity-modal { padding: 6px 0; }
.product-quantity-name { overflow: hidden; color: #17212b; font-size: 18px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.product-quantity-unit-price { margin-top: 5px; color: #75808c; font-size: 13px; }
.product-quantity-stepper { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 22px 0 16px; }
.product-quantity-stepper button { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; border: 1px solid #d9dee4; border-radius: 6px; background: #fff; color: #354452; }
.product-quantity-stepper strong { min-width: 42px; color: #17212b; font-size: 22px; text-align: center; }
.product-quantity-stepper span { min-width: 32px; color: #75808c; font-size: 14px; }
.product-quantity-total { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 18px; padding: 13px; border: 1px solid #ecd891; border-radius: 6px; background: #fff8dd; color: #745b21; }
.product-quantity-total strong { color: #e44371; font-size: 22px; }
.profile-page { min-width: 0; overflow-x: hidden; padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
.profile-header { min-width: 0; padding: 22px 16px; gap: 12px; }
.profile-info { min-width: 0; flex: 1; }
.profile-name, .profile-id { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-section { margin: 14px 12px; }
.profile-notice { min-width: 0; margin: 12px; padding: 9px 11px; }
.profile-notice span { min-width: 0; }
.profile-order-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; overflow: visible; padding-bottom: 0; }
.profile-order-tab { min-width: 0; gap: 5px; }
.profile-order-tab span { width: 100%; overflow: hidden; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.common-functions { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.common-function-item { min-width: 0; }
.common-function-item span { width: 100%; overflow: hidden; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.profile-menu { margin-left: 12px; margin-right: 12px; }
.logout-btn { width: calc(100% - 24px); margin: 12px; }

/* ========== Category Page ========== */
.category-page {
    padding: 16px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.category-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 20px 12px;
    text-align: center;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: transform 0.3s;
}

.category-card:active {
    transform: scale(0.95);
}

.category-card-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 10px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.category-card-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

/* ========== Services Page ========== */
.services-page {
    padding: 16px;
}

.category-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 12px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.category-tabs::-webkit-scrollbar {
    display: none;
}

.category-tab {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    white-space: nowrap;
    cursor: pointer;
    background: var(--card-bg);
    color: var(--text-light);
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.category-tab.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    border-color: var(--primary);
}

.service-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service-list-item {
    display: flex;
    gap: 12px;
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 12px;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: transform 0.3s;
}

.service-list-item:active {
    transform: scale(0.98);
}

.service-list-img {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--primary-light), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}

.service-list-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-list-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}

.service-list-desc {
    font-size: 12px;
    color: var(--text-light);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.service-list-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ========== Service Detail ========== */
.service-detail {
    padding: 0;
}

.service-detail-banner {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
}

.service-detail-info {
    padding: 20px 16px;
    background: var(--card-bg);
    margin-top: -20px;
    border-radius: 20px 20px 0 0;
    position: relative;
}

.service-detail-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.service-detail-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}

.service-detail-price small {
    font-size: 13px;
    color: var(--text-light);
    font-weight: 400;
}

.service-detail-desc {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.service-detail-section {
    margin-bottom: 16px;
}

.service-detail-section h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.service-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.detail-tag {
    padding: 6px 12px;
    background: var(--bg);
    border-radius: 6px;
    font-size: 12px;
    color: var(--text-light);
}

.service-detail-actions {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 750px;
    padding: 12px 16px;
    background: var(--card-bg);
    box-shadow: 0 -4px 12px rgba(0,0,0,0.08);
    display: flex;
    gap: 12px;
    z-index: 99;
}

.service-detail-actions .btn {
    flex: 1;
}

/* ========== Orders Page ========== */
.orders-page {
    padding: 16px;
}

.order-tabs {
    display: flex;
    background: var(--card-bg);
    border-radius: var(--radius-sm);
    padding: 4px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
}

.order-tab {
    flex: 1;
    text-align: center;
    padding: 8px;
    font-size: 13px;
    cursor: pointer;
    border-radius: 6px;
    color: var(--text-light);
    transition: all 0.3s;
}

.order-tab.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    font-weight: 500;
}

.order-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.order-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
}

.order-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.order-id {
    font-size: 12px;
    color: var(--text-light);
}

.order-status {
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
}

.order-status.pending {
    background: rgba(253, 203, 110, 0.2);
    color: #e17055;
}

.order-status.processing {
    background: rgba(255,69,124,0.1);
    color: var(--primary);
}

.order-status.completed {
    background: rgba(0, 184, 148, 0.1);
    color: var(--success);
}

.order-status.cancelled {
    background: rgba(214, 48, 49, 0.1);
    color: var(--danger);
}

.order-card-body {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.order-service-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--primary-light), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.order-service-info {
    flex: 1;
}

.order-service-name {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.order-service-detail {
    font-size: 12px;
    color: var(--text-light);
}

.order-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}

.order-total {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
}

.order-actions {
    display: flex;
    gap: 8px;
}

/* ========== Profile Page ========== */
.profile-page {
    padding: 0;
}

.profile-header {
    background: linear-gradient(135deg, #FFD580, #FFE0A0, #FFF8E7);
    padding: 30px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    border: 3px solid rgba(255,255,255,0.8);
}

.profile-info {
    color: var(--text);
}

.profile-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.profile-id {
    font-size: 12px;
    color: #111;
}

.profile-copy-btn {
    margin-left: 8px;
    padding: 3px 7px;
    border: 1px solid currentColor;
    border-radius: 4px;
    background: transparent;
    color: inherit;
    font-size: 11px;
    line-height: 1.2;
    cursor: pointer;
}

.profile-copy-btn:active {
    opacity: .7;
}

.profile-notice {
    margin: 12px 16px;
    background: #FFF8E7;
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--danger);
}

.profile-notice i {
    font-size: 16px;
}

.profile-section {
    margin: 16px;
}

.profile-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.profile-section-title {
    font-size: 16px;
    font-weight: 700;
}

.profile-section-more {
    font-size: 12px;
    color: #111;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.profile-order-tabs {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.profile-order-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    min-width: 60px;
}

.profile-order-tab-icon {
    width: 44px;
    height: 44px;
    background: #FFF8E7;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--primary);
}

.profile-order-tab span {
    font-size: 11px;
    color: #111;
}

.profile-menu {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.profile-menu-item {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid var(--border);
}

.profile-menu-item:last-child {
    border-bottom: none;
}

.profile-menu-item:active {
    background: var(--bg);
}

.profile-menu-item i {
    width: 32px;
    font-size: 16px;
    color: var(--primary);
}

.profile-menu-item span {
    flex: 1;
    font-size: 14px;
}

.profile-menu-item::after {
    content: '\f054';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 12px;
    color: #111;
}

.profile-page,
.profile-page .profile-info,
.profile-page .profile-name,
.profile-page .profile-menu-item,
.profile-page .profile-section-title {
    color: #111;
}

/* Common Functions Grid */
.common-functions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 12px;
}

.common-function-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.common-function-icon {
    width: 44px;
    height: 44px;
    background: #fff;
    border: 1px solid #EAEAEA;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #555;
}

.common-function-item span {
    font-size: 11px;
    color: var(--text-light);
}

.logout-btn {
    margin: 16px;
}

/* ========== Messages Page ========== */
.messages-page {
    padding: 16px;
}

.message-page-toolbar { display:flex; align-items:center; justify-content:space-between; margin-bottom:18px; }
.message-page-toolbar h2 { font-size:21px; margin:0 0 4px; }
.message-page-toolbar p { margin:0; color:var(--text-light); font-size:12px; }
.message-read-all { border:0; background:#fff0f5; color:var(--primary); border-radius:16px; padding:7px 12px; font-size:12px; }
.message-state { min-height:280px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:12px; color:var(--text-muted); }
.message-state > i { font-size:34px; }
.message-state-error > i { color:var(--primary); }
.message-cache-tip { padding:9px 12px; margin-bottom:12px; border-radius:10px; background:#fff8e7; color:#9a6b16; font-size:12px; }

.message-item {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 14px 16px;
    box-shadow: var(--shadow);
    margin-bottom: 12px;
    display: flex;
    gap: 12px;
}

.message-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.message-icon.system {
    background: #FFF8E7;
    color: var(--primary);
}

.message-icon.service {
    background: #FFF8E7;
    color: var(--success);
}

.message-content {
    flex: 1;
}

.message-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.message-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.message-date {
    font-size: 11px;
    color: var(--text-muted);
}

.message-text {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.5;
}

.message-badge {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    font-size: 10px;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    text-align: center;
    line-height: 16px;
    padding: 0 4px;
    margin-left: 6px;
}

/* 系统推送消息扩展样式 */
.message-item { border:1px solid transparent; cursor:pointer; transition:transform .18s ease,border-color .18s ease; }
.message-item:active { transform:scale(.985); }
.message-item.unread { border-color:rgba(255,69,124,.18); background:#fffafb; }
.message-item.message-level-urgent { border-left:3px solid #ef4444; }
.message-item.message-level-important { border-left:3px solid #f59e0b; }
.message-icon.version { background:#eef4ff; color:#4777d8; }
.message-icon.activity { background:#fff0f5; color:#ff457c; }
.message-icon.maintenance { background:#fff7e8; color:#d88912; }
.message-meta { display:flex; gap:6px; margin-bottom:5px; }
.message-type,.message-level { padding:2px 6px; border-radius:4px; background:#f4f5f7; color:var(--text-light); font-size:10px; }
.message-level-important .message-level { background:#fff3d6; color:#b36b00; }
.message-level-urgent .message-level { background:#feeceb; color:#d9363e; }
.message-unread-dot { display:inline-block; width:7px; height:7px; margin-left:6px; border-radius:50%; background:var(--primary); vertical-align:middle; }
.message-text { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.message-action { margin-top:8px; color:var(--primary); font-size:12px; }
.message-action i { font-size:10px; }
.message-detail-time { margin-bottom:14px; color:var(--text-muted); font-size:12px; }
.message-detail-content { color:var(--text); font-size:14px; line-height:1.8; word-break:break-word; }
.customer-service-page { position:fixed; inset:0; left:50%; width:100%; max-width:750px; height:100vh; height:100dvh; padding-top:var(--header-height); display:flex; flex-direction:column; overflow:hidden; transform:translateX(-50%); background:#f6f7f9; }
.chat-dnd { margin-left:auto; font-size:12px; color:#666; }
.chat-list { flex:1; min-height:0; padding:14px; overflow-y:auto; }
.chat-row { display:flex; flex-direction:column; margin:10px 0; max-width:78%; }.chat-row.own { margin-left:auto; align-items:flex-end; }.chat-row.admin { align-items:flex-start; }
.chat-bubble { padding:10px 12px; border:1px solid #e5e7eb; border-radius:8px; background:#fff; line-height:1.5; word-break:break-word; box-shadow:0 1px 2px rgba(0,0,0,.05); }.chat-row.own .chat-bubble { border-color:#ff4d84; background:#ff4d84; color:#fff; }.chat-bubble.image-only { padding:7px; border-radius:10px; }
.chat-meta { font-size:10px; color:#999; margin-top:4px; }.chat-image { display:block; max-width:190px; max-height:190px; border-radius:6px; cursor:pointer; }.chat-image-loading { width:150px; height:96px; display:flex; align-items:center; justify-content:center; gap:7px; color:#888; background:#f3f4f6; border-radius:6px; font-size:12px; }
.chat-image-preview { display:flex; flex-direction:column; align-items:center; gap:12px; }.chat-image-preview img { display:block; max-width:100%; max-height:62vh; border-radius:6px; object-fit:contain; }.chat-image-preview p { margin:0; color:#75808c; font-size:13px; }.chat-image-preview .btn { max-width:260px; }
.chat-compose { flex:0 0 auto; display:flex; gap:9px; align-items:center; padding:10px 12px; background:#fff; border-top:1px solid #eee; }.chat-compose .form-input { flex:1; }.chat-image-upload { width:42px; height:42px; display:flex; align-items:center; justify-content:center; position:relative; color:#ff4d84; font-size:23px; cursor:pointer; }.chat-image-upload input { position:absolute; inset:0; opacity:0; width:100%; height:100%; cursor:pointer; }.chat-compose .btn { min-width:44px; height:42px; padding:10px; }

/* ========== Auth Pages ========== */
.auth-page {
    padding: 40px 24px;
    text-align: center;
}

.auth-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

.auth-subtitle {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 32px;
}

.auth-form {
    text-align: left;
}

.auth-switch {
    margin-top: 20px;
    font-size: 13px;
    color: var(--text-light);
}

.auth-switch a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
}

/* ========== Order Form ========== */
.order-form {
    padding: 16px;
}

.order-form .service-summary {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 16px;
}

.order-form .service-summary-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--primary-light), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.order-form-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 16px;
    margin-bottom: 16px;
}

.order-total-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 750px;
    padding: 12px 16px;
    background: var(--card-bg);
    box-shadow: 0 -4px 12px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 99;
}

.order-total-bar .total-text {
    font-size: 14px;
    color: var(--text-light);
}

.order-total-bar .total-amount {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

/* ========== Back Header ========== */
.back-header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 750px;
    height: var(--header-height);
    background: var(--card-bg);
    display: flex;
    align-items: center;
    padding: 0 16px;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.back-btn {
    background: none;
    border: none;
    font-size: 18px;
    color: var(--text);
    cursor: pointer;
    padding: 8px;
    margin-right: 8px;
}

.back-header h3 {
    font-size: 16px;
    font-weight: 600;
}
/* ========== Home Page ========== */
.page {
    animation: fadeIn 0.3s ease;
}

/* Carousel/Banner */
.carousel-wrapper {
    position: relative;
    width: 100%;
    padding: 12px 16px;
}

.carousel {
    position: relative;
    width: 100%;
    height: 160px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
}

.carousel-slide .slide-content {
    text-align: center;
    color: #fff;
    z-index: 1;
}

.carousel-slide .slide-content h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.carousel-slide .slide-content p {
    font-size: 13px;
    opacity: 0.9;
}

.carousel-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}

.carousel-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    transition: all 0.3s;
}

.carousel-dot.active {
    background: #fff;
    width: 18px;
    border-radius: 3px;
}

/* Section */
.section {
    padding: 16px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 16px;
    background: var(--primary);
    border-radius: 2px;
}

.section-more {
    font-size: 12px;
    color: var(--text-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Quick Nav */
.quick-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 16px;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin: 0 16px;
}

.quick-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: transform 0.3s;
}

.quick-nav-item:active {
    transform: scale(0.92);
}

.quick-nav-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
}

.quick-nav-item span {
    font-size: 12px;
    color: var(--text);
    font-weight: 500;
}

/* Service Card Grid */
.service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.service-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:active {
    transform: scale(0.97);
}

.service-card-img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #fff;
}

.service-card-body {
    padding: 10px 12px;
}

.service-card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.service-card-desc {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.service-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.service-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--danger);
}

.service-price small {
    font-size: 11px;
    font-weight: 400;
    color: var(--text-light);
}

.service-tag {
    padding: 2px 8px;
    background: rgba(108, 92, 231, 0.1);
    color: var(--primary);
    border-radius: 4px;
    font-size: 10px;
    font-weight: 500;
}

/* ========== Services Page ========== */
.services-page {
    padding: 16px;
}

.category-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 12px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.category-tabs::-webkit-scrollbar {
    display: none;
}

.category-tab {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    white-space: nowrap;
    cursor: pointer;
    background: var(--card-bg);
    color: var(--text-light);
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.category-tab.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.service-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service-list-item {
    display: flex;
    gap: 12px;
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 12px;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: transform 0.3s;
}

.service-list-item:active {
    transform: scale(0.98);
}

.service-list-img {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #fff;
    flex-shrink: 0;
}

.service-list-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-list-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}

.service-list-desc {
    font-size: 12px;
    color: var(--text-light);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.service-list-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ========== Service Detail ========== */
.service-detail {
    padding: 0;
}

.service-detail-banner {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    color: #fff;
}

.service-detail-info {
    padding: 20px 16px;
    background: var(--card-bg);
    margin-top: -20px;
    border-radius: 20px 20px 0 0;
    position: relative;
}

.service-detail-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.service-detail-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--danger);
    margin-bottom: 12px;
}

.service-detail-price small {
    font-size: 13px;
    color: var(--text-light);
    font-weight: 400;
}

.service-detail-desc {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.service-detail-section {
    margin-bottom: 16px;
}

.service-detail-section h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.service-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.detail-tag {
    padding: 6px 12px;
    background: var(--bg);
    border-radius: 6px;
    font-size: 12px;
    color: var(--text-light);
}

.service-detail-actions {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 750px;
    padding: 12px 16px;
    background: var(--card-bg);
    box-shadow: 0 -4px 12px rgba(0,0,0,0.08);
    display: flex;
    gap: 12px;
    z-index: 99;
}

.service-detail-actions .btn {
    flex: 1;
}

/* ========== Orders Page ========== */
.orders-page {
    padding: 16px;
}

.order-tabs {
    display: flex;
    background: var(--card-bg);
    border-radius: var(--radius-sm);
    padding: 4px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
}

.order-tab {
    flex: 1;
    text-align: center;
    padding: 8px;
    font-size: 13px;
    cursor: pointer;
    border-radius: 6px;
    color: var(--text-light);
    transition: all 0.3s;
}

.order-tab.active {
    background: var(--primary);
    color: #fff;
    font-weight: 500;
}

.order-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.order-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
}

.order-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.order-id {
    font-size: 12px;
    color: var(--text-light);
}

.order-status {
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
}

.order-status.pending {
    background: rgba(253, 203, 110, 0.2);
    color: #e17055;
}

.order-status.processing {
    background: rgba(108, 92, 231, 0.1);
    color: var(--primary);
}

.order-status.completed {
    background: rgba(0, 184, 148, 0.1);
    color: var(--success);
}

.order-status.cancelled {
    background: rgba(214, 48, 49, 0.1);
    color: var(--danger);
}

.order-card-body {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.order-service-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    flex-shrink: 0;
}

.order-service-info {
    flex: 1;
}

.order-service-name {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.order-service-detail {
    font-size: 12px;
    color: var(--text-light);
}

.order-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}

.order-total {
    font-size: 16px;
    font-weight: 700;
    color: var(--danger);
}

.order-actions {
    display: flex;
    gap: 8px;
}

/* ========== Profile Page ========== */
.profile-page {
    padding: 0;
}

.profile-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 30px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #fff;
    border: 3px solid rgba(255,255,255,0.5);
}

.profile-info {
    color: #fff;
}

.profile-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.profile-id {
    font-size: 12px;
    opacity: 0.8;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: var(--card-bg);
    margin: -16px 16px 16px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 16px;
    position: relative;
    z-index: 1;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 2px;
}

.profile-menu {
    margin: 0 16px 16px;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.profile-menu-item {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid var(--border);
}

.profile-menu-item:last-child {
    border-bottom: none;
}

.profile-menu-item:active {
    background: var(--bg);
}

.profile-menu-item i {
    width: 32px;
    font-size: 16px;
    color: var(--primary);
}

.profile-menu-item span {
    flex: 1;
    font-size: 14px;
}

.profile-menu-item::after {
    content: '\f054';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 12px;
    color: var(--text-muted);
}

.logout-btn {
    margin: 16px;
}

/* ========== Auth Pages ========== */
.auth-page {
    padding: 40px 24px;
    text-align: center;
}

.auth-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

.auth-subtitle {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 32px;
}

.auth-form {
    text-align: left;
}

.auth-switch {
    margin-top: 20px;
    font-size: 13px;
    color: var(--text-light);
}

.auth-switch a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
}

/* ========== Order Form ========== */
.order-form {
    padding: 16px;
}

.order-form .service-summary {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 16px;
}

.order-form .service-summary-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--primary-light), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
}

.order-form-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 16px;
    margin-bottom: 16px;
}

.order-total-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 750px;
    padding: 12px 16px;
    background: var(--card-bg);
    box-shadow: 0 -4px 12px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 99;
}

.order-total-bar .total-text {
    font-size: 14px;
    color: var(--text-light);
}

.order-total-bar .total-amount {
    font-size: 20px;
    font-weight: 700;
    color: var(--danger);
}

/* ========== Notification Page ========== */
.notification-list {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.notification-item {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 14px 16px;
    box-shadow: var(--shadow);
}

.notification-item .time {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.notification-item .content {
    font-size: 14px;
    color: var(--text);
    line-height: 1.6;
}

/* ========== Back Header ========== */
.back-header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 750px;
    height: var(--header-height);
    background: var(--card-bg);
    display: flex;
    align-items: center;
    padding: 0 16px;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.back-btn {
    background: none;
    border: none;
    font-size: 18px;
    color: var(--text);
    cursor: pointer;
    padding: 8px;
    margin-right: 8px;
}

.back-header h3 {
    font-size: 16px;
    font-weight: 600;
}

/* ========== Profile Wallet Card ========== */
.profile-wallet-card {
    margin: -16px 16px 12px;
    background: linear-gradient(135deg, #FF6B35, #FF8F5E);
    border-radius: 16px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 6px 20px rgba(255,107,53,0.3);
    cursor: pointer;
    position: relative;
    z-index: 2;
    transition: transform 0.2s;
}
.profile-wallet-card:active { transform: scale(0.98); }
.profile-wallet-left { display: flex; align-items: center; gap: 14px; }
.profile-wallet-icon {
    width: 44px; height: 44px; border-radius: 12px;
    background: rgba(255,255,255,0.25); display: flex;
    align-items: center; justify-content: center;
    font-size: 20px; color: #fff;
}
.profile-wallet-info { display: flex; flex-direction: column; gap: 2px; }
.profile-wallet-label { font-size: 12px; color: rgba(255,255,255,0.85); }
.profile-wallet-balance { font-size: 22px; font-weight: 700; color: #fff; }
.profile-wallet-right {
    display: flex; align-items: center; gap: 6px;
    color: rgba(255,255,255,0.9); font-size: 13px;
}
.profile-wallet-right i { font-size: 12px; }

/* ========== Wallet Page ========== */
.wallet-page { padding: 0; }
.wallet-balance-card {
    position: relative; margin: 16px; border-radius: 20px;
    overflow: hidden; padding: 30px 24px;
    background: linear-gradient(135deg, #FF457C, #FF6B9D, #FF8FAB);
    box-shadow: 0 8px 28px rgba(255,69,124,0.3);
}
.wallet-balance-bg {
    position: absolute; top: -40%; right: -20%;
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(255,255,255,0.2), transparent 70%);
    border-radius: 50%;
}
.wallet-balance-content {
    position: relative; z-index: 2; color: #fff;
    display: flex; flex-direction: column; gap: 8px;
}
.wallet-balance-label { font-size: 13px; opacity: 0.9; }
.wallet-balance-amount { font-size: 36px; font-weight: 800; letter-spacing: 1px; }
.wallet-balance-actions { margin-top: 16px; }
.wallet-recharge-btn {
    background: rgba(255,255,255,0.25); border: 1.5px solid rgba(255,255,255,0.5);
    color: #fff; padding: 10px 32px; border-radius: 24px;
    font-size: 15px; font-weight: 600; cursor: pointer;
    display: inline-flex; align-items: center; gap: 8px;
    backdrop-filter: blur(4px); transition: all 0.2s;
}
.wallet-recharge-btn:active { background: rgba(255,255,255,0.4); transform: scale(0.96); }

.wallet-recharge-section { padding: 0 16px; margin-bottom: 20px; }
.wallet-recharge-section h4 {
    font-size: 16px; font-weight: 700; margin-bottom: 14px; color: var(--text);
}
.wallet-recharge-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.wallet-recharge-item {
    background: var(--card-bg); border-radius: 12px;
    padding: 18px 0; text-align: center; cursor: pointer;
    box-shadow: var(--shadow); border: 1.5px solid var(--border);
    display: flex; flex-direction: column; gap: 4px;
    transition: all 0.2s;
}
.wallet-recharge-item:active {
    border-color: var(--primary); background: #FFF8E7;
    transform: scale(0.96);
}
.wallet-recharge-amount { font-size: 20px; font-weight: 700; color: var(--primary); }
.wallet-recharge-label { font-size: 12px; color: var(--text-light); }

.wallet-history-section { padding: 0 16px 24px; }
.wallet-history-section h4 {
    font-size: 16px; font-weight: 700; margin-bottom: 14px; color: var(--text);
}
.wallet-empty-history {
    text-align: center; padding: 40px 0; color: var(--text-muted);
}
.wallet-empty-history i { font-size: 36px; margin-bottom: 12px; opacity: 0.5; }
.wallet-empty-history p { font-size: 13px; }
.wallet-history-list {
    background: var(--card-bg); border-radius: 12px;
    box-shadow: var(--shadow); overflow: hidden;
}
.wallet-history-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 16px; border-bottom: 1px solid var(--border);
}
.wallet-history-item:last-child { border-bottom: none; }
.wallet-history-left { display: flex; align-items: center; gap: 12px; }
.wallet-history-icon {
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
}
.wallet-history-icon.plus { background: #E8FFF3; color: #00b893; }
.wallet-history-icon.minus { background: #FFF0F0; color: #FF457C; }
.wallet-history-title { font-size: 14px; font-weight: 500; color: var(--text); }
.wallet-history-time { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.wallet-history-amount { font-size: 16px; font-weight: 700; }
.wallet-history-amount.plus { color: #00b893; }
.wallet-history-amount.minus { color: #FF457C; }

/* ========== Wallet Rules Section ========== */
.wallet-rules-section {
    margin: 16px;
    background: linear-gradient(135deg, #E8F5E9, #F1F8E9);
    border-radius: 16px;
    padding: 18px 16px;
    box-shadow: 0 2px 12px rgba(76,175,80,0.1);
}
.wallet-rules-section h4 {
    font-size: 15px; font-weight: 700; color: #2E7D32;
    margin-bottom: 14px; display: flex; align-items: center; gap: 8px;
}
.wallet-rules-section h4 i { font-size: 16px; }
.wallet-rules-list {
    display: flex; flex-direction: column; gap: 12px;
}
.wallet-rule-item {
    display: flex; align-items: flex-start; gap: 10px;
}
.wallet-rule-num {
    width: 22px; height: 22px; min-width: 22px;
    border-radius: 50%;
    background: #4CAF50; color: #fff;
    font-size: 12px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    margin-top: 1px;
}
.wallet-rule-text {
    font-size: 13px; color: #333; line-height: 1.7; flex: 1;
}
.wallet-rule-text strong {
    color: #2E7D32; font-weight: 600;
}

/* Black and gray wallet, plus a high-contrast catalog surface. */
.catalog-page { background: #343434; }
.catalog-quick-actions { background: #1c1c1c; border-color: #353535; box-shadow: none; }
.catalog-quick-action { color: #e7e7e7; }
.catalog-intro h1 { color: #f5f5f5; }
.catalog-intro p { color: #a8a8a8; }
.catalog-kicker { color: #d9b86d; }
.catalog-refresh { background: #292929; color: #f1f1f1; border-color: #3d3d3d; }
.catalog-card { background: #1e1e1e; border-color: #353535; box-shadow: 0 6px 16px rgba(0,0,0,.28); }
.catalog-card .catalog-title-row h2 { color: #f2f2f2; }
.catalog-card .catalog-body > p { color: #aaa; }
.catalog-card .catalog-action { border-color: #343434; }
.catalog-tax-notice { background: #292929; box-shadow: none; }
.catalog-tax-notice .scroll-notice-item { color: #e4c77f; text-shadow: none; }

.wallet-page { min-height: 100%; background: #111; }
.wallet-page .back-header { background: #191919; color: #f1f1f1; border-bottom: 1px solid #333; }
.wallet-page .back-btn { color: #f1f1f1; }
.wallet-balance-card { background: #252525; border: 1px solid #3a3a3a; border-radius: 12px; box-shadow: 0 8px 22px rgba(0,0,0,.32); }
.wallet-balance-bg { display: none; }
.wallet-balance-content { color: #f4f4f4; }
.wallet-balance-label { color: #aaa; opacity: 1; }
.wallet-bonus-section, .wallet-history-list { background: #1d1d1d; box-shadow: none; border: 1px solid #353535; }
.wallet-bonus-section { border-radius: 12px; }
.wallet-bonus-section h4, .wallet-history-section h4 { color: #f2f2f2; }
.wallet-bonus-section h4 i { color: #c6a85d; }
.wallet-bonus-item { border-color: #343434; }
.wallet-bonus-item:active { background: #292929; }
.wallet-bonus-num { background: #4a4a4a; }
.bonus-label, .bonus-amount { color: #ededed; }
.bonus-label.green, .bonus-amount.green { color: #d6b568; }
.bonus-unit { color: #e2c579; background: #353025; }
.wallet-history-item { border-color: #343434; }
.wallet-history-title { color: #eee; }
.wallet-history-time, .wallet-empty-history { color: #989898; }
.wallet-history-icon.plus { color: #dfbf70; background: #393225; }
.wallet-history-amount.plus { color: #dfbf70; }
.wallet-rules-section { background: #1d1d1d; border: 1px solid #353535; border-radius: 12px; box-shadow: none; }
.wallet-rules-section h4, .wallet-rule-text strong { color: #e0c177; }
.wallet-rule-text { color: #c8c8c8; }
.wallet-rule-num { background: #525252; }

/* ========== Wallet Bonus Section ========== */
.wallet-bonus-section {
    margin: 16px;
    background: var(--card-bg);
    border-radius: 16px;
    padding: 18px 16px;
    box-shadow: var(--shadow);
}
.wallet-bonus-section h4 {
    font-size: 16px; font-weight: 700; color: var(--text);
    margin-bottom: 16px; display: flex; align-items: center; gap: 8px;
}
.wallet-bonus-section h4 i { color: #4CAF50; font-size: 18px; }
.wallet-bonus-list {
    display: flex; flex-direction: column; gap: 0;
}
.wallet-bonus-item {
    display: flex; align-items: center; padding: 14px 6px;
    border-bottom: 1px solid var(--border); cursor: pointer;
    transition: background 0.2s; overflow: hidden;
}
button.wallet-bonus-item {
    width: 100%;
    color: inherit;
    font: inherit;
    text-align: left;
    background: transparent;
    border-top: 0;
    border-right: 0;
    border-left: 0;
}
.wallet-bonus-item:last-child { border-bottom: none; }
.wallet-bonus-item:active { background: #F8FFF8; }
.wallet-bonus-num {
    width: 26px; height: 26px; min-width: 26px;
    border-radius: 6px;
    background: #4CAF50; color: #fff;
    font-size: 13px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    margin-right: 14px;
}
.wallet-bonus-left {
    flex: 1 1 0; min-width: 0; display: flex; align-items: baseline; gap: 2px; white-space: nowrap;
}
.wallet-bonus-right {
    flex: 1 1 0; min-width: 0; display: flex; align-items: baseline; gap: 2px;
    justify-content: flex-end; white-space: nowrap;
}
.bonus-label {
    font-size: 13px; font-weight: 700; color: #333;
}
.bonus-label.green { color: #4CAF50; }
.bonus-amount {
    flex: 0 0 auto; min-width: 0; font-size: 16px; font-weight: 800; color: #1A1A1A;
    letter-spacing: 0; font-variant-numeric: tabular-nums;
}
.bonus-amount.green { color: #4CAF50; }
.bonus-unit {
    flex: 0 0 auto; font-size: 10px; font-weight: 600; color: #4CAF50;
    background: rgba(76,175,80,0.1);
    padding: 1px 4px; border-radius: 4px;
    margin-left: 1px; position: relative; top: -1px;
}

/* ========== Order Complaint Bar ========== */
.order-complaint-bar {
    margin: 20px 0 16px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #FFF3E0, #FFE0B2);
    border-radius: 12px;
    display: flex; align-items: center; gap: 10px;
    cursor: pointer; transition: transform 0.2s;
    box-shadow: 0 2px 8px rgba(255,152,0,0.15);
}
.order-complaint-bar:active { transform: scale(0.98); }
.order-complaint-bar > i:first-child {
    font-size: 18px; color: #FF9800;
}
.order-complaint-bar span {
    flex: 1; font-size: 14px; font-weight: 500; color: #E65100;
}
.order-complaint-bar > i:last-child {
    font-size: 12px; color: #FF9800;
}

/* ========== Scroll Notice Bar (Vertical) ========== */
.scroll-notice-bar {
    margin: 12px 16px 16px;
    background: linear-gradient(90deg, #E53935, #FF5252, #E53935);
    border-radius: 10px;
    padding: 0 16px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 3px 10px rgba(229,57,53,0.3);
    height: 40px;
}
.scroll-notice-track {
    display: flex;
    flex-direction: column;
    animation: scrollNotice 6s ease-in-out infinite;
}
.scroll-notice-item {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: #1A1A1A;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(255,255,255,0.3);
    white-space: nowrap;
    flex-shrink: 0;
}
@keyframes scrollNotice {
    0%, 40% { transform: translateY(0); }
    50%, 90% { transform: translateY(-40px); }
    100% { transform: translateY(-80px); }
}

/* ========== Recruit Page ========== */
.recruit-banner {
    position: relative;
    height: 140px;
    margin: 16px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(255,69,124,0.2);
}
.recruit-banner-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #FFD580, #FFE0A0, #FFF8E7);
}
.recruit-banner-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #fff;
    text-align: center;
}
.recruit-banner-content i {
    font-size: 32px;
    margin-bottom: 8px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.recruit-banner-content h2 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.recruit-banner-content p {
    font-size: 12px;
    opacity: 0.9;
    margin-top: 4px;
}
.recruit-gender-tabs {
    display: flex;
    gap: 12px;
    margin: 0 16px 16px;
}
.recruit-gender-tab {
    flex: 1;
    padding: 12px 0;
    text-align: center;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    background: var(--card-bg);
    color: #666;
    border: 2px solid var(--border);
    cursor: pointer;
    transition: all 0.3s;
}
.recruit-gender-tab i {
    margin-right: 6px;
}
.recruit-gender-tab.active {
    background: linear-gradient(135deg, #FF457C, #FD84A8);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(255,69,124,0.3);
}
.recruit-tier-list {
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 32px;
}
.recruit-tier-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: var(--card-bg);
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.recruit-tier-card:active {
    transform: scale(0.98);
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}
.recruit-tier-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}
.recruit-tier-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.recruit-tier-name {
    font-size: 16px;
    font-weight: 700;
    color: #1A1A1A;
}
.recruit-tier-desc {
    font-size: 12px;
    color: #999;
}
.recruit-tier-arrow {
    color: #ccc;
    font-size: 14px;
}


.recruit-tier-img {
    padding: 3px;
}
.recruit-tier-img img {
    width: 100%;
    height: 100%;
    border-radius: 11px;
    object-fit: cover;
}


/* ========== WeChat Login Page ========== */
.wechat-login-container {
    padding: 40px 24px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.wechat-logo {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #07C160;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 6px 20px rgba(7,193,96,0.3);
}
.wechat-logo i {
    font-size: 38px;
    color: #fff;
}
.wechat-title {
    font-size: 22px;
    font-weight: 700;
    color: #1A1A1A;
    margin: 0 0 8px;
}
.wechat-subtitle {
    font-size: 14px;
    color: #999;
    margin: 0 0 32px;
}
.wechat-qr-box {
    position: relative;
    width: 200px;
    height: 200px;
    border: 2px solid #07C160;
    border-radius: 16px;
    padding: 12px;
    background: #fff;
    box-shadow: 0 4px 20px rgba(7,193,96,0.15);
    margin-bottom: 20px;
}
.wechat-qr-code {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f8f8;
    border-radius: 8px;
}
.wechat-qr-code i {
    font-size: 120px;
    color: #333;
}
.wechat-qr-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: #07C160;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.wechat-qr-overlay i {
    font-size: 28px;
    color: #fff;
}
.wechat-browser-card {
    width: 100%;
    max-width: 300px;
    min-height: 132px;
    margin: 0 0 20px;
    padding: 22px 18px;
    border: 1px solid rgba(7,193,96,0.18);
    border-radius: 12px;
    background: linear-gradient(180deg, #F6FFF9, #FFFFFF);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 4px 18px rgba(7,193,96,0.1);
}
.wechat-browser-card i {
    font-size: 42px;
    color: #07C160;
    margin-bottom: 12px;
}
.wechat-browser-card p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #555;
}
.wechat-browser-card-warning {
    border-color: rgba(245,158,11,0.28);
    background: linear-gradient(180deg, #FFFBEB, #FFFFFF);
    box-shadow: 0 4px 18px rgba(245,158,11,0.12);
}
.wechat-browser-card-warning i {
    color: #F59E0B;
}
.wechat-tip {
    font-size: 13px;
    color: #666;
    margin: 0 0 24px;
    text-align: center;
}
.wechat-tip i {
    color: #07C160;
    margin-right: 4px;
}
.btn-wechat {
    background: #07C160;
    color: #fff;
    border: none;
    font-size: 16px;
    font-weight: 600;
    padding: 14px 0;
    border-radius: 12px;
    width: 100%;
    max-width: 300px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(7,193,96,0.3);
}
.btn-wechat:active {
    transform: scale(0.98);
    background: #06AD56;
}
.btn-wechat i {
    margin-right: 8px;
}
.wechat-notice {
    margin: 32px auto 0;
    padding: 16px;
    background: #FFF8E1;
    border-radius: 12px;
    width: 100%;
    max-width: 300px;
}
.wechat-notice p {
    font-size: 12px;
    color: #999;
    margin: 6px 0;
    line-height: 1.6;
}
.wechat-notice i {
    color: #F59E0B;
    margin-right: 6px;
    width: 16px;
}


/* ========== Product Options Modal ========== */
.product-options-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.product-option-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: linear-gradient(135deg, #FFF8E7, #FFF3D0);
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.2s;
    border: 2px solid transparent;
}
.product-option-item:active {
    transform: scale(0.98);
    border-color: var(--primary);
}
.product-option-name {
    font-size: 15px;
    font-weight: 600;
    color: #1A1A1A;
}
.product-option-price {
    font-size: 18px;
    font-weight: 700;
    color: #FF457C;
}


.product-option-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}
.product-option-qty {
    display: flex;
    gap: 6px;
}
.qty-btn {
    width: 36px;
    height: 28px;
    border: none;
    border-radius: 6px;
    background: #FF457C;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}
.qty-btn:active {
    transform: scale(0.92);
    background: #E03568;
}


/* ========== Cart Options ========== */
.cart-options-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}
.cart-option-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: linear-gradient(135deg, #FFF8E7, #FFF3D0);
    border-radius: 12px;
}
.cart-option-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.cart-option-name {
    font-size: 15px;
    font-weight: 600;
    color: #1A1A1A;
}
.cart-option-price {
    font-size: 14px;
    font-weight: 700;
    color: #FF457C;
}
.cart-option-right {
    display: flex;
    align-items: center;
    gap: 6px;
}
.cart-qty-btn {
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cart-minus {
    background: #f0f0f0;
    color: #666;
}
.cart-plus {
    background: #FF457C;
    color: #fff;
}
.cart-qty-btn:active {
    transform: scale(0.9);
}
.cart-qty-num {
    font-size: 14px;
    font-weight: 700;
    color: #1A1A1A;
    min-width: 20px;
    text-align: center;
}
.cart-total-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: #FFF8E1;
    border-radius: 12px;
    font-size: 14px;
    color: #333;
}
.cart-total-price {
    font-size: 20px;
    color: #FF457C;
}
.cart-buy-btn {
    padding: 10px 24px;
    border-radius: 10px;
    font-size: 14px;
}


.hero-text {
    font-size: 13px;
    font-weight: 400;
    color: #C4A84E;
    text-shadow: none;
    letter-spacing: 1px;
    line-height: 1.4;
}

/* Hero Carousel */
.hero-carousel {
    position: relative;
    margin: 16px;
    height: 200px;
    border-radius: 16px;
    overflow: hidden;
}
.carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.4s ease;
}
.carousel-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    border-radius: 16px;
}
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: rgba(0,0,0,0.4);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s;
}
.carousel-arrow:active {
    background: rgba(0,0,0,0.7);
}
.carousel-left {
    left: 8px;
}
.carousel-right {
    right: 8px;
}
.carousel-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}
.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: background 0.2s;
}
.carousel-dot.active {
    background: #fff;
}

/* ========== 支付弹窗 ========== */
.pay-modal {
    padding: 8px 0;
}
.pay-product-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #FFF8E7, #FFF3D0);
    border-radius: 12px;
    margin-bottom: 16px;
}
.pay-product-icon {
    font-size: 32px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.pay-product-name {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 2px;
}
.pay-product-id {
    margin-bottom: 2px;
    color: #999;
    font-size: 12px;
}
.pay-product-price {
    font-size: 18px;
    font-weight: 700;
    color: #FF457C;
}
.wechat-pay-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 0 16px;
    padding: 10px 12px;
    color: #16853A;
    background: #EDF9F0;
    border: 1px solid #C8EFD1;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
}
.wechat-pay-notice i {
    font-size: 18px;
}
.pay-method-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 16px;
    background: #f5f5f5;
    border-radius: 10px;
    padding: 3px;
}
.pay-method-tab {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    color: #666;
}
.pay-method-tab i {
    margin-right: 4px;
}
.pay-method-tab.active {
    background: #fff;
    color: #07C160;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.pay-qr-area {
    text-align: center;
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pay-qr-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #999;
}
.pay-qr-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.pay-qr-img-wrap {
    position: relative;
    width: 200px;
    height: 200px;
    border: 2px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    padding: 8px;
}
.pay-qr-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.pay-qr-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.9);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #07C160;
    pointer-events: none;
}
.pay-button-card {
    width: 100%;
    max-width: 280px;
    padding: 22px 18px;
    border: 1px solid #eee;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 18px rgba(0,0,0,0.06);
}
.pay-button-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: #F6FFF9;
    color: #07C160;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
}
.pay-button-icon.native-pay-icon {
    width: 240px;
    height: 240px;
    margin-bottom: 14px;
    border-radius: 18px;
    background: #fff;
}
.pay-button-icon.native-pay-icon .native-pay-qrcode {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 10px;
    object-fit: contain;
    box-sizing: border-box;
}
.pay-modal,
.pay-modal .pay-product-name,
.pay-modal .pay-qr-tip {
    color: #26302d;
}
.pay-action-btn {
    margin-top: 14px;
}
.pay-qr-tip {
    margin-top: 12px;
    font-size: 13px;
    color: #666;
}
.pay-qr-error {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.pay-technical-detail { width: 100%; margin-top: 14px; text-align: left; color: #6b6255; }
.pay-technical-detail summary { cursor: pointer; text-align: center; color: #8d7651; font-size: 13px; }
.pay-technical-detail pre { max-height: 180px; overflow: auto; margin: 8px 0 0; padding: 10px; border-radius: 6px; background: #f5f1e8; color: #4b4439; font-size: 11px; line-height: 1.45; white-space: pre-wrap; word-break: break-word; }
.pay-status-bar {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: linear-gradient(135deg, #E8F5E9, #C8E6C9);
    border-radius: 10px;
    margin-top: 16px;
    font-size: 15px;
    font-weight: 600;
    color: #2E7D32;
}
.pay-success-icon {
    color: #2E7D32;
    font-size: 20px;
}

/* ========== 微信扫码登录页优化 ========== */
.wechat-qr-box {
    width: 300px;
    height: 340px;
    margin: 0 auto 16px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.wechat-qr-iframe {
    width: 300px;
    height: 340px;
    border: none;
    border-radius: 12px;
    overflow: hidden;
}
.wechat-qr-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.wechat-qr-error {
    display: none;
    flex-direction: column;
    align-items: center;
}
.wechat-poll-status {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 12px 0;
    font-size: 14px;
    color: #07C160;
}
.wechat-poll-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #07C160;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Desktop browser: keep the existing mobile WeChat authorization screen untouched. */
.desktop-auth-page {
    min-height: 100vh;
    display: flex;
    padding: 0;
    background: radial-gradient(circle at 16% 15%, rgba(7,193,96,.2), transparent 34%), linear-gradient(135deg, #10251f 0%, #183c31 52%, #0c1c18 100%);
}
.desktop-login-panel { width:100%; min-height:100vh; display:grid; grid-template-columns:1.35fr .65fr; overflow:hidden; background:rgba(255,255,255,.98); }
.desktop-login-intro { padding:clamp(42px, 8vh, 96px) clamp(48px, 9vw, 150px); color:#fff; background:linear-gradient(145deg, #086c42, #09a85b); display:flex; flex-direction:column; justify-content:center; }
.desktop-brand-mark { display:flex; align-items:center; justify-content:center; width:52px; height:52px; border-radius:16px; background:#fff; color:#07a651; font-size:29px; box-shadow:0 10px 24px rgba(0,0,0,.16); }
.desktop-eyebrow { display:block; margin-top:44px; font-size:14px; letter-spacing:4px; opacity:.82; }
.desktop-login-intro h1 { margin:12px 0 16px; font-size:36px; letter-spacing:.5px; }
.desktop-login-intro p { max-width:350px; margin:0; font-size:16px; line-height:1.8; color:rgba(255,255,255,.8); }
.desktop-login-features { display:flex; flex-wrap:wrap; gap:14px 18px; margin-top:52px; font-size:13px; color:rgba(255,255,255,.9); }
.desktop-login-features i { margin-right:5px; color:#b9ffd8; }
.desktop-qr-card { position:relative; display:flex; flex-direction:column; align-items:center; justify-content:center; padding:42px 34px 30px; text-align:center; }
.desktop-back-btn { position:absolute; top:22px; left:24px; border:0; background:transparent; color:#7b8682; cursor:pointer; font-size:14px; }
.desktop-qr-card h2 { margin:0; color:#22322b; font-size:22px; }
.desktop-qr-card > p { margin:10px 0 22px; color:#84908a; font-size:13px; }
.desktop-qr-frame { display:flex; align-items:center; justify-content:center; width:220px; height:220px; padding:12px; border:1px solid #dce8e0; border-radius:16px; background:#fff; box-shadow:0 12px 30px rgba(12,89,50,.11); }
.desktop-qr-frame img { width:100%; height:100%; display:block; border-radius:6px; }
.desktop-login-status { min-height:22px; margin-top:18px; color:#159155; font-size:14px; }
.desktop-login-status i { margin-right:6px; }
.desktop-refresh-btn { margin-top:12px; padding:7px 12px; border:0; background:transparent; color:#75847c; cursor:pointer; font-size:13px; }
.desktop-refresh-btn:hover { color:#07a651; }
@media (max-width: 720px) { .desktop-auth-page { padding:0; } .desktop-login-panel { min-height:100vh; grid-template-columns:1fr; } .desktop-login-intro { padding:48px 30px 38px; } .desktop-eyebrow { margin-top:28px; } .desktop-login-intro h1 { font-size:28px; } .desktop-login-features { margin-top:28px; } .desktop-qr-card { padding:48px 24px 36px; } }

/* Touch gesture support in mobile and WeChat WebViews. */
.hero-carousel { touch-action: pan-y; }
.carousel-track { transition: transform 0.32s ease-out; }

/* Profile visual refresh: cool teal structure with warm gold accents. */
.profile-page, .messages-page { background: #dedede; }
.profile-header { background: #343434; padding: 28px 18px 34px; box-shadow: none; }
.profile-avatar { background: #d5d5d5; border-color: rgba(255,255,255,.32); color: #1b1b1b; box-shadow: 0 5px 14px rgba(0,0,0,.2); overflow: hidden; }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-info, .profile-id { color: rgba(255,255,255,.72); }
.profile-name { color: #fff; }
.profile-wallet-card { margin: -18px 12px 14px; border-radius: 8px; background: #666666; box-shadow: 0 8px 18px rgba(0,0,0,.16); }
.profile-wallet-icon { background: rgba(255,255,255,.12); color: #dedede; }
.profile-notice { margin: 12px; border: 1px solid #dedede; border-radius: 6px; background: #fafafa; color: #666; }
.profile-section { margin: 18px 12px; }
.profile-section-title { color: #1d3032; font-size: 15px; }
.profile-section-more { color: #748082; }
.profile-order-tabs, .common-functions { border-radius: 8px; background: #fff; box-shadow: 0 2px 10px rgba(22,48,50,.06); }
.profile-order-tabs { padding: 12px 4px; }
.profile-order-tab-icon { width: 40px; height: 40px; border-radius: 8px; background: #eeeeee; color: #333; }
.profile-order-tab span, .common-function-item span { color: #526063; }
.common-functions { padding: 12px 6px; gap: 4px; }
.common-function-icon { width: 40px; height: 40px; border: 0; border-radius: 8px; background: #eeeeee; color: #333; }
.profile-menu { border-radius: 8px; box-shadow: 0 2px 10px rgba(22,48,50,.06); }
.profile-menu-item { padding: 15px 16px; }
.profile-menu-item i { color: #333; }
.edit-avatar-field { display: grid; grid-template-columns: 58px auto; align-items: center; column-gap: 12px; margin: 0 0 18px; }
.edit-avatar-preview { width: 58px; height: 58px; grid-row: span 2; border: 1px solid #d7d7d7; border-radius: 50%; background: #eee; object-fit: cover; }
.edit-avatar-placeholder { display: flex; align-items: center; justify-content: center; color: #777; font-size: 22px; }
.edit-avatar-select { width: fit-content; border: 1px solid #bdbdbd; border-radius: 5px; background: #fff; color: #333; font-size: 13px; padding: 7px 10px; }
.edit-avatar-field input { display: none; }
.edit-avatar-field span { color: #888; font-size: 11px; }

/* Keep the primary user pages on the same gray surface as the catalog home. */
.profile-page, .messages-page, .customer-service-page, .complaints-page, .service-detail, .order-form, .orders-page { background: #343434; }
.orders-page .back-header { background: #343434; border-bottom-color: #505050; color: #f1f1f1; }
.orders-page .back-btn { color: #f1f1f1; }
.orders-page-content { margin-top: var(--header-height); }
.messages-page .message-page-toolbar h2, .messages-page .message-page-toolbar p, .messages-page .message-state, .profile-section-title, .complaints-heading { color: #f1f1f1; }
.complaints-heading { margin-top: 20px; font-weight: 600; }
.customer-service-page .back-header, .complaints-page .back-header, .service-detail .back-header, .order-form .back-header { background: #343434; border-bottom-color: #505050; color: #f1f1f1; }
.customer-service-page .back-btn, .complaints-page .back-btn, .service-detail .back-btn, .order-form .back-btn { color: #f1f1f1; }
.customer-service-page .chat-list { background: #343434; }
.customer-service-page .chat-compose { border-top-color: #505050; background: #2b2b2b; }
.customer-service-page .chat-dnd { color: #dedede; }
.main-content.dark-surface { background: #343434; }
.recruit-page { min-height: 100%; background: #343434; }
@supports (min-height: 100dvh) { .recruit-page { min-height: 100dvh; } }

/* Keep wallet overrides last so earlier component defaults cannot restore color. */
.wallet-page { min-height: 100%; background: #111; }
.wallet-page .back-header { background: #191919; color: #f1f1f1; border-bottom: 1px solid #333; }
.wallet-page .back-btn { color: #f1f1f1; }
.wallet-balance-card { background: #252525; border: 1px solid #3a3a3a; border-radius: 12px; box-shadow: 0 8px 22px rgba(0,0,0,.32); }
.wallet-balance-bg { display: none; }
.wallet-balance-content { color: #f4f4f4; }
.wallet-balance-label { color: #aaa; opacity: 1; }
.wallet-bonus-section, .wallet-history-list { background: #1d1d1d; box-shadow: none; border: 1px solid #353535; }
.wallet-bonus-section { border-radius: 12px; }
.wallet-bonus-section h4, .wallet-history-section h4 { color: #f2f2f2; }
.wallet-bonus-section h4 i { color: #c6a85d; }
.wallet-bonus-item { border-color: #343434; }
.wallet-bonus-item:active { background: #292929; }
.wallet-bonus-num { background: #4a4a4a; }
.bonus-label, .bonus-amount { color: #ededed; }
.bonus-label.green, .bonus-amount.green { color: #d6b568; }
.bonus-unit { color: #e2c579; background: #353025; }
.wallet-history-item { border-color: #343434; }
.wallet-history-title { color: #eee; }
.wallet-history-time, .wallet-empty-history { color: #989898; }
.wallet-history-icon.plus { color: #dfbf70; background: #393225; }
.wallet-history-amount.plus { color: #dfbf70; }
.wallet-rules-section { background: #1d1d1d; border: 1px solid #353535; border-radius: 12px; box-shadow: none; }
.wallet-rules-section h4, .wallet-rule-text strong { color: #e0c177; }
.wallet-rule-text { color: #c8c8c8; }
.wallet-rule-num { background: #525252; }
