/* ==========================================================================
   深圳市静润澜海科技有限公司 官网 · 样式
   配色与 App 设计稿同源：海（品牌与行动）· 墨（文字）· 日（点缀）。
   只用系统字体、不引用任何外部资源（国内访问 Google Fonts / 公共 CDN 不稳），页面不需要 JS。
   404.html 的样式写在它自己页内（它会出现在任意路径下，相对路径的样式表会找不到），改这里不影响它。
   ========================================================================== */

:root {
  --sea-900: #06112A; --sea-600: #0033CC; --sea-500: #0047FF; --sea-100: #E6EDFF;
  --ink-900: #0B1430; --ink-600: #525C7A; --ink-50: #F6F7FA;
  --sun-500: #FF9500; --sun-300: #FFC266;

  --bg: #F3F5FA; --surface: #FFFFFF;
  --t1: var(--ink-900); --t2: var(--ink-600);
  --on-sea: rgba(255, 255, 255, .92);          /* 蓝底上的次要文字，不低于 90% */

  --e1: 0 1px 2px rgba(11, 20, 48, .05), 0 6px 16px rgba(11, 20, 48, .05);
  --e2: 0 2px 8px rgba(11, 20, 48, .06), 0 18px 40px rgba(11, 20, 48, .10);

  --f-ui: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
          "Noto Sans SC", "Source Han Sans SC", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --f-word: "Charis SIL", Charter, "Iowan Old Style", Georgia, "Times New Roman", serif;

  color-scheme: light;
}

/* ---------- 基础 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--f-ui);
  font-size: 16px;
  line-height: 1.7;
  color: var(--t1);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;                             /* 避免一行只剩一个字 */
}
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--sun-300); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1120px, 100% - 48px); margin-inline: auto; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 10;
  padding: 10px 16px; border-radius: 12px;
  background: #fff; color: var(--ink-900); font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- 顶栏 ---------- */
.topbar { position: relative; z-index: 3; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px; min-width: 0;
  color: #fff; text-decoration: none; font-size: 18px; font-weight: 700; letter-spacing: .04em; white-space: nowrap;
}
.brand__mark { width: 32px; height: 32px; flex: none; }
.nav { display: flex; flex: none; gap: 28px; }
.nav a { padding: 8px 0; color: var(--on-sea); font-size: 15px; text-decoration: none; }
.nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 6px; }

/* ---------- 首屏：天亮时的海 ----------
   层次都在 .masthead 这一个层叠上下文里：光束、太阳 0 → 海浪 1 → 文字、手机 2 → 单词 3。
   太阳要被海浪挡住下半边，所以 .hero / .hero__visual 都不能自己建层叠上下文（不加 z-index / isolation）。 */
.masthead {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(180deg, #1A5CFF 0%, #1250F5 26%, #0A3AD8 50%, #071A6E 78%, #050D33 100%);
}
.hero { position: relative; padding: 32px 0 136px; }
.hero__inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: 48px; }
.hero__copy { position: relative; z-index: 2; }

.eyebrow { margin-bottom: 20px; font-size: 14px; letter-spacing: .2em; color: var(--on-sea); }
.hero h1 { font-size: clamp(40px, 5.2vw, 64px); line-height: 1.18; font-weight: 800; letter-spacing: .01em; }
.lead { max-width: 30em; margin-top: 24px; font-size: clamp(17px, 1.6vw, 19px); line-height: 1.85; color: var(--on-sea); }

.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 36px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: 16px;
  font-size: 16px; font-weight: 600; text-decoration: none;
}
.btn svg { width: 18px; height: 18px; }
.btn--ghost { color: #fff; border: 1.5px solid rgba(255, 255, 255, .6); }
.btn--ghost:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }

.status { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; color: var(--on-sea); }
.status::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--sun-500); box-shadow: 0 0 0 4px rgba(255, 149, 0, .28);
}

/* 手机站在日出前面：太阳落在海平线上（--horizon = 手机底边到第一道浪的距离），光束从太阳往上打 */
.hero__visual { --horizon: 58px; position: relative; justify-self: center; width: 300px; }
.sun {
  position: absolute; z-index: 0; left: 50%; bottom: calc(-1 * var(--horizon) - 220px);
  width: 440px; height: 440px; transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(circle at 50% 28%, #FFD58F 0%, #FFB547 34%, #FF9500 64%, #EE7A00 100%);
  box-shadow: 0 0 80px 24px rgba(255, 149, 0, .38), 0 0 220px 90px rgba(255, 122, 0, .16);
}
.rays {
  position: absolute; z-index: 0; left: 50%; bottom: calc(-1 * var(--horizon));
  width: 1200px; height: 820px; transform: translateX(-50%);
  background: repeating-conic-gradient(from -90deg at 50% 100%, rgba(255, 255, 255, .08) 0deg 2.5deg, rgba(255, 255, 255, 0) 2.5deg 13deg);
  -webkit-mask-image: radial-gradient(farthest-side at 50% 100%, #000 20%, rgba(0, 0, 0, .45) 55%, transparent);
          mask-image: radial-gradient(farthest-side at 50% 100%, #000 20%, rgba(0, 0, 0, .45) 55%, transparent);
}

.phone {
  position: relative;
  z-index: 2;
  padding: 10px;
  border-radius: 46px;
  background: #0B1430;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 40px 80px rgba(2, 8, 40, .45);
}
.phone img { width: 100%; height: auto; border-radius: 36px; }

.pill {
  position: absolute; z-index: 3;
  padding: 10px 22px 13px; border-radius: 999px;
  font-family: var(--f-word); font-style: italic; font-size: 24px; line-height: 1; white-space: nowrap;
  color: #fff; background: rgba(8, 30, 150, .82); border: 1.5px solid rgba(255, 255, 255, .24);
  box-shadow: 0 10px 30px rgba(2, 8, 40, .35);
}
.pill--a { left: -132px; top: 12%; transform: rotate(-4deg); }
.pill--b { right: -104px; top: 27%; transform: rotate(3deg); }
.pill--c { right: -138px; top: 60%; transform: rotate(-2deg); border-color: rgba(255, 194, 102, .75); }
.pill--d { left: -112px; top: 76%; transform: rotate(2deg); }

.waves { position: absolute; z-index: 1; left: 0; bottom: -1px; width: 100%; height: 112px; }

/* ---------- 通用区块 ---------- */
.section { padding: 96px 0; }
.section__head { max-width: 640px; margin-bottom: 48px; }
.section__title { font-size: clamp(28px, 3vw, 36px); line-height: 1.3; font-weight: 700; }
.section__lead { margin-top: 12px; font-size: 17px; color: var(--t2); }

/* ---------- 产品：三张卡片 ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card { padding: 32px 28px 34px; border-radius: 20px; background: var(--ink-50); }
.card__icon {
  display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 20px;
  border-radius: 14px; background: var(--sea-100); color: var(--sea-500);
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 19px; line-height: 1.45; font-weight: 600; }
.card p { margin-top: 10px; font-size: 15.5px; line-height: 1.85; color: var(--t2); }

/* ---------- 更多功能：手机在左，四件事在右 ---------- */
.more { padding-top: 24px; overflow: hidden; }   /* 手机背后的淡蓝光比窄屏宽，不裁会撑出横向滚动 */
.more__inner { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 80px; }
.more__visual { grid-column: 1; grid-row: 1; position: relative; isolation: isolate; width: 280px; }
.more__visual::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 50%;
  width: 520px; height: 520px; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(closest-side, var(--sea-100), rgba(230, 237, 255, 0));
}
.more__visual .phone { box-shadow: var(--e2); }
.more__content { grid-column: 2; grid-row: 1; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 40px; }
.fact { padding-top: 18px; border-top: 2px solid var(--sea-100); }
.fact h3 { font-size: 18px; line-height: 1.5; font-weight: 600; }
.fact p { margin-top: 8px; font-size: 15.5px; line-height: 1.85; color: var(--t2); }

/* ---------- 关于我们 / 联系我们 ---------- */
.company { background: var(--bg); }
.company__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px; }
.panel { padding: 40px; border-radius: 20px; background: var(--surface); box-shadow: var(--e1); }
.panel h2 { font-size: 24px; line-height: 1.4; font-weight: 700; }
.panel p { margin-top: 16px; color: var(--t2); line-height: 1.9; }
.mail {
  display: inline-flex; align-items: center; gap: 10px; max-width: 100%; margin-top: 20px;
  color: var(--sea-500); font-size: 18px; font-weight: 600; text-decoration: none;
}
.mail svg { width: 22px; height: 22px; flex: none; }
.mail span { min-width: 0; overflow-wrap: anywhere; }
.mail:hover { color: var(--sea-600); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- 页脚：备案号在主页底部中央 ---------- */
.footer { padding: 40px 0 44px; background: var(--sea-900); color: rgba(255, 255, 255, .72); font-size: 14px; line-height: 2; text-align: center; }
.footer a { color: rgba(255, 255, 255, .86); text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }

/* ---------- 窄屏 ---------- */
@media (max-width: 960px) {
  .hero { padding: 24px 0 120px; }
  .hero__inner { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .hero__visual { --horizon: 40px; width: 260px; }
  .sun { width: 380px; height: 380px; bottom: calc(-1 * var(--horizon) - 190px); }
  .pill { font-size: 18px; padding: 8px 16px 10px; }
  .pill--a { left: -76px; } .pill--b { right: -64px; } .pill--c { right: -80px; } .pill--d { left: -64px; }

  .more__inner { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .more__visual, .more__content { grid-column: auto; grid-row: auto; }
  .more__visual { justify-self: center; width: 260px; }

  .company__grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px) {
  .wrap { width: min(1120px, 100% - 40px); }
  .topbar__inner { height: 64px; }
  .brand { font-size: 16px; }
  .brand__mark { width: 30px; height: 30px; }
  .nav { gap: 18px; }
  .nav a { font-size: 14px; }

  .section { padding: 64px 0; }
  .more { padding-top: 8px; }
  .section__head { margin-bottom: 32px; }
  .cards, .facts { grid-template-columns: minmax(0, 1fr); }
  .facts { gap: 28px; }
  .panel { padding: 28px 24px; }
  .waves { height: 72px; }
  .hero__visual { --horizon: 66px; width: 240px; }
  /* 手机两边只剩 60–75px，单词缩小、贴近手机，不能被屏幕边裁掉（360 宽也放得下） */
  .pill { font-size: 15px; padding: 7px 14px 9px; }
  .pill--a { left: -44px; } .pill--b { right: -40px; top: 31%; } .pill--c { right: -48px; } .pill--d { left: -40px; }
}

/* 公司全名 13 个字，手机上和导航放不进一行：只留名字，往下滑就是各区块 */
@media (max-width: 600px) {
  .nav { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
