* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background: linear-gradient(180deg, #fafbff 0%, #f0f2ff 100%);
    min-height: 100vh;
    padding-bottom: 90px;
    overflow-x: hidden;
}

/* 樱花画布 */
#sakura {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

/* 玻璃液态效果 */
.glass {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.08);
    border-radius: 20px;
}

/* 头部 */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 10px;
}

.logo-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-text h1 {
    font-size: 22px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
}

/* 金色闪耀文字 */
.gold-shine {
    font-size: 13px;
    background: linear-gradient(90deg, #f59e0b, #fbbf24, #f59e0b);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 2s linear infinite;
    font-weight: normal;
}

@keyframes shine {
    to { background-position: 200% center; }
}

.logo-text p {
    font-size: 12px;
    color: #888;
    margin-top: 2px;
}

.search-top {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    box-shadow: 0 2px 12px rgba(99,102,241,0.1);
}

/* 轮播图 */
.banner-wrap {
    margin: 10px 20px;
    border-radius: 20px;
    overflow: hidden;
    height: 180px;
    box-shadow: 0 4px 20px rgba(99,102,241,0.1);
}

.banner-slide {
    display: flex;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.banner-item {
    min-width: 100%;
    height: 100%;
}

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

/* 分类导航：“全部”固定在最左，其余分类横向滚动 */
.category-nav {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    margin: 10px 20px;
    overflow: hidden;
    border-radius: 16px;
}
.cat-fixed { flex-shrink: 0; }
.cat-scroll {
    flex: 1;
    display: flex;
    gap: 10px;
    padding-left: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.cat-scroll::-webkit-scrollbar { display: none; }
.cat-scroll .cat-item { flex-shrink: 0; }

.cat-item {
    padding: 8px 18px;
    white-space: nowrap;
    font-size: 14px;
    color: #666;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.2s;
}

.cat-item.active {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    box-shadow: 0 4px 12px rgba(99,102,241,0.3);
}

/* 商品列表 */
.goods-list {
    padding: 10px 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.goods-card {
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
}

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

.goods-img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.goods-info {
    padding: 12px;
}

.goods-name {
    font-size: 14px;
    color: #333;
    margin-bottom: 6px;
}

.goods-price {
    font-size: 18px;
    background: linear-gradient(135deg, #f43f5e, #fb7185);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
}

/* 弹窗 */
.mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.modal {
    width: 100%;
    max-width: 400px;
    padding: 28px;
    max-height: 85vh;
    overflow-y: auto;
    border-radius: 24px;
}

.modal h3 {
    text-align: center;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 13px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    font-size: 15px;
    background: rgba(255,255,255,0.95);
    outline: none;
    transition: all 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 60px;
}

.form-val {
    font-size: 16px;
    color: #333;
}

.price {
    font-size: 20px;
    color: #f43f5e;
    font-weight: bold;
    margin-top: 4px;
}

/* 按钮 */
.btn-primary {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    margin-top: 10px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(99,102,241,0.3);
    transition: all 0.2s;
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-cancel {
    width: 100%;
    padding: 15px;
    background: #f3f4f6;
    color: #666;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    margin-top: 10px;
    cursor: pointer;
}

/* 黑金客服悬浮球（微信样式） */
.kefu-float {
    position: fixed;
    right: 18px;
    bottom: 105px;
    width: 58px;
    height: 58px;
    background: radial-gradient(circle at 30% 30%, #2a2a2a, #050505);
    border: 1.5px solid #d4af37;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 22px rgba(0,0,0,0.45), inset 0 1px 2px rgba(245,215,110,0.25);
    z-index: 999;
    cursor: pointer;
    animation: kefuPulse 2.4s ease-in-out infinite;
}
@keyframes kefuPulse {
    0%, 100% { box-shadow: 0 6px 22px rgba(0,0,0,0.45), 0 0 0 0 rgba(212,175,55,0.45); }
    50% { box-shadow: 0 6px 22px rgba(0,0,0,0.45), 0 0 0 9px rgba(212,175,55,0); }
}

/* 数量选择器 */
.qty-box {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
}
.qty-box input {
    width: 80px !important;
    text-align: center;
    font-size: 17px !important;
    font-weight: bold;
    padding: 11px 0 !important;
}
.qty-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid #6366f1;
    background: #eef2ff;
    color: #4f46e5;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}
.qty-btn:active { background: #c7d2fe; }

/* 支付方式选择 */
.pay-type-box { display: flex; gap: 12px; }
.pay-type-item {
    flex: 1;
    border: 2px solid #e5e7eb;
    border-radius: 14px;
    padding: 14px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    position: relative;
    background: #fff;
    transition: all 0.2s;
}
.pay-type-item.active { border-color: #d4af37; background: #fffdf5; box-shadow: 0 3px 12px rgba(212,175,55,0.25); }
.pay-name { font-size: 13px; color: #333; }
.pay-check {
    position: absolute;
    top: 5px;
    right: 7px;
    color: #d4af37;
    font-size: 14px;
    font-weight: bold;
    visibility: hidden;
}
.pay-type-item.active .pay-check { visibility: visible; }

/* 详情阅读提示 */
.detail-read-tip {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #c2410c;
    font-size: 12.5px;
    padding: 9px 12px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 8px;
}

/* 底部版权文字 */
.site-footer {
    text-align: center;
    color: #9ca3af;
    font-size: 13px;
    padding: 18px 20px 10px;
    letter-spacing: 1px;
}

/* 底部导航 */
.bottom-nav {
    position: fixed;
    bottom: 15px;
    left: 15px;
    right: 15px;
    display: flex;
    justify-content: space-around;
    padding: 14px 0;
    z-index: 998;
    border-radius: 20px;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #9ca3af;
    cursor: pointer;
}

.nav-item.active {
    color: #6366f1;
}

/* 公告弹窗 */
.announce-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

.announce-box {
    width: 85%;
    max-width: 350px;
    background: white;
    border-radius: 24px;
    padding: 32px 26px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.announce-title {
    font-size: 20px;
    font-weight: bold;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
}

.announce-content {
    font-size: 15px;
    color: #666;
    line-height: 1.7;
    margin-bottom: 25px;
}

.announce-btn {
    padding: 13px 45px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 15px;
    box-shadow: 0 4px 16px rgba(99,102,241,0.3);
}

/* 订单号显示 */
.order-no-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f5f3ff;
    padding: 14px;
    border-radius: 12px;
    margin: 15px 0;
}

#orderNoText {
    flex: 1;
    font-size: 15px;
    color: #6366f1;
    font-weight: bold;
    word-break: break-all;
}

.copy-btn {
    padding: 7px 14px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 13px;
}

.result-tip {
    text-align: center;
    color: #666;
    font-size: 14px;
}
