/* ==========================================================================
   Hanming UI Polish —— 在 styles / grand / refined / navigation 之后加载
   1. 版式节奏  2. 首屏修正  3. 按钮与标签  4. 产品 / 案例 / 招聘
   5. 友情链接  6. 到访信息  7. 表单可读性  8. 响应式
   ========================================================================== */

/* ---------- 1. 版式节奏：更大的留白与更强的层级 ---------- */
.section {
  padding: 104px 0;
}

.section.compact {
  padding: 64px 0;
}

.section-head {
  margin-bottom: 46px;
  align-items: flex-end;
}

.section-head h2 {
  font-size: clamp(29px, 2.85vw, 41px);
  line-height: 1.22;
  letter-spacing: -1.2px;
  font-weight: 800;
}

.section-head p {
  max-width: 470px;
  font-size: 13.5px;
  line-height: 1.95;
  color: var(--muted);
}

.eyebrow {
  letter-spacing: 2px;
  font-size: 10px;
  font-weight: 700;
}

.rich-content h2 {
  letter-spacing: -.6px;
}

.rich-content p,
.rich-content li {
  line-height: 1.95;
}

/* ---------- 2. 首屏修正：去掉抢视线的水印与浮卡 ---------- */
.hero::after {
  display: none;
}

.hero-note {
  display: none;
}

.assessment::before {
  display: none;
}

.hero-main {
  padding: 96px 0 92px;
}

.hero h1 {
  font-size: clamp(46px, 4.9vw, 70px);
  letter-spacing: -2px;
  line-height: 1.14;
}

.hero-lead {
  font-size: 15.5px;
  line-height: 2;
  max-width: 610px;
}

.hero-metrics {
  gap: 0;
  margin-top: 52px;
  padding-top: 26px;
}

.hero-metrics > div {
  flex: 1;
  padding: 0 26px;
  border-left: 1px solid rgba(255,255,255,.1);
}

.hero-metrics > div:first-child {
  padding-left: 0;
  border-left: 0;
}

.hero-metrics strong {
  font-size: 25px;
  letter-spacing: .5px;
}

.hero-metrics span {
  font-size: 11.5px;
  line-height: 1.7;
}

.assessment {
  padding: 32px;
}

/* ---------- 3. 按钮与标签：降低荧光感，收敛为苔绿 ---------- */
.button {
  border-radius: 11px;
  letter-spacing: .3px;
}

.button-primary {
  color: #0e2417;
  background: linear-gradient(135deg, #7cad55, #a7ca82);
  box-shadow: 0 12px 26px rgba(95, 151, 66, .16);
}

.button-primary:hover {
  background: linear-gradient(135deg, #86b95e, #b3d48f);
  box-shadow: 0 16px 32px rgba(95, 151, 66, .2);
}

.button-outline.dark-text {
  color: var(--ink);
  border-color: rgba(16, 44, 49, .18);
  background: rgba(255, 255, 255, .5);
  backdrop-filter: none;
}

.button-outline.dark-text:hover {
  background: #fff;
  border-color: rgba(16, 44, 49, .3);
}

.tag {
  font-weight: 600;
  letter-spacing: .3px;
}

/* ---------- 4. 新栏目组件：产品 / 案例 / 招聘 ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 34px 30px 28px;
  background: #fff;
  border: 1px solid rgba(16, 44, 49, .09);
  border-radius: 20px;
  box-shadow: 0 10px 34px rgba(8, 33, 39, .045);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.product-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 30px;
  right: 30px;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, transparent, rgba(111, 166, 79, .55), transparent);
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(111, 166, 79, .3);
  box-shadow: 0 24px 58px rgba(8, 33, 39, .1);
}

.product-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.product-index {
  font: 700 15px/1 Georgia, "Times New Roman", serif;
  letter-spacing: 1px;
  color: rgba(16, 44, 49, .22);
}

.product-card h3 {
  margin: 0 0 14px;
  font-size: 21px;
  line-height: 1.4;
  letter-spacing: -.4px;
}

.product-card h3 a {
  transition: color .2s ease;
}

.product-card:hover h3 a {
  color: var(--orange-dark);
}

.product-card > p {
  flex: 1;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}

.product-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 16px 0 0;
  margin-bottom: 18px;
  border-top: 1px dashed rgba(16, 44, 49, .14);
}

.product-meta span {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  color: var(--muted);
}

.product-meta strong {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
}

.product-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--orange-dark);
}

.product-link b {
  font-weight: 400;
  transition: transform .2s ease;
}

.product-card:hover .product-link b {
  transform: translate(2px, -2px);
}

/* 案例 */
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.case-card {
  display: flex;
  flex-direction: column;
  padding: 30px 28px 24px;
  background: #fff;
  border: 1px solid rgba(16, 44, 49, .09);
  border-radius: 20px;
  box-shadow: 0 10px 34px rgba(8, 33, 39, .045);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.case-card:hover {
  transform: translateY(-4px);
  border-color: rgba(16, 44, 49, .18);
  box-shadow: 0 24px 58px rgba(8, 33, 39, .1);
}

.case-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.case-loc {
  font-size: 11.5px;
  letter-spacing: .4px;
  color: var(--muted);
}

.case-card h3 {
  margin: 0 0 12px;
  font-size: 18px;
  line-height: 1.5;
  letter-spacing: -.2px;
}

.case-card:hover h3 a {
  color: var(--orange-dark);
}

.case-card > p {
  flex: 1;
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}

.case-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 16px;
  border-top: 1px dashed rgba(16, 44, 49, .14);
  font-size: 12px;
  color: var(--muted);
}

.case-foot a {
  font-weight: 700;
  color: var(--orange-dark);
}

.case-foot b {
  font-weight: 400;
}

.case-notice {
  margin-top: 30px;
}

/* 招聘 */
.job-list {
  display: grid;
  gap: 16px;
}

.job-card {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, .85fr) auto;
  align-items: center;
  gap: 30px;
  padding: 26px 32px;
  background: #fff;
  border: 1px solid rgba(16, 44, 49, .09);
  border-radius: 18px;
  box-shadow: 0 8px 28px rgba(8, 33, 39, .04);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.job-card:hover {
  transform: translateY(-2px);
  border-color: rgba(111, 166, 79, .3);
  box-shadow: 0 20px 48px rgba(8, 33, 39, .09);
}

.job-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.job-head h3 {
  margin: 0;
  font-size: 19px;
  letter-spacing: -.3px;
}

.job-main p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.8;
}

.job-facts {
  display: flex;
  gap: 30px;
}

.job-facts span {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  color: var(--muted);
}

.job-facts strong {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

.job-apply {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid rgba(16, 44, 49, .16);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.job-apply:hover {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}

.job-hr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin-top: 52px;
  padding: 40px 44px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 92% 10%, rgba(111, 166, 79, .13), transparent 38%),
    linear-gradient(135deg, #f4f6ee, #eef2e6);
  border: 1px solid rgba(16, 44, 49, .08);
}

.job-hr h2 {
  margin: 12px 0 10px;
  font-size: 26px;
  letter-spacing: -.6px;
}

.job-hr p {
  margin: 0;
  max-width: 640px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.9;
}

.job-hr-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

/* 浅色区块内的流程条 */
.process-grid.light {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  border-top: 0;
}

.process-grid.light .process-step {
  padding: 26px 24px;
  background: #fff;
  border: 1px solid rgba(16, 44, 49, .08);
  border-radius: 16px;
}

.process-grid.light .process-step::before {
  display: none;
}

.process-grid.light .process-step span {
  color: rgba(16, 44, 49, .3);
}

.process-grid.light .process-step h3 {
  color: var(--ink);
}

.process-grid.light .process-step p {
  color: var(--muted);
}

/* ---------- 5. 友情链接 ---------- */
.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 26px;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.footer-links-title {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, .82);
  letter-spacing: .5px;
}

.footer-links a {
  font-size: 12px;
  color: rgba(255, 255, 255, .44);
  transition: color .2s ease;
}

.footer-links a:hover {
  color: #fff;
}

/* ---------- 6. 联系页到访信息 ---------- */
.visit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.visit-card {
  padding: 30px 28px;
  background: #fff;
  border: 1px solid rgba(16, 44, 49, .09);
  border-radius: 18px;
  box-shadow: 0 9px 30px rgba(8, 33, 39, .04);
}

.visit-card > span {
  display: block;
  margin-bottom: 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--orange-dark);
}

.visit-card h3 {
  margin: 0 0 12px;
  font-size: 17px;
  line-height: 1.5;
}

.visit-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.9;
}

.visit-card strong {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  color: var(--ink);
}

/* 列表页特色文章：标签不要拉满整行，搜索按钮保持完整 */
.article-hero .tag {
  align-self: flex-start;
}

.inline-search input {
  min-width: 0;
}

.inline-search button {
  flex: 0 0 auto;
  white-space: nowrap;
}

/* 首页特色文章卡片：让卡片有顶部信息行，避免上方大片空深色 */
.featured-article {
  min-height: 380px;
  padding: 34px 36px;
}

.featured-top {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: auto;
}

.featured-date {
  font-size: 11px;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, .55);
}

.featured-article h3 {
  font-size: 28px;
  letter-spacing: -.6px;
}

/* ---------- 7. 表单可读性 ---------- */
.form-card {
  padding: 42px 40px;
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(6, 25, 33, .22);
}

.form-card h2 {
  font-size: 27px;
  letter-spacing: -.5px;
}

.form-card > p {
  font-size: 12.5px;
  line-height: 1.8;
  color: rgba(255, 255, 255, .58);
}

.form-field {
  gap: 9px;
}

.form-field label {
  font-size: 12px;
  color: rgba(255, 255, 255, .74);
}

.form-field input,
.form-field select,
.form-field textarea {
  font-size: 13.5px;
  background: rgba(255, 255, 255, .09);
  border-color: rgba(255, 255, 255, .2);
  border-radius: 10px;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(255, 255, 255, .34);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: #a7ca82;
  background: rgba(255, 255, 255, .13);
  box-shadow: 0 0 0 3px rgba(167, 202, 130, .14);
}

.form-consent {
  font-size: 11px;
  line-height: 1.8;
}

/* ---------- 8. 响应式 ---------- */
@media (max-width: 1080px) {
  .product-grid,
  .case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .job-card {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px 24px;
  }

  .job-facts {
    grid-column: 1 / -1;
    order: 3;
  }

  .hero-metrics > div {
    padding: 0 18px;
  }
}

@media (max-width: 980px) {
  .section {
    padding: 76px 0;
  }

  .hero-main {
    padding: 64px 0 70px;
  }

  .visit-grid {
    grid-template-columns: 1fr;
  }

  .job-hr {
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 28px;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 60px 0;
  }

  .hero-main {
    padding: 44px 0 56px;
  }

  .hero h1 {
    font-size: 33px;
    line-height: 1.26;
    letter-spacing: -.8px;
  }

  .hero-lead {
    font-size: 13.5px;
    line-height: 1.85;
  }

  .hero-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 0;
  }

  .hero-metrics > div {
    padding: 0 16px;
  }

  .hero-metrics > div:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }

  .hero-metrics strong {
    font-size: 20px;
  }

  .section-head h2 {
    font-size: 26px;
    letter-spacing: -.6px;
  }

  .section-head p {
    font-size: 12.5px;
  }

  .product-grid,
  .case-grid {
    grid-template-columns: 1fr;
  }

  .product-card,
  .case-card {
    padding: 26px 24px 22px;
  }

  .job-card {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .job-facts {
    gap: 20px;
    flex-wrap: wrap;
    order: 2;
  }

  .job-apply {
    order: 3;
    justify-self: flex-start;
  }

  .job-hr {
    padding: 28px 24px;
    margin-top: 36px;
  }

  .visit-card {
    padding: 24px;
  }

  .form-card {
    padding: 30px 22px;
  }

  .footer-links {
    gap: 10px 18px;
    padding: 20px 0;
  }
}
