/* ===== 725比价网 样式 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; background: #f5f7fa; color: #333; line-height: 1.6; }
a { text-decoration: none; color: #2563eb; }
img { max-width: 100%; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.muted { color: #888; font-size: 13px; }
.center { text-align: center; }
.highlight { color: #f43f5e; }

/* 头部 */
.site-header { background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.08); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; gap: 24px; height: 58px; }
.logo { font-size: 22px; font-weight: 800; color: #2563eb; }
.logo-sub { background: #2563eb; color: #fff; font-size: 12px; padding: 2px 6px; border-radius: 4px; margin-left: 4px; vertical-align: 3px; }
.main-nav { display: flex; gap: 18px; flex: 1; }
.main-nav a { color: #444; font-size: 15px; }
.main-nav a:hover { color: #2563eb; }
.nav-2nd { color: #f43f5e !important; font-weight: 600; }
.user-area { display: flex; gap: 10px; align-items: center; }
.btn-user { color: #2563eb; font-weight: 600; }

/* 按钮 */
.btn-primary { background: #2563eb; color: #fff !important; padding: 8px 18px; border-radius: 6px; border: none; cursor: pointer; font-size: 14px; display: inline-block; }
.btn-primary:hover { background: #1d4ed8; }
.btn-outline { border: 1px solid #ddd; color: #555; padding: 7px 14px; border-radius: 6px; font-size: 13px; background: #fff; display: inline-block; }
.btn-outline:hover { border-color: #2563eb; color: #2563eb; }
.btn-block { display: block; width: 100%; text-align: center; margin-top: 14px; }
.btn-mini { font-size: 12px; padding: 4px 10px; border-radius: 4px; background: #eef2ff; color: #2563eb; display: inline-block; }

/* Hero */
.hero { text-align: center; padding: 50px 0 40px; }
.hero h1 { font-size: 34px; margin-bottom: 10px; }
.hero p { color: #666; margin-bottom: 24px; }
.search-box { display: flex; max-width: 560px; margin: 0 auto; }
.search-box input { flex: 1; padding: 13px 16px; border: 2px solid #2563eb; border-radius: 8px 0 0 8px; font-size: 15px; outline: none; }
.search-box button { padding: 13px 26px; background: #2563eb; color: #fff; border: none; border-radius: 0 8px 8px 0; font-size: 15px; cursor: pointer; }

/* 区块 */
.section { margin: 30px 0; }
.section-title { font-size: 20px; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.more-link { font-size: 13px; font-weight: 400; margin-left: auto; }

/* 平台卡片 */
.platform-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.platform-card { background: #fff; border-radius: 10px; padding: 22px; text-align: center; box-shadow: 0 1px 3px rgba(0,0,0,.06); transition: .2s; }
.platform-card:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0,0,0,.1); }
.platform-icon { width: 52px; height: 52px; border-radius: 50%; background: #2563eb; color: #fff; font-size: 24px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin: 0 auto 10px; }
.platform-card:nth-child(2) .platform-icon { background: #f59e0b; }
.platform-card:nth-child(3) .platform-icon { background: #10b981; }
.platform-card:nth-child(4) .platform-icon { background: #f43f5e; }
.platform-name { font-weight: 700; font-size: 17px; }
.platform-desc { color: #999; font-size: 12px; margin-top: 4px; }

/* 商品卡 */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.product-card { background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.06); transition: .2s; }
.product-card:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0,0,0,.1); }
.product-img { height: 150px; background: #f0f2f5; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.img-placeholder { font-size: 44px; }
.img-placeholder-big { width: 100%; height: 300px; display: flex; align-items: center; justify-content: center; font-size: 90px; background: #f0f2f5; border-radius: 10px; }
.product-title { padding: 10px 12px 2px; font-size: 14px; color: #333; min-height: 42px; }
.product-price-row { padding: 4px 12px; display: flex; align-items: baseline; gap: 8px; }
.price { color: #f43f5e; font-weight: 800; font-size: 18px; }
.original-price { color: #bbb; text-decoration: line-through; font-size: 13px; }
.tag-discount { background: #fef2f2; color: #f43f5e; font-size: 12px; padding: 1px 6px; border-radius: 4px; }
.tag-on { background: #ecfdf5; color: #059669; font-size: 12px; padding: 2px 8px; border-radius: 4px; }
.tag-off { background: #f3f4f6; color: #9ca3af; font-size: 12px; padding: 2px 8px; border-radius: 4px; }
.product-platform { padding: 0 12px 12px; color: #999; font-size: 12px; }

/* 空提示 */
.empty-tip { background: #fff; border: 1px dashed #ddd; border-radius: 10px; padding: 40px; text-align: center; color: #999; }

/* 登录注册卡 */
.auth-card { max-width: 420px; margin: 50px auto; background: #fff; border-radius: 12px; padding: 32px; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.auth-card.wide { max-width: 560px; }
.auth-card h1 { font-size: 22px; margin-bottom: 6px; }
.auth-card label { display: block; font-size: 13px; color: #666; margin: 12px 0 4px; }
.auth-card input, .auth-card select, .auth-card textarea { width: 100%; padding: 10px 12px; border: 1px solid #ddd; border-radius: 6px; font-size: 14px; }
.auth-card textarea { resize: vertical; }
.alert-error { background: #fef2f2; color: #dc2626; padding: 10px 14px; border-radius: 6px; font-size: 13px; margin: 12px 0; }
.alert-success { background: #ecfdf5; color: #059669; padding: 10px 14px; border-radius: 6px; font-size: 13px; margin: 12px 0; }

/* 筛选条 */
.filter-bar { background: #fff; border-radius: 10px; padding: 12px 16px; margin-bottom: 18px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip { padding: 5px 14px; border-radius: 20px; background: #f3f4f6; color: #555; font-size: 13px; }
.chip.active { background: #2563eb; color: #fff; }
.chip-sep { color: #ddd; }
.inline-search { display: flex; gap: 6px; margin-left: auto; }
.inline-search input { border: 1px solid #ddd; border-radius: 6px; padding: 5px 10px; font-size: 13px; }

/* 商品详情 */
.product-detail { display: flex; gap: 30px; background: #fff; border-radius: 12px; padding: 26px; box-shadow: 0 1px 3px rgba(0,0,0,.06); margin: 20px 0; }
.pd-left { flex: 0 0 40%; }
.pd-img { width: 100%; border-radius: 10px; }
.pd-right { flex: 1; }
.pd-platform-tag { display: inline-block; background: #eef2ff; color: #2563eb; font-size: 12px; padding: 3px 10px; border-radius: 4px; margin-bottom: 8px; }
.pd-right h1 { font-size: 22px; margin-bottom: 10px; }
.pd-price { font-size: 30px; font-weight: 800; color: #f43f5e; margin: 10px 0 16px; }
.pd-sub { margin: 20px 0 10px; font-size: 16px; }
.pd-desc { background: #f9fafb; border-radius: 8px; padding: 14px; margin: 10px 0; }
.pd-meta { color: #999; font-size: 13px; margin: 10px 0; }
.pd-contact { background: #fefce8; border: 1px solid #fde68a; color: #92400e; padding: 10px 14px; border-radius: 8px; margin: 12px 0; }
.pd-buy { margin-top: 16px; }
.table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 8px; overflow: hidden; font-size: 14px; }
.table th, .table td { padding: 10px 14px; border-bottom: 1px solid #f3f4f6; text-align: left; }
.table th { background: #f9fafb; color: #666; font-size: 13px; }
.row-best { background: #f0fdf4; }
.compare-table { margin-top: 6px; }
.history-list { display: flex; flex-wrap: wrap; gap: 8px; }
.history-item { background: #f9fafb; font-size: 12px; padding: 4px 10px; border-radius: 4px; color: #666; }

/* 会员中心 */
.member-layout { display: flex; gap: 24px; margin: 24px 0; }
.member-side { flex: 0 0 260px; background: #fff; border-radius: 12px; padding: 26px; text-align: center; box-shadow: 0 1px 3px rgba(0,0,0,.06); align-self: flex-start; }
.member-avatar { width: 72px; height: 72px; border-radius: 50%; background: #2563eb; color: #fff; font-size: 32px; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
.member-level { display: inline-block; background: #fef3c7; color: #92400e; font-size: 13px; padding: 3px 12px; border-radius: 20px; margin: 10px 0; }
.member-points { font-size: 15px; margin-bottom: 16px; }
.member-points b { color: #f43f5e; font-size: 22px; }
.member-main { flex: 1; }
.level-benefits { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-bottom: 8px; }
.level-item { background: #f9fafb; border-radius: 8px; padding: 12px; text-align: center; border: 1px solid transparent; }
.level-item.achieved { border-color: #2563eb; background: #eef2ff; }
.level-item b { display: block; font-size: 15px; }
.level-item span { font-size: 12px; color: #888; }

/* 页脚 */
.site-footer { background: #fff; border-top: 1px solid #eee; padding: 26px 0; margin-top: 50px; text-align: center; font-size: 13px; color: #999; }

@media (max-width: 768px) {
    .main-nav { display: none; }
    .product-detail { flex-direction: column; }
    .member-layout { flex-direction: column; }
    .member-side { flex: auto; }
}
