* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #f5f5f5; color: #333; font-size: 14px; padding-bottom: 70px; }
a { text-decoration: none; color: inherit; }

/* 底部导航 */
.tabbar { position: fixed; bottom: 0; left: 0; right: 0; height: 60px; background: #fff; display: flex; border-top: 1px solid #eee; z-index: 100; }
.tabbar-item { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #999; font-size: 12px; gap: 4px; }
.tabbar-item.active { color: #ff6b00; }
.tabbar-icon { font-size: 22px; line-height: 1; }

/* 通用组件 */
.card { background: #fff; border-radius: 8px; margin: 12px; padding: 12px; }
.btn { width: 100%; height: 44px; line-height: 44px; text-align: center; border-radius: 22px; border: none; font-size: 16px; cursor: pointer; }
.btn-primary { background: #ff6b00; color: #fff; }
.btn-outline { background: #fff; color: #ff6b00; border: 1px solid #ff6b00; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-1 { flex: 1; }
.text-orange { color: #ff6b00; }
.text-gray { color: #999; }
.text-sm { font-size: 12px; }
.text-lg { font-size: 18px; font-weight: 500; }
.mt-10 { margin-top: 10px; }
.mb-10 { margin-bottom: 10px; }

/* 登录页 */
.login-page { min-height: 100vh; background: #fff; padding: 80px 24px; }
.login-logo { text-align: center; margin-bottom: 60px; }
.login-logo h1 { font-size: 28px; font-weight: 500; margin-bottom: 12px; }
.login-logo p { color: #999; font-size: 14px; }
.login-logo-icon { width: 120px; height: 120px; margin: 0 auto 20px; background: linear-gradient(135deg, #ff9500, #ff6b00); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 50px; }
.login-btn-group { display: flex; flex-direction: column; gap: 16px; }
.wechat-login-btn { background: #07c160; color: #fff; }
.phone-login-btn { background: #fff; color: #333; border: 1px solid #ddd; }
.agreement { margin-top: 20px; font-size: 12px; color: #999; text-align: center; }
.agreement a { color: #ff6b00; }

/* 首页 */
.banner { height: 160px; background: linear-gradient(135deg, #ff9500, #ff6b00); margin: 12px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 18px; font-weight: 500; }
.service-bar { display: flex; background: #fff; padding: 16px 0; margin: 0 12px 12px; border-radius: 8px; }
.service-item { flex: 1; text-align: center; font-size: 13px; color: #666; }
.service-item::before { content: ''; display: block; width: 24px; height: 24px; margin: 0 auto 6px; background: #ff6b00; border-radius: 50%; }
.section-title { padding: 0 12px; font-size: 16px; font-weight: 500; margin-bottom: 8px; }
.product-list { display: flex; flex-direction: column; gap: 10px; padding: 0 12px; }
.product-item { background: #fff; border-radius: 8px; padding: 12px; display: flex; gap: 12px; }
.product-img { width: 80px; height: 80px; background: #f0f0f0; border-radius: 6px; flex-shrink: 0; }
.product-info { flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.product-name { font-size: 15px; font-weight: 500; }
.product-spec { color: #999; font-size: 12px; margin-top: 4px; }
.product-price { color: #ff6b00; font-size: 18px; font-weight: 500; }
.buy-btn { width: 70px; height: 30px; line-height: 30px; background: #ff6b00; color: #fff; border-radius: 15px; text-align: center; font-size: 13px; align-self: flex-end; }

/* 下单页 */
.form-group { margin-bottom: 16px; }
.form-label { font-size: 14px; color: #666; margin-bottom: 8px; }
.form-input { width: 100%; height: 40px; border: 1px solid #eee; border-radius: 6px; padding: 0 12px; font-size: 14px; }
.quantity-control { display: flex; align-items: center; gap: 12px; }
.quantity-btn { width: 30px; height: 30px; border: 1px solid #eee; border-radius: 4px; background: #fff; cursor: pointer; }
.quantity-num { min-width: 30px; text-align: center; }
.price-detail { background: #fafafa; padding: 12px; border-radius: 6px; margin-top: 16px; }
.price-row { display: flex; justify-content: space-between; margin-bottom: 8px; }
.price-total { border-top: 1px solid #eee; padding-top: 8px; margin-top: 8px; font-weight: 500; }
.submit-bar { position: fixed; bottom: 0; left: 0; right: 0; background: #fff; padding: 10px 12px; display: flex; align-items: center; gap: 12px; border-top: 1px solid #eee; }
.submit-bar .total-price { flex: 1; }
.submit-btn { width: 120px; height: 40px; line-height: 40px; }

/* 购物车 */
.cart-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid #f0f0f0; }
.cart-item:last-child { border-bottom: none; }
.cart-img { width: 60px; height: 60px; background: #f0f0f0; border-radius: 6px; flex-shrink: 0; }
.cart-info { flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.cart-bottom { position: fixed; bottom: 60px; left: 0; right: 0; background: #fff; padding: 10px 12px; display: flex; align-items: center; border-top: 1px solid #eee; }
.cart-bottom .total { flex: 1; }

/* 订单 */
.order-tabs { display: flex; background: #fff; position: sticky; top: 0; z-index: 10; border-bottom: 1px solid #eee; }
.order-tab { flex: 1; text-align: center; padding: 12px 0; font-size: 14px; color: #666; position: relative; cursor: pointer; }
.order-tab.active { color: #ff6b00; }
.order-tab.active::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 20px; height: 2px; background: #ff6b00; border-radius: 1px; }
.order-item { background: #fff; border-radius: 8px; margin: 12px; padding: 12px; }
.order-header { display: flex; justify-content: space-between; margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid #f0f0f0; }
.order-status { color: #ff6b00; font-size: 13px; }
.order-goods { display: flex; gap: 10px; margin-bottom: 10px; }
.order-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 10px; border-top: 1px solid #f0f0f0; }
.order-btn { padding: 6px 16px; border-radius: 15px; font-size: 13px; border: 1px solid #ddd; background: #fff; margin-left: 8px; cursor: pointer; }
.order-btn-primary { background: #ff6b00; color: #fff; border-color: #ff6b00; }

/* 订单详情 */
.detail-section { background: #fff; margin-bottom: 10px; padding: 12px; }
.detail-row { display: flex; justify-content: space-between; margin-bottom: 8px; }
.detail-row:last-child { margin-bottom: 0; }

/* 个人中心 */
.profile-header { background: linear-gradient(135deg, #ff9500, #ff6b00); padding: 40px 20px 60px; color: #fff; display: flex; align-items: center; gap: 12px; }
.profile-avatar { width: 60px; height: 60px; border-radius: 50%; background: #fff; }
.profile-name { font-size: 18px; font-weight: 500; }
.profile-menu { background: #fff; margin: -30px 12px 12px; border-radius: 8px; overflow: hidden; }
.menu-item { display: flex; align-items: center; padding: 14px 12px; border-bottom: 1px solid #f0f0f0; cursor: pointer; }
.menu-item:last-child { border-bottom: none; }
.menu-icon { width: 20px; margin-right: 12px; text-align: center; }

/* 地址管理 */
.address-item { background: #fff; border-radius: 8px; margin-bottom: 10px; padding: 12px; }
.address-default { display: inline-block; background: #ff6b00; color: #fff; font-size: 11px; padding: 2px 6px; border-radius: 3px; margin-left: 8px; }
.add-address-btn { position: fixed; bottom: 0; left: 0; right: 0; padding: 10px 12px; background: #fff; border-top: 1px solid #eee; }
