/* ==========================================================================
   FreelyControl 官网样式
   配色与版式对齐原站 cn.freelyc.cn（Ueeshop 主题 t280）：
     主色 #04979e ｜ 区块深色 #141517 ｜ 页脚 #0c0c0d
     标题 #222222 ｜ 正文 #555555 ｜ 按钮直角、悬停 #2c2c2c
   字体：Montserrat-Regular（标题/导航/按钮）/ Opensans-Regular（正文）
   ========================================================================== */

/* ---------------------------------------------------------------- 字体
   与原站一致：自托管的 Montserrat / Open Sans。
   不使用 Google Fonts —— 该服务在中国大陆无法访问，
   会导致英文回退到系统字体，观感与原站明显不同。 */
@font-face {
  font-family: "Montserrat-Regular";
  src: url("/fonts/Montserrat-Regular/font.woff2") format("woff2"),
       url("/fonts/Montserrat-Regular/font.woff") format("woff");
  font-weight: normal; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Opensans-Regular";
  src: url("/fonts/Opensans-Regular/font.woff2") format("woff2"),
       url("/fonts/Opensans-Regular/font.woff") format("woff");
  font-weight: normal; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "OpenSans-Bold";
  src: url("/fonts/OpenSans-Bold/font.woff2") format("woff2"),
       url("/fonts/OpenSans-Bold/font.woff") format("woff");
  font-weight: normal; font-style: normal; font-display: swap;
}

:root {
  --primary: #04979e;
  --primary-dark: #037278;
  --accent: #04979e;
  --dark: #141517;          /* 深色区块（我们做什么、新闻） */
  --dark-2: #2c2c2c;        /* 按钮悬停、卡片底色 */
  --footer-bg: #0c0c0d;     /* 页脚 */
  --text: #555555;          /* 正文 */
  --title: #222222;         /* 标题 */
  --text-light: #888888;
  --line: #e6e6e6;
  --bg-soft: #f7f7f7;
  --white: #ffffff;
  --shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  --wrap: 1440px;
  --font-title: "Montserrat-Regular", "Microsoft YaHei", "PingFang SC", sans-serif;
  --font-body: "Opensans-Regular", "Microsoft YaHei", "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-bold: "OpenSans-Bold", "Montserrat-Regular", "Microsoft YaHei", "PingFang SC", sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;   /* iOS 横屏时会擅自放大字号，这里关掉 */
  text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;                  /* 兜底：任何元素都不该让页面横向滚动 */
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--primary); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  color: var(--title);
  line-height: 1.35;
  margin: 0 0 .6em;
  font-weight: normal;   /* 原站全局重置 h1~h6 为常规字重 */
}
h1 { font-size: 36px; }
h2 { font-size: 36px; }
h3 { font-size: 20px; }
p { margin: 0 0 1em; }

/* 强调文字使用真正的粗体字体文件，避免浏览器合成出与原站不同的字形 */
b, strong { font-family: var(--font-bold); font-weight: normal; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 3%; }

/* ---------------------------------------------------------------- 按钮
   原站：直角、主色底、悬停变 #2c2c2c */
.btn {
  display: inline-block;
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: normal;
  letter-spacing: .02em;
  padding: 15px 35px;
  border-radius: 0;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: all .22s ease;
  line-height: 1.2;
}
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--dark-2); border-color: var(--dark-2); color: #fff; }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-dark { background: var(--dark-2); color: #fff; border-color: var(--dark-2); }
.btn-dark:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-ghost { background: #fff; color: var(--title); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-danger { background: #fff; color: #c0392b; border-color: #e6b3ad; }
.btn-danger:hover { background: #c0392b; color: #fff; border-color: #c0392b; }

/* ---------------------------------------------------------------- 页头 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: #fff;
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease;
}
.site-header.is-stuck { box-shadow: 0 2px 14px rgba(0, 0, 0, .08); }
.header-inner { display: flex; align-items: center; gap: 10px; height: 86px; }
.logo { flex: 0 0 auto; }
.logo img { max-height: 46px; width: auto; }
.logo { font-family: var(--font-title); font-size: 24px; font-weight: normal; color: var(--primary); }

/* 导航紧贴 Logo（原站：.nav{flex:1} + ul{justify-content:left}），
   工具区靠右是导航占满中间空间后自然形成的，不要用 margin-left:auto 把导航推过去 */
.main-nav { flex: 1; min-width: 0; }
.main-nav > ul { display: flex; align-items: center; justify-content: flex-start; gap: 0; list-style: none; margin: 0; padding: 0; }
.nav-item > a {
  display: block;
  padding: 0 20px;
  line-height: 86px;
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: normal;
  color: #2c2c2c;
}
.nav-item > a:hover, .nav-item.is-active > a { color: var(--primary); }
.caret { display: inline-block; width: 0; height: 0; margin-left: 7px; vertical-align: middle;
  border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; }
.nav-item.has-sub { position: relative; }
.submenu {
  position: absolute; top: 100%; left: 0; min-width: 240px;
  background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow); list-style: none; margin: 0; padding: 8px 0;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .2s ease;
}
.nav-item.has-sub:hover .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu a { display: block; padding: 9px 22px; font-size: 14px; }
.submenu a:hover { background: var(--bg-soft); color: var(--primary); }

.header-tools { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }
.header-search { display: flex; align-items: center; border: 1px solid var(--line); }
.header-search input { border: 0; padding: 9px 12px; width: 140px; font-size: 14px; outline: none; font-family: inherit; }
.header-search button { border: 0; background: transparent; padding: 8px 10px; cursor: pointer; color: var(--text-light); display: flex; }
.header-search button:hover { color: var(--primary); }

.lang-switch { position: relative; }
.lang-btn {
  display: flex; align-items: center; gap: 6px;
  background: #fff; border: 0; padding: 9px 8px; cursor: pointer;
  font-family: var(--font-title); font-size: 16px; color: #2c2c2c;
}
.lang-btn:hover { color: var(--primary); }
.lang-menu {
  position: absolute; right: 0; top: 110%; min-width: 150px; background: #fff;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  list-style: none; margin: 0; padding: 6px 0; display: none; z-index: 50;
}
.lang-switch.is-open .lang-menu { display: block; }
.lang-menu a { display: block; padding: 9px 18px; font-size: 14px; }
.lang-menu a:hover, .lang-menu a.is-current { background: var(--bg-soft); color: var(--primary); }

.btn-quote { padding: 12px 18px; font-size: 14px; }
.menu-toggle {
  display: none; flex-direction: column; gap: 5px; align-items: center; justify-content: center;
  background: none; border: 0; cursor: pointer; padding: 0;
  width: 44px; height: 44px;            /* 手机触控目标下限 44×44 */
}
.menu-toggle span { display: block; width: 22px; height: 2px; background: #2c2c2c; }

/* ---------------------------------------------------------------- 轮播
   原站：文字居中、标题 42px、副标题 28px、正文 16px，遮罩为 18% 黑 */
.hero { position: relative; background: var(--dark); overflow: hidden; }
.slides { position: relative; }
.slide {
  position: absolute; inset: 0; display: none;
  background-size: cover; background-position: center;
}
.slide.is-active { display: block; position: relative; }
.slide::after { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, .18); }
.slide-inner { position: relative; z-index: 2; padding: 96px 3%; }
.slide-text { max-width: 860px; margin: 0 auto; text-align: center; color: #fff; }
.slide-sub { font-family: var(--font-title); font-size: 28px; color: #fff; margin-bottom: 14px; }
.slide-title { color: #fff; font-size: 42px; font-weight: normal; margin-bottom: 18px; }
.slide-desc { color: #fff; font-size: 16px; margin-bottom: 30px; }
.slide-text .btn { min-width: 170px; height: 54px; line-height: 54px; padding: 0; }
.hero-dots { position: absolute; left: 0; right: 0; bottom: 20px; display: flex; justify-content: center; gap: 26px; z-index: 5; }
.dot {
  position: relative;
  width: 12px; height: 12px; border-radius: 50%; border: 0;
  background: #e6e6e6; cursor: pointer; padding: 0;
}
.dot.is-active { background: #fd0002; }
/* 圆点本身很小，用伪元素把可点区域撑大到 36×36，手机上才点得准 */
.dot::after { content: ''; position: absolute; inset: -12px; }

/* ---------------------------------------------------------------- 区块 */
.sec { padding: 90px 0; }
.sec-about { background: #ffffff; }
.sec-whatwedo { background: var(--dark); padding: 75px 0 100px; }
.sec-ai { background: #ffffff; padding: 100px 0 50px; }
.sec-project { background: #ffffff; padding: 100px 0 50px; }
.sec-news { background: var(--dark); padding: 70px 0 75px; }

.sec-head { text-align: center; }
.sec-title { font-size: 36px; margin-bottom: 0; }
.sec-intro { margin-top: 28px; padding: 0 27.5%; color: var(--text); }
.sec-foot { text-align: center; margin-top: 60px; }

/* 深色区块的文字 */
.sec-whatwedo .sec-title, .sec-news .sec-title { color: #fff; }
.sec-whatwedo .sec-intro { color: var(--text-light); }

/* AI / 项目案例：标题青色，副标题黑色 */
.sec-ai .sec-title, .sec-project .sec-title { color: var(--primary); }
.sec-sub { font-family: var(--font-title); color: #000000; font-size: 24px; margin-bottom: 14px; }
.sec-body { color: #333333; font-size: 16px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split-media img { width: 100%; object-fit: cover; }
.split-text .btn { margin-top: 14px; }
.split-text .sec-title { margin-bottom: 8px; }

/* ---------------------------------------------------------------- 我们做什么
   原站是三张不同底色的卡片横排，第二张图文顺序相反 */
.wd-cards { display: flex; flex-wrap: wrap; align-items: center; margin-top: 72px; }
.wd-card {
  position: relative;
  width: calc(100% / 3);
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr 1fr;
  align-items: center;
  overflow: hidden;
}
.wd-card.is-reversed .wd-text { order: 2; }
.wd-card.is-reversed .wd-media { order: 1; }
.wd-text { padding: 0 16.5%; width: 100%; }
.wd-text h3 { font-size: 25px; line-height: 1.16; margin: 0 0 20px; }
.wd-list { list-style: none; margin: 0; padding: 0; font-size: 14px; line-height: 1.7; }
.wd-list li { margin-bottom: 8px; }
.wd-media { width: 100%; }
.wd-media img { width: 100%; display: block; }

/* ---------------------------------------------------------------- 卡片 */
.grid { display: grid; gap: 30px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line);
  overflow: hidden; display: flex; flex-direction: column; transition: all .25s ease;
}
.card:hover { box-shadow: var(--shadow); }
.card-media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-soft); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card-media img { transform: scale(1.04); }
.card-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.card-tag { display: inline-block; font-size: 12px; color: var(--primary); background: rgba(4,151,158,.09); padding: 3px 10px; margin-bottom: 10px; }
.card-title { font-size: 20px; margin-bottom: 8px; }
.card-text { color: var(--text); font-size: 14px; flex: 1; }
.card-more { font-family: var(--font-title); font-size: 14px; color: var(--primary); }
.card-meta { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--text-light); margin-bottom: 8px; }
.card-count { font-size: 13px; color: var(--text-light); }
.no-image { display: block; width: 100%; height: 100%; background: repeating-linear-gradient(45deg, #f2f3f4, #f2f3f4 12px, #eceef0 12px, #eceef0 24px); }

/* 产品图多为竖版抠图，用等比缩放以免被裁切 */
.product-card .card-media { aspect-ratio: 1 / 1; background: #fff; }
.product-card .card-media img { object-fit: contain; padding: 18px; }
.product-card:hover .card-media img { transform: none; }

/* 深色区块里的新闻卡片 */
.sec-news .card { background: transparent; border: 0; }
.sec-news .card-media { background: #1c1e21; }
.sec-news .card-title, .sec-news .card-title a { color: #fff; font-size: 20px; }
.sec-news .card-text { color: #fff; font-size: 16px; }
.sec-news .card-meta { color: var(--text-light); }
.sec-news .card-body { padding: 22px 0; }
.sec-news .card:hover { box-shadow: none; }

/* ---------------------------------------------------------------- 内页头 */
.page-head { background: var(--bg-soft); padding: 40px 0 34px; }
.page-head h1 { margin: 0 0 6px; }
.page-intro { color: var(--text); margin: 0; }
.breadcrumb ul { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; list-style: none; margin: 0 0 12px; padding: 0; font-size: 14px; color: var(--text); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { color: #c4c9cf; }
.breadcrumb .is-current { color: var(--title); }
.cat-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.cat-chip { display: inline-block; padding: 7px 18px; border: 1px solid var(--line); font-size: 14px; background: #fff; }
.cat-chip:hover, .cat-chip.is-active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ---------------------------------------------------------------- 产品详情 */
.pd-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.gallery-main { border: 1px solid var(--line); overflow: hidden; background: #fff; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; }
.gallery-main img { max-height: 100%; object-fit: contain; }
.gallery-thumbs { display: flex; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.thumb { width: 78px; height: 78px; padding: 4px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.thumb.is-active { border-color: var(--primary); }
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.pd-info h1 { font-size: 30px; color: var(--title); }
.pd-cat { font-size: 14px; color: var(--text-light); }
.pd-summary { margin: 18px 0 30px; color: var(--title); font-size: 14px; }
.block-title { font-size: 36px; color: #13141a; margin: 40px 0 20px; }
.sec-detail-body .rich-text { color: var(--text); }

.spec-table { width: 100%; border-collapse: collapse; margin-bottom: 26px; font-size: 14px; }
.spec-table th, .spec-table td { border: 1px solid var(--line); padding: 11px 16px; text-align: left; vertical-align: top; }
.spec-table th { background: var(--bg-soft); font-family: var(--font-bold); font-weight: normal; width: 240px; color: var(--title); }
.spec-table .spec-group th { background: rgba(4,151,158,.08); color: var(--primary); font-family: var(--font-title); }
.spec-table-multi { min-width: 720px; }
.spec-table-multi thead th { background: var(--primary); color: #fff; width: auto; }
.spec-table-multi tbody tr:nth-child(even) { background: #fafbfc; }
.table-scroll { overflow-x: auto; }

/* ---------------------------------------------------------------- 富文本 */
.rich-text { font-size: 16px; color: var(--text); }
.rich-text h2, .rich-text h3 { margin-top: 1.6em; color: #13141a; }
.rich-text h3 { font-size: 22px; }
.rich-text ul, .rich-text ol { padding-left: 22px; }
.rich-text li { margin-bottom: 7px; }
.rich-text img { margin: 12px 0; }
.rich-text table {
  width: 100%; border-collapse: collapse; margin: 16px 0;
  display: block; overflow-x: auto;    /* 手机上宽表格自己横向滚动，不撑破页面 */
  max-width: 100%;
}
.rich-text th, .rich-text td { border: 1px solid var(--line); padding: 9px 12px; }
.rich-text a { color: var(--primary); text-decoration: underline; }

/* ---------------------------------------------------------------- 文章 */
.article-wrap { max-width: 900px; }
.article-head { margin-bottom: 26px; }
.article-head h1 { font-size: 32px; }
.article-cover { margin-bottom: 28px; overflow: hidden; }
.article-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 26px; }
.article-gallery figure { margin: 0; overflow: hidden; }
.article-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 46px; padding-top: 26px; border-top: 1px solid var(--line); }
.article-nav .btn { max-width: 46%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.page-body { max-width: 1100px; }
.page-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 30px 0; }
.page-gallery figure { margin: 0; overflow: hidden; }

/* ---------------------------------------------------------------- 表单 */
.contact-block { margin-top: 46px; padding: 40px; background: var(--bg-soft); }
.inquiry-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.inquiry-form label { display: block; font-size: 14px; margin-bottom: 16px; }
.inquiry-form input, .inquiry-form textarea {
  width: 100%; margin-top: 6px; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 0; font-family: inherit; font-size: 15px; background: #fff;
}
.inquiry-form input:focus, .inquiry-form textarea:focus { outline: none; border-color: var(--primary); }
.form-full { display: block; }
.req { color: #c0392b; }
.flash { padding: 12px 16px; background: rgba(4,151,158,.1); color: var(--primary-dark); margin-bottom: 18px; }

/* ---------------------------------------------------------------- 页脚 */
.site-footer { background: var(--footer-bg); color: var(--text-light); padding: 66px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr 1.2fr; gap: 42px; padding-bottom: 46px; }
.site-footer h3 { color: #fff; font-size: 20px; margin-bottom: 18px; font-family: var(--font-title); }
.site-footer h4 { color: #fff; font-size: 16px; margin: 20px 0 10px; font-family: var(--font-title); }
.site-footer p { font-size: 14px; line-height: 1.8; color: var(--text-light); }
.ft-links, .ft-contact, .ft-social { list-style: none; margin: 0; padding: 0; }
.ft-links li, .ft-contact li { margin-bottom: 10px; font-size: 14px; }
.ft-contact li { display: flex; gap: 10px; align-items: flex-start; }
.ft-ico { flex: 0 0 auto; color: #fff; }
.site-footer a { color: var(--text-light); }
.site-footer a:hover { color: var(--primary); }
.ft-social { display: flex; gap: 12px; }
.newsletter-form { display: flex; gap: 8px; margin-top: 12px; }
.newsletter-form input { flex: 1; padding: 12px 14px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: #fff; border-radius: 0; font-family: inherit; }
.newsletter-form input::placeholder { color: rgba(255,255,255,.45); }
.newsletter-form .btn { padding: 12px 18px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; font-size: 14px; }
.footer-bottom .wrap { display: flex; justify-content: space-between; align-items: center; gap: 10px 20px; flex-wrap: wrap; }
/* 版权与备案号：同一行，窄屏自动换行 */
.ft-copy { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; }
.ft-filing { color: var(--text-light); white-space: nowrap; }
.ft-filing:hover { color: var(--primary); }

.to-top {
  position: fixed; right: 24px; bottom: 24px; width: 44px; height: 44px; border-radius: 50%;
  background: var(--primary); color: #fff; border: 0; cursor: pointer; font-size: 18px;
  display: none; align-items: center; justify-content: center; z-index: 300;
}
.to-top.is-visible { display: flex; }

.error-page { text-align: center; padding: 60px 0; }
.error-page h1 { font-size: 72px; color: var(--primary); margin-bottom: 8px; }
.empty { color: var(--text-light); }

/* ---------------------------------------------------------------- 响应式 */
@media (max-width: 1200px) {
  .sec-intro { padding: 0 12%; }
  .wd-text { padding: 0 12%; }
  .wd-text h3 { font-size: 22px; }
}

@media (max-width: 1000px) {
  .header-inner { height: 70px; }
  .main-nav {
    position: fixed; inset: 70px 0 auto 0; background: #fff; border-bottom: 1px solid var(--line);
    display: none; padding: 12px 0; max-height: calc(100vh - 70px); overflow-y: auto; margin: 0;
  }
  .main-nav.is-open { display: block; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-item > a { padding: 13px 20px; line-height: 1.6; border-bottom: 1px solid var(--line); }
  .submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: var(--bg-soft); padding: 0; }
  .menu-toggle { display: flex; }
  .btn-quote { display: none; }
  .header-search { display: none; }
  /* 桌上端靠 .main-nav{flex:1} 占满中间，把工具区自然顶到最右；
     手机上导航变成 position:fixed 脱离文档流，中间就空了 ——
     语言切换和菜单按钮会紧贴 Logo。这里把这块空间补回来。 */
  .header-tools { margin-left: auto; }
  /* 空间不够时（320px 窄屏）让 Logo 先收缩，保证右侧语言/菜单不被挤出去。
     .header-tools 是 flex:0 0 auto 不会缩，所以先缩的一定是 Logo。 */
  .logo { flex: 0 1 auto; min-width: 0; }
  .logo img { max-width: 100%; }
  .split, .pd-grid { grid-template-columns: 1fr; gap: 30px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .slide-inner { padding: 60px 3%; }
  .slide-title { font-size: 24px; }
  .slide-sub { font-size: 18px; }
  .sec { padding: 50px 0; }
  .sec-whatwedo { padding: 30px 0 50px; }
  .sec-ai, .sec-project { padding: 50px 0 25px; }
  .sec-news { padding: 30px 0 35px; }
  .sec-title { font-size: 24px; }
  .sec-sub { font-size: 18px; }
  .sec-intro { padding: 0; }
  .wd-cards { margin-top: 15px; }
  .wd-card { width: 100%; grid-template-columns: repeat(2, 1fr); grid-template-rows: 1fr; }
  .wd-text { padding: 0 5%; }
  .wd-text h3 { font-size: 18px; }
  .article-gallery, .page-gallery { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .site-footer h3 { font-size: 16px; }
}

@media (max-width: 620px) {
  .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .inquiry-form .form-row { grid-template-columns: 1fr; }
  .wd-card { grid-template-columns: 1fr; grid-template-rows: auto auto; }
  .article-nav { flex-direction: column; }
  .article-nav .btn { max-width: 100%; }
  .slide-title { font-size: 20px; }
}

/* ---------------------------------------------------------------- 轮播比例
   原站轮播用 padding-top:43.23%（1920×830 的图）撑出固定高度，
   文字绝对定位居中。这里用 aspect-ratio 达到同样效果。
   手机上不套用，避免横幅被压得过矮。 */
@media (min-width: 1001px) {
  .slide.is-active { aspect-ratio: 1920 / 830; }
  .slide-inner {
    position: absolute; inset: 0;
    display: flex; align-items: center;
    padding: 0 3%;
  }
  .slide-text { width: 100%; }
}

/* ---------------------------------------------------------------- 触控目标
   手机上把这些控件的可点区域补足到 44px 高 */
@media (max-width: 1000px) {
  .lang-btn { min-height: 44px; padding: 9px 12px; }
  .header-tools { gap: 4px; }
  .nav-item > a { min-height: 44px; display: flex; align-items: center; }
  .submenu a { min-height: 44px; display: flex; align-items: center; }
  .inquiry-form input, .inquiry-form textarea { font-size: 16px; } /* iOS 上小于 16px 会自动放大页面 */
  .newsletter-form input { font-size: 16px; }
  .to-top { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
}
