/* AYOU · 企业二级站 6 套可切换配色 + 外贸资料卡 / 评价组件
   由供应商后台「品牌与主题」写入 sites[fid].brand.theme，模板给 <body> 挂 data-theme 生效。
   大管理后台「模板与配色」可设置全站默认主题。 */
:root{--fx-accent:#1D5FD1;--fx-nav-a:#123A7A;--fx-nav-b:#1D5FD1;--fx-foot-a:#0B1F45;--fx-foot-b:#123A7A}
body.es-site[data-theme="ocean"]   {--fx-accent:#1D5FD1;--fx-nav-a:#123A7A;--fx-nav-b:#1D5FD1;--fx-foot-a:#0B1F45;--fx-foot-b:#123A7A}
body.es-site[data-theme="obsidian"]{--fx-accent:#C8A45C;--fx-nav-a:#171A21;--fx-nav-b:#33394A;--fx-foot-a:#0E1015;--fx-foot-b:#262C3A}
body.es-site[data-theme="emerald"] {--fx-accent:#159C74;--fx-nav-a:#0B4B3F;--fx-nav-b:#16866B;--fx-foot-a:#063228;--fx-foot-b:#0D5C48}
body.es-site[data-theme="crimson"] {--fx-accent:#D64545;--fx-nav-a:#741420;--fx-nav-b:#B4232F;--fx-foot-a:#460C15;--fx-foot-b:#841622}
body.es-site[data-theme="amethyst"]{--fx-accent:#8154D8;--fx-nav-a:#35206B;--fx-nav-b:#6B3DB4;--fx-foot-a:#201044;--fx-foot-b:#472579}
body.es-site[data-theme="slate"]   {--fx-accent:#4A6B82;--fx-nav-a:#2C3E50;--fx-nav-b:#4E7089;--fx-foot-a:#1A2A37;--fx-foot-b:#2E4A5C}

body.es-site[data-theme] .es-topbar{background:var(--fx-nav-a)}
body.es-site[data-theme] .es-tabs{background:linear-gradient(100deg,var(--fx-nav-a),var(--fx-nav-b))}
body.es-site[data-theme] .es-tabs .t.on,
body.es-site[data-theme] .es-tabs .t:hover{background:rgba(255,255,255,.14)}
body.es-site[data-theme] .es-foot{background:linear-gradient(135deg,var(--fx-foot-a),var(--fx-foot-b))}
body.es-site[data-theme] .es-foot-glow{background:var(--fx-accent);opacity:.18}
body.es-site[data-theme] .es-btn-red{background:var(--fx-accent);color:#fff}
body.es-site[data-theme] .es-mark{background:var(--fx-accent);color:#fff}
body.es-site[data-theme] .es-id-nm:hover,
body.es-site[data-theme] .fx-more,
body.es-site[data-theme] .es-co-lk{color:var(--fx-accent)}
body.es-site[data-theme] .es-crumb .cur{color:var(--fx-accent)}
body.es-site[data-theme] .fx-hd h2 em,
body.es-site[data-theme] .fx-eb{color:var(--fx-accent)}
body.es-site[data-theme] .es-vb .d{background:var(--fx-accent)}
body.es-site[data-theme] .fx-btn.pri{background:var(--fx-accent);border-color:var(--fx-accent)}
body.es-site[data-theme] .es-pgrid .p-card .p-price .v{color:var(--fx-accent)}
body.es-site[data-theme] .fx-pd .price{color:var(--fx-accent)}
body.es-site[data-theme] .es-q button{background:var(--fx-accent);color:#fff}
body.es-site[data-theme] .es-head-r .es-tel b{color:var(--fx-nav-a)}

/* 企业 LOGO：上传后替换默认字母徽标，等比缩放不变形 */
.es-logo .es-mark img,.es-foot-brand .es-mark img{width:100%;height:100%;object-fit:contain;background:#fff;border-radius:4px}
.es-logo .es-mark.has-logo{background:#fff!important;border:1px solid rgba(0,0,0,.06)}
.es-foot-brand .es-mark.has-logo{background:#fff!important}

/* 外贸资料卡：美金价格区间 / MOQ / 交期 / FOB / 含税 */
.fx-trade{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 28px;margin:16px 0 6px}
.fx-trade .r{display:flex;justify-content:space-between;gap:12px;padding:9px 0;border-bottom:1px dashed var(--es-line-2);font-size:13px}
.fx-trade .r span:first-child{color:var(--es-mute)}
.fx-trade .r b{color:var(--es-ink);font-weight:600;text-align:right}
.fx-price-range{font-variant-numeric:tabular-nums;letter-spacing:.2px}
.fx-price-range small{font-size:12px;font-weight:400;color:var(--es-mute);margin-left:6px}
.fx-video{width:100%;border-radius:10px;background:#000;display:block;margin:14px 0}
.fx-detail-html{line-height:1.9;font-size:14.5px;color:var(--es-body,var(--es-ink))}
.fx-detail-html img{max-width:100%;height:auto;border-radius:8px;margin:10px 0}
.fx-detail-html video{max-width:100%;border-radius:8px;margin:10px 0}
.fx-detail-html h3{font-size:17px;margin:18px 0 8px;color:var(--es-ink)}
.fx-detail-html p{margin:0 0 10px}
.fx-detail-html table{width:100%;border-collapse:collapse;margin:12px 0}
.fx-detail-html td,.fx-detail-html th{border:1px solid var(--es-line-2);padding:8px 10px}

/* 客户评价 */
.fx-reviews{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.fx-review{background:#fff;border:1px solid var(--es-line);border-radius:12px;padding:18px;display:flex;flex-direction:column;gap:9px}
.fx-review .stars{color:#F5A623;letter-spacing:2px;font-size:14px}
.fx-review .txt{font-size:13.5px;line-height:1.8;color:var(--es-ink);flex:1}
.fx-review .who{font-size:12px;color:var(--es-mute);border-top:1px solid var(--es-line-2);padding-top:10px}
.fx-review .who b{color:var(--es-ink)}
.fx-review .reply{font-size:12.5px;background:var(--es-soft,#F4F8FF);border-radius:8px;padding:9px 11px;line-height:1.7}
@media(max-width:900px){.fx-reviews{grid-template-columns:repeat(2,minmax(0,1fr))}.fx-trade{grid-template-columns:1fr}}
@media(max-width:600px){.fx-reviews{grid-template-columns:1fr}}
