/*
Theme Name: XQ Trade 企业外贸官网
Theme URI: https://xiangqishow.com/
Author: xiangqishow.com
Description: 湖南省优质企业出海平台 —— 企业子站统一外贸官网模板。一企一站、双语（中/EN）、产品中心、资质证书、项目案例、新闻动态、在线询盘，全部外贸 B2B 结构，与主站主题零共享。
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
License: Proprietary
Text Domain: xq-trade
Tags: business, e-commerce, custom-menu, featured-images, translation-ready
*/

:root {
  --tq-primary: #123a5e;
  --tq-primary-2: #1b5183;
  --tq-accent: #0f8f7e;
  --tq-accent-2: #12a894;
  --tq-ink: #1b2027;
  --tq-muted: #5f6b7a;
  --tq-line: #e4e9ef;
  --tq-bg: #f5f7fa;
  --tq-white: #fff;
  --tq-radius: 6px;
  --tq-shadow: 0 4px 20px rgba(18, 58, 94, .08);
  --tq-wrap: 1180px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px; line-height: 1.7; color: var(--tq-ink); background: var(--tq-white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--tq-primary); text-decoration: none; transition: .18s; }
a:hover { color: var(--tq-accent); }
h1, h2, h3, h4 { margin: 0 0 .6em; line-height: 1.3; color: var(--tq-primary); font-weight: 700; letter-spacing: -.2px; }
h1 { font-size: 34px; }
h2 { font-size: 27px; }
h3 { font-size: 19px; }
p { margin: 0 0 1.05em; }
:focus-visible { outline: 2px solid var(--tq-accent); outline-offset: 2px; }

.tq-wrap { width: 100%; max-width: var(--tq-wrap); margin: 0 auto; padding: 0 20px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }

/* 顶部条 */
.tq-topbar { background: #0d2c48; color: rgba(255,255,255,.75); font-size: 13px; }
.tq-topbar .tq-wrap { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 38px; flex-wrap: wrap; }
.tq-topbar a { color: rgba(255,255,255,.85); }
.tq-topbar a:hover { color: #fff; }
.tq-topbar__left { display: flex; gap: 18px; flex-wrap: wrap; }
.tq-lang { display: flex; gap: 8px; align-items: center; }
.tq-lang .is-current { color: var(--tq-accent-2); font-weight: 600; }

/* 页头 */
.tq-header { position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--tq-line); backdrop-filter: blur(8px); }
.tq-header__main { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 0; }
.tq-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.tq-brand__mark {
  width: 44px; height: 44px; flex: 0 0 44px; border-radius: 8px;
  background: linear-gradient(140deg, var(--tq-primary), var(--tq-accent));
  color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 18px;
}
.tq-brand__name { font-size: 19px; font-weight: 700; color: var(--tq-primary); line-height: 1.25; }
.tq-brand__slogan { font-size: 12px; color: var(--tq-muted); }
.tq-header__actions { display: flex; align-items: center; gap: 10px; }

.tq-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: var(--tq-radius); font-size: 15px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; transition: .18s; white-space: nowrap;
}
.tq-btn--accent { background: var(--tq-accent); color: #fff; }
.tq-btn--accent:hover { background: #0b7a6b; color: #fff; }
.tq-btn--primary { background: var(--tq-primary); color: #fff; }
.tq-btn--primary:hover { background: var(--tq-primary-2); color: #fff; }
.tq-btn--ghost { border-color: var(--tq-line); color: var(--tq-primary); background: #fff; }
.tq-btn--ghost:hover { border-color: var(--tq-primary); }
.tq-btn--light { background: #fff; color: var(--tq-primary); }
.tq-btn--light:hover { background: var(--tq-accent); color: #fff; }

.tq-nav { border-top: 1px solid var(--tq-line); }
.tq-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.tq-nav li a { display: block; padding: 13px 18px; font-size: 15px; font-weight: 500; color: #33404f; border-radius: 4px; }
.tq-nav li a:hover, .tq-nav li.current-menu-item > a, .tq-nav li.current_page_item > a { color: var(--tq-accent); background: #f0f7f6; }
.tq-nav-toggle { display: none; width: 100%; background: #fff; border: 0; border-top: 1px solid var(--tq-line); padding: 13px 20px; text-align: left; font-weight: 600; color: var(--tq-primary); cursor: pointer; }

/* 首屏 */
.tq-hero { position: relative; color: #fff; background: linear-gradient(115deg, #0d2c48 0%, #17456e 58%, #14657f 100%); overflow: hidden; }
.tq-hero::after { content: ""; position: absolute; inset: auto -140px -180px auto; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(18,168,148,.35), transparent 62%); }
.tq-hero__inner { position: relative; z-index: 2; padding: 78px 0 70px; max-width: 720px; }
.tq-hero__eyebrow { display: inline-block; font-size: 12px; letter-spacing: 2.4px; text-transform: uppercase; color: #7fe0d1; margin-bottom: 16px; }
.tq-hero h1 { color: #fff; font-size: 42px; margin-bottom: 16px; }
.tq-hero p { color: rgba(255,255,255,.82); font-size: 17px; }
.tq-hero__actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.tq-hero__meta { display: flex; gap: 34px; margin-top: 40px; flex-wrap: wrap; }
.tq-hero__meta div b { display: block; font-size: 22px; color: #fff; }
.tq-hero__meta div span { font-size: 12.5px; color: rgba(255,255,255,.66); }

/* 概览条 */
.tq-strip { background: #0d2c48; color: rgba(255,255,255,.8); }
.tq-strip .tq-wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 22px 20px; }
.tq-strip strong { display: block; color: #fff; font-size: 15px; margin-bottom: 2px; }
.tq-strip span { font-size: 12.5px; }

/* 区块 */
.tq-section { padding: 64px 0; }
.tq-section--alt { background: var(--tq-bg); }
.tq-section__head { max-width: 720px; margin-bottom: 34px; }
.tq-section__head h2 { margin-bottom: 8px; }
.tq-section__head p { color: var(--tq-muted); margin: 0; }
.tq-section__head .tq-eyebrow { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--tq-accent); font-weight: 600; }

.tq-grid { display: grid; gap: 22px; }
.tq-grid--4 { grid-template-columns: repeat(4, 1fr); }
.tq-grid--3 { grid-template-columns: repeat(3, 1fr); }
.tq-grid--2 { grid-template-columns: repeat(2, 1fr); }

/* 产品卡 */
.tq-product { background: #fff; border: 1px solid var(--tq-line); border-radius: var(--tq-radius); overflow: hidden; display: flex; flex-direction: column; transition: .2s; }
.tq-product:hover { box-shadow: var(--tq-shadow); transform: translateY(-3px); border-color: #d3dde7; }
/* 产品卡：contain 保证不同长宽比的产品图都完整显示，不裁主体 */
.tq-product__thumb { aspect-ratio: 4 / 3; background: var(--tq-bg) center/contain no-repeat; position: relative; }
.tq-product__thumb--empty { display: grid; place-items: center; color: #aab6c3; font-size: 12px; letter-spacing: 1px; }
.tq-product__body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.tq-product__body h3 { font-size: 16px; margin: 0; }
.tq-product__body h3 a { color: var(--tq-primary); }
.tq-product__body p { font-size: 13px; color: var(--tq-muted); margin: 0; }
.tq-product__more { margin-top: auto; font-size: 13px; color: var(--tq-accent); font-weight: 600; }

/* 优势卡 */
.tq-feature { background: #fff; border: 1px solid var(--tq-line); border-radius: var(--tq-radius); padding: 24px 20px; }
.tq-feature__icon { width: 40px; height: 40px; border-radius: 8px; background: #eaf4f2; color: var(--tq-accent); display: grid; place-items: center; font-weight: 700; margin-bottom: 14px; }
.tq-feature h3 { font-size: 17px; margin-bottom: 6px; }
.tq-feature p { font-size: 14px; color: var(--tq-muted); margin: 0; }

/* 资质 / 新闻 */
.tq-cert { background: #fff; border: 1px solid var(--tq-line); border-radius: var(--tq-radius); overflow: hidden; }
.tq-cert__thumb { aspect-ratio: 3 / 4; background: var(--tq-bg) center/cover; }
.tq-cert__body { padding: 12px 14px; font-size: 14px; font-weight: 600; color: var(--tq-primary); }
.tq-news-item { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--tq-line); }
.tq-news-item:last-child { border-bottom: 0; }
.tq-news-item time { font-size: 12.5px; color: var(--tq-muted); white-space: nowrap; padding-top: 3px; }
.tq-news-item h3 { font-size: 16px; margin: 0 0 4px; }
.tq-news-item p { font-size: 13.5px; color: var(--tq-muted); margin: 0; }

/* 询盘 */
.tq-inquiry { background: linear-gradient(120deg, #0d2c48, #14657f); color: #fff; }
.tq-inquiry .tq-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; padding: 64px 20px; }
.tq-inquiry h2 { color: #fff; }
.tq-inquiry p { color: rgba(255,255,255,.78); }
.tq-inquiry__list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; font-size: 14px; color: rgba(255,255,255,.82); }
.tq-form { background: #fff; border-radius: 8px; padding: 26px; box-shadow: 0 18px 50px rgba(0,0,0,.18); }
.tq-form h3 { font-size: 18px; margin: 0 0 16px; color: var(--tq-primary); }
.tq-form label { display: block; font-size: 13px; font-weight: 600; color: #3d4a59; margin-bottom: 6px; }
.tq-form input, .tq-form textarea, .tq-form select {
  width: 100%; padding: 11px 13px; border: 1px solid var(--tq-line); border-radius: 5px; font-size: 15px; margin-bottom: 14px; font-family: inherit; background: #fbfcfd;
}
.tq-form textarea { min-height: 110px; resize: vertical; }
.tq-form input:focus, .tq-form textarea:focus { outline: none; border-color: var(--tq-accent); background: #fff; }
.tq-form .tq-btn { width: 100%; }
.tq-form__note { font-size: 12px; color: var(--tq-muted); margin: 12px 0 0; }
.tq-alert { background: #eaf7f4; border: 1px solid #b7e4dc; color: #0b6b5d; padding: 12px 14px; border-radius: 5px; font-size: 14px; margin-bottom: 16px; }

/* 内容页 */
.tq-crumb { background: var(--tq-bg); border-bottom: 1px solid var(--tq-line); font-size: 13px; color: var(--tq-muted); }
.tq-crumb .tq-wrap { padding: 12px 20px; }
.tq-page-head { padding: 44px 0 36px; background: linear-gradient(120deg, #0d2c48, #17456e); color: #fff; }
.tq-page-head h1 { color: #fff; margin: 0; font-size: 30px; }
.tq-page-head p { color: rgba(255,255,255,.75); margin: 8px 0 0; }

.tq-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 34px; align-items: start; }
.tq-content { font-size: 16px; }
.tq-content h2 { margin-top: 1.5em; padding-bottom: .3em; border-bottom: 1px solid var(--tq-line); }
.tq-content img { border-radius: 4px; margin: 1.2em 0; }
.tq-content table { width: 100%; border-collapse: collapse; margin: 1.3em 0; font-size: 14px; }
.tq-content th, .tq-content td { border: 1px solid var(--tq-line); padding: 10px 12px; text-align: left; }
.tq-content th { background: var(--tq-bg); }
.tq-side { display: grid; gap: 20px; }
.tq-widget { background: #fff; border: 1px solid var(--tq-line); border-radius: var(--tq-radius); padding: 20px; }
.tq-widget__title { font-size: 15px; margin: 0 0 12px; padding-bottom: 10px; border-bottom: 1px solid var(--tq-line); }
.tq-widget ul { list-style: none; padding: 0; margin: 0; }
.tq-widget li { padding: 7px 0; font-size: 14px; border-bottom: 1px dashed #eef1f5; }
.tq-widget li:last-child { border-bottom: 0; }
.tq-widget a { color: #3c4a58; }
.tq-widget a:hover { color: var(--tq-accent); }

.tq-spec { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: 14.5px; }
.tq-spec th, .tq-spec td { border: 1px solid var(--tq-line); padding: 11px 14px; text-align: left; }
.tq-spec th { background: var(--tq-bg); width: 34%; font-weight: 600; color: var(--tq-primary); }

.tq-pager { display: flex; gap: 8px; justify-content: center; margin: 36px 0 0; flex-wrap: wrap; }
.tq-pager .page-numbers { min-width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--tq-line); background: #fff; font-size: 14px; }
.tq-pager .page-numbers.current { background: var(--tq-primary); color: #fff; border-color: var(--tq-primary); }
.tq-empty { padding: 38px; text-align: center; color: var(--tq-muted); background: var(--tq-bg); border: 1px dashed var(--tq-line); border-radius: 6px; }

/* 页脚 */
.tq-footer { background: #0a2338; color: rgba(255,255,255,.65); font-size: 14px; }
.tq-footer__main { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 32px; padding: 50px 0 36px; }
.tq-footer h4 { color: #fff; font-size: 15px; margin: 0 0 14px; }
.tq-footer ul { list-style: none; padding: 0; margin: 0; }
.tq-footer li { padding: 5px 0; }
.tq-footer a { color: rgba(255,255,255,.65); }
.tq-footer a:hover { color: #7fe0d1; }
.tq-footer__bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 16px 0; font-size: 12.5px; color: rgba(255,255,255,.45); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* 浮动询盘 */
.tq-fab { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: flex; flex-direction: column; gap: 10px; }
.tq-fab a { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--tq-accent); color: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.22); font-size: 12px; font-weight: 700; text-align: center; line-height: 1.1; }
.tq-fab a:hover { background: #0b7a6b; color: #fff; }

@media (max-width: 1024px) {
  .tq-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .tq-layout { grid-template-columns: 1fr; }
  .tq-inquiry .tq-wrap { grid-template-columns: 1fr; }
  .tq-strip .tq-wrap { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .tq-nav-toggle { display: block; }
  .tq-nav { display: none; }
  .tq-nav.is-open { display: block; }
  .tq-nav ul { flex-direction: column; }
  .tq-nav li a { padding: 12px 18px; border-bottom: 1px solid var(--tq-line); border-radius: 0; }
  .tq-hero__inner { padding: 52px 0 46px; }
  .tq-hero h1 { font-size: 29px; }
  .tq-header__actions .tq-btn--ghost { display: none; }
  .tq-grid--3, .tq-grid--2 { grid-template-columns: 1fr; }
  .tq-section { padding: 44px 0; }
  .tq-footer__main { grid-template-columns: 1fr; gap: 24px; padding: 36px 0 24px; }
  .tq-topbar__left { display: none; }
}
@media (max-width: 560px) {
  .tq-grid--4 { grid-template-columns: 1fr; }
  .tq-brand__slogan { display: none; }
  .tq-brand__name { font-size: 16px; }
  .tq-hero h1 { font-size: 25px; }
  h1 { font-size: 25px; }
}
