* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background: #f5f7fa;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.phone-frame {
    max-width: 400px;
    width: 100%;
    margin: 0 auto;
    background: #ffffff;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.12);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    border-radius: 32px;
    overflow: hidden;
}

.status-bar {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    padding: 14px 20px 6px;
    display: flex;
    justify-content: space-between;
    font-size: 15px;
    font-weight: 500;
    color: #1c1c1e;
    border-bottom: 1px solid rgba(0,0,0,0.03);
}

.status-bar .time {
    font-weight: 600;
}

.status-bar .domain {
    color: #8e8e93;
    font-size: 14px;
    font-weight: 500;
}

.status-bar .cart-badge {
    cursor: pointer;
}

.announcement-bar {
    background: #fef3e2;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(255,215,0,0.2);
    font-size: 13px;
    color: #8b6f4c;
    font-weight: 500;
    overflow: hidden;
}

.announcement-icon {
    background: #ffd9a3;
    border-radius: 30px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 700;
    color: #734d1a;
    flex-shrink: 0;
}

.announcement-text {
    overflow: hidden;
    white-space: nowrap;
    animation: scroll 12s linear infinite;
}

.announcement-text span {
    margin-right: 30px;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    20% { transform: translateX(0); }
    25% { transform: translateX(-20px); }
    45% { transform: translateX(-20px); }
    50% { transform: translateX(-40px); }
    70% { transform: translateX(-40px); }
    75% { transform: translateX(-60px); }
    95% { transform: translateX(-60px); }
    100% { transform: translateX(0); }
}

.sale-banner {
    background: linear-gradient(135deg, #1e1e2f, #2d2d44);
    color: white;
    text-align: center;
    padding: 22px 20px 20px;
    line-height: 1.3;
    position: relative;
    isolation: isolate;
}

.sale-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 30%, rgba(255,215,0,0.15), transparent 60%);
    pointer-events: none;
    z-index: -1;
}

.sale-banner .small-title {
    font-size: 14px;
    opacity: 0.7;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.sale-banner .big-title {
    font-size: 42px;
    font-weight: 800;
    margin: 4px 0;
    background: linear-gradient(120deg, #fff, #f8e3a7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sale-banner .sub-title {
    font-size: 16px;
    font-weight: 400;
    opacity: 0.9;
}

.category-grid {
    display: flex;
    justify-content: space-around;
    padding: 20px 16px;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(0,0,0,0.03);
    gap: 4px;
    overflow-x: auto;
}

.cat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 500;
    color: #2c2c2e;
    cursor: pointer;
}

.cat-icon {
    width: 52px;
    height: 52px;
    background: rgba(240, 240, 245, 0.7);
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #1c1c1e;
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 20px 16px;
    background: #f8f9fc;
}

.product-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 30px -12px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.6);
    transition: all 0.25s ease;
    position: relative;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 40px -15px rgba(0,0,0,0.15);
}

.product-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: linear-gradient(145deg, #f1f3f6, #e9ecf0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8e8e93;
    font-size: 13px;
    flex-direction: column;
    position: relative;
}

.product-img .emoji-bg {
    font-size: 48px;
    opacity: 0.7;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.05));
    margin-bottom: 4px;
}

.hot-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ff4444;
    color: white;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.product-desc {
    padding: 12px 14px 6px;
    font-size: 14px;
    font-weight: 500;
    color: #1c1c1e;
    line-height: 1.4;
    min-height: 60px;
    border-bottom: 1px solid rgba(0,0,0,0.03);
}

.product-price {
    padding: 10px 14px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.price-amount {
    font-size: 20px;
    font-weight: 700;
    color: #1e1e2f;
    letter-spacing: -0.3px;
}

.price-amount small {
    font-size: 13px;
    font-weight: 500;
    color: #8e8e93;
}

.point-tag {
    background: #eef3ff;
    color: #3361cc;
    padding: 4px 10px;
    border-radius: 40px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.stock-display {
    background: #e0f2e9;
    color: #1e7b4c;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 40px;
    white-space: nowrap;
}

.bottom-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(12px);
    padding: 10px 0 14px;
    border-top: 1px solid rgba(0,0,0,0.03);
    margin-top: auto;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 11px;
    color: #8e8e93;
    gap: 4px;
    cursor: pointer;
    font-weight: 500;
}

.nav-item.active {
    color: #1e1e2f;
    font-weight: 600;
}

.nav-icon {
    font-size: 24px;
    margin-bottom: 2px;
}

/* 商品详情页 */
.product-detail-img {
    width: 100%;
    aspect-ratio: 1/1;
    background: linear-gradient(145deg, #f1f3f6, #e9ecf0);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.big-emoji {
    font-size: 120px;
    opacity: 0.8;
}

.hot-badge, .new-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
}

.hot-badge {
    background: #ff4444;
    color: white;
}

.new-badge {
    background: #4caf50;
    color: white;
    left: auto;
    right: 20px;
}

.product-info {
    padding: 20px;
}

.product-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

.product-desc-text {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.price-section {
    display: flex;
    align-items: baseline;
    gap: 20px;
    margin-bottom: 20px;
}

.current-price {
    font-size: 32px;
    font-weight: 700;
    color: #ff4444;
}

.points-info {
    color: #666;
}

.points-badge {
    background: #eef3ff;
    color: #3361cc;
    padding: 4px 10px;
    border-radius: 40px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 5px;
}

.stock-info {
    display: flex;
    gap: 30px;
    color: #666;
    font-size: 14px;
    margin-bottom: 30px;
}

.action-buttons {
    display: flex;
    gap: 15px;
}

.add-to-cart, .buy-now, .login-btn {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.add-to-cart {
    background: #f0f0f0;
    color: #333;
}

.buy-now {
    background: #ff4444;
    color: white;
}

.login-btn {
    background: #1e1e2f;
    color: white;
}

.product-tabs {
    margin-top: 20px;
}

.tab-header {
    display: flex;
    border-bottom: 1px solid #eee;
    padding: 0 20px;
}

.tab-item {
    padding: 15px 20px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
}

.tab-item.active {
    color: #ff4444;
    border-bottom: 2px solid #ff4444;
}

.tab-content {
    padding: 20px;
}

/* 购物车页 */
.cart-page {
    flex: 1;
    background: #f8f9fc;
}

.page-title {
    padding: 20px;
    font-size: 24px;
    font-weight: 700;
}

.empty-cart {
    text-align: center;
    padding: 80px 20px;
}

.empty-icon {
    font-size: 80px;
    display: block;
    margin-bottom: 20px;
    opacity: 0.3;
}

.empty-cart p {
    font-size: 16px;
    color: #999;
    margin-bottom: 30px;
}

.empty-cart button {
    background: #1e1e2f;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 16px;
    cursor: pointer;
}

.cart-list {
    padding: 0 20px;
}

.cart-item {
    background: white;
    border-radius: 16px;
    padding: 15px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.item-checkbox input {
    width: 20px;
    height: 20px;
}

.item-img {
    width: 80px;
    height: 80px;
    background: #f0f0f0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    cursor: pointer;
}

.item-info {
    flex: 1;
}

.item-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.item-price {
    color: #ff4444;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 5px;
}

.item-points {
    font-size: 12px;
    color: #3361cc;
    margin-bottom: 10px;
}

.item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
}

.item-quantity button {
    width: 30px;
    height: 30px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 8px;
    cursor: pointer;
}

.quantity-num {
    min-width: 30px;
    text-align: center;
}

.item-remove {
    font-size: 20px;
    color: #999;
    cursor: pointer;
    padding: 10px;
}

.cart-footer {
    background: white;
    padding: 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.total-info {
    font-size: 16px;
}

.total-price {
    font-size: 24px;
    font-weight: 700;
    color: #ff4444;
    margin-left: 5px;
}

.total-points {
    font-size: 14px;
    color: #3361cc;
    margin-left: 10px;
}

.checkout-btn {
    background: #ff4444;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

/* 个人中心 */
.profile-header {
    background: white;
    padding: 24px 20px 16px;
    border-bottom: 1px solid rgba(0,0,0,0.03);
    position: relative;
}

.credit-score-badge {
    position: absolute;
    top: 24px;
    right: 20px;
    background: linear-gradient(145deg, #f7eac6, #f5d7b3);
    color: #4f3d1a;
    padding: 12px 22px;
    border-radius: 60px;
    font-weight: 700;
    font-size: 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.2;
    z-index: 10;
}

.credit-score-badge .label {
    font-size: 10px;
    font-weight: 500;
    opacity: 0.7;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.profile-row {
    display: flex;
    align-items: center;
    gap: 18px;
}

.avatar {
    width: 70px;
    height: 70px;
    background: linear-gradient(145deg, #d4e1fa, #b8cef5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    color: #1e2f5a;
    border: 3px solid white;
}

.user-info {
    font-weight: 600;
    font-size: 22px;
    color: #1c1c1e;
}

.user-info small {
    font-weight: 400;
    font-size: 14px;
    color: #8e8e93;
    display: block;
    margin-top: 4px;
}

.stats-box {
    display: flex;
    justify-content: space-around;
    background: #f8f9fc;
    padding: 18px 8px;
    margin: 20px 0 8px;
    border-radius: 32px;
}

.stat-cell {
    text-align: center;
    flex: 1;
}

.stat-number {
    font-size: 24px;
    font-weight: 700;
    color: #1e1e2f;
}

.stat-label {
    font-size: 12px;
    color: #8e8e93;
    font-weight: 500;
    margin-top: 2px;
}

.security-status {
    background: #f1f4fa;
    margin: 16px;
    border-radius: 28px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.security-status .protected {
    background: #10b981;
    color: white;
    border-radius: 20px;
    padding: 2px 12px;
    font-size: 12px;
}

.section-title {
    display: flex;
    justify-content: space-between;
    padding: 16px 20px 8px;
    font-weight: 600;
    color: #1c1c1e;
    font-size: 16px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    background: white;
    padding: 18px 12px;
    border-radius: 32px;
    margin: 0 16px 24px;
    box-shadow: 0 8px 20px -12px rgba(0,0,0,0.08);
}

.feature-item {
    text-align: center;
    font-size: 12px;
    font-weight: 500;
    color: #3a3a3c;
    cursor: pointer;
}

.feature-item span {
    font-size: 26px;
    display: block;
    margin-bottom: 6px;
}

.recommend-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 0 16px 24px;
}

.recommend-item {
    background: #f4f6fa;
    border-radius: 20px;
    padding: 10px;
    cursor: pointer;
}

.rec-img {
    font-size: 36px;
    text-align: center;
    margin-bottom: 10px;
}

.rec-name {
    font-size: 14px;
    margin-bottom: 5px;
}

.rec-price {
    font-size: 14px;
    font-weight: 700;
    color: #ff4444;
}

/* 积分商城 */
.points-header {
    background: linear-gradient(145deg, #d14b3a, #b02c1a);
    padding: 24px 20px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.points-title {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -1px;
}

.my-points {
    font-size: 14px;
    background: rgba(255,255,255,0.2);
    padding: 8px 15px;
    border-radius: 30px;
}

.points-num {
    font-size: 20px;
    font-weight: 700;
    margin-left: 5px;
}

.points-tags {
    display: flex;
    gap: 10px;
    padding: 0 16px 12px;
    flex-wrap: wrap;
}

.points-tags .tag {
    background: #ffead2;
    color: #b05516;
    padding: 6px 16px;
    border-radius: 40px;
    font-size: 12px;
    font-weight: 500;
}

.points-price {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: #ff4444;
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.flash-sale {
    background: #fff4e5;
    border-radius: 24px;
    padding: 14px;
    margin: 8px 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flash-title {
    font-weight: 600;
}

.flash-btn {
    background: #b02c1a;
    color: white;
    padding: 6px 16px;
    border-radius: 40px;
    border: none;
    cursor: pointer;
}

/* 服务中心 */
.service-header {
    padding: 24px 20px 10px;
}

.service-header h3 {
    font-size: 30px;
    font-weight: 700;
}

.service-status {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.online-badge {
    background: #ff4a3a;
    color: white;
    padding: 4px 14px;
    border-radius: 40px;
}

.service-card {
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(10px);
    margin: 16px;
    padding: 22px;
    border-radius: 36px;
    border: 1px solid rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.service-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.service-icon {
    font-size: 42px;
}

.service-name {
    font-weight: 600;
}

.service-desc {
    color: #8e8e93;
}

.service-btn {
    background: #007bff;
    color: white;
    padding: 8px 16px;
    border-radius: 40px;
    border: none;
    cursor: pointer;
}

.unread-badge {
    background: #ff4a3a;
    color: white;
    padding: 4px 14px;
    border-radius: 40px;
    font-size: 12px;
}

.common-services {
    margin: 24px 16px;
}

.common-services h4 {
    font-weight: 600;
    margin-bottom: 16px;
}

.service-icons {
    display: flex;
    gap: 40px;
    justify-content: center;
    padding: 10px 0;
}

.service-icon-item {
    text-align: center;
    cursor: pointer;
}

.service-icon-item span:first-child {
    font-size: 42px;
    display: block;
    margin-bottom: 8px;
}

.help-center {
    margin: 8px 16px 24px;
    background: #f8f9fc;
    padding: 18px;
    border-radius: 32px;
}

.help-center h4 {
    font-weight: 600;
    margin-bottom: 12px;
}

.help-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.help-tag {
    background: white;
    padding: 8px 18px;
    border-radius: 40px;
    cursor: pointer;
}

/* 响应式 */
@media (max-width: 400px) {
    .phone-frame {
        border-radius: 0;
    }
}