/* =========================================================
   Pandasoles (潘达鞋业) — 纯静态外贸官网全局样式 v2
   轻奢法式极简风：白底 + 品牌蓝/亮黄/深绿/珊瑚橙四色点缀
   移动优先 (Mobile-first) · 支持 LTR / RTL (阿拉伯语)
   ========================================================= */

:root {
  --blue: #1b4bdb;          /* 品牌蓝 */
  --blue-dark: #1238a8;
  --yellow: #f5c518;        /* 亮黄 */
  --green: #1f8a4c;         /* 深绿 */
  --orange: #ff6b4a;        /* 珊瑚橙 */
  --bg: #faf9f6;
  --card: #ffffff;
  --text: #1a1c20;
  --muted: #6b7280;
  --line: #ececec;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 12px 34px rgba(23, 24, 28, .07);
  --shadow-lg: 0 22px 52px rgba(23, 24, 28, .12);
  --wa: #25d366;
  --wa-dark: #1da851;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", "Noto Sans", "Noto Sans Arabic", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* 阿拉伯语 RTL 字体 */
[dir="rtl"] body {
  font-family: "Noto Sans Arabic", "Segoe UI", Tahoma, "PingFang SC", "Microsoft YaHei", sans-serif;
}

img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 20px;
}

/* ---------------- Header / Nav ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
/* 顶部四色装饰条 */
.site-header::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue) 0 25%, var(--yellow) 25% 50%, var(--green) 50% 75%, var(--orange) 75% 100%);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: .5px;
}
.brand:hover { text-decoration: none; color: var(--blue); }
.brand-logo { height: 44px; width: auto; flex: none; }
.brand-name { font-weight: 900; font-size: 1.22rem; color: var(--text); letter-spacing: .4px; white-space: nowrap; }

/* 汉堡按钮（移动端） */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }

/* 主导航（移动端默认收起） */
.main-nav {
  display: none;
  width: 100%;
}
.main-nav.open { display: block; }

.main-nav ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 14px;
}
.main-nav a {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-weight: 600;
}
.main-nav a:hover { background: rgba(27, 75, 219, .06); text-decoration: none; color: var(--blue); }
.main-nav a.active { background: var(--blue); color: #fff; }

/* 语言切换 */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
}
.lang-switch a {
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: .82rem;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid transparent;
}
.lang-switch a:hover { background: rgba(27, 75, 219, .06); text-decoration: none; color: var(--blue); }
.lang-switch a.active { border-color: var(--blue); color: var(--blue); }

/* 桌面导航 */
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .main-nav { display: block !important; width: auto; }
  .main-nav ul {
    flex-direction: row;
    align-items: center;
    gap: 6px;
    padding-bottom: 0;
  }
  .main-nav a { padding: 8px 14px; }
  .main-nav .lang-switch { margin-inline-start: 10px; }
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn svg { width: 20px; height: 20px; flex: none; }

.btn-accent { background: var(--blue); color: #fff; box-shadow: 0 8px 22px rgba(27, 75, 219, .28); }
.btn-accent:hover { background: var(--blue-dark); color: #fff; }

.btn-outline { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn-outline:hover { background: rgba(27, 75, 219, .06); color: var(--blue-dark); }

.btn-light { background: #fff; color: var(--text); }
.btn-light:hover { background: var(--yellow); color: var(--text); }

.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-dark); color: #fff; }

/* ---------------- Hero (首页：左文右品) ---------------- */
.hero {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
  overflow: hidden;
}
.hero-inner {
  position: relative;
  display: grid;
  gap: 36px;
  padding-block: 52px 60px;
}
.hero h1 {
  font-size: 2rem;
  line-height: 1.25;
  font-weight: 900;
  letter-spacing: -.5px;
  margin-bottom: 14px;
  color: var(--text);
}
.hero .lead { font-size: 1.05rem; color: var(--muted); margin-bottom: 24px; max-width: 620px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .85rem;
  color: var(--muted);
  background: #fff;
}
.hero-meta svg { width: 16px; height: 16px; color: var(--green); }

/* 右侧视觉区 */
.hero-visual { position: relative; }
.hero-visual .hv-main { border-radius: var(--radius); overflow: hidden; background: #f2efe8; aspect-ratio: 4 / 3; box-shadow: var(--shadow-lg); }
.hero-visual .hv-main img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual .hv-tag, .ph-visual .hv-tag {
  position: absolute;
  inset-inline-start: -10px;
  top: 16px;
  background: var(--yellow);
  color: var(--text);
  font-size: .8rem;
  font-weight: 800;
  padding: 8px 14px;
  border-radius: 999px;
  box-shadow: var(--shadow);
}
.hero-visual .hv-tag-2, .ph-visual .hv-tag-2 {
  position: absolute;
  inset-inline-end: 14px;
  bottom: 14px;
  background: var(--green);
  color: #fff;
  font-size: .8rem;
  font-weight: 800;
  padding: 8px 14px;
  border-radius: 999px;
}

@media (min-width: 900px) {
  .hero-inner { grid-template-columns: 1.05fr .95fr; align-items: center; gap: 48px; padding-block: 84px 92px; }
  .hero h1 { font-size: 3rem; }
  .hero .lead { font-size: 1.15rem; }
}

/* ---------------- Sections ---------------- */
.section { padding-block: 56px; }
.section-alt { background: var(--card); border-block: 1px solid var(--line); }
.section-title {
  font-size: 1.55rem;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -.3px;
  margin-bottom: 10px;
}
.section-sub { color: var(--muted); max-width: 680px; margin-bottom: 30px; }
.section-head { margin-bottom: 26px; }
.section-head .eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 8px;
}
.eyebrow::before { content: ""; display: inline-block; width: 22px; height: 3px; border-radius: 3px; background: var(--yellow); margin-inline-end: 8px; vertical-align: middle; }

/* ---------------- Grid / Cards ---------------- */
.grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid.grid-3, .grid { grid-template-columns: repeat(3, 1fr); } .grid.grid-4 { grid-template-columns: repeat(4, 1fr); } .grid.grid-2col { grid-template-columns: 1fr 1fr; } }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card h3 { color: var(--text); font-size: 1.05rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .93rem; }

.feature-icon {
  width: 48px; height: 48px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(27, 75, 219, .08);
  color: var(--blue);
  border-radius: 14px;
  margin-bottom: 14px;
}
.feature-icon svg { width: 26px; height: 26px; }
/* 四色图标变体 */
.feature-icon.fi-yellow { background: rgba(245, 197, 24, .16); color: #b8860b; }
.feature-icon.fi-green { background: rgba(31, 138, 76, .1); color: var(--green); }
.feature-icon.fi-orange { background: rgba(255, 107, 74, .12); color: var(--orange); }

/* 品类卡片（含产品图） */
.cat-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
  display: flex;
  flex-direction: column;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.cat-card .cc-img { aspect-ratio: 4 / 3; background: #f2efe8; overflow: hidden; }
.cat-card .cc-img img { width: 100%; height: 100%; object-fit: cover; }
.cat-card .cc-body { padding: 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.cat-card h3 { color: var(--text); font-size: 1.05rem; font-weight: 800; }
.cat-card p { color: var(--muted); font-size: .9rem; flex: 1; }
.cat-card .cc-link { color: var(--blue); font-weight: 700; font-size: .9rem; }

/* ---------------- Products ---------------- */
.cat-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}
.cat-tab {
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--text);
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  transition: all .15s ease;
}
.cat-tab:hover { border-color: var(--blue); color: var(--blue); }
.cat-tab.active { background: var(--blue); border-color: var(--blue); color: #fff; }

.cat-block { margin-bottom: 44px; }
.cat-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.cat-head .cat-icon {
  width: 46px; height: 46px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--blue); color: #fff;
  border-radius: 14px;
}
.cat-head .cat-icon.ic-yellow { background: var(--yellow); color: var(--text); }
.cat-head .cat-icon.ic-green { background: var(--green); color: #fff; }
.cat-head .cat-icon.ic-orange { background: var(--orange); color: #fff; }
.cat-head .cat-icon svg { width: 24px; height: 24px; }
.cat-head h2 { color: var(--text); font-size: 1.25rem; font-weight: 800; }
.cat-head p { color: var(--muted); font-size: .9rem; }

.product-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product-card .thumb { background: #f2efe8; aspect-ratio: 4 / 3; }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-card .body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-card h3 { color: var(--text); font-size: 1rem; font-weight: 800; }
.product-card p { color: var(--muted); font-size: .88rem; flex: 1; }
.product-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.product-tags span {
  font-size: .74rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(27, 75, 219, .08);
  color: var(--blue);
  font-weight: 600;
}
.product-tags span.pt-yellow { background: rgba(245, 197, 24, .16); color: #b8860b; }
.product-tags span.pt-green { background: rgba(31, 138, 76, .1); color: var(--green); }
.product-tags span.pt-orange { background: rgba(255, 107, 74, .12); color: var(--orange); }
.product-card .btn { margin-top: 8px; padding: 10px 16px; font-size: .85rem; width: 100%; }

/* ---------------- 工厂实力占位 ---------------- */
.factory-band {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}
.factory-ph {
  border: none;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
}
.factory-img { display: block; width: 100%; height: 220px; object-fit: cover; }
.factory-ph.wide .factory-img { height: 190px; }
@media (min-width: 640px) {
  .factory-band { grid-template-columns: repeat(3, 1fr); }
  .factory-ph.wide { grid-column: 1 / -1; }
}

/* ---------------- Why / Steps ---------------- */
.steps { counter-reset: step; }
.step { display: flex; gap: 16px; margin-bottom: 20px; }
.step .num {
  counter-increment: step;
  width: 42px; height: 42px; flex: none;
  border-radius: 50%;
  background: var(--blue); color: #fff;
  font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
}
.step .num::before { content: counter(step); }
.step h3 { color: var(--text); font-size: 1.02rem; font-weight: 800; margin-bottom: 4px; }
.step p { color: var(--muted); font-size: .92rem; }

/* ---------------- FAQ ---------------- */
.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  padding: 16px 18px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.3rem; color: var(--blue); }
.faq-item[open] summary::after { content: "–"; }
.faq-item .faq-a { padding: 0 18px 16px; color: var(--muted); font-size: .93rem; }

/* ---------------- Contact ---------------- */
.contact-grid { display: grid; gap: 28px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.1fr 1fr; } }

.contact-item { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; }
.contact-item .ci-icon {
  width: 46px; height: 46px; flex: none;
  border-radius: 14px;
  background: rgba(27, 75, 219, .08);
  color: var(--blue);
  display: inline-flex; align-items: center; justify-content: center;
}
.contact-item .ci-icon svg { width: 22px; height: 22px; }
.contact-item h3 { font-size: .95rem; color: var(--text); font-weight: 800; margin-bottom: 2px; }
.contact-item p, .contact-item a { color: var(--muted); font-size: .95rem; word-break: break-word; }
.contact-item a { color: var(--blue); font-weight: 600; }

.form-card form { display: grid; gap: 14px; }
.form-card label { font-size: .88rem; font-weight: 600; color: var(--text); }
.form-card input,
.form-card select,
.form-card textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: .95rem;
  background: var(--bg);
  color: var(--text);
}
.form-card input:focus, .form-card select:focus, .form-card textarea:focus {
  outline: 2px solid var(--blue);
  outline-offset: -1px;
  background: #fff;
}
.form-row { display: grid; gap: 14px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }

/* ---------------- Footer ---------------- */
.site-footer { background: #14161a; color: rgba(255,255,255,.8); padding-block: 44px 120px; }
.site-footer::before { content: ""; display: block; height: 4px; background: linear-gradient(90deg, var(--blue) 0 25%, var(--yellow) 25% 50%, var(--green) 50% 75%, var(--orange) 75% 100%); }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-grid h4 { color: var(--yellow); font-size: 1rem; margin-bottom: 12px; }
.footer-grid p { font-size: .9rem; }
.footer-grid ul li { margin-bottom: 8px; }
.footer-grid ul a { color: rgba(255,255,255,.75); font-size: .9rem; }
.footer-grid ul a:hover { color: var(--yellow); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  margin-top: 30px;
  padding-top: 18px;
  font-size: .82rem;
  color: rgba(255,255,255,.55);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}

/* ---------------- WhatsApp 浮动按钮 ---------------- */
.wa-float {
  position: fixed;
  inset-inline-end: 18px;
  bottom: 18px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 20px;
  border-radius: 999px;
  background: var(--wa);
  color: #fff !important;
  font-weight: 700;
  font-size: .92rem;
  box-shadow: 0 8px 24px rgba(37, 211, 102, .45);
  transition: transform .15s ease, background .15s ease;
}
.wa-float:hover { text-decoration: none; background: var(--wa-dark); transform: translateY(-2px); }
.wa-float svg { width: 22px; height: 22px; flex: none; }
.wa-float .wa-label { display: none; }
@media (min-width: 640px) { .wa-float .wa-label { display: inline; } }
@media (max-width: 380px) { .wa-float { padding: 12px 14px; } }

/* ---------------- Page hero (inner pages) ---------------- */
.page-hero {
  position: relative;
  background: linear-gradient(180deg, #ffffff, var(--bg));
  color: var(--text);
  padding-block: 44px;
  text-align: start;
  border-bottom: 1px solid var(--line);
}
.page-hero::before {
  content: "";
  display: block;
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--blue) 0 25%, var(--yellow) 25% 50%, var(--green) 50% 75%, var(--orange) 75% 100%);
}
.page-hero .eyebrow { color: var(--blue); font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; font-size: .8rem; }
.page-hero h1 { font-size: 1.7rem; line-height: 1.35; font-weight: 900; letter-spacing: -.4px; }
.page-hero p { margin-top: 12px; color: var(--muted); max-width: 640px; margin-inline: 0; font-size: 1rem; }
@media (min-width: 900px) { .page-hero { padding-block: 56px; } .page-hero h1 { font-size: 2.4rem; } }
.page-hero-grid { display: grid; gap: 24px; align-items: center; }
.ph-visual { position: relative; }
.ph-visual img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 900px) {
  .page-hero-grid { grid-template-columns: 1.15fr .85fr; gap: 36px; }
}

/* ---------------- Privacy / Legal ---------------- */
.prose { max-width: 800px; }
.prose h2 { color: var(--text); font-size: 1.2rem; font-weight: 800; margin: 26px 0 10px; }
.prose p, .prose li { color: var(--muted); font-size: .95rem; margin-bottom: 10px; }
.prose ul { list-style: disc; padding-inline-start: 22px; }
.prose a { color: var(--blue); font-weight: 600; }
.updated { color: var(--muted); font-size: .85rem; margin-bottom: 20px; }

/* ---------------- Lang landing (root) ---------------- */
.lang-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #ffffff 0%, var(--bg) 100%);
  color: var(--text);
  text-align: center;
  padding: 32px 20px;
}
.lang-hero::before {
  content: "";
  display: block;
  position: fixed;
  inset-inline: 0;
  top: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--blue) 0 25%, var(--yellow) 25% 50%, var(--green) 50% 75%, var(--orange) 75% 100%);
}
.lang-hero-inner { max-width: 680px; }
.lang-hero h1 { font-size: 2rem; font-weight: 900; margin-bottom: 10px; letter-spacing: -.5px; }
.lang-hero .sub { color: var(--muted); margin-bottom: 34px; }
.lang-cards { display: grid; gap: 14px; }
@media (min-width: 640px) { .lang-cards { grid-template-columns: repeat(3, 1fr); } }
.lang-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--text);
  font-weight: 800;
  box-shadow: var(--shadow);
  transition: all .15s ease;
}
.lang-card small { color: var(--muted); font-weight: 400; font-size: .82rem; }
.lang-card:hover { background: var(--blue); color: #fff; text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.lang-card:hover small { color: rgba(255,255,255,.85); }

/* ---------------- Utility ---------------- */
.text-center { text-align: center; }
.mt-1 { margin-top: 16px; } .mt-2 { margin-top: 26px; } .mt-3 { margin-top: 40px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Catalog section */
.catalog-cat-title { font-size: 1.25rem; font-weight: 800; margin: 26px 0 6px; }
.catalog-cat-sub { color: var(--muted); font-size: .88rem; margin-bottom: 16px; }
.catalog-meta { color: var(--muted); font-size: .8rem; border-top: 1px dashed var(--line); padding-top: 8px; margin-top: 2px; }
