/* shop.css — 灵鲤宠物商城（实物周边）样式，遵循宣纸/朱砂金配色 */

/* ===== 商品陈列 ===== */
.pet-store-head { text-align: center; }
.pet-store-title { font-size: 20px; font-weight: 700; color: #8B2323; margin-bottom: 6px; }
.pet-store-sub { font-size: 13px; color: var(--text-secondary, #7a6f65); line-height: 1.7; }
.pet-store-notice { margin-top: 10px; font-size: 12px; color: #7a5a20; background: #FBE9A3; border-radius: 8px; padding: 8px 12px; line-height: 1.7; }
.pet-store-foot { font-size: 12px; color: var(--text-secondary, #7a6f65); text-align: center; line-height: 1.7; }

.pet-cat { margin-bottom: 8px; }
.pet-cat-head { display: flex; align-items: center; gap: 8px; margin: 6px 4px 10px; }
.pet-cat-head h2 { font-size: 16px; font-weight: 700; color: var(--text-primary, #1A1613); }
.pet-cat-emoji { font-size: 20px; }

.pet-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.pet-card { display: flex; flex-direction: column; gap: 6px; padding: 12px; }
.pet-card-emoji { font-size: 40px; line-height: 1; text-align: center; }
.pet-card-name { font-size: 15px; font-weight: 700; color: var(--text-primary, #1A1613); }
.pet-card-tagline { font-size: 12px; color: #8B2323; line-height: 1.5; }
.pet-card-desc { font-size: 12px; color: var(--text-secondary, #7a6f65); line-height: 1.6; flex: 1; }
.pet-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; }
.pet-card-price { font-size: 16px; font-weight: 700; color: #B8860B; white-space: nowrap; }
.pet-add-btn { padding: 6px 10px; font-size: 12px; }

/* ===== 购物车条（吸顶） ===== */
.pet-cartbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 10px; padding: 10px 14px; background: #fff; border: 1px solid #B8860B; border-radius: 12px; box-shadow: 0 2px 10px rgba(0,0,0,0.08); }
.pet-cartbar-info { font-size: 14px; color: var(--text-primary, #1A1613); }
.pet-cartbar-info strong { color: #8B2323; font-size: 16px; margin-left: 2px; }

/* ===== 结算弹层 ===== */
.pet-modal-mask { position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,0.45); display: flex; align-items: flex-end; justify-content: center; }
.pet-modal { width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; background: #F8F5EE; border-radius: 16px 16px 0 0; padding: 16px; }
.pet-modal-head { display: flex; align-items: center; justify-content: space-between; font-size: 16px; font-weight: 700; color: var(--text-primary, #1A1613); margin-bottom: 12px; }
.pet-modal-close { border: none; background: transparent; font-size: 24px; line-height: 1; cursor: pointer; color: #7a6f65; }
.pet-modal-body { display: flex; flex-direction: column; gap: 4px; }
.pet-section-label { font-size: 13px; font-weight: 700; color: #8B2323; margin: 12px 0 6px; border-left: 3px solid #B8860B; padding-left: 8px; }

.pet-item-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 13px; }
.pet-item-emoji { font-size: 20px; }
.pet-item-name { flex: 1; color: var(--text-primary, #1A1613); }
.pet-item-qty { color: var(--text-secondary, #7a6f65); }
.pet-item-price { font-weight: 600; color: #B8860B; white-space: nowrap; }
.pet-total-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; border-top: 1px dashed #d8c9a8; margin-top: 6px; font-size: 14px; }
.pet-total-row strong { font-size: 18px; color: #8B2323; }

.pet-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pet-provider-list { display: flex; flex-direction: column; gap: 8px; }
.pet-provider { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid #d8c9a8; border-radius: 10px; cursor: pointer; font-size: 14px; }
.pet-provider.active { border-color: #B8860B; background: #FFF8E1; }
.pet-submit-btn { width: 100%; margin-top: 14px; }

/* ===== 我的订单 ===== */
.shop-order-card { display: flex; flex-direction: column; gap: 6px; }
.shop-order-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.shop-order-id { font-size: 12px; font-family: ui-monospace, monospace; color: var(--text-secondary, #7a6f65); }
.shop-order-item { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.shop-order-total { display: flex; align-items: center; justify-content: space-between; font-size: 13px; padding-top: 6px; border-top: 1px dashed #d8c9a8; }
.shop-order-total strong { color: #8B2323; font-size: 15px; }
.shop-order-ship { font-size: 12px; color: var(--text-secondary, #7a6f65); line-height: 1.7; background: #f6f1e7; border-radius: 8px; padding: 8px 10px; }
.shop-order-track { font-size: 13px; color: #7a5a20; }
.shop-order-date { font-size: 11px; color: #b3a995; text-align: right; }

@media (min-width: 640px) {
  .pet-modal { border-radius: 16px; margin-bottom: 4vh; }
}

/* ===== 宠物命数 ===== */
.pet-species-list { display: flex; gap: 10px; }
.pet-species { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; border: 1px solid #d8c9a8; border-radius: 10px; cursor: pointer; font-size: 15px; }
.pet-species input { display: none; }
.pet-species.active { border-color: #B8860B; background: #FFF8E1; }
.pet-species-emoji { font-size: 26px; }

.pf-title { font-size: 20px; font-weight: 700; color: #8B2323; margin-bottom: 10px; }
.pf-info { display: flex; flex-direction: column; gap: 6px; }
.pf-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; padding: 4px 0; }
.pf-row span:first-child { color: var(--text-secondary, #7a6f65); flex-shrink: 0; }
.pf-row strong { color: var(--text-primary, #1A1613); text-align: right; }
.pf-block { font-size: 13px; line-height: 1.8; color: var(--text-primary, #1A1613); margin-top: 4px; }

.pet-wechat-note { font-size: 12px; line-height: 1.7; color: #7a5a20; background: #FBE9A3; border-radius: 8px; padding: 8px 12px; margin: 12px 0 8px; }
.pet-success-mark { font-size: 44px; line-height: 1; text-align: center; margin-bottom: 4px; }
.pet-copy-btn { width: 100%; }

/* ===== 四柱命盘 / 五行 / 大运 ===== */
.pf-pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pf-pillar { text-align: center; padding: 10px 4px; border: 1px solid #e6dcc8; border-radius: 10px; background: #fbf7ee; }
.pf-pillar-name { font-size: 12px; color: #7a6f65; }
.pf-pillar-ganzhi { font-size: 22px; font-weight: 800; color: #8B2323; line-height: 1.2; margin: 2px 0; }
.pf-pillar-sub { font-size: 11px; color: #7a6f65; line-height: 1.4; }
.pf-wuxing { display: flex; flex-direction: column; gap: 6px; margin: 8px 0; }
.pf-wuxing-row { display: flex; align-items: center; gap: 8px; }
.pf-wuxing-label { width: 18px; font-weight: 700; color: #8B2323; }
.pf-wuxing-track { flex: 1; height: 10px; background: #f0e8d8; border-radius: 5px; overflow: hidden; }
.pf-wuxing-fill { height: 100%; background: linear-gradient(90deg, #B8860B, #8B2323); border-radius: 5px; }
.pf-wuxing-count { width: 28px; font-size: 12px; color: #7a6f65; text-align: right; }
.pf-dayun { display: flex; flex-wrap: wrap; gap: 8px; }
.pf-dayun-item { flex: 1 1 22%; min-width: 96px; text-align: center; padding: 8px 6px; border: 1px solid #e6dcc8; border-radius: 8px; }
.pf-dayun-item span { display: block; font-size: 11px; color: #7a6f65; }
.pf-dayun-item strong { display: block; font-size: 16px; color: #8B2323; margin: 2px 0; }
.pf-dayun-item em { display: block; font-size: 11px; color: #B8860B; font-style: normal; }

/* 大师批命总结 */
.pet-verdict-card { background: linear-gradient(135deg, #FFF8E1 0%, #FDF3D8 100%); border: 1px solid #e6d8b8; border-left: 3px solid #B8860B; }

/* 合盘十神角色 */
.pet-role-card { background: linear-gradient(135deg, #FFF8E1 0%, #FDF3D8 100%); border: 1px solid #e6d8b8; border-left: 3px solid #B8860B; }

/* 命盘进阶内容折叠 */
.pet-collapse summary { display: flex; align-items: center; gap: 6px; cursor: pointer; list-style: none; padding: 4px 0; }
.pet-collapse summary::-webkit-details-marker { display: none; }
.pet-collapse .pet-collapse-label { font-weight: 700; color: var(--text-primary, #1A1613); }
.pet-collapse .pet-collapse-arrow { margin-left: auto; color: #B8860B; font-style: normal; transition: transform .2s; }
.pet-collapse[open] .pet-collapse-arrow { transform: rotate(90deg); }
.pet-collapse .pet-collapse-body { margin-top: 6px; }

/* 宠物择日 */
.pa-day { padding: 10px 12px; border: 1px solid #e6dcc8; border-radius: 10px; margin-bottom: 8px; }
.pa-day-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pa-day-head strong { font-size: 14px; color: var(--text-primary, #1A1613); }
.pa-day-recommended { border-left: 3px solid #2e7d32; background: #f4fbf4; }
.pa-day-avoid { border-left: 3px solid #8B2323; opacity: 0.7; }
.pa-day-caution { border-left: 3px solid #B8860B; }

/* ===== 宠物工具导航 / 合盘 / 起名 / 推荐 ===== */
.pet-nav { display: flex; gap: 8px; margin: 0 0 12px; }
.pet-nav a { flex: 1; text-align: center; padding: 8px 6px; font-size: 13px; border: 1px solid #d8c9a8; border-radius: 8px; color: #7a6f65; text-decoration: none; }
.pet-nav a.active { background: #8B2323; color: #fff; border-color: #8B2323; font-weight: 600; }
.pf-score-ring { width: 92px; height: 92px; border-radius: 50%; border: 6px solid #B8860B; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; }
.pf-score-ring strong { font-size: 28px; color: #8B2323; line-height: 1; }
.pf-score-ring span { font-size: 11px; color: #7a6f65; }
.pn-name-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pn-name-card { padding: 12px; border: 1px solid #e6dcc8; border-radius: 10px; background: #fbf7ee; }
.pn-name-zh { font-size: 22px; font-weight: 800; color: #8B2323; }
.pn-name-en { font-size: 11px; color: #B8860B; margin-top: 2px; }
.pn-name-meaning { font-size: 12px; color: #7a6f65; line-height: 1.6; margin-top: 6px; }
.pn-rec-list { display: flex; flex-direction: column; gap: 8px; }
.pn-rec-item { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid #e6dcc8; border-radius: 10px; text-decoration: none; color: inherit; }
.pn-rec-emoji { font-size: 26px; }
.pn-rec-info { flex: 1; min-width: 0; }
.pn-rec-info strong { display: block; font-size: 14px; color: var(--text-primary, #1A1613); }
.pn-rec-info small { font-size: 11px; color: #B8860B; }
.pn-rec-price { font-size: 14px; font-weight: 700; color: #8B2323; white-space: nowrap; }

/* ===== 后台商品管理 ===== */
.admin-pet-products { display: flex; flex-direction: column; gap: 8px; }
.admin-pet-product { padding: 12px; }
.admin-pet-toggle { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: #7a6f65; cursor: pointer; white-space: nowrap; }

/* 后台 tab 分层 */
.admin-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.admin-tab { padding: 7px 14px; border: 1px solid #d8c9a8; border-radius: 20px; background: #fff; color: #7a6f65; font-size: 13px; cursor: pointer; }
.admin-tab.active { background: #8B2323; color: #fff; border-color: #8B2323; font-weight: 600; }
.admin-tab-panel[hidden] { display: none; }

/* 首页宠物专区已改用现有 zone-action 卡片，此处样式已废弃移除 */
