/* ============================================================
   wyqf-site-theme - 商品页 / 会员登录注册页 / 会员中心统一皮肤
   仅覆盖前台展示层；不改 style.css、home.css、交易表单和 SQL。
   视觉基准：首页蓝白橙三层头部、1280px 居中、白卡片、蓝色导航、橙色主行动。
   ============================================================ */
:root {
    --st-blue: #038DFE;
    --st-blue-dark: #103EAC;
    --st-blue-light: #3C83EA;
    --st-orange: #FF6700;
    --st-orange-dark: #E65C00;
    --st-ink: #1F2329;
    --st-slate: #64748B;
    --st-line: #E3E9F2;
    --st-bg: #EEF1F6;
}

body.wy-page,
body.login-page {
    background: var(--st-bg) !important;
    color: var(--st-ink);
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

/* 信息条 */
body.wy-page .wy-topbar,
body.login-page .wy-topbar {
    background: var(--wy-bg-soft,#F5F7FA);
    color: var(--st-slate);
    border-bottom: 1px solid var(--st-line);
    min-height: 36px;
    margin: 0;
}
body.wy-page .wy-topbar .wy-container,
body.login-page .wy-topbar .wy-container {
    max-width: 1280px;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
body.wy-page .wy-topbar a,
body.login-page .wy-topbar a { color: var(--wy-ink-2,#475569); text-decoration: none; }
body.wy-page .wy-tb-phone,
body.login-page .wy-tb-phone { color: var(--st-blue); font-weight: 700; }
body.wy-page .wy-tb-btn.solid,
body.login-page .wy-tb-btn.solid { background: var(--st-orange); border-color: var(--st-orange); color:#FFFFFF; }
body.wy-page .wy-tb-btn:not(.solid),
body.login-page .wy-tb-btn:not(.solid) { color: var(--st-blue); }

/* 品牌 / 搜索 / 电话 */
.st-container { max-width: 1280px; margin: 0 auto; padding: 0 20px; box-sizing: border-box; }
.st-brandrow { background: var(--wy-card,#fff); }
.st-brandrow-inner { min-height: 84px; display: flex; align-items: center; gap: 30px; }
.st-logo { flex: 0 0 auto; max-width: 270px; display: inline-flex; align-items: center; gap: 10px; color: var(--st-blue-dark); text-decoration: none; min-width: 0; }
.st-logo-img { height: 40px; width: auto; object-fit: contain; }
.st-logo-text { font-size: 23px; line-height: 1.25; font-weight: 800; color:var(--dk-1746b8,#1746B8); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-search { flex: 1 1 auto; max-width: 650px; height: 42px; margin: 0 auto; display: flex; border:1px solid #038DFE; border-radius: 4px; overflow: hidden; background: var(--wy-card,#fff); }
.st-search input { flex: 1; min-width: 0; border:0; outline: 0; padding: 0 15px; font-size: 14px; color: var(--wy-ink-2,#334155); background:transparent; font-family: inherit; }
.st-search button { flex: 0 0 112px; border:0; background: var(--st-orange); color:#FFFFFF; font-size: 14px; font-weight: 700; cursor: pointer; }
.st-search button:hover { background: var(--st-orange-dark); }
.st-phone { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; padding-left: 22px; border-left:1px solid var(--ln-e5eaf2,#E5EAF2); }
.st-phone small { color: var(--wy-ink-3,#94a3b8); font-size: 12px; }
.st-phone strong { color: var(--st-orange); font-size: 20px; line-height: 1.4; letter-spacing: .3px; }

/* 蓝色栏目导航 */
.st-navbar { position: sticky; top: 0; z-index: 60; background: var(--st-blue); box-shadow: 0 3px 12px rgba(15,60,140,.12); }
.st-navbar-inner { height: 52px; display: flex; align-items: center; gap: 0; }
.st-navtoggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 42px; padding: 10px; border:1px solid rgba(255,255,255,.55); border-radius: 4px; background:transparent; cursor: pointer; }
.st-navtoggle span { display: block; height: 2px; width: 100%; background: var(--wy-card,#fff); border-radius: 2px; }
.st-nav { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 0; overflow-x: auto; scrollbar-width: none; }
.st-nav::-webkit-scrollbar { display: none; }
.st-nav a { flex: 0 0 auto; padding: 8px 12px; color:rgba(255,255,255,.92); font-size: 13px; line-height: 1.4; white-space: nowrap; text-decoration: none; border-radius: 3px; }
.st-nav a:hover, .st-nav a.active { color: var(--st-blue); background: var(--wy-card,#fff); }

/* 商品详情页：白色卡片 + 蓝色主图/详情图，与首页蓝白橙体系一致 */
body.wy-page .wy-container { max-width: 1280px; }
body.wy-page .wy-pd-banner {
    background:linear-gradient(118deg,rgba(16,58,145,.72),rgba(58,131,232,.62)), url("../images/wyqf_theme/hero-banner.svg") center/cover no-repeat;
    border-radius: 6px;
    margin-top: 18px;
}
body.wy-page .wy-pd-banner-inner { max-width: 1280px; padding: 30px 20px 32px; }
body.wy-page .wy-pd-banner h2 { font-size: 32px; letter-spacing: 0; }
body.wy-page .wy-pd-quickcats { max-width: 1280px; border: 1px solid var(--st-line); border-radius: 6px; background: var(--wy-card,#fff); box-shadow: 0 2px 10px rgba(24,58,110,.06); }
body.wy-page .wy-pd-block { background: var(--wy-card,#fff); border: 1px solid var(--st-line); border-radius: 6px; box-shadow: 0 2px 10px rgba(24,58,110,.07); padding: 22px; box-sizing: border-box; }
body.wy-page .wy-pd-mainimg { background:linear-gradient(150deg,#123EAC 0%,#038DFE 56%,#4C8BFF 100%); border-radius: 6px; }
body.wy-page .wy-pd-detail-hero { background:linear-gradient(140deg,#1746D8 0%,#038DFE 58%,#4C8BFF 100%); border-radius: 6px; min-height: 230px; }
body.wy-page .wy-pd-title { color: var(--st-ink); font-weight: 800; }
body.wy-page .wy-pd-pricebox { background: var(--wy-bg-soft,#f7f9fc); border: 1px solid var(--st-line); }
body.wy-page .wy-pd-actions .wy-btn-primary { background: var(--st-orange); border-color: var(--st-orange); border-radius: 4px; }
body.wy-page .wy-pd-actions .wy-btn-primary:hover { background: var(--st-orange-dark); border-color: var(--st-orange-dark); }
body.wy-page .wy-pd-actions .wy-btn-ghost { border-color: var(--st-blue); color: var(--st-blue); border-radius: 4px; }
body.wy-page .wy-osubmit .primary { background: var(--st-orange) !important; color:#FFFFFF !important; }
body.wy-page .wy-osubmit .primary:hover { background: var(--st-orange-dark) !important; }
body.wy-page .wy-ofield input:focus, body.wy-page .wy-ofield textarea:focus { border-color: var(--st-blue); }
body.wy-page .wy-osec { border-left-color: var(--st-blue); }
body.wy-page .wy-pd-service { right: 16px; border: 1px solid var(--st-line); border-radius: 6px; }
body.wy-page .wy-pd-service-btn { background: var(--st-blue); }
body.wy-page .wy-footer { background: var(--wy-card,#fff); border-top: 1px solid var(--st-line); }

/* 登录 / 注册 / 会员中心：取消蓝紫粉渐变，改为白卡片与蓝橙行动色 */
body.login-page .wy-auth-card {
    position: relative;
    overflow: hidden;
    width: min(420px, calc(100% - 32px));
    max-width: 420px;
    margin: 44px auto 56px !important;
    padding: 36px 34px 30px !important;
    background: var(--wy-card,#fff) !important;
    border: 1px solid var(--st-line);
    border-radius: 8px !important;
    box-shadow: 0 14px 38px rgba(24,58,110,.12) !important;
    backdrop-filter: none !important;
    box-sizing: border-box;
}
body.login-page .wy-auth-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg,var(--st-blue) 0%,var(--st-blue-light) 72%,var(--st-orange) 100%); }
body.login-page .wy-auth-card .login-title { margin: 0 0 24px; color: var(--st-ink) !important; font-size: 24px; font-weight: 800; text-align: center; }
body.login-page .wy-auth-card .form-group { margin-bottom: 18px; }
body.login-page .wy-auth-card .form-group label { display: block; margin-bottom: 7px; color: var(--wy-ink-2,#475569); font-size: 13px; font-weight: 600; }
body.login-page .wy-auth-card .form-group input {
    width: 100%; height: 44px; padding: 0 13px; box-sizing: border-box;
    border:1px solid var(--ln-d9e1ec,#D9E1EC); border-radius: 4px; outline: none;
    background: var(--wy-card,#fff); color: var(--wy-ink,#1F2329); font-size: 14px; font-family: inherit;
    transition: border-color .18s, box-shadow .18s;
}
body.login-page .wy-auth-card .form-group input:focus { border-color: var(--st-blue); box-shadow: 0 0 0 3px rgba(24,88,201,.10); }
body.login-page .wy-auth-card .login-btn {
    width: 100%; height: 46px; border:0; border-radius: 4px;
    background: var(--st-blue); color:#FFFFFF; font-size: 15px; font-weight: 800; cursor: pointer;
    transition: background .18s, transform .18s;
}
body.login-page .wy-auth-card .login-btn:hover { background: var(--st-blue-dark); transform: translateY(-1px); }
body.login-page .wy-auth-card .member-links { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--st-line); text-align: center; color: var(--st-slate); font-size: 13px; }
body.login-page .wy-auth-card .member-links a { color: var(--st-orange); font-weight: 700; text-decoration: none; }
body.login-page .wy-auth-card .login-error { border-color:var(--ln-fecaca,#FECACA); background:var(--lt-fef2f2,#FEF2F2); color:var(--dk-b91c1c,#B91C1C); border-radius: 4px; padding: 10px 12px; }
body.login-page .wy-auth-card .wy-auth-note { border-color:var(--ln-fde68a,#FDE68A) !important; background:var(--lt-fffbeb,#FFFbeb) !important; color:var(--dk-92400e,#92400e) !important; border-radius: 4px !important; }
body.login-page .wy-footer { background: var(--wy-card,#fff); border-top: 1px solid var(--st-line); }

@media (max-width: 1100px) {
    .st-brandrow-inner { gap: 18px; }
    .st-phone strong { font-size: 17px; }
    .st-nav { justify-content: flex-start; }
}
@media (max-width: 768px) {
    .st-container { padding-left: 16px; padding-right: 16px; }
    body.wy-page .wy-topbar .wy-container,
    body.login-page .wy-topbar .wy-container { flex-wrap: wrap; justify-content: center; padding-top: 6px; padding-bottom: 6px; }
    body.wy-page .wy-topbar-left,
    body.login-page .wy-topbar-left { display: none; }
    .st-brandrow-inner { min-height: 0; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; gap: 12px; }
    .st-logo { max-width: 100%; }
    .st-logo-img { height: 34px; }
    .st-logo-text { font-size: 20px; }
    .st-search { order: 3; flex: 1 1 100%; max-width: none; }
    .st-search button { flex-basis: 92px; }
    .st-phone { margin-left: auto; padding-left: 0; border-left:0; }
    .st-phone small { display: none; }
    .st-phone strong { font-size: 15px; }
    .st-navbar-inner { height: auto; min-height: 48px; flex-wrap: nowrap; padding-top: 0; padding-bottom: 0; }
    .st-navtoggle { display: inline-flex; order: 1; flex: 0 0 auto; }
    .st-nav { order: 2; display: none; position: absolute; top: 48px; left: 0; right: 0; padding: 6px 16px 12px; background: var(--st-blue); flex-direction: column; align-items: stretch; box-shadow: 0 10px 18px rgba(15,60,140,.18); }
    .st-nav.open { display: flex; }
    .st-nav a { border-bottom:1px solid rgba(255,255,255,.14); border-radius: 0; padding: 11px 12px; font-size: 14px; }
    .st-nav a:last-child { border-bottom:0; }
    body.wy-page .wy-pd-block { padding: 16px; }
    body.wy-page .wy-pd-banner h2 { font-size: 26px; }
    body.login-page .wy-auth-card { margin: 28px auto 36px !important; padding: 28px 22px !important; }
}
@media (max-width: 420px) {
    .st-phone { display: none; }
    body.login-page .wy-auth-card { width: calc(100% - 24px); }
}
/* 任意配置字段被后台替换成图片时的统一样式 */
.wy-cfg-img { display: inline-block; max-width: 100%; max-height: 64px; object-fit: contain; vertical-align: middle; }
.st-logo .wy-cfg-img { max-height: 40px; }
.login-title .wy-cfg-img { max-height: 32px; }

/* 文章 / 公告详情 */
body.article-page .article-shell { padding-top: 26px; padding-bottom: 42px; }
body.article-page .article-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--st-slate); font-size: 13px; margin-bottom: 18px; }
body.article-page .article-crumb a { color: var(--st-blue); text-decoration: none; }
body.article-page .article-card { background: var(--wy-card,#fff); border: 1px solid var(--st-line); border-top: 4px solid var(--st-blue); border-radius: 8px; box-shadow: 0 4px 18px rgba(24,58,110,.07); padding: 34px 38px 40px; }
body.article-page .article-kicker { display: inline-block; color: var(--st-orange); font-size: 13px; font-weight: 700; margin-bottom: 10px; }
body.article-page .article-card h1 { margin: 0 0 12px; color: var(--st-ink); font-size: 30px; line-height: 1.4; }
body.article-page .article-meta { display: flex; flex-wrap: wrap; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--st-line); color: var(--wy-ink-3,#94a3b8); font-size: 12px; }
body.article-page .article-summary { margin: 22px 0; padding: 14px 16px; background: var(--wy-bg-soft,#f7f9fc); border-left: 4px solid var(--st-blue); color: var(--wy-ink-2,#475569); font-size: 15px; line-height: 1.8; }
body.article-page .article-content { color: var(--wy-ink-2,#334155); font-size: 15px; line-height: 2; }
body.article-page .article-content img, body.article-page .article-content .article-content-img { display: block; max-width: 100%; height: auto; margin: 12px auto; }
body.article-page .article-empty { text-align: center; }
body.article-page .article-back { display: inline-block; margin-top: 14px; padding: 10px 22px; border-radius: 4px; background: var(--st-blue); color:#FFFFFF; text-decoration: none; }
body.article-page .article-more { margin-top: 20px; background: var(--wy-card,#fff); border: 1px solid var(--st-line); border-radius: 8px; padding: 20px 24px; }
body.article-page .article-more h2 { margin: 0 0 12px; font-size: 17px; color: var(--st-ink); }
body.article-page .article-more ul { list-style: none; margin: 0; padding: 0; }
body.article-page .article-more li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top:1px solid var(--ln-eef2f7,#EEF2F7); }
body.article-page .article-more li:first-child { border-top:0; }
body.article-page .article-more a { color: var(--st-blue); text-decoration: none; }
body.article-page .article-more small { color: var(--wy-ink-3,#94a3b8); font-size: 12px; }
body.article-page .article-footer { margin-top: 30px; padding: 22px 0; background: var(--wy-card,#fff); border-top: 1px solid var(--st-line); color: var(--st-slate); font-size: 12px; text-align: center; }
@media (max-width: 768px) {
    body.article-page .article-card { padding: 24px 18px 28px; }
    body.article-page .article-card h1 { font-size: 24px; }
}
/* 文章归档 / 无障碍 / 键盘焦点 */
body.article-page .article-archive-head { background:var(--wy-card,#fff);border:1px solid var(--st-line);border-top:4px solid var(--st-blue);border-radius:8px;padding:28px 30px;margin-bottom:18px; }
body.article-page .article-archive-head h1 { margin:0 0 8px;color:var(--st-ink);font-size:28px; }
body.article-page .article-archive-head p { margin:0 0 18px;color:var(--wy-ink-2,#64748b);font-size:14px;line-height:1.8; }
body.article-page .article-filter { display:flex;gap:8px;max-width:520px; }
body.article-page .article-filter input { flex:1;min-width:0;box-sizing:border-box;height:40px;padding:0 13px;border:1px solid var(--ln-d9e1ec,#D9E1EC);border-radius:6px;font-family:inherit;font-size:13px;color:var(--wy-ink,#333); }
body.article-page .article-filter button { flex:0 0 92px;box-sizing:border-box;height:40px;border:0;border-radius:6px;background:var(--st-blue);color:#fff;font-weight:700;cursor:pointer;font-family:inherit;font-size:13px;letter-spacing:.5px; }
body.article-page .article-cats { display:flex;flex-wrap:wrap;gap:8px;margin-top:16px; }
body.article-page .article-cats a { padding:6px 12px;border:1px solid var(--ln-dce5f1,#DCE5F1);border-radius:999px;background:var(--wy-card,#fff);color:var(--wy-ink-2,#475569);font-size:12px;text-decoration:none; }
body.article-page .article-cats a.active, body.article-page .article-cats a:hover { background:var(--st-blue);border-color:var(--st-blue);color:#fff; }
body.article-page .article-list { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px; }
body.article-page .article-list-card { display:flex;flex-direction:column;min-height:210px;background:var(--wy-card,#fff);border:1px solid var(--st-line);border-radius:8px;padding:20px;box-shadow:0 3px 12px rgba(24,58,110,.06); }
body.article-page .article-list-meta { display:flex;justify-content:space-between;gap:8px;color:var(--wy-ink-3,#94a3b8);font-size:11px;margin-bottom:12px; }
body.article-page .article-list-meta span { color:var(--st-orange);font-weight:700; }
body.article-page .article-list-card h2 { margin:0 0 10px;font-size:17px;line-height:1.5; }
body.article-page .article-list-card h2 a { color:var(--st-ink);text-decoration:none; }
body.article-page .article-list-card h2 a:hover { color:var(--st-blue); }
body.article-page .article-list-card p { flex:1;margin:0;color:var(--wy-ink-2,#64748b);font-size:13px;line-height:1.75; }
body.article-page .article-list-more { margin-top:14px;color:var(--st-blue);font-size:12px;font-weight:700;text-decoration:none; }
body.article-page .article-archive-empty { background:var(--wy-card,#fff);border:1px dashed var(--ln-d9e1ec,#D9E1EC);border-radius:8px;padding:48px 20px;text-align:center;color:var(--wy-ink-3,#94a3b8); }
body.article-page .article-pager { display:flex;justify-content:center;align-items:center;gap:12px;margin-top:18px; }
body.article-page .article-pager a { padding:8px 14px;border:1px solid var(--ln-dce5f1,#DCE5F1);border-radius:4px;background:var(--wy-card,#fff);color:var(--st-blue);text-decoration:none;font-size:13px; }
body.article-page .article-pager span { color:var(--wy-ink-2,#64748b);font-size:13px; }
body.article-page .article-more-head { display:flex;justify-content:space-between;align-items:baseline;gap:12px; }
body.article-page .article-more-head h2 { margin:0 0 12px; }
body.article-page .article-more-head a { color:var(--st-orange);font-size:12px;font-weight:700;text-decoration:none; }
.st-skip-link { position:fixed;left:12px;top:-80px;z-index:200;padding:10px 16px;background:var(--wy-card,#fff);color:var(--st-blue);border:2px solid var(--st-blue);border-radius:4px;font-weight:700;transition:top .15s; }
.st-skip-link:focus { top:12px; }
#main-content:focus { outline:none; }
body.wy-page a:focus-visible, body.login-page a:focus-visible, body.wy-page button:focus-visible, body.login-page button:focus-visible, body.wy-page input:focus-visible, body.login-page input:focus-visible, body.wy-page textarea:focus-visible, body.login-page textarea:focus-visible { outline:2px solid var(--st-orange);outline-offset:2px; }
@media (max-width: 1000px) { body.article-page .article-list { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width: 768px) { body.article-page .article-list { grid-template-columns:minmax(0,1fr); } body.article-page .article-archive-head { padding:22px 18px; } }
@media (prefers-reduced-motion: reduce) { .st-skip-link { transition:none; } }
/* ============ 1.4.4 富文本正文（公告/资讯文章正文） ============
   后台 1.4.4 起正文用富文本编辑，前台要能显示段落、图片、表格、视频、引用。
   老文章是纯文字，走 nl2br 输出，样式与这里一致，不会变样。 */
body.article-page .article-content p { margin: 0 0 14px; }
body.article-page .article-content h1,
body.article-page .article-content h2,
body.article-page .article-content h3,
body.article-page .article-content h4 { margin: 22px 0 10px; line-height: 1.5; color:var(--dk-1c2b3a,#1c2b3a); font-weight: 700; }
body.article-page .article-content h1 { font-size: 22px; }
body.article-page .article-content h2 { font-size: 19px; }
body.article-page .article-content h3 { font-size: 17px; }
body.article-page .article-content h4 { font-size: 15px; }
body.article-page .article-content ul,
body.article-page .article-content ol { margin: 0 0 14px; padding-left: 24px; }
body.article-page .article-content li { margin: 5px 0; }
body.article-page .article-content blockquote { margin: 14px 0; padding: 10px 16px; background:var(--lt-f4f8fd,#f4f8fd); border-left:3px solid #1e7bc0; color:var(--dk-4b5c6b,#4b5c6b); }
body.article-page .article-content table { width: 100%; border-collapse: collapse; margin: 14px 0; table-layout: auto; }
body.article-page .article-content th,
body.article-page .article-content td { border: 1px solid var(--wy-line,#e2e8f0); padding: 8px 10px; font-size: 14px; text-align: left; word-break: break-word; }
body.article-page .article-content th { background:var(--lt-f6f9fd,#f6f9fd); font-weight: 600; }
body.article-page .article-content video { display: block; max-width: 100%; height: auto; margin: 14px auto; }
body.article-page .article-content a { color:var(--dk-1e7bc0,#1e7bc0); text-decoration: underline; }
body.article-page .article-content hr { border:0; border-top:1px solid var(--ln-e6edf5,#e6edf5); margin: 20px 0; }

/* End wyqf-site-theme */
