/* ========================================
   烟雨旅游 - 手机网站样式表
   ======================================== */

/* ---- Reset ---- */
*,*::before,*::after { margin:0; padding:0; box-sizing:border-box; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; color: #333; background: #F5F7FA; line-height: 1.6; -webkit-font-smoothing: antialiased; max-width: 750px; margin: 0 auto; min-height: 100vh; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul,li { list-style: none; }

/* ---- 顶部导航 ---- */
.header { background: #fff; position: sticky; top: 0; z-index: 100; display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.header-logo { display: flex; align-items: center; gap: 8px; }
.header-logo img { width: 36px; height: 36px; border-radius: 8px; }
.header-logo span { font-size: 18px; font-weight: 700; color: #4A90D9; }
.header-nav { display: flex; gap: 8px; }
.header-nav a { padding: 6px 12px; border-radius: 4px; font-size: 14px; color: #666; transition: all .2s; }
.header-nav a:hover,
.header-nav a.active { background: #4A90D9; color: #fff; }
.header-user { font-size: 22px; padding: 4px 8px; border-radius: 50%; text-decoration: none; transition: all .2s; }
.header-user:hover { background: #F0F7FF; }
.header-user.vip { color: #E67E22; }

/* ---- 轮播Banner ---- */
.banner { position: relative; overflow: hidden; }
.banner-slider { display: flex; transition: transform .4s ease; }
.banner-item { min-width: 100%; height: 200px; display: flex; align-items: center; justify-content: center; text-align: center; color: #fff; padding: 20px; flex-direction: column; cursor: pointer; }
.banner-item h2 { font-size: 22px; margin-bottom: 8px; }
.banner-item p { font-size: 14px; opacity: .85; }
.banner-dots { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; }
.banner-dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.5); cursor: pointer; transition: all .3s; }
.banner-dots span.active { background: #fff; width: 20px; border-radius: 4px; }

/* ---- 特色服务 ---- */
.section { padding: 16px; }
.section-title { font-size: 17px; font-weight: 700; margin-bottom: 12px; display: flex; align-items: center; gap: 6px; }
.section-title::before { content: ''; width: 3px; height: 18px; background: #4A90D9; border-radius: 2px; display: inline-block; }
.features { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; }
.feature-item { background: #fff; border-radius: 10px; padding: 14px 8px; text-align: center; box-shadow: 0 1px 4px rgba(0,0,0,.04); }
.feature-item .icon { font-size: 28px; margin-bottom: 6px; }
.feature-item .name { font-size: 13px; color: #333; font-weight: 600; }
.feature-item .desc { font-size: 11px; color: #999; margin-top: 2px; }

/* ---- 热门推荐 ---- */
.hot-products { display: flex; flex-direction: column; gap: 12px; }
.hot-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.05); display: flex; }
.hot-card .card-img { width: 120px; height: 120px; display: flex; align-items: center; justify-content: center; font-size: 42px; color: #fff; flex-shrink: 0; }
.hot-card .card-info { padding: 12px 14px; flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.hot-card .card-info h3 { font-size: 16px; font-weight: 600; }
.hot-card .card-info .tags { display: flex; gap: 6px; margin-top: 4px; }
.hot-card .card-info .tag { font-size: 10px; padding: 2px 6px; border-radius: 3px; color: #fff; }
.hot-card .card-info .tag-hot { background: #E74C3C; }
.hot-card .card-info .tag-new { background: #2ECC71; }
.hot-card .card-info .tag-sale { background: #E67E22; }
.hot-card .card-info .desc { font-size: 12px; color: #999; margin-top: 4px; }
.hot-card .card-info .price-row { display: flex; align-items: baseline; gap: 8px; }
.hot-card .card-info .price { font-size: 20px; font-weight: 700; color: #E74C3C; }
.hot-card .card-info .price-ori { font-size: 12px; color: #ccc; text-decoration: line-through; }

/* ---- 底部导航 ---- */
.footer { background: #fff; text-align: center; padding: 20px 16px; font-size: 12px; color: #999; margin-top: 20px; border-top: 1px solid #eee; }
.footer p { margin: 4px 0; }

/* ---- 页面Title ---- */
.page-title { background: linear-gradient(135deg,#4A90D9,#2ECC71); color: #fff; padding: 24px 16px; text-align: center; }
.page-title h1 { font-size: 22px; }
.page-title p { font-size: 13px; opacity: .85; margin-top: 4px; }

/* ---- 商品列表页 ---- */
.product-list { padding: 12px 16px; display: flex; flex-direction: column; gap: 12px; }
.product-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.05); display: flex; cursor: pointer; transition: transform .2s; }
.product-card:active { transform: scale(.98); }
.product-card .p-img { width: 110px; height: 110px; display: flex; align-items: center; justify-content: center; font-size: 40px; color: #fff; flex-shrink: 0; }
.product-card .p-info { padding: 12px 14px; flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.product-card .p-info h3 { font-size: 15px; font-weight: 600; }
.product-card .p-info .p-desc { font-size: 12px; color: #999; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card .p-info .p-price-row { display: flex; align-items: baseline; gap: 8px; }
.product-card .p-info .p-price { font-size: 19px; font-weight: 700; color: #E74C3C; }
.product-card .p-info .p-price-ori { font-size: 12px; color: #ccc; text-decoration: line-through; }

/* ---- 商品详情页 ---- */
.detail-header { background: #fff; padding: 16px; text-align: center; }
.detail-header .d-icon { font-size: 64px; display: block; margin-bottom: 8px; color: #fff; width: 80px; height: 80px; line-height: 80px; margin: 0 auto 10px; border-radius: 16px; }
.detail-header h2 { font-size: 20px; font-weight: 700; }
.detail-header .d-price-row { margin-top: 10px; display: flex; align-items: baseline; justify-content: center; gap: 10px; }
.detail-header .d-price { font-size: 28px; font-weight: 700; color: #E74C3C; }
.detail-header .d-price-ori { font-size: 14px; color: #ccc; text-decoration: line-through; }
.detail-desc { background: #fff; margin: 10px 16px; border-radius: 12px; padding: 16px; }
.detail-desc h4 { font-size: 15px; font-weight: 600; margin-bottom: 10px; }
.detail-desc pre { white-space: pre-wrap; font-size: 14px; line-height: 1.8; color: #555; font-family: inherit; }

/* ---- 支付页 ---- */
.pay-section { margin: 10px 16px; background: #fff; border-radius: 12px; padding: 16px; }
.pay-section h4 { font-size: 15px; font-weight: 600; margin-bottom: 12px; display: flex; align-items: center; gap: 6px; }
.pay-section h4::before { content: ''; width: 3px; height: 16px; background: #4A90D9; border-radius: 2px; }
.order-info { font-size: 14px; }
.order-info .oi-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed #eee; }
.order-info .oi-row:last-child { border-bottom: none; font-weight: 700; color: #E74C3C; }
.pay-methods { display: flex; flex-direction: column; gap: 8px; }
.pay-method { display: flex; align-items: center; gap: 12px; padding: 12px; border: 2px solid #eee; border-radius: 10px; cursor: pointer; transition: all .2s; }
.pay-method.selected { border-color: #1677FF; background: #F0F7FF; }
.pay-method .pay-icon { font-size: 24px; width: 40px; height: 40px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #fff; }
.pay-method .pay-name { font-size: 15px; font-weight: 600; flex: 1; }
.pay-method .pay-check { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #ddd; display: flex; align-items: center; justify-content: center; }
.pay-method.selected .pay-check { border-color: #1677FF; background: #1677FF; }
.pay-method.selected .pay-check::after { content: '✓'; color: #fff; font-size: 12px; }

/* ---- 按钮 ---- */
.btn { display: block; width: 100%; padding: 14px; border: none; border-radius: 10px; font-size: 16px; font-weight: 600; cursor: pointer; transition: all .2s; text-align: center; }
.btn:active { opacity: .85; transform: scale(.98); }
.btn-primary { background: linear-gradient(135deg,#4A90D9,#3A7BC8); color: #fff; }
.btn-pay { background: linear-gradient(135deg,#1677FF,#0958D9); color: #fff; }
.btn-submit { background: linear-gradient(135deg,#E74C3C,#C0392B); color: #fff; margin-top: 10px; }
.btn:disabled { background: #ccc; color: #999; cursor: not-allowed; }

/* ---- 关于我们 ---- */
.about-section { background: #fff; margin: 10px 16px; border-radius: 12px; padding: 16px; }
.about-section h3 { font-size: 16px; font-weight: 600; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.about-section h3::before { content: ''; width: 3px; height: 16px; background: #4A90D9; border-radius: 2px; }
.about-section p { font-size: 14px; color: #666; line-height: 1.8; }
.contact-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 14px; color: #555; }
.contact-row .ci-icon { font-size: 20px; width: 36px; height: 36px; border-radius: 8px; background: #F0F7FF; display: flex; align-items: center; justify-content: center; color: #4A90D9; }

/* ---- Toast ---- */
.toast { position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%); background: rgba(0,0,0,.75); color: #fff; padding: 12px 24px; border-radius: 8px; font-size: 14px; z-index: 9999; pointer-events: none; opacity: 0; transition: opacity .3s; }
.toast.show { opacity: 1; }

/* ---- 返回按钮 ---- */
.back-btn { display: inline-flex; align-items: center; gap: 4px; color: #4A90D9; font-size: 15px; padding: 10px 16px; cursor: pointer; }
.back-btn:hover { opacity: .7; }

/* ---- 空状态 ---- */
.empty { text-align: center; padding: 60px 20px; color: #999; }
.empty .empty-icon { font-size: 48px; margin-bottom: 12px; }

/* ---- 数量选择器 ---- */
.qty-selector { display: flex; align-items: center; gap: 10px; margin: 10px 0; }
.qty-selector button { width: 32px; height: 32px; border-radius: 50%; border: 1px solid #ddd; background: #fff; font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.qty-selector button:active { background: #f0f0f0; }
.qty-selector .qty-num { font-size: 18px; font-weight: 600; min-width: 30px; text-align: center; }

/* ---- 登录注册 ---- */
.login-tabs { display: flex; margin: 16px 16px 0; background: #fff; border-radius: 10px; overflow: hidden; }
.login-tab { flex: 1; text-align: center; padding: 14px; font-size: 16px; font-weight: 600; color: #999; cursor: pointer; transition: all .2s; border-bottom: 3px solid transparent; }
.login-tab.active { color: #4A90D9; border-bottom-color: #4A90D9; }
.login-form-wrap { margin: 16px; background: #fff; border-radius: 12px; padding: 24px 20px; }
.login-avatar { text-align: center; margin-bottom: 20px; }
.login-avatar img { width: 64px; height: 64px; border-radius: 16px; margin: 0 auto; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; color: #333; margin-bottom: 6px; }
.form-input { width: 100%; padding: 12px 14px; border: 1px solid #E8E8E8; border-radius: 8px; font-size: 15px; outline: none; transition: border .2s; background: #FAFAFA; }
.form-input:focus { border-color: #4A90D9; background: #fff; }
.form-tip { text-align: center; font-size: 13px; color: #999; margin-top: 16px; }
.form-tip span { color: #4A90D9; cursor: pointer; font-weight: 600; }
.form-tip span:hover { text-decoration: underline; }

/* ---- 会员状态卡 ---- */
.member-status-card { text-align: center; padding: 30px 20px; margin: 16px; background: linear-gradient(135deg,#F5F7FA,#E8EEF5); border-radius: 16px; }
.member-status-card.vip { background: linear-gradient(135deg,#FFF8E1,#FFECB3,#FFE082); }
.msc-avatar { font-size: 56px; margin-bottom: 8px; }
.msc-name { font-size: 15px; color: #666; margin-bottom: 4px; }
.msc-badge { display: inline-block; background: linear-gradient(135deg,#E67E22,#F39C12); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 14px; border-radius: 12px; margin: 6px 0; letter-spacing: 1px; }
.msc-desc { font-size: 13px; color: #999; margin-top: 4px; }

/* ---- 会员套餐卡片 ---- */
.member-plans { display: flex; flex-direction: column; gap: 12px; }
.member-plan-card { background: #fff; border-radius: 14px; padding: 20px; text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,.05); position: relative; overflow: hidden; transition: transform .2s; }
.member-plan-card:active { transform: scale(.98); }
.mp-tags { position: absolute; top: 10px; right: 10px; display: flex; gap: 4px; }
.mp-tags span { background: #E74C3C; color: #fff; font-size: 10px; padding: 2px 8px; border-radius: 8px; }
.mp-tags span:last-child { background: #E67E22; }
.mp-icon { font-size: 36px; width: 60px; height: 60px; border-radius: 16px; display: flex; align-items: center; justify-content: center; margin: 10px auto; color: #fff; }
.mp-name { font-size: 17px; font-weight: 700; margin: 6px 0; }
.mp-desc { font-size: 12px; color: #999; margin-bottom: 8px; }
.mp-price-row { display: flex; align-items: baseline; justify-content: center; gap: 8px; }
.mp-price { font-size: 26px; font-weight: 700; color: #E74C3C; }
.mp-price-ori { font-size: 13px; color: #ccc; text-decoration: line-through; }
.mp-duration { font-size: 12px; color: #999; margin: 6px 0 12px; }
.btn-sm { padding: 10px 20px; font-size: 14px; display: inline-block; width: auto; }

/* ---- 弹窗 ---- */
.modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,.5); z-index: 999; display: flex; align-items: flex-end; justify-content: center; }
.modal-content { background: #fff; width: 100%; max-width: 750px; border-radius: 16px 16px 0 0; padding: 20px 16px 30px; animation: slideUp .3s ease; }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.modal-header h3 { font-size: 17px; }
.modal-close { font-size: 22px; color: #999; cursor: pointer; padding: 4px 8px; }
.modal-body { margin-bottom: 16px; }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }

/* ---- 会员权益 ---- */
.benefit-list { list-style: none; padding: 0; }
.benefit-list li { padding: 10px 0; font-size: 14px; color: #555; border-bottom: 1px solid #f5f5f5; display: flex; align-items: center; gap: 8px; }
.benefit-list li:last-child { border-bottom: none; }
.bi-check { color: #2ECC71; font-weight: 700; font-size: 16px; }

/* ---- 用户中心 ---- */
.user-card-inner { display: flex; align-items: center; gap: 14px; margin: 16px; padding: 20px; background: linear-gradient(135deg,#F5F7FA,#E3EBF5); border-radius: 16px; position: relative; }
.user-card-inner.vip { background: linear-gradient(135deg,#FFF8E1,#FFECB3); }
.uc-avatar { font-size: 44px; width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,.8); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.uc-info { flex: 1; }
.uc-info h3 { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.uc-info p { font-size: 13px; color: #666; margin: 2px 0; }
.uc-badge { position: absolute; top: 14px; right: 14px; background: linear-gradient(135deg,#E67E22,#F39C12); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 12px; border-radius: 10px; letter-spacing: 1px; }
.user-links { display: flex; flex-direction: column; }
.user-link-item { display: flex; align-items: center; gap: 10px; padding: 14px 0; border-bottom: 1px solid #f5f5f5; font-size: 15px; cursor: pointer; }
.user-link-item:last-child { border-bottom: none; }
.user-link-item span:last-child { margin-left: auto; color: #ccc; }

/* ---- 会员折扣标签 ---- */
.member-price-tag { background: linear-gradient(135deg,#E67E22,#F39C12); color: #fff; font-size: 10px; padding: 2px 6px; border-radius: 4px; margin-left: 6px; vertical-align: middle; }
.discount-row { display: flex; align-items: center; gap: 8px; background: #FFF8E1; padding: 8px 12px; border-radius: 8px; margin-top: 8px; font-size: 13px; color: #E67E22; }
.discount-row .dr-icon { font-size: 18px; }
.price-vip { color: #E67E22 !important; }
