/* ========================================
   八方汇 - PC 端公共样式
   主题：炭灰翡翠 — 炭灰 #2C3E50 / 翡翠 #1D9E75 / 香槟金 #C9A961
   ======================================== */

/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { font-family: "PingFang SC", "Microsoft YaHei", -apple-system, sans-serif; color: #333; background: #f5f5f5; }
a { text-decoration: none; color: inherit; }
ul, li { list-style: none; }
img { display: block; max-width: 100%; }
input, button, select { font-family: inherit; outline: none; border: none; }
button { cursor: pointer; }

/* Layout */
.container { width: 1200px; margin: 0 auto; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }

/* Colors */
:root {
  --primary: #2C3E50;
  --primary-light: #5DCAA5;
  --secondary: #1D9E75;
  --accent: #0F6E56;
  --gold: #C9A961;
  --dark: #1E2A3A;
  --gray-bg: #f5f5f5;
  --gray-border: #e0e0e0;
  --text-main: #333;
  --text-sub: #666;
  --text-light: #999;
}

/* === 顶部条 === */
.top-bar { background: #f8f8f8; border-bottom: 1px solid #eee; height: 36px; line-height: 36px; font-size: 12px; color: #666; }
.top-bar .container { display: flex; justify-content: space-between; }
.top-bar a { margin: 0 8px; color: #666; }
.top-bar a:hover { color: var(--primary); }
.top-bar .points-balance { color: var(--secondary); font-weight: bold; }

/* === 主导航 === */
.main-header { background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.06); position: sticky; top: 0; z-index: 100; }
.main-header .container { display: flex; align-items: center; height: 80px; }
.logo { font-size: 28px; font-weight: 900; color: var(--primary); letter-spacing: 2px; }
.logo span { color: var(--secondary); }
.logo-img { height: 40px; width: auto; display: inline-block; vertical-align: middle; }
.footer-brand .logo-img { height: 36px; background: #fff; padding: 4px; border-radius: 6px; box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
.main-nav { display: flex; margin-left: 60px; flex: 1; }
.main-nav a { padding: 0 22px; line-height: 80px; font-size: 16px; color: #333; font-weight: 500; position: relative; transition: color .2s; }
.main-nav a:hover, .main-nav a.active { color: var(--primary); }
.main-nav a.active::after { content: ''; position: absolute; bottom: 0; left: 22px; right: 22px; height: 3px; background: var(--primary); border-radius: 2px; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.btn-publish { background: var(--primary); color: #fff; padding: 8px 20px; border-radius: 4px; font-size: 14px; font-weight: bold; }
.btn-publish:hover { background: var(--primary-light); }
.btn-login { background: #fff; color: var(--primary); border: 1px solid var(--primary); padding: 7px 20px; border-radius: 4px; font-size: 14px; }
.btn-login:hover { background: var(--primary); color: #fff; }

/* === Hero 搜索区 === */
.hero { background: linear-gradient(135deg, #2C3E50 0%, #1D9E75 100%); padding: 50px 0 60px; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -50px; right: -50px; width: 300px; height: 300px; background: rgba(255,255,255,0.08); border-radius: 50%; }
.hero::after { content: ''; position: absolute; bottom: -80px; left: -80px; width: 200px; height: 200px; background: rgba(255,255,255,0.06); border-radius: 50%; }
.hero h1 { color: #fff; font-size: 42px; text-align: center; margin-bottom: 10px; letter-spacing: 4px; text-shadow: 0 2px 10px rgba(0,0,0,0.2); }
.hero p { color: rgba(255,255,255,0.9); text-align: center; font-size: 16px; margin-bottom: 30px; }

.search-box { background: #fff; border-radius: 8px; padding: 20px; box-shadow: 0 8px 30px rgba(0,0,0,0.15); position: relative; z-index: 2; }
.search-row { display: flex; gap: 0; margin-bottom: 15px; flex-wrap: wrap; }
.search-field { flex: 1; min-width: 160px; display: flex; align-items: center; border: 1px solid #e0e0e0; border-right: none; padding: 0 15px; height: 48px; }
.search-field:first-child { border-radius: 6px 0 0 6px; }
.search-field:last-of-type { border-right: 1px solid #e0e0e0; border-radius: 0 6px 6px 0; }
.search-field label { font-size: 13px; color: #999; white-space: nowrap; margin-right: 8px; }
.search-field select, .search-field input { flex: 1; border: none; font-size: 14px; height: 46px; background: transparent; }
.search-btn-row { display: flex; gap: 12px; margin-top: 5px; }
.btn-search-supply { flex: 1; background: var(--primary); color: #fff; height: 50px; border-radius: 6px; font-size: 16px; font-weight: bold; }
.btn-search-purchase { flex: 1; background: var(--accent); color: #fff; height: 50px; border-radius: 6px; font-size: 16px; font-weight: bold; }
.btn-search-supply:hover { background: var(--primary-light); }
.btn-search-purchase:hover { opacity: 0.9; }

/* === 区块标题 === */
.section { padding: 40px 0; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 25px; }
.section-title { font-size: 24px; font-weight: bold; color: #333; display: flex; align-items: center; }
.section-title::before { content: ''; display: inline-block; width: 5px; height: 24px; background: var(--primary); border-radius: 3px; margin-right: 12px; }
.section-title small { font-size: 14px; color: #999; font-weight: normal; margin-left: 10px; }
.section-more { color: var(--primary); font-size: 14px; }
.section-more:hover { text-decoration: underline; }

/* === 供应卡片 === */
.supply-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.supply-card { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.06); transition: transform .2s, box-shadow .2s; cursor: pointer; position: relative; }
.supply-card:hover { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(0,0,0,0.12); }
.supply-card .img-wrap { height: 180px; overflow: hidden; position: relative; background: #f0f0f0; }
.supply-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.supply-card:hover .img-wrap img { transform: scale(1.08); }
.quality-badge { position: absolute; top: 8px; left: 8px; padding: 3px 8px; border-radius: 3px; font-size: 11px; color: #fff; font-weight: bold; }
.quality-L1 { background: #999; }
.quality-L2 { background: #1976d2; }
.quality-L3 { background: #43a047; }
.quality-L4 { background: #f57c00; }
.quality-L5 { background: linear-gradient(135deg, #2C3E50, #1D9E75); }
.points-badge { position: absolute; top: 8px; right: 8px; padding: 3px 8px; border-radius: 3px; font-size: 11px; color: #fff; background: rgba(0,0,0,0.6); }
.points-badge.free { background: #0F6E56; }
.supply-card .card-body { padding: 12px; }
.supply-card h3 { font-size: 15px; margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.supply-card .meta { font-size: 12px; color: #999; margin-bottom: 4px; }
.supply-card .price { color: var(--primary); font-size: 18px; font-weight: bold; }
.supply-card .price .unit { font-size: 12px; font-weight: normal; }
.supply-card .card-footer { padding: 8px 12px; border-top: 1px solid #f0f0f0; display: flex; justify-content: space-between; align-items: center; }
.btn-call { background: var(--secondary); color: #fff; padding: 4px 12px; border-radius: 4px; font-size: 12px; }
.btn-call:hover { background: #0F6E56; }

/* === 采购需求列表 === */
.purchase-list { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.purchase-item { display: grid; grid-template-columns: 80px 1fr 120px 120px 140px 100px; gap: 15px; padding: 16px 20px; border-bottom: 1px solid #f5f5f5; align-items: center; transition: background .2s; }
.purchase-item:hover { background: #F0FAF5; }
.purchase-item:last-child { border-bottom: none; }
.purchase-fruit { font-size: 16px; font-weight: bold; color: #333; }
.purchase-fruit .urgent { color: var(--primary); font-size: 12px; margin-left: 4px; }
.purchase-desc { font-size: 13px; color: #666; }
.purchase-amount { color: var(--secondary); font-weight: bold; font-size: 15px; }
.purchase-price { color: var(--primary); font-weight: bold; }
.purchase-location { font-size: 13px; color: #666; }
.btn-quote { background: var(--accent); color: #fff; padding: 6px 16px; border-radius: 4px; font-size: 13px; text-align: center; }
.btn-quote:hover { opacity: 0.9; }

/* === 智能匹配双栏 === */
.match-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.match-col { background: #fff; border-radius: 8px; padding: 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.match-col h3 { font-size: 18px; margin-bottom: 15px; display: flex; align-items: center; justify-content: space-between; }
.match-col h3 .tag { font-size: 12px; padding: 2px 8px; border-radius: 10px; }
.match-item { display: flex; padding: 12px 0; border-bottom: 1px dashed #eee; }
.match-item:last-child { border-bottom: none; }
.match-item img { width: 60px; height: 60px; border-radius: 6px; object-fit: cover; margin-right: 12px; }
.match-item .info { flex: 1; }
.match-item .info h4 { font-size: 14px; margin-bottom: 4px; }
.match-item .info p { font-size: 12px; color: #999; }
.match-item .match-price { color: var(--primary); font-weight: bold; font-size: 15px; }
.match-score { font-size: 12px; color: var(--accent); margin-top: 4px; }

/* === 行情快讯表格 === */
.market-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.market-table th { background: #fafafa; padding: 12px; text-align: left; font-size: 13px; color: #666; font-weight: normal; border-bottom: 1px solid #eee; }
.market-table td { padding: 12px; border-bottom: 1px solid #f5f5f5; font-size: 14px; }
.market-table tr:last-child td { border-bottom: none; }
.market-table tr:hover td { background: #F0FAF5; }
.price-up { color: #e53935; font-weight: bold; }    /* 涨：红 */
.price-down { color: #43a047; font-weight: bold; }  /* 跌：绿 */
.price-flat { color: #999; }

/* === 会员套餐 === */
.member-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.plan-card { background: #fff; border-radius: 12px; padding: 36px 24px; text-align: center; box-shadow: 0 2px 12px rgba(0,0,0,0.08); position: relative; transition: transform .2s; border: 2px solid transparent; }
.plan-card:hover { transform: translateY(-6px); }
.plan-card.recommend { border-color: var(--secondary); }
.plan-card.recommend::before { content: '推荐'; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--secondary); color: #fff; padding: 3px 16px; border-radius: 12px; font-size: 12px; }
.plan-card .plan-name { font-size: 20px; font-weight: bold; margin-bottom: 8px; }
.plan-card.vip .plan-name { color: #1976d2; }
.plan-card.gold .plan-name { color: #f57c00; }
.plan-card.diamond .plan-name { background: linear-gradient(135deg, #2C3E50, #1D9E75); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.plan-card .plan-price { font-size: 42px; font-weight: 900; color: #333; margin: 16px 0; }
.plan-card .plan-price .currency { font-size: 18px; }
.plan-card .plan-price .period { font-size: 14px; color: #999; font-weight: normal; }
.plan-card .plan-original { text-decoration: line-through; color: #ccc; font-size: 16px; margin-bottom: 8px; }
.plan-card .plan-discount { display: inline-block; background: #E1F5EE; color: var(--secondary); padding: 2px 10px; border-radius: 10px; font-size: 12px; margin-bottom: 20px; }
.plan-card ul { text-align: left; margin-bottom: 24px; }
.plan-card ul li { padding: 8px 0; font-size: 14px; color: #666; border-bottom: 1px dashed #f0f0f0; display: flex; align-items: center; }
.plan-card ul li::before { content: '✓'; color: var(--accent); font-weight: bold; margin-right: 8px; }
.plan-card ul li.no::before { content: '✗'; color: #ccc; }
.btn-plan { display: block; width: 100%; padding: 12px; border-radius: 6px; font-size: 16px; font-weight: bold; }
.btn-plan.vip { background: #1976d2; color: #fff; }
.btn-plan.gold { background: var(--secondary); color: #fff; }
.btn-plan.diamond { background: linear-gradient(135deg, #2C3E50, #1D9E75); color: #fff; }

/* === 平台优势 === */
.advantages { background: #fff; padding: 40px 0; }
.adv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.adv-item { text-align: center; }
.adv-icon { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 15px; font-size: 28px; }
.adv-item h3 { font-size: 18px; margin-bottom: 8px; }
.adv-item p { font-size: 13px; color: #999; line-height: 1.6; }

/* === 金融服务 === */
.finance-hero { background: linear-gradient(135deg, #2C3E50 0%, #1D9E75 100%); padding: 50px 0; color: #fff; }
.finance-hero h1 { font-size: 36px; text-align: center; margin-bottom: 10px; }
.finance-hero p { text-align: center; opacity: 0.9; margin-bottom: 30px; }
.finance-search { background: #fff; border-radius: 8px; padding: 15px; display: flex; gap: 10px; max-width: 600px; margin: 0 auto; }
.finance-search input { flex: 1; padding: 0 15px; height: 44px; border: 1px solid #e0e0e0; border-radius: 4px; font-size: 14px; }
.finance-search button { background: #2C3E50; color: #fff; padding: 0 30px; border-radius: 4px; font-weight: bold; }
.finance-tabs { display: flex; justify-content: center; gap: 30px; margin-top: 25px; }
.finance-tabs a { color: rgba(255,255,255,0.8); font-size: 16px; padding-bottom: 6px; border-bottom: 2px solid transparent; }
.finance-tabs a.active { color: #fff; border-color: #fff; }
.finance-products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.finance-card { background: #fff; border-radius: 10px; padding: 24px; box-shadow: 0 2px 12px rgba(0,0,0,0.08); transition: transform .2s; }
.finance-card:hover { transform: translateY(-4px); }
.finance-card .fc-type { display: inline-block; font-size: 12px; padding: 3px 10px; border-radius: 10px; margin-bottom: 12px; }
.finance-card.loan .fc-type { background: #e3f2fd; color: #1976d2; }
.finance-card.insurance .fc-type { background: #e8f5e9; color: #43a047; }
.finance-card h3 { font-size: 18px; margin-bottom: 10px; }
.finance-card .fc-rate { font-size: 32px; color: var(--primary); font-weight: bold; margin: 10px 0; }
.finance-card .fc-rate .small { font-size: 14px; color: #999; font-weight: normal; }
.finance-card .fc-meta { display: flex; justify-content: space-between; padding: 10px 0; border-top: 1px solid #f0f0f0; font-size: 13px; color: #666; }
.btn-finance { display: block; width: 100%; padding: 10px; background: #2C3E50; color: #fff; border-radius: 4px; margin-top: 15px; font-weight: bold; }
.btn-finance:hover { background: #243443; }

/* === 积分条 === */
.points-bar { background: linear-gradient(135deg, #F0FAF5, #E1F5EE); border: 1px solid #9FE1CB; border-radius: 8px; padding: 15px 20px; display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.points-bar .pb-left { display: flex; align-items: center; gap: 15px; }
.points-bar .pb-icon { font-size: 28px; }
.points-bar .pb-balance { font-size: 20px; font-weight: bold; color: var(--secondary); }
.points-bar .pb-hint { font-size: 12px; color: #999; }
.btn-recharge { background: var(--secondary); color: #fff; padding: 8px 20px; border-radius: 4px; font-size: 14px; font-weight: bold; }

/* === 付费浏览弹窗 === */
.pay-modal-mask { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); display: none; align-items: center; justify-content: center; z-index: 9999; }
.pay-modal-mask.show { display: flex; }
.pay-modal { background: #fff; border-radius: 12px; padding: 30px; max-width: 420px; width: 90%; text-align: center; }
.pay-modal .pm-icon { font-size: 48px; margin-bottom: 15px; }
.pay-modal h3 { font-size: 20px; margin-bottom: 10px; }
.pay-modal .pm-price { font-size: 36px; color: var(--secondary); font-weight: 900; margin: 15px 0; }
.pay-modal .pm-price .unit { font-size: 14px; color: #999; }
.pay-modal .pm-discount { background: #E1F5EE; color: var(--secondary); padding: 6px 15px; border-radius: 15px; font-size: 13px; margin-bottom: 20px; display: inline-block; }
.pay-modal .pm-actions { display: flex; gap: 12px; margin-top: 20px; }
.pay-modal .pm-actions button { flex: 1; padding: 12px; border-radius: 6px; font-size: 15px; font-weight: bold; }
.btn-pay-now { background: var(--secondary); color: #fff; }
.btn-pay-member { background: var(--primary); color: #fff; }
.btn-pay-cancel { background: #f0f0f0; color: #666; }

/* === 页脚 === */
.site-footer { background: #1E2A3A; color: #aaa; padding: 40px 0 20px; margin-top: 40px; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 30px; border-bottom: 1px solid #2C3E50; }
.footer-brand .logo { color: #fff; margin-bottom: 15px; font-size: 24px; }
.footer-brand p { font-size: 13px; line-height: 1.8; color: #888; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 15px; }
.footer-col a { display: block; color: #aaa; font-size: 13px; line-height: 2; }
.footer-col a:hover { color: #fff; }
.footer-bottom { text-align: center; padding-top: 20px; font-size: 12px; color: #666; }
.footer-bottom a { color: #666; margin: 0 8px; }
