/*
Theme Name: Fences 7 中文站
Theme URI: https://www.fences.cn.com/
Author: Fences 中文站
Description: 为 Fences 7 中文代理站定制的响应式主题，深色科技风 + 产品截图展示。
Version: 1.0.0
Text Domain: fences-seven
*/

:root {
  --navy-900: #070d18;
  --navy-800: #0b1424;
  --navy-700: #101d33;
  --navy-600: #16263f;
  --ink: #0f172a;
  --muted: #5b6b82;
  --line: #e4ebf5;
  --bg-soft: #f4f8fd;
  --blue: #2f6bff;
  --blue-dark: #1b50d8;
  --cyan: #34d3ff;
  --amber: #ffb648;
  --white: #ffffff;
  --radius: 18px;
  --shadow-sm: 0 6px 20px rgba(15, 23, 42, .06);
  --shadow-md: 0 18px 45px rgba(15, 23, 42, .12);
  --shadow-lg: 0 30px 80px rgba(4, 10, 24, .35);
  --container: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 16px; letter-spacing: -.5px; }
h1 { font-size: clamp(34px, 4.6vw, 58px); font-weight: 800; }
h2 { font-size: clamp(26px, 3.2vw, 40px); font-weight: 800; }
h3 { font-size: 20px; font-weight: 700; }
p { margin: 0 0 16px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 22px; }
.section { padding: 88px 0; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--navy-900); color: #e9f0fb; }
.section--dark h2, .section--dark h3 { color: #fff; }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}
.section--dark .eyebrow { color: var(--cyan); }

.section-head { max-width: 760px; margin: 0 auto 52px; text-align: center; }
.section-head p { color: var(--muted); font-size: 17px; margin: 0; }
.section--dark .section-head p { color: #9fb1c9; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: linear-gradient(135deg, var(--blue) 0%, #4f8bff 100%); color: #fff; box-shadow: 0 12px 30px rgba(47, 107, 255, .35); }
.btn--primary:hover { color: #fff; box-shadow: 0 18px 40px rgba(47, 107, 255, .45); }
.btn--ghost { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.28); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn--light { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.btn--light:hover { color: var(--ink); }
.btn--sm { padding: 10px 18px; font-size: 14px; border-radius: 10px; }
.btn--block { width: 100%; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(7, 13, 24, .82);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; font-weight: 800; letter-spacing: -.2px; }
.brand:hover { color: #fff; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.brand span small { display: block; font-size: 11px; font-weight: 500; color: #8ea2bd; letter-spacing: 1px; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { color: #c7d4e6; font-size: 15px; font-weight: 500; }
.nav a:hover { color: #fff; }
.header-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; background: none; border: 0; color: #fff; font-size: 24px; cursor: pointer; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 104px;
  background:
    radial-gradient(900px 480px at 15% -10%, rgba(47, 107, 255, .38), transparent 60%),
    radial-gradient(760px 420px at 92% 8%, rgba(52, 211, 255, .22), transparent 62%),
    linear-gradient(180deg, var(--navy-900) 0%, #0a1526 100%);
  color: #eaf2ff;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 20%, #000 0%, transparent 72%);
  pointer-events: none;
}
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.02fr 1.18fr; gap: 56px; align-items: center; }
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #7fb0ff, var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { font-size: 18px; color: #a9bcd6; max-width: 520px; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 10px 22px; color: #93a9c6; font-size: 14px; }
.hero-chips span { display: inline-flex; align-items: center; gap: 8px; }
.hero-chips i { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); display: inline-block; }

.hero-visual { position: relative; }
.window-frame {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: var(--shadow-lg);
  background: #0d1728;
  transform: perspective(1600px) rotateY(-4deg) rotateX(2deg);
}
.window-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: #0b1524; border-bottom: 1px solid rgba(255,255,255,.08); }
.window-bar i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; display: inline-block; }
.window-bar i:nth-child(2) { background: #febc2e; }
.window-bar i:nth-child(3) { background: #28c840; }
.window-bar span { margin-left: 8px; font-size: 12px; color: #7488a3; }
.window-frame img { width: 100%; display: block; }
.hero-badge {
  position: absolute;
  right: -10px;
  bottom: -18px;
  background: #fff;
  color: var(--ink);
  border-radius: 14px;
  padding: 12px 18px;
  box-shadow: var(--shadow-md);
  font-size: 13px;
  font-weight: 700;
}
.hero-badge small { display: block; color: var(--muted); font-weight: 500; font-size: 12px; }

/* Trust strip */
.trust { background: var(--navy-800); border-top: 1px solid rgba(255,255,255,.06); border-bottom: 1px solid rgba(255,255,255,.06); }
.trust-inner { display: flex; align-items: center; justify-content: space-between; gap: 26px; padding: 22px 0; flex-wrap: wrap; color: #93a9c6; font-size: 14px; }
.trust-inner strong { color: #fff; font-size: 15px; }
.trust-items { display: flex; gap: 34px; flex-wrap: wrap; }
.trust-items span { display: inline-flex; align-items: center; gap: 8px; }
.trust-items b { color: var(--cyan); font-size: 18px; }

/* Feature grid */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: #eef4ff; color: var(--blue); margin-bottom: 18px; }
.feature-card h3 { font-size: 18px; margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: 15px; margin: 0; }

/* Showcase */
.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.showcase + .showcase { margin-top: 84px; }
.showcase:nth-child(even) .showcase-media { order: 2; }
.showcase-media img { border-radius: 14px; box-shadow: var(--shadow-md); border: 1px solid var(--line); }
.showcase-copy h2 { font-size: clamp(24px, 2.6vw, 34px); }
.showcase-copy p { color: var(--muted); font-size: 16px; }
.check-list { list-style: none; padding: 0; margin: 22px 0 0; }
.check-list li { position: relative; padding-left: 28px; margin-bottom: 10px; color: #37465c; font-size: 15px; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--blue); font-weight: 800; }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.price-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.price-card--featured { border-color: var(--blue); box-shadow: 0 24px 60px rgba(47, 107, 255, .18); transform: translateY(-6px); }
.price-tag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--blue); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 14px; border-radius: 999px; letter-spacing: 1px; white-space: nowrap; }
.price-card h3 { font-size: 18px; margin-bottom: 6px; }
.price-card .desc { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 22px; }
.price .currency { font-size: 20px; font-weight: 700; color: var(--ink); }
.price .num { font-size: 46px; font-weight: 800; letter-spacing: -2px; color: var(--ink); }
.price .unit { color: var(--muted); font-size: 14px; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 26px; flex: 1; }
.price-card li { color: #37465c; font-size: 14.5px; padding: 7px 0; border-bottom: 1px dashed #eef2f8; }
.price-card li:last-child { border-bottom: 0; }
.price-card li::before { content: "•"; color: var(--blue); font-weight: 800; margin-right: 9px; }

/* FAQ */
.faq-list { max-width: 860px; margin: 0 auto; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 4px 24px; margin-bottom: 12px; }
.faq-item summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; position: relative; padding-right: 30px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 0; top: 12px; font-size: 22px; color: var(--muted); }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { color: var(--muted); padding-bottom: 14px; margin: 0; }

/* Articles */
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.article-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.article-card .thumb { aspect-ratio: 16 / 9; background: var(--bg-soft); overflow: hidden; }
.article-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.article-card:hover .thumb img { transform: scale(1.04); }
.article-card .body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.article-card h3 { font-size: 17px; margin-bottom: 8px; }
.article-card h3 a { color: var(--ink); }
.article-card p { color: var(--muted); font-size: 14px; flex: 1; }
.article-meta { color: #8b9ab0; font-size: 12.5px; margin-top: 10px; }

/* Page hero */
.page-hero { background: linear-gradient(180deg, var(--navy-900), #0a1526); color: #fff; padding: 72px 0 64px; text-align: center; }
.page-hero p { color: #a9bcd6; max-width: 660px; margin: 0 auto; }
.page-hero h1 { color: #fff; margin-bottom: 14px; }

/* Download */
.download-card {
  max-width: 820px;
  margin: -46px auto 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  padding: 38px;
  position: relative;
  z-index: 3;
}
.download-head { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.download-head img { width: 56px; height: 56px; border-radius: 14px; background: #eef4ff; padding: 8px; }
.download-head h2 { margin: 0; font-size: 22px; }
.download-meta { color: var(--muted); font-size: 13.5px; }
.download-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0 10px; }
.download-note { color: #8b9ab0; font-size: 13px; }
.requirements { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 26px; }
.requirement { background: var(--bg-soft); border-radius: 12px; padding: 16px 18px; }
.requirement b { display: block; font-size: 14px; }
.requirement span { color: var(--muted); font-size: 13px; }

/* Article body */
.entry { max-width: 820px; margin: 0 auto; padding: 60px 22px 80px; }
.entry-head { margin-bottom: 34px; }
.entry-head h1 { font-size: clamp(28px, 3.4vw, 42px); }
.entry-meta { color: #8b9ab0; font-size: 14px; }
.entry-content { font-size: 17px; color: #26334a; }
.entry-content h2 { font-size: 26px; margin-top: 42px; }
.entry-content h3 { font-size: 21px; margin-top: 30px; }
.entry-content p { margin-bottom: 18px; }
.entry-content ul, .entry-content ol { padding-left: 24px; margin-bottom: 20px; }
.entry-content li { margin-bottom: 8px; }
.entry-content img { border-radius: 14px; margin: 26px 0; box-shadow: var(--shadow-sm); }
.entry-content blockquote { margin: 26px 0; padding: 18px 22px; border-left: 4px solid var(--blue); background: var(--bg-soft); border-radius: 0 12px 12px 0; color: #37465c; }
.entry-content code { background: #eef4ff; padding: 2px 6px; border-radius: 5px; font-size: .92em; }
.source-note { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); color: #8b9ab0; font-size: 13.5px; }

/* Sitely */
.disclaimer-bar { background: #fff8e8; border-top: 1px solid #ffe3ad; color: #7a5a12; font-size: 13px; }
.disclaimer-bar .container { padding-top: 14px; padding-bottom: 14px; }

/* Footer */
.site-footer { background: var(--navy-900); color: #93a9c6; padding: 66px 0 30px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.site-footer a { color: #a8bcd8; display: block; margin-bottom: 9px; }
.site-footer a:hover { color: #fff; }
.footer-brand { display: flex; align-items: center; gap: 12px; color: #fff; font-weight: 800; margin-bottom: 16px; }
.footer-brand img { width: 36px; height: 36px; border-radius: 9px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.09); padding-top: 24px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 12.5px; color: #7c90ab; }
.footer-disclaimer { max-width: 760px; line-height: 1.8; }
.footer-disclaimer strong { color: #c9d8ea; }

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-visual { max-width: 720px; }
  .window-frame { transform: none; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .price-card--featured { transform: none; }
  .showcase { grid-template-columns: 1fr; gap: 34px; }
  .showcase:nth-child(even) .showcase-media { order: 0; }
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .section { padding: 62px 0; }
  .header-inner { height: 64px; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--navy-900); flex-direction: column; align-items: flex-start; padding: 18px 22px 24px; gap: 18px; border-bottom: 1px solid rgba(255,255,255,.1); }
  .nav.is-open { display: flex; }
  .nav-toggle { display: block; }
  .header-cta .btn { display: none; }
  .hero { padding: 62px 0 78px; }
  .feature-grid, .article-grid { grid-template-columns: 1fr; }
  .requirements { grid-template-columns: 1fr; }
  .download-card { padding: 26px 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .trust-items { gap: 18px; }
}
