/* ============================================================
   结构样式表 —— 只定义布局与结构，视觉值全部走 CSS 变量
   四套皮肤在 skins.css 中给这些变量赋值，实现一键换肤
   ============================================================ */
:root {
  /* 品牌双色 —— 四套皮肤恒定不变（酒红 + 橙金） */
  --wine: #8c1c13;
  --wine-dark: #6b140d;
  --gold: #d98a2b;
  --gold-light: #f0a94a;

  /* 语义色 —— 皮肤可覆盖 */
  --bg: #fffdfb;
  --bg-soft: #f8f4ee;
  --surface: #ffffff;
  --ink: #2a2724;
  --text-body: #4a4540;
  --muted: #6e6861;
  --line: #e9e1d7;
  --brand-soft: #fbf1ef;
  --header-bg: rgba(255, 253, 251, .94);
  --accent: var(--wine);
  --accent-2: var(--gold);

  /* 字体与标题气质 —— 皮肤可覆盖 */
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-display: var(--font-body);
  --h1-size: clamp(30px, 3.8vw, 52px);
  --h2-size: clamp(26px, 3vw, 36px);
  --h1-weight: 700;
  --h2-weight: 700;
  --h1-spacing: -.02em;
  --h2-spacing: -.01em;
  --display-transform: none;

  /* 形状与阴影 —— 皮肤可覆盖 */
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 14px 40px rgba(80, 40, 20, .08);
  --shadow-hover: 0 18px 46px rgba(80, 40, 20, .14);

  /* 背景纹理 —— 皮肤可覆盖 */
  --ray: rgba(217, 138, 43, .11);
  --self-ray: rgba(240, 169, 74, .12);
  --thumb-bg: linear-gradient(145deg, #f6e9dd, #efe0d3);
  --thumb-mark: rgba(140, 28, 19, .18);

  /* 深色高亮区（自持电站）—— 皮肤可覆盖 */
  --dark-bg: #6b140d;
  --dark-surface: rgba(255, 255, 255, .07);
  --dark-line: rgba(240, 169, 74, .3);
  --dark-hair: rgba(255, 255, 255, .18);
  --dark-title: #fff;
  --dark-body: rgba(255, 255, 255, .75);
  --dark-muted: rgba(255, 255, 255, .7);

  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 78px; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  transition: background .35s, color .35s;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font-family: inherit; font-size: inherit; }
button { cursor: pointer; }
.wrap { width: min(var(--wrap), calc(100% - 48px)); margin: 0 auto; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s, background .35s;
}
.site-header.scrolled { box-shadow: 0 4px 20px rgba(80, 40, 20, .07); }
.header-inner { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand img { height: 46px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a {
  font-size: 14px; color: var(--muted); position: relative; padding: 6px 0;
  transition: color .2s;
}
.main-nav a:hover, .main-nav a.active { color: var(--accent); }
.main-nav a.nav-feature {
  color: #fff; background: var(--wine); padding: 7px 14px; border-radius: var(--radius-sm);
}
.main-nav a.nav-feature:hover, .main-nav a.nav-feature.active { color: #fff; background: var(--wine-dark); }
.main-nav a.nav-feature.active::after { display: none; }
.main-nav a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--accent-2); border-radius: 2px;
}
.menu-toggle { display: none; border: 0; background: none; padding: 8px; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--wine); margin: 5px 0; border-radius: 2px; }

.eyebrow {
  display: flex; align-items: center; gap: 9px; margin: 0 0 14px;
  font-size: 13px; font-weight: 600; letter-spacing: .08em; color: var(--accent);
}
.dot { width: 7px; height: 7px; background: var(--accent-2); border-radius: 50%; flex: none; }
h1, h2, h3 { line-height: 1.35; margin: 0; font-family: var(--font-display); }
h1 { font-size: var(--h1-size); letter-spacing: var(--h1-spacing); font-weight: var(--h1-weight); text-transform: var(--display-transform); }
h2 { font-size: var(--h2-size); letter-spacing: var(--h2-spacing); font-weight: var(--h2-weight); }
h3 { font-size: 18px; }
.accent { color: var(--accent); }
.section { padding: 96px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { margin-bottom: 46px; }
.section-head h2 { margin-bottom: 12px; }
.section-desc { color: var(--muted); margin: 0; font-size: 15px; }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.note { color: var(--muted); font-size: 12px; margin-top: 18px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 26px; border-radius: var(--radius-sm); font-size: 15px; font-weight: 600;
  transition: transform .2s, background .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--wine); color: #fff; box-shadow: 0 8px 20px rgba(140, 28, 19, .18); }
.btn-primary:hover { background: var(--wine-dark); box-shadow: 0 12px 26px rgba(140, 28, 19, .26); }
.btn-ghost { border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.btn-ghost:hover { border-color: var(--wine); color: var(--wine); }

.hero { position: relative; overflow: hidden; padding-top: 72px; }
.hero-rays {
  position: absolute; top: -180px; right: -140px; width: 820px; height: 820px; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, var(--ray) 0deg 1.1deg, transparent 1.1deg 5deg);
  -webkit-mask-image: radial-gradient(circle, #000 28%, transparent 70%);
  mask-image: radial-gradient(circle, #000 28%, transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 40px; padding-bottom: 76px; }
.hero-copy h1 { margin-bottom: 20px; }
.hero-sub { max-width: 540px; color: var(--muted); font-size: 16px; margin: 0 0 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-visual { display: flex; justify-content: center; }
.hero-logo-ring {
  position: relative; width: min(100%, 440px);
  display: grid; place-items: center; padding: 20px;
}
.hero-logo-ring img { width: 100%; height: auto; }
.stats {
  position: relative; display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line); padding: 30px 0 34px;
}
.stat { text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-size: 34px; color: var(--accent); line-height: 1.2; font-variant-numeric: tabular-nums; font-family: var(--font-display); }
.stat span { font-size: 13px; color: var(--muted); }
.stat-feature { position: relative; }
.stat-feature strong { color: var(--accent-2); }
.stat-feature span { color: var(--ink); font-weight: 600; }

.self-owned { position: relative; overflow: hidden; background: var(--dark-bg); color: var(--dark-title); padding: 88px 0 76px; }
.self-rays {
  position: absolute; top: -220px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 900px; border-radius: 50%; pointer-events: none;
  background: repeating-conic-gradient(from 0deg, var(--self-ray) 0deg 1deg, transparent 1deg 5deg);
  -webkit-mask-image: radial-gradient(circle, #000 26%, transparent 68%);
  mask-image: radial-gradient(circle, #000 26%, transparent 68%);
}
/* 自持区实景背景：光伏电站 + 酒红叠色，低对比不抢文字 */
.self-photo {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: linear-gradient(180deg, rgba(107,20,13,.82), rgba(107,20,13,.92)), url('assets/solar-rooftop.jpg') center/cover no-repeat;
  opacity: .5;
}
.self-owned .wrap { position: relative; z-index: 1; }
.so-head { max-width: 720px; margin: 0 auto 50px; text-align: center; }

/* 关于区实景画廊 */
.gallery { display: grid; grid-template-columns: 1.05fr .95fr; gap: 18px; margin: 44px 0 8px; }
.gallery-item { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--bg-soft); border: 1px solid var(--line); }
.gallery-item img { width: 100%; height: 300px; object-fit: cover; display: block; transition: transform .6s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-tall img { height: 340px; }
.gallery-item figcaption { padding: 12px 18px; font-size: 13px; color: var(--muted); background: var(--surface); }
.so-eyebrow { display: flex; align-items: center; justify-content: center; gap: 9px; margin: 0 0 16px; font-size: 13px; letter-spacing: .1em; color: var(--gold-light); }
.so-eyebrow span { width: 22px; height: 1px; background: var(--gold-light); }
.so-head h2 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 16px; }
.so-lead { color: var(--dark-body); font-size: 15px; margin: 0; }
.so-values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 52px; }
.so-value { background: var(--dark-surface); border: 1px solid var(--dark-line); border-radius: var(--radius-sm); padding: 24px 20px; }
.so-icon {
  width: 38px; height: 38px; border-radius: var(--radius-sm); margin-bottom: 16px;
  background: var(--gold); color: var(--wine-dark); font-weight: 700; font-size: 17px;
  display: grid; place-items: center;
}
.so-value h3 { font-size: 16px; margin-bottom: 8px; }
.so-value p { margin: 0; font-size: 13px; color: var(--dark-muted); line-height: 1.7; }
.so-numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--dark-hair); border-bottom: 1px solid var(--dark-hair); padding: 28px 0; }
.so-numbers > div { text-align: center; border-right: 1px solid var(--dark-hair); }
.so-numbers > div:last-child { border-right: 0; }
.so-numbers strong { display: block; font-size: 36px; color: var(--gold-light); line-height: 1.2; font-variant-numeric: tabular-nums; font-family: var(--font-display); }
.so-numbers span { font-size: 12px; color: var(--dark-muted); }
.so-action { margin-top: 40px; text-align: center; }
.so-action p { margin: 0 0 18px; font-size: 15px; color: var(--dark-body); }
.btn-gold { background: var(--gold); color: var(--wine-dark); }
.btn-gold:hover { background: var(--gold-light); }
.service-feature { grid-column: 1 / -1; border-color: var(--gold); background: linear-gradient(120deg, var(--brand-soft), var(--surface)); }
.service-feature .service-num { color: var(--accent); }
.self-tag { position: absolute; top: 12px; right: 12px; z-index: 2; background: var(--gold); color: var(--wine-dark); font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 12px; }
.project-card.is-self { border-color: var(--gold); }
.filter-feature { border-color: var(--gold); color: var(--wine); font-weight: 600; }
.filter-feature.active { background: var(--gold); border-color: var(--gold); color: var(--wine-dark); }

.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: start; }
.about-text p { margin: 0 0 18px; color: var(--text-body); font-size: 15px; }
.honors { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.honors-quad .honors-title { grid-column: 1 / -1; display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 700; color: var(--wine); margin: 2px 0 4px; }
.honors-quad .honor-card { padding: 20px 18px; }
.honor-card {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 20px; display: flex; gap: 12px; align-items: flex-start;
}
.honor-card h3 { font-size: 15px; margin-bottom: 4px; }
.honor-card p { margin: 0; font-size: 12px; color: var(--muted); }
.honor-icon {
  flex: none; width: 30px; height: 30px; border-radius: var(--radius-sm);
  background: var(--brand-soft); color: var(--wine); font-size: 13px; font-weight: 700;
  display: grid; place-items: center;
}

/* 关于区品牌墙：合作品牌标识矩阵 */
.honor-brandwall {
  grid-column: 1 / -1; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 24px;
}
.hb-head { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 700; color: var(--wine); margin-bottom: 18px; }
.hb-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.hb-brand {
  display: flex; align-items: center; gap: 9px; padding: 11px 12px;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm);
  transition: transform .2s, border-color .2s, background .2s;
}
.hb-brand:hover { transform: translateY(-3px); border-color: var(--gold); background: var(--brand-soft); }
.hb-mark {
  flex: none; width: 26px; height: 26px; border-radius: 6px;
  background: var(--wine); color: #fff; font-size: 12px; font-weight: 700;
  display: grid; place-items: center;
}
.hb-mark.mark-gold { background: var(--gold); color: var(--wine-dark); }
.hb-brand b { font-size: 13px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hb-foot { text-align: center; font-size: 12px; color: var(--muted); margin: 16px 0 0; }

/* 八大服务区：渐变叠加光伏实景背景 */
.services { position: relative; overflow: hidden; }
.services-photo {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    linear-gradient(180deg, rgba(248, 244, 238, .96) 0%, rgba(248, 244, 238, .74) 38%, rgba(248, 244, 238, .78) 70%, rgba(248, 244, 238, .94) 100%),
    linear-gradient(115deg, rgba(140, 28, 19, .07), transparent 55%),
    url('assets/park-aerial.jpg') center 32% / cover no-repeat;
  opacity: 1;
}
.services > .wrap { position: relative; z-index: 1; }
.services-photo::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 85% 8%, rgba(217, 138, 43, .16), transparent 55%);
}

.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.service-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: var(--accent-2); }
.service-num { font-size: 13px; font-weight: 700; color: var(--accent-2); letter-spacing: .1em; margin-bottom: 14px; }
.service-card h3 { margin-bottom: 10px; }
.service-card p { color: var(--muted); font-size: 14px; margin: 0 0 16px; }
.service-card ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.service-card li { font-size: 12px; color: var(--wine); background: var(--brand-soft); padding: 5px 11px; border-radius: 20px; }
.service-effect { display: inline-block; margin-top: 4px; font-size: 12px; color: var(--muted); background: var(--bg-soft); padding: 5px 12px; border-radius: 20px; }
.service-effect b { color: var(--wine); font-size: 14px; }
.service-feature .service-effect { background: var(--surface); }
/* 最后一张跨满整行，避免奇数落单留白 */
.service-wide {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: 120px 1fr auto;
  align-items: center; gap: 28px; padding: 28px 34px;
  background: linear-gradient(110deg, var(--brand-soft), var(--surface));
  border-color: var(--line);
}
.service-wide .service-num { margin: 0; font-size: 30px; color: var(--accent-2); }
.service-wide h3 { margin: 0; }
.service-wide p { margin: 0; }
.service-wide .service-effect { margin: 0; white-space: nowrap; }

/* ---------- 八大服务：1 中心球 + 7 卫星球环绕 ---------- */
.service-orbit { position: relative; min-height: 720px; margin: 6px 0 4px; }
.orbit-ring { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); border-radius: 50%; border: 1px dashed rgba(140, 28, 19, .22); pointer-events: none; }
.orbit-ring.ring-1 { width: min(700px, 96%); aspect-ratio: 1; }
.orbit-ring.ring-2 { width: min(430px, 60%); aspect-ratio: 1; border-color: rgba(201, 138, 43, .35); }
.orb {
  position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%);
  width: 176px; height: 176px; border-radius: 50%; overflow: hidden;
  border: 3px solid rgba(255, 255, 255, .65);
  box-shadow: 0 10px 30px rgba(43, 8, 6, .18), 0 0 0 1px rgba(140, 28, 19, .12);
  transition: transform .35s cubic-bezier(.2, .7, .3, 1), box-shadow .35s, border-color .35s;
}
.orb:hover { transform: translate(-50%, -50%) scale(1.08); border-color: var(--gold); box-shadow: 0 16px 42px rgba(43, 8, 6, .3); z-index: 3; }
.orb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.orb-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(43, 8, 6, .84) 0%, rgba(43, 8, 6, .4) 52%, rgba(43, 8, 6, .12) 100%); }
.orb-text { position: absolute; inset: auto 10px 13px; text-align: center; color: #fff; }
.orb-text h3 { font-size: 17px; margin: 0 0 3px; font-family: var(--font-display); }
.orb-text p { margin: 0 0 5px; font-size: 11px; color: rgba(255, 255, 255, .82); white-space: nowrap; }
.orb-text b { font-size: 12px; color: var(--gold-light); }
.orb-num { font-size: 11px; font-weight: 700; letter-spacing: .14em; color: var(--gold-light); }
.orb-core { width: 300px; height: 300px; border-width: 4px; }
.orb-core .orb-text { inset: auto 18px 24px; }
.orb-core .orb-text h3 { font-size: 27px; margin-bottom: 4px; }
.orb-core .orb-text p { font-size: 13px; }
.orb-core .orb-text b { font-size: 14px; }
.orb-tag { font-size: 11px; letter-spacing: .22em; color: var(--gold-light); }
.services-total { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-top: 22px; background: var(--wine); color: #fff; border-radius: var(--radius); padding: 28px 36px; }
.services-total > div { flex: none; text-align: center; }
.services-total strong { display: block; font-size: 34px; color: var(--gold-light); line-height: 1.2; font-family: var(--font-display); }
.services-total span { font-size: 12px; color: rgba(255, 255, 255, .75); }
.services-total p { margin: 0; font-size: 14px; line-height: 1.8; color: rgba(255, 255, 255, .9); }
.services-total b { color: var(--gold-light); }

.adv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.adv-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 26px 24px; }
.adv-num { font-size: 13px; font-weight: 700; color: var(--accent-2); letter-spacing: .1em; }
.adv-item h3 { font-size: 17px; margin: 10px 0 8px; }
.adv-item p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.75; }
.local-banner { display: flex; align-items: center; gap: 40px; margin-top: 24px; background: var(--brand-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 40px; }
.local-big { flex: none; text-align: center; padding-right: 40px; border-right: 1px solid var(--line); }
.local-big strong { display: block; font-size: 56px; color: var(--wine); line-height: 1; font-family: var(--font-display); }
.local-big span { font-size: 13px; color: var(--muted); }
.local-text h3 { font-size: 19px; margin-bottom: 10px; }
.local-text p { margin: 0; font-size: 14px; color: var(--text-body); line-height: 1.8; }

/* logo 墙：矢量品牌标识，默认灰度，悬停亮起品牌色 */
.brand-wall { display: flex; flex-direction: column; gap: 34px; }
.brand-group-title { font-size: 14px; font-weight: 600; color: var(--muted); margin: 0 0 16px; display: flex; align-items: center; gap: 10px; }
.brand-group-title span { font-size: 12px; font-weight: 700; color: #fff; background: var(--wine); padding: 3px 10px; border-radius: 14px; letter-spacing: .05em; }
.brand-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.brand-grid-5 { grid-template-columns: repeat(5, 1fr); }
.brand-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  min-height: 96px; padding: 18px 12px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 6px; text-align: center;
  transition: transform .25s, box-shadow .25s, border-color .25s, background .25s;
  filter: grayscale(.35); opacity: .82;
}
.brand-card:hover {
  transform: translateY(-4px); border-color: var(--gold); background: var(--brand-soft);
  box-shadow: var(--shadow-hover); filter: grayscale(0); opacity: 1;
}
.brand-cn { font-size: 18px; font-weight: 800; color: var(--wine); font-family: var(--font-display); letter-spacing: .02em; }
.brand-en { font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; }
.brand-note { margin: 26px 0 0; text-align: center; font-size: 13px; color: var(--muted); }
/* logo 墙真实品牌标识：静态即显示品牌色，悬停放大并高亮卡片 */
.logo-cell { min-height: 150px; gap: 8px; padding: 16px 10px 14px; filter: none; opacity: 1; }
.logo-img {
  width: 100%; max-width: 190px; height: 46px; object-fit: contain; object-position: center;
  flex: 0 0 auto; transition: transform .35s cubic-bezier(.2,.7,.3,1);
}
.logo-cell:hover .logo-img { transform: scale(1.06) translateY(-2px); }
.logo-cell .brand-cn { font-size: 15px; }

.about-motto { margin-top: 44px; text-align: center; font-size: 15px; font-weight: 600; letter-spacing: .04em; color: var(--wine); border-top: 1px solid var(--line); padding-top: 30px; }
.project-saving { font-size: 13px; color: var(--wine); font-weight: 600; margin: -4px 0 16px; }
.modal-effect { display: flex; align-items: center; gap: 14px; background: var(--brand-soft); border-radius: var(--radius-sm); padding: 16px 20px; margin-bottom: 20px; }
.modal-effect span { font-size: 12px; color: var(--muted); }
.modal-effect strong { font-size: 16px; color: var(--wine); }
.coop-modes { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin: 0 0 36px; }
.coop-modes > span { font-size: 13px; color: var(--dark-body); }
.coop-modes em { font-style: normal; font-size: 12px; color: var(--gold-light); border: 1px solid var(--dark-line); border-radius: 20px; padding: 5px 14px; }

.filter { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-btn {
  border: 1px solid var(--line); background: var(--surface); color: var(--muted);
  padding: 8px 16px; border-radius: 22px; font-size: 13px; transition: all .2s;
}
.filter-btn:hover { border-color: var(--wine); color: var(--wine); }
.filter-btn.active { background: var(--wine); border-color: var(--wine); color: #fff; }
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.project-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .2s, box-shadow .2s;
}
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.project-thumb {
  height: 158px; display: grid; place-items: center; position: relative;
  background: var(--thumb-bg);
}
.project-thumb::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(115deg, transparent 0 22px, var(--ray) 22px 44px);
}
.thumb-mark { font-size: 34px; font-weight: 700; color: var(--thumb-mark); z-index: 1; letter-spacing: .05em; font-family: var(--font-display); }
.demo-tag {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: var(--surface); color: var(--muted);
  font-size: 11px; padding: 3px 9px; border-radius: 12px;
}
.project-body { padding: 22px; }
.project-type { font-size: 11px; color: var(--accent-2); font-weight: 700; letter-spacing: .06em; }
.project-body h3 { font-size: 17px; margin: 7px 0 12px; }
.project-meta { display: flex; gap: 16px; font-size: 12px; color: var(--muted); margin-bottom: 18px; }
.project-meta b { color: var(--ink); font-weight: 600; }
.project-link {
  display: inline-flex; align-items: center; gap: 6px; font-size: 13px;
  color: var(--wine); font-weight: 600; border: 0; background: none; padding: 0;
}
.project-link:hover { gap: 10px; }
.projects-foot { margin-top: 30px; text-align: center; font-size: 12px; color: var(--muted); }

.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; }
.contact-item { border-bottom: 1px solid var(--line); padding-bottom: 20px; margin-bottom: 20px; }
.contact-label { font-size: 12px; color: var(--accent-2); font-weight: 700; letter-spacing: .06em; }
.contact-item p { margin: 6px 0 0; font-size: 15px; }
.placeholder { color: var(--muted); font-style: italic; }
.contact-form label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form input, .contact-form textarea {
  display: block; width: 100%; margin-top: 8px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface);
  color: var(--ink); font-weight: 400; outline: none; transition: border-color .2s;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--wine); }
.contact-form textarea { resize: vertical; }
.form-hint { font-size: 12px; color: var(--muted); margin: 12px 0 0; }

.site-footer { background: var(--wine-dark); color: rgba(255, 255, 255, .82); padding: 42px 0; }
.footer-inner { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.site-footer img { height: 44px; width: auto; }
.footer-text p { margin: 0; font-size: 13px; }
.footer-text p:first-child { color: #fff; font-size: 15px; font-weight: 600; }
.copyright { margin: 0 0 0 auto; font-size: 12px; opacity: .65; }

.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 24px; }
.modal.open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(30, 20, 15, .55); }
.modal-panel {
  position: relative; z-index: 1; width: min(680px, 100%); max-height: 88vh; overflow-y: auto;
  background: var(--bg); border-radius: var(--radius); padding: 36px; box-shadow: 0 24px 80px rgba(0, 0, 0, .25);
}
.modal-close {
  position: absolute; top: 16px; right: 18px; border: 0; background: var(--bg-soft);
  width: 32px; height: 32px; border-radius: 50%; font-size: 22px; line-height: 1; color: var(--muted);
}
.modal-close:hover { color: var(--wine); }
.modal-head .project-type { margin-bottom: 8px; }
.modal-head h2 { font-size: 26px; margin-bottom: 18px; }
.modal-desc { color: var(--muted); font-size: 14px; margin: 0 0 24px; }
.modal-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 24px; }
.modal-stat { background: var(--bg-soft); border-radius: var(--radius-sm); padding: 16px; }
.modal-stat span { display: block; font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.modal-stat strong { font-size: 17px; color: var(--wine); }
.modal-3d {
  border: 1px dashed var(--line); border-radius: var(--radius-sm); padding: 22px; text-align: center;
  background: var(--brand-soft); color: var(--muted); font-size: 13px;
}
.modal-3d strong { display: block; color: var(--wine); margin-bottom: 4px; font-size: 14px; }

.toast {
  position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 20px); z-index: 200;
  background: var(--wine); color: #fff; padding: 12px 22px; border-radius: var(--radius-sm);
  font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 900px) {
  .hero-inner, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .hero-logo-ring { width: min(72%, 300px); }
  .hero-rays { right: -320px; }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .adv-grid { grid-template-columns: repeat(2, 1fr); }
  .brand-grid, .brand-grid-5 { grid-template-columns: repeat(2, 1fr); }
  .services-total { flex-direction: column; text-align: center; }
  /* 球状排布窄屏降级：核心球置顶，7 球两列环绕网格 */
  .service-orbit { min-height: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; padding: 4px 0; }
  .orbit-ring { display: none; }
  .orb { position: relative; left: auto; top: auto; transform: none; width: calc(50% - 6px); max-width: 210px; height: auto; aspect-ratio: 1; }
  .orb:hover { transform: scale(1.03); }
  .orb-core { flex: 0 0 100%; width: 100%; max-width: 300px; margin-bottom: 4px; }
  .local-banner { gap: 24px; padding: 26px; }
  .main-nav {
    display: none; position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0; padding: 12px 24px 20px;
    background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 11px 0; border-bottom: 1px solid var(--line); }
  .menu-toggle { display: block; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .section { padding: 64px 0; }
  .hero { padding-top: 40px; }
  .hero-inner { padding-bottom: 48px; gap: 24px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 24px 0; }
  .stat:nth-child(2) { border-right: 0; }
  .service-grid, .project-grid, .form-row, .so-values, .so-numbers, .gallery { grid-template-columns: 1fr 1fr; }
  .honors { grid-template-columns: 1fr; }
  .gallery-item img, .gallery-tall img { height: 200px; }
  .so-value { padding: 18px 14px; }
  .so-numbers > div:nth-child(2) { border-right: 0; }
  .so-numbers > div:nth-child(-n+2) { border-bottom: 1px solid var(--dark-hair); padding-bottom: 20px; }
  .so-numbers > div:nth-child(n+3) { padding-top: 20px; }
  .modal-panel { padding: 28px 20px; }
  .adv-grid, .brand-grid, .brand-grid-5 { grid-template-columns: 1fr 1fr; }
  .hb-grid { grid-template-columns: repeat(2, 1fr); }
  .service-wide { grid-template-columns: 1fr; gap: 14px; padding: 26px 22px; text-align: center; }
  .service-wide .service-num { font-size: 22px; }
  .service-wide .service-effect { justify-self: center; }
  .services-total { padding: 24px 20px; }
  .local-banner { flex-direction: column; text-align: center; gap: 18px; }
  .local-big { padding: 0 0 18px; border-right: 0; border-bottom: 1px solid var(--line); width: 100%; }
  .coop-modes { justify-content: flex-start; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  .copyright { margin: 0; }
}
