/* 首页独立样式：瓷白底、绿色文字、青柠线索，不影响人工智能详情页。 */
:root {
  --bg: #f5f7f1;
  --surface: #ffffff;
  --fg: #156b57;
  --muted: #2f5d4e;
  --lime: #d8ef73;
  --border: #c6d9ce;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-name: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { color-scheme: light; scroll-padding-top: 32px; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 24px/1.9 var(--font-body); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-weight: 600; }
h2 { font-size: clamp(36px, 3.8vw, 52px); line-height: 1.35; letter-spacing: 0; text-wrap: balance; }
h3 { font-size: 28px; line-height: 1.5; }
p { text-wrap: pretty; }
strong { font-weight: 600; }
a { color: inherit; text-decoration: none; text-underline-offset: 6px; }
button { font: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 6px; }
::selection { background: var(--lime); color: var(--fg); }
.wrap { width: min(1180px, calc(100% - 96px)); margin-inline: auto; }
.section-space { padding-block: 88px; }
.section-white { background: var(--surface); }
.small-label { font-size: 20px; color: var(--muted); line-height: 1.6; }
.phone-break { display: none; }

/* 长辈阅读：正文与辅助文字放大，导航和按钮保留宽松的点击范围。 */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 108px; border-bottom: 1px solid var(--border); }
.wordmark { display: inline-flex; align-items: center; min-height: 52px; font: 600 30px/1 var(--font-name); letter-spacing: -.035em; }
.wordmark span { color: var(--muted); }
.site-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 30px; }
.site-nav a, .site-footer a { display: inline-flex; align-items: center; gap: 8px; min-height: 52px; font-size: 20px; }
.site-nav a:hover, .site-footer a:hover { text-decoration: underline; }
.international-link { margin-left: 12px; }
.skip-link { position: fixed; top: 12px; left: 16px; padding: 10px 16px; background: var(--surface); border: 2px solid var(--fg); z-index: 10; transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }

/* 开场以姓名为视觉主角；青柠下划面是整页的连续色彩线索。 */
.hero { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); column-gap: 72px; align-items: end; padding-block: 76px 50px; }
.hero h1 { min-width: 0; }
.hero-greeting { display: block; font-size: 26px; line-height: 1.2; letter-spacing: -.02em; }
.hero-name { position: relative; isolation: isolate; display: inline-block; margin-left: 12px; font: 600 clamp(92px, 10.4vw, 150px)/1.1 var(--font-name); letter-spacing: -.065em; }
.hero-name::after { content: ""; position: absolute; z-index: -1; inset-inline: 1px -8px; bottom: 9px; height: 24%; background: var(--lime); }
.hero-comma { font-size: 30px; margin-left: 6px; }
.hero-statement { display: block; margin-top: 35px; font-size: clamp(36px, 4.2vw, 60px); line-height: 1.36; letter-spacing: -.035em; }
.hero-intro { min-width: 0; padding-bottom: 6px; }
.hero-intro > p { max-width: 29ch; margin-bottom: 28px; color: var(--muted); font-size: 24px; line-height: 1.9; }
.text-link { max-width: 100%; display: inline-flex; align-items: center; justify-content: space-between; gap: 22px; min-height: 52px; padding-block: 7px; border-bottom: 1px solid currentColor; font-size: 22px; line-height: 1.6; }
.text-link:hover { border-bottom-style: dashed; }
.text-link span { flex: 0 0 auto; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 32px; min-height: 60px; padding: 14px 26px; background: var(--fg); color: var(--surface); border: 1px solid var(--fg); border-radius: 8px; font-size: 22px; font-weight: 600; letter-spacing: .02em; }
.button:hover { background: var(--muted); }
.button:active { transform: translateY(1px); }
.hero-intro .button { margin-bottom: 18px; }
.hero-intro .text-link { display: flex; width: fit-content; }
.hero-experience { grid-column: 1 / -1; margin-top: 68px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--muted); font-size: 20px; }

/* 三类开发按业务环节展开，桌面并列，手机顺序阅读。 */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px; }
.service-group { min-width: 0; padding-top: 22px; border-top: 2px solid var(--fg); }
.service-group h2 { margin-top: 18px; font-size: clamp(34px, 2.7vw, 40px); line-height: 1.45; }
.service-description { max-width: 32em; margin-top: 24px; color: var(--muted); font-size: 24px; }
/* 三项服务可以单独合作，人工智能仅作低权重的能力补充。 */
.service-extra { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--muted); font-size: 20px; }
.service-link { margin-top: 10px; font-size: 20px; }

/* 工作方式单独成段，让 FDE 的解释与具体参与方式放在一起。 */
.fde-layout { display: grid; grid-template-columns: 1.15fr 1fr; gap: 80px; }
.fde-heading h2 { margin-top: 16px; }
.fde-copy { padding-top: 8px; color: var(--muted); font-size: 24px; }
.fde-definition { margin-top: 24px; }
.fde-definition strong { color: var(--fg); }
.fde-definition [lang="en"] { overflow-wrap: anywhere; }

/* 两件作品同级呈现：新种使用原始截图，ERP 仅作文字展示。 */
.projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 60px; margin-top: 52px; }
.project { display: flex; flex-direction: column; min-width: 0; padding-top: 24px; border-top: 2px solid var(--fg); }
.project-heading { min-height: 102px; }
.project-heading h3 { margin-top: 10px; font-size: 30px; line-height: 1.5; letter-spacing: -.02em; }
.project-image a { display: block; background: var(--surface); }
.project-image img { width: 100%; height: auto; border: 1px solid var(--border); }
.project-image figcaption { margin-top: 10px; font-size: 20px; color: var(--muted); }
.erp-evidence { display: flex; flex-direction: column; justify-content: center; gap: 24px; aspect-ratio: 1280 / 850; padding: clamp(24px, 3vw, 44px); background: var(--surface); border-block: 1px solid var(--border); }
.erp-statement { font-size: clamp(30px, 3vw, 42px); font-weight: 600; line-height: 1.55; letter-spacing: -.02em; }
.erp-detail { font-size: 22px; color: var(--muted); }
.project-description { margin-top: 26px; margin-bottom: 24px; color: var(--muted); }
.project-link { align-self: flex-start; margin-top: auto; }

/* 二维码使用未经处理的原图；邮箱静态可读，由原脚本继续接管。 */
.contact { background: var(--lime); }
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 100px; align-items: start; }
.contact h2 { font-size: clamp(36px, 3.8vw, 54px); }
.contact-intro { max-width: 33em; margin-top: 28px; color: var(--muted); font-size: 24px; }
.email-alternative { margin-top: 45px; }
.email-link { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 14px; max-width: 100%; min-height: 52px; font-size: 24px; line-height: 1.6; }
.email-link [data-contact-value] { min-width: 0; overflow-wrap: anywhere; }
.email-link:hover { text-decoration: underline; }
.copy-button { display: block; min-height: 56px; margin-top: 9px; padding: 8px 16px; border: 1px solid var(--fg); border-radius: 8px; color: var(--fg); background: transparent; cursor: pointer; font-size: 20px; letter-spacing: .02em; }
.copy-button:hover:enabled { background: var(--bg); }
.copy-button:active:enabled { background: var(--surface); }
.copy-button:disabled { opacity: .6; cursor: default; }
.copy-status { min-height: 1.8em; margin-top: 10px; font-size: 20px; color: var(--muted); }
.wechat-qr { width: 260px; max-width: 100%; margin-top: 5px; }
.wechat-qr a { display: block; background: var(--surface); }
.wechat-qr img { width: 100%; height: auto; }
.wechat-qr figcaption { margin-top: 18px; font-size: 22px; line-height: 1.7; }
.wechat-qr figcaption span { color: var(--muted); font-size: 20px; }
/* 剪贴板回退保留可聚焦、可选择的文本域，置于视口之外。 */
.clipboard-helper { position: fixed; top: 0; left: -9999px; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; font-size: 20px; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 102px; font-size: 20px; color: var(--muted); }

/* 中等宽度提前单列，为大字和清楚的换行留出空间。 */
@media (max-width: 1100px) {
  .wrap { width: calc(100% - 64px); }
  .hero { column-gap: 44px; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
  .hero-greeting { font-size: 22px; }
  .hero-name { font-size: 108px; margin-left: 6px; }
  .hero-statement { font-size: 46px; }
  .hero-intro > p { font-size: 24px; }
  .fde-layout { gap: 44px; }
  .projects { grid-template-columns: 1fr; gap: 44px; }
  .project-heading { min-height: 0; margin-bottom: 24px; }
  .contact-layout { gap: 60px; }
  .services { grid-template-columns: 1fr; gap: 44px; }
}

/* 平板按阅读顺序重排，主线不依赖桌面并列关系。 */
@media (max-width: 820px) {
  .wrap { width: calc(100% - 48px); }
  .section-space { padding-block: 68px; }
  .site-header { min-height: 94px; }
  .site-nav { gap: 8px 18px; }
  .international-link { margin-left: 0; }
  .hero { grid-template-columns: 1fr; padding-block: 60px 38px; }
  .hero-name { font-size: clamp(100px, 18vw, 132px); }
  .hero-statement { margin-top: 28px; font-size: clamp(38px, 6.5vw, 52px); }
  .hero-intro { margin-top: 36px; padding: 0; }
  .hero-intro > p { max-width: 38em; font-size: 24px; margin-bottom: 20px; }
  .hero-intro .button { margin-right: 26px; margin-bottom: 12px; }
  .hero-intro .text-link { max-width: 100%; display: inline-flex; }
  .hero-experience { margin-top: 35px; }
  .desktop-break { display: none; }
  .fde-layout { grid-template-columns: 1fr; gap: 26px; }
  .services { grid-template-columns: 1fr; gap: 44px; }
  .projects { gap: 28px; }
  .project-heading h3 { font-size: 30px; }
  .erp-evidence { gap: 16px; padding: 22px; }
  .erp-statement { font-size: 32px; }
  .contact-layout { grid-template-columns: minmax(0, 1fr) 220px; gap: 40px; }
  .wechat-qr { width: 220px; }
}

/* 手机按服务顺序采用单列正文，360 与 390 像素均保留完整内容。 */
@media (max-width: 600px) {
  body { font-size: 22px; line-height: 1.9; }
  .wrap { width: calc(100% - 40px); }
  .section-space { padding-block: 48px; }
  h2 { font-size: 36px; line-height: 1.45; }
  .site-header { align-items: flex-start; flex-direction: column; gap: 6px; padding-block: 16px 12px; }
  .wordmark { font-size: 28px; }
  .site-nav { width: 100%; justify-content: space-between; gap: 4px 12px; }
  .site-nav a { font-size: 20px; }
  .hero { padding-block: 42px 30px; }
  .hero-greeting { font-size: 21px; }
  .hero-name { margin-left: 4px; font-size: clamp(80px, 23vw, 108px); letter-spacing: -.06em; }
  .hero-name::after { bottom: 5px; inset-inline-end: 0; }
  /* 手机标题用换行断句，避免姓名后的逗号独占一行。 */
  .hero-comma { display: none; }
  .hero-statement { margin-top: 25px; font-size: clamp(32px, 8.6vw, 42px); line-height: 1.5; letter-spacing: -.035em; }
  .hero-intro { margin-top: 26px; }
  .hero-intro > p { font-size: 22px; line-height: 1.9; }
  .hero-intro .button { margin-right: 0; margin-bottom: 18px; }
  .hero-intro .text-link { display: flex; }
  .hero-experience { margin-top: 30px; padding-top: 22px; }
  .services { grid-template-columns: 1fr; gap: 44px; }
  .service-group { padding-top: 18px; }
  .service-group h2 { font-size: 34px; margin-top: 12px; }
  .service-description { margin-top: 20px; font-size: 22px; }
  .service-link { gap: 14px; font-size: 20px; }
  .fde-heading h2 { margin-top: 12px; }
  .fde-copy { padding: 0; font-size: 22px; }
  .fde-definition { margin-top: 20px; }
  .projects { grid-template-columns: 1fr; gap: 48px; margin-top: 32px; }
  .project-heading { min-height: 0; margin-bottom: 24px; }
  .project-heading h3 { font-size: 30px; margin-top: 7px; }
  .project-image figcaption { font-size: 20px; }
  .project-description { margin-top: 22px; margin-bottom: 18px; }
  .erp-evidence { min-height: 240px; aspect-ratio: auto; gap: 18px; padding: 28px 24px; }
  .erp-statement { font-size: 30px; }
  .contact-layout { grid-template-columns: 1fr; gap: 28px; }
  .contact h2 { font-size: 36px; }
  .contact-intro { margin-top: 22px; font-size: 22px; }
  .email-alternative { margin-top: 30px; }
  .email-link { font-size: 24px; gap: 10px; }
  .wechat-qr { width: 260px; margin-top: 0; }
  .wechat-qr figcaption { margin-top: 14px; }
  .site-footer { min-height: 92px; }
}

/* 较窄手机仅调整字号与内边距，保留正常换行，不裁切越界。 */
@media (max-width: 374px) {
  .wrap { width: calc(100% - 32px); }
  .hero-greeting { font-size: 24px; }
  .hero-name { font-size: 80px; }
  .hero-statement { font-size: 32px; }
  .email-link { font-size: 24px; }
}

/* 页面无入场动画；减少动态效果时也关闭按钮按压位移。 */
@media (prefers-reduced-motion: reduce) {
  .button:active { transform: none; }
}
