/* 英菲尼克科技官网的全局设计变量。 */
:root {
  --ink: #071923;
  --ink-soft: #0c2736;
  --paper: #f4f4f0;
  --paper-deep: #e8e9e5;
  --sand: #c77745;
  --sand-pale: #e5b08a;
  --mist: #b9cbd1;
  --line: rgba(185, 203, 209, 0.23);
  --text: #eaf0ef;
  --muted: #a5b8be;
  --dark-text: #102630;
  --dark-muted: #56707a;
  --radius: 14px;
  --container: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--text); font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif; font-size: 16px; line-height: 1.6; }
button, a { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* 中英文内容通过根节点语言状态统一切换。 */
.lang-en { display: none; }
html[data-lang="en"] .lang-zh { display: none; }
html[data-lang="en"] .lang-en { display: inline; }
html[data-lang="en"] .hero h1 .lang-en,
html[data-lang="en"] .service-title strong .lang-en,
html[data-lang="en"] .detail-copy h3 .lang-en,
html[data-lang="en"] h2 .lang-en { display: block; }
html[data-lang="en"] .capability-columns .lang-en { display: block; }

.container { width: min(calc(100% - 48px), var(--container)); margin: 0 auto; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 20; padding: 8px 14px; transform: translateY(-150%); background: var(--sand); color: var(--ink); font-weight: 700; }
.skip-link:focus { transform: translateY(0); }
.overline, .note-label, .detail-kicker { margin: 0; color: var(--sand-pale); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }

/* 顶部导航使用弹性布局，保持单行与可靠的移动端折叠。 */
.site-header { position: absolute; top: 0; right: 0; left: 0; z-index: 10; border-bottom: 1px solid rgba(255,255,255,.12); }
.nav-wrap { min-height: 76px; display: flex; align-items: center; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-mark { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--sand); color: var(--ink); font-size: 12px; font-weight: 900; letter-spacing: -.08em; }
.brand-copy { display: inline-flex; flex-direction: column; color: #fff; font-size: 14px; font-weight: 850; letter-spacing: .09em; line-height: 1.05; }
.brand-copy small { margin-top: 4px; color: var(--mist); font-size: 8px; font-weight: 700; letter-spacing: .14em; }
.primary-nav { display: flex; align-items: center; justify-content: center; gap: clamp(18px, 3vw, 42px); flex: 1; }
.primary-nav a, .text-action, .footer-links a { color: var(--mist); font-size: 13px; transition: color .2s ease; }
.primary-nav a:hover, .primary-nav a:focus-visible, .text-action:hover, .text-action:focus-visible, .footer-links a:hover { color: #fff; }
.nav-actions { display: flex; align-items: center; gap: 18px; }
.language-switch { min-width: 38px; min-height: 36px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; background: transparent; color: #fff; font-size: 12px; font-weight: 800; }
.language-switch:hover, .language-switch:focus-visible { border-color: var(--sand-pale); color: var(--sand-pale); }
.text-action { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.text-action b, .button b, .inline-link b { color: var(--sand-pale); font-size: 18px; font-weight: 400; }
.menu-toggle { display: none; }

/* 首屏以真实港口场景作为右侧叙事，左侧只保留必要的价值信息。 */
.hero { position: relative; min-height: 760px; overflow: hidden; display: flex; align-items: stretch; isolation: isolate; background: var(--ink); }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media::after { position: absolute; inset: 0; content: ""; background: linear-gradient(90deg, rgba(7,25,35,.98) 0%, rgba(7,25,35,.91) 36%, rgba(7,25,35,.44) 67%, rgba(7,25,35,.15) 100%); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-layout { display: flex; align-items: end; justify-content: space-between; gap: 60px; padding-top: 164px; padding-bottom: 78px; }
.hero-copy { max-width: 650px; }
.hero h1 { max-width: 620px; margin: 18px 0 22px; color: #fff; font-size: clamp(45px, 6vw, 82px); font-weight: 800; letter-spacing: -.075em; line-height: .99; }
.hero-summary { max-width: 555px; margin: 0; color: #d4e0e0; font-size: clamp(16px, 1.5vw, 19px); line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 34px; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 14px; padding: 10px 18px; border: 1px solid transparent; border-radius: 999px; font-size: 14px; font-weight: 800; transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease; }
.button:active { transform: translateY(1px) scale(.98); }
.button-primary { background: var(--sand); color: var(--ink); }
.button-primary:hover, .button-primary:focus-visible { background: #df9462; }
.button-quiet { border-color: rgba(255,255,255,.35); color: #fff; }
.button-quiet:hover, .button-quiet:focus-visible { border-color: #fff; background: rgba(255,255,255,.1); }
.hero-note { width: min(260px, 28vw); padding: 18px 0 0 20px; border-left: 1px solid var(--sand); }
.hero-note p:last-child { margin: 7px 0 0; color: #e3ebeb; font-size: 14px; line-height: 1.75; }

/* 服务索引以不等宽的柔性项目替代均分卡片。 */
.service-index { background: #0c2533; border-bottom: 1px solid var(--line); }
.index-layout { display: flex; align-items: stretch; gap: 56px; padding: 44px 0; }
.index-intro { width: 31%; min-width: 250px; margin: 0; color: var(--mist); font-size: 15px; line-height: 1.75; }
.index-links { display: flex; flex: 1; flex-wrap: wrap; align-content: flex-start; gap: 0; }
.index-links button { width: 33.333%; min-width: 185px; display: flex; align-items: center; gap: 12px; padding: 8px 12px 8px 0; border: 0; background: transparent; color: #e7eeee; text-align: left; }
.index-links button:nth-child(4), .index-links button:nth-child(5) { width: 50%; }
.index-links button span { color: var(--sand-pale); font-size: 11px; font-weight: 800; }
.index-links button i { font-style: normal; font-size: 14px; transition: color .2s ease, transform .2s ease; }
.index-links button:hover i, .index-links button:focus-visible i { color: var(--sand-pale); transform: translateX(5px); }

/* 服务主体利用 details 提供无需脚本也可使用的展开交互。 */
.services-section { padding: 124px 0 116px; background: var(--paper); color: var(--dark-text); }
.section-lead { display: flex; align-items: end; justify-content: space-between; gap: 48px; margin-bottom: 58px; }
.section-lead h2, .method-intro h2, .about-statement h2 { margin: 12px 0 0; font-size: clamp(38px, 5vw, 68px); font-weight: 800; letter-spacing: -.065em; line-height: 1.03; }
.section-lead .overline, .method-intro .overline, .about-statement .overline { color: #a0522c; }
.section-lead > p { max-width: 410px; margin: 0 0 5px; color: var(--dark-muted); font-size: 16px; line-height: 1.75; }
.service-stack { display: flex; flex-direction: column; border-top: 1px solid #b7c2c2; }
.service-panel { border-bottom: 1px solid #b7c2c2; }
.service-panel summary { display: flex; align-items: center; gap: 24px; min-height: 112px; padding: 20px 0; list-style: none; cursor: pointer; }
.service-panel summary::-webkit-details-marker { display: none; }
.service-number { width: 58px; color: #a0522c; font-size: 12px; font-weight: 800; }
.service-title { display: flex; align-items: baseline; justify-content: space-between; gap: 30px; flex: 1; }
.service-title strong { font-size: clamp(22px, 2.8vw, 34px); letter-spacing: -.04em; }
.service-title em { max-width: 390px; color: var(--dark-muted); font-size: 14px; font-style: normal; line-height: 1.5; }
.summary-control { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #84959a; border-radius: 50%; color: #18343f; font-size: 23px; font-weight: 300; transition: transform .25s ease, background .25s ease, color .25s ease; }
.service-panel[open] .summary-control { transform: rotate(45deg); background: var(--sand); border-color: var(--sand); color: #fff; }
.service-detail { display: flex; gap: clamp(32px, 5vw, 76px); padding: 12px 0 64px 82px; }
.service-detail-image { align-items: stretch; }
.service-detail-image > img { width: 43%; min-height: 372px; border-radius: var(--radius); object-fit: cover; }
.reverse-detail > img { order: 2; }
.reverse-detail .detail-copy { order: 1; }
.detail-copy { flex: 1; padding-top: 8px; }
.detail-kicker { color: #a0522c; }
.detail-copy h3 { max-width: 490px; margin: 13px 0 28px; font-size: clamp(26px, 3vw, 42px); letter-spacing: -.055em; line-height: 1.08; }
.capability-columns { display: flex; flex-wrap: wrap; gap: 18px 42px; }
.capability-columns ul { width: calc(50% - 21px); min-width: 220px; margin: 0; padding: 0; list-style: none; }
.capability-columns li { position: relative; margin-bottom: 11px; padding-left: 16px; color: #46616a; font-size: 14px; line-height: 1.6; }
.capability-columns li::before { position: absolute; top: .62em; left: 0; width: 5px; height: 5px; border-radius: 50%; content: ""; background: var(--sand); }
.large-list { align-content: flex-start; flex: 1; padding-top: 40px; }
.marketing-detail { background: #e9ddd5; }

/* 合作方式以连续步骤讲述，避免默认的等宽功能卡片。 */
.method-section { padding: 118px 0; background: var(--ink-soft); }
.method-layout { display: flex; align-items: flex-start; gap: clamp(44px, 10vw, 150px); }
.method-intro { width: 37%; min-width: 300px; }
.method-intro p:last-child { max-width: 380px; color: var(--muted); }
.method-list { flex: 1; display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.method-list li { display: flex; gap: 24px; padding: 24px 0 22px; border-bottom: 1px solid var(--line); }
.method-list > li > span { min-width: 36px; color: var(--sand-pale); font-size: 12px; font-weight: 800; }
.method-list strong { font-size: 19px; }
.method-list p { max-width: 420px; margin: 4px 0 0; color: var(--muted); font-size: 14px; }

.about-section { padding: 120px 0; background: #173746; }
.about-layout { display: flex; align-items: flex-end; justify-content: space-between; gap: 60px; }
.about-statement { width: 58%; }
.about-statement h2 { max-width: 720px; }
.about-copy { width: 33%; min-width: 300px; }
.about-copy p { margin: 0; color: #d5e0df; font-size: 16px; line-height: 1.85; }
.inline-link { display: inline-flex; align-items: center; gap: 12px; margin-top: 28px; color: var(--sand-pale); font-weight: 800; }
.inline-link:hover, .inline-link:focus-visible { color: #fff; }

.site-footer { background: #06141c; }
.footer-layout { display: flex; align-items: end; justify-content: space-between; gap: 32px; padding: 46px 0; }
.footer-brand .brand-mark { width: 32px; height: 32px; font-size: 10px; }
.footer-layout p { margin: 12px 0 0; color: var(--muted); font-size: 13px; }
.footer-links { display: flex; align-items: center; gap: 22px; }
.copyright { white-space: nowrap; }

/* 出场动效只用于建立信息层级，并在减少动效偏好下关闭。 */
.reveal { animation: rise-in .7s cubic-bezier(.16, 1, .3, 1) both; }
.hero-note.reveal { animation-delay: .16s; }
@keyframes rise-in { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 860px) {
  .nav-wrap { min-height: 68px; gap: 16px; }
  .menu-toggle { width: 42px; height: 42px; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; margin-left: auto; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; background: transparent; }
  .menu-toggle span { width: 16px; height: 1px; background: #fff; transition: transform .2s ease; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }
  .primary-nav { position: absolute; top: 68px; right: 24px; left: 24px; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 18px; border: 1px solid rgba(255,255,255,.15); border-radius: var(--radius); background: #0b2634; box-shadow: 0 16px 40px rgba(0,0,0,.26); }
  .primary-nav.is-open { display: flex; }
  .primary-nav a { padding: 12px 0; }
  .nav-actions { margin-left: 0; }
  .text-action { display: none; }
  .hero { min-height: 680px; }
  .hero-layout { padding-top: 134px; padding-bottom: 44px; }
  .hero-note { display: none; }
  .index-layout, .section-lead, .method-layout, .about-layout { flex-direction: column; gap: 28px; }
  .index-intro, .method-intro, .about-statement, .about-copy { width: 100%; min-width: 0; }
  .index-links button, .index-links button:nth-child(4), .index-links button:nth-child(5) { width: 50%; }
  .section-lead { align-items: flex-start; }
  .section-lead > p { max-width: 560px; }
  .service-title { flex-direction: column; gap: 6px; }
  .service-title em { max-width: none; }
  .service-detail { padding-left: 0; }
  .service-detail-image > img { width: 45%; }
  .about-layout { align-items: flex-start; }
  .about-copy { max-width: 600px; }
}

@media (max-width: 620px) {
  .container { width: min(calc(100% - 32px), var(--container)); }
  .nav-actions { gap: 0; }
  .language-switch { display: none; }
  .hero { min-height: 650px; }
  .hero-media::after { background: linear-gradient(90deg, rgba(7,25,35,.98) 0%, rgba(7,25,35,.85) 62%, rgba(7,25,35,.38) 100%); }
  .hero h1 { font-size: clamp(43px, 13vw, 60px); }
  .hero-summary { font-size: 16px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .index-links { flex-direction: column; }
  .index-links button, .index-links button:nth-child(4), .index-links button:nth-child(5) { width: 100%; }
  .services-section, .method-section, .about-section { padding: 78px 0; }
  .service-panel summary { align-items: flex-start; gap: 13px; min-height: 100px; }
  .service-number { width: 27px; padding-top: 5px; }
  .service-title strong { font-size: 24px; }
  .summary-control { flex: 0 0 32px; width: 32px; height: 32px; }
  .service-detail, .service-detail-image { flex-direction: column; gap: 26px; padding-bottom: 45px; }
  .service-detail-image > img { width: 100%; min-height: 250px; }
  .reverse-detail > img { order: 0; }
  .reverse-detail .detail-copy { order: 0; }
  .capability-columns ul { width: 100%; }
  .large-list { padding-top: 0; }
  .method-list li { gap: 15px; }
  .footer-layout { align-items: flex-start; flex-direction: column; }
  .footer-links { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
