/* ============================================================
   精修层 refine.css —— UI 与排版系统升级（2026-11-19）
   叠加顺序：style.css → skins.css → refine.css → fx.css
   原则：不动栏目 / 文案 / 主色，只在视觉与排版层精修；可整层删除回退。
   设计主张：① 章节秩序感 ② 卡片精致化 ③ 占位专业化
   ============================================================ */

/* ---------- 0. 排版 token：统一节奏基数 ---------- */
body[data-skin="classic"] {
  --h2-size: clamp(30px, 3.2vw, 42px);
  --wrap: 1180px;
  --section-y: 100px;
}
.section { padding: var(--section-y) 0; }

/* ---------- 1. 章节秩序感：给常规区块编号 01–06 ---------- */
main { counter-reset: chapter; }
main > section.section { counter-increment: chapter; }
.section-head { margin-bottom: 50px; }
.section-head .eyebrow { gap: 10px; margin-bottom: 18px; }
/* 编号用等宽字，自带秩序感；金色短线把编号与眉题连成一体 */
.section-head .eyebrow::before {
  content: counter(chapter, decimal-leading-zero) " —";
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  letter-spacing: .02em;
  color: var(--gold);
}
.section-head h2 { line-height: 1.24; }
.section-desc { line-height: 1.75; }

/* ---------- 2. 首屏：两栏更平衡、Logo 更饱满、数据更大气 ---------- */
body[data-skin="classic"] .hero-inner { grid-template-columns: 1.15fr .85fr; gap: 48px; }
.hero-sub { font-size: 16px; line-height: 1.85; max-width: 560px; }
.hero-actions { gap: 12px; }
.hero-logo-ring { width: min(100%, 430px); }
.stats { padding: 34px 0 38px; }
.stat strong { font-size: 40px; letter-spacing: -.02em; }

/* ---------- 3. 关于区：行宽舒适、导语突出、品牌墙放大 ---------- */
body[data-skin="classic"] .about-grid { gap: 72px; grid-template-columns: 1fr .96fr; }
.about-text p { max-width: 620px; }
.about-text p:first-child { font-size: 16px; color: var(--ink); line-height: 1.85; }
.honor-brandwall { padding: 26px; }
.hb-grid { gap: 11px; }
.hb-brand { padding: 13px 12px; }
.hb-mark { width: 30px; height: 30px; }
.hb-brand b { font-size: 13.5px; }

/* ---------- 4. 八大服务：背景降噪 + 卡片统一高度 + 编号水印 ---------- */
.services-photo {
  background:
    linear-gradient(180deg, rgba(248, 244, 238, .985) 0%, rgba(248, 244, 238, .9) 40%, rgba(248, 244, 238, .93) 72%, rgba(248, 244, 238, .985) 100%),
    linear-gradient(115deg, rgba(140, 28, 19, .045), transparent 55%),
    url('assets/park-aerial.jpg') center 32% / cover no-repeat;
}
.service-grid { gap: 16px; }
.service-card {
  min-height: 248px;
  display: flex;
  flex-direction: column;
  padding: 30px;
}
.service-card p { flex: 1; }
.service-card:not(.service-feature):not(.service-wide) { position: relative; }
/* 编号做成右上角浅色大水印，留白不再空 */
.service-card:not(.service-feature):not(.service-wide) > .service-num {
  position: absolute; top: 18px; right: 24px; margin: 0;
  font-size: 46px; font-weight: 900; line-height: 1;
  letter-spacing: -.05em; opacity: .09;
}
.service-card h3 { font-size: 19px; margin-bottom: 12px; }
.service-effect { margin-top: auto; }
.service-feature { min-height: auto; }

/* ---------- 5. 核心优势：编号水印 + 卡片更挺括 ---------- */
.adv-grid { gap: 16px; }
.adv-item { position: relative; min-height: 172px; padding: 28px 26px; }
.adv-item .adv-num {
  position: absolute; top: 16px; right: 20px;
  font-size: 36px; font-weight: 900; line-height: 1;
  letter-spacing: -.04em; opacity: .09;
}
.adv-item h3 { font-size: 18px; }

/* ---------- 6. 项目案例：专业示意图占位（图标 + 阵列底纹 + 标签） ---------- */
.project-thumb { height: 178px; overflow: hidden; }
.project-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb-figure {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: linear-gradient(150deg, #fbf1e7 0%, #f0dfce 100%);
}
/* 交叉斜纹模拟光伏板阵列，从下往上渐隐 */
.thumb-grid {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(34deg, transparent 0 17px, rgba(140, 28, 19, .07) 17px 19px),
    repeating-linear-gradient(-34deg, transparent 0 17px, rgba(140, 28, 19, .07) 17px 19px);
  -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 92%);
  mask-image: linear-gradient(to top, #000 10%, transparent 92%);
}
.thumb-icon {
  position: relative; z-index: 1;
  width: 54px; height: 54px; color: var(--wine); opacity: .6;
  filter: drop-shadow(0 2px 0 rgba(255, 255, 255, .5));
}
.thumb-tag {
  position: absolute; bottom: 12px; left: 0; right: 0; z-index: 1;
  text-align: center; font-size: 11px; font-weight: 800;
  letter-spacing: .2em; color: var(--wine); opacity: .5;
}
.is-self .thumb-figure { background: linear-gradient(150deg, #fbecdc 0%, #f3d9bd 100%); }
.project-body h3 { font-size: 18px; margin: 8px 0 10px; }

/* ---------- 7. 联系区：图标化信息 + 表单更挺括 ---------- */
.contact-item { position: relative; padding-left: 34px; }
.contact-item .contact-label::before {
  content: ""; position: absolute; left: 0; top: 24px;
  width: 18px; height: 18px; opacity: .85;
  background-repeat: no-repeat; background-size: contain; background-position: center;
}
.contact-item:nth-child(1) .contact-label::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d98a2b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 1116 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
}
.contact-item:nth-child(2) .contact-label::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d98a2b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3 7l9 6 9-6'/%3E%3C/svg%3E");
}
.contact-item:nth-child(3) .contact-label::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d98a2b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 01-2.2 2 19.8 19.8 0 01-8.6-3.1 19.5 19.5 0 01-6-6A19.8 19.8 0 012.1 4.2 2 2 0 014.1 2h3a2 2 0 012 1.7c.1 1 .4 2 .7 2.9a2 2 0 01-.5 2.1L8.1 9.9a16 16 0 006 6l1.2-1.2a2 2 0 012.1-.5c.9.3 1.9.6 2.9.7a2 2 0 011.7 2z'/%3E%3C/svg%3E");
}
.contact-form input, .contact-form textarea { padding: 14px 16px; }
.contact-form label { margin-bottom: 20px; }

/* ---------- 8. 页脚：Logo 与文字基线对齐 ---------- */
.footer-inner { gap: 24px; }
.site-footer img { height: 40px; }

/* ---------- 9. 响应式：精修层的断点收敛 ---------- */
@media (max-width: 900px) {
  body[data-skin="classic"] .hero-inner { gap: 32px; }
  body[data-skin="classic"] .about-grid { gap: 40px; grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .section-head .eyebrow::before { content: counter(chapter, decimal-leading-zero); }
  .service-card, .adv-item { min-height: auto; }
  .service-card:not(.service-feature):not(.service-wide) > .service-num,
  .adv-item .adv-num { font-size: 38px; }
  .contact-item { padding-left: 0; }
  .contact-item .contact-label::before { display: none; }
}
