/* ==========================================================================
   ORIENT STUDIO 站点 · 全站样式
   配色（双色）：深海军蓝 + 纯白，帆赛红点缀
   设计语言：玻璃拟态（Glassmorphism）
   ========================================================================== */

:root {
  /* 双色主调 */
  --bg-deep:      #0B1A2E;   /* 深海军蓝 —— 页面底色 */
  --bg-deep-2:    #12263F;   /* 次级底色 */
  --ink:          #FFFFFF;   /* 纯白 —— 文字 */
  --accent:       #D94A3D;   /* 帆赛红 —— 强调 */

  /* 模块主题色 */
  --c-race:       #D94A3D;
  --c-rrs:        #1C2F59;
  --c-sailing-log:#C87A3C;
  --c-maintenance:#2B8FD4;

  /* 玻璃拟态 */
  --glass-bg:     rgba(255, 255, 255, 0.06);
  --glass-bg-2:   rgba(255, 255, 255, 0.10);
  --glass-bd:     rgba(255, 255, 255, 0.14);
  --glass-hi:     rgba(255, 255, 255, 0.22);

  /* 文字层级 */
  --t-1:  #FFFFFF;
  --t-2:  rgba(255, 255, 255, 0.78);
  --t-3:  rgba(255, 255, 255, 0.55);
  --t-4:  rgba(255, 255, 255, 0.35);

  --radius:    18px;
  --radius-sm: 12px;
  --shadow:    0 8px 32px rgba(0, 0, 0, 0.35);
  --maxw:      1180px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg-deep);
  color: var(--t-1);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* 背景：深色渐变 + 光晕，模拟海面氛围 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(900px 500px at 15% -5%, rgba(43, 143, 212, 0.16), transparent 65%),
    radial-gradient(800px 480px at 88% 8%, rgba(217, 74, 61, 0.12), transparent 62%),
    linear-gradient(180deg, #0B1A2E 0%, #081322 100%);
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: -1;
  pointer-events: none;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

a { color: inherit; text-decoration: none; }

/* ============================ 顶栏 ============================ */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11, 26, 46, 0.72);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-bottom: 1px solid var(--glass-bd);
}
.topbar__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 14px 22px;
  display: flex; align-items: center; gap: 20px;
  min-width: 0;
}
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand__logo { height: 38px; width: auto; display: block; }
.brand__name {
  font-size: 15px; font-weight: 600; letter-spacing: 0.06em;
  color: var(--t-2); text-transform: uppercase;
}
.topbar__nav { margin-left: auto; display: flex; align-items: center; gap: 8px; min-width: 0; }
.topbar__link {
  padding: 7px 14px; border-radius: 999px; font-size: 14px;
  color: var(--t-2); transition: all .2s; white-space: nowrap;
}
.topbar__link:hover { background: var(--glass-bg-2); color: var(--t-1); }

/* 搜索框 */
.search { position: relative; min-width: 0; }
.search__input {
  width: 190px; max-width: 100%; padding: 8px 14px 8px 34px;
  border-radius: 999px; border: 1px solid var(--glass-bd);
  background: var(--glass-bg); color: var(--t-1);
  font-size: 14px; font-family: var(--font);
  outline: none; transition: all .25s;
}
.search__input::placeholder { color: var(--t-4); }
.search__input:focus {
  width: 240px; border-color: var(--glass-hi);
  background: var(--glass-bg-2);
}
.search__icon {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 14px; height: 14px; opacity: .5; pointer-events: none;
}

/* 搜索结果下拉 */
.search__results {
  position: absolute; top: calc(100% + 8px); right: 0; width: 320px;
  max-width: calc(100vw - 44px);
  background: rgba(18, 38, 63, 0.97);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-bd); border-radius: var(--radius-sm);
  box-shadow: var(--shadow); overflow: hidden;
  display: none; max-height: 380px; overflow-y: auto;
  z-index: 120;
}
.search__results.on { display: block; }
.search__item {
  display: block; padding: 11px 15px; border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background .15s;
}
.search__item:last-child { border-bottom: none; }
.search__item:hover { background: var(--glass-bg-2); }
.search__item-title { font-size: 14px; color: var(--t-1); }
.search__item-meta { font-size: 12px; color: var(--t-3); margin-top: 2px; }
.search__empty { padding: 18px 15px; text-align: center; color: var(--t-3); font-size: 13px; }

/* ============================ 英雄区 ============================ */
.hero { padding: 74px 0 46px; text-align: center; }
.hero__title {
  font-size: clamp(28px, 5vw, 44px); font-weight: 700;
  letter-spacing: -0.01em; line-height: 1.25;
  background: linear-gradient(120deg, #FFFFFF 25%, #A9C8E8 75%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 16px;
}
.hero__sub {
  font-size: clamp(14px, 2.2vw, 17px); color: var(--t-3);
  letter-spacing: 0.16em; font-weight: 400;
}
.hero__line {
  width: 64px; height: 3px; margin: 26px auto 0; border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), rgba(217,74,61,0.15));
}

/* ============================ 分区标题 ============================ */
.sec { padding: 30px 0 10px; }
.sec__head {
  display: flex; align-items: baseline; gap: 14px; margin-bottom: 24px;
}
.sec__title { font-size: 19px; font-weight: 600; letter-spacing: 0.02em; }
.sec__hint { font-size: 13px; color: var(--t-4); }

/* ============================ 小程序卡片墙 ============================ */
.apps {
  display: grid; gap: 22px;
  grid-template-columns: repeat(4, 1fr);
  align-items: stretch;
  padding-bottom: 20px;
}

.app-card {
  position: relative;
  background: var(--glass-bg);
  border: 1px solid var(--glass-bd);
  border-radius: var(--radius);
  padding: 26px 22px 22px;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: var(--shadow);
  transition: transform .3s cubic-bezier(.22,1,.36,1), border-color .3s, box-shadow .3s;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; overflow: hidden;
}
.app-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: var(--mod, var(--accent));
  opacity: .85;
}
.app-card:hover {
  transform: translateY(-6px);
  border-color: var(--glass-hi);
  box-shadow: 0 18px 46px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.06);
}
.app-card__icon {
  width: 82px; height: 82px; object-fit: contain;
  margin-bottom: 16px;
  filter: drop-shadow(0 6px 16px rgba(0,0,0,0.4));
  flex-shrink: 0;
}
.app-card__name {
  font-size: 17px; font-weight: 600; letter-spacing: 0.01em;
  margin-bottom: 6px; color: var(--t-1);
  min-height: 26px;
}
.app-card__tag {
  font-size: 12.5px; color: var(--t-3); line-height: 1.5;
  height: 38px; margin-bottom: 12px;
  display: flex; align-items: center; justify-content: center;
}
.app-card__ver {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; color: var(--t-4);
  height: 20px; padding: 0 8px; border-radius: 999px;
  border: 1px solid var(--glass-bd); margin-bottom: 16px;
}
.app-card__ver--ghost {
  visibility: hidden;
}
.app-card__sun {
  width: 132px; height: 132px; object-fit: contain;
  border-radius: 10px; background: #fff; padding: 4px;
  margin-bottom: 16px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.28);
}
.app-card__cta {
  margin-top: auto; display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; color: var(--mod, var(--accent)); font-weight: 500;
}
.app-card__cta::after { content: "→"; transition: transform .25s; }
.app-card:hover .app-card__cta::after { transform: translateX(4px); }

/* ============================ 资源区 ============================ */
.res {
  display: grid; gap: 18px; grid-template-columns: repeat(2, 1fr);
  padding-bottom: 30px;
}
.res-item {
  display: flex; align-items: center; gap: 16px;
  background: var(--glass-bg); border: 1px solid var(--glass-bd);
  border-radius: var(--radius-sm); padding: 18px 20px;
  backdrop-filter: blur(12px);
  transition: all .25s;
}
.res-item:hover { background: var(--glass-bg-2); border-color: var(--glass-hi); }
.res-item__ico {
  width: 42px; height: 42px; flex-shrink: 0; border-radius: 10px;
  display: grid; place-items: center; font-size: 20px;
  background: rgba(255,255,255,0.07); border: 1px solid var(--glass-bd);
}
.res-item__t { font-size: 15px; font-weight: 500; }
.res-item__d { font-size: 12.5px; color: var(--t-3); margin-top: 2px; }

/* ============================ 页脚 ============================ */
.foot {
  border-top: 1px solid var(--glass-bd);
  margin-top: 40px; padding: 30px 0 40px;
  background: rgba(0,0,0,0.18);
}
.foot__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 22px;
  display: flex; flex-wrap: wrap; gap: 14px 26px;
  align-items: center; justify-content: space-between;
}
.foot__txt { font-size: 12.5px; color: var(--t-4); }
.foot__links { display: flex; gap: 20px; flex-wrap: wrap; }
.foot__links a { font-size: 12.5px; color: var(--t-3); transition: color .2s; }
.foot__links a:hover { color: var(--t-1); }
.beian { font-size: 12.5px; color: var(--t-4); }
.beian a { color: var(--t-4); }
.beian a:hover { color: var(--t-2); }

/* ============================ 模块详情页 ============================ */
.mod-hero {
  padding: 46px 0 34px;
  display: flex; align-items: center; gap: 26px;
  border-bottom: 1px solid var(--glass-bd);
}
.mod-hero__icon { width: 96px; height: 96px; object-fit: contain; flex-shrink: 0;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.42)); }
.mod-hero__body { flex: 1; min-width: 0; }
.mod-hero__name { font-size: 27px; font-weight: 700; margin-bottom: 6px; }
.mod-hero__tag { font-size: 14.5px; color: var(--t-3); margin-bottom: 10px; }
.mod-hero__meta { display: flex; gap: 10px; flex-wrap: wrap; }
.chip {
  font-size: 11.5px; padding: 3px 10px; border-radius: 999px;
  background: var(--glass-bg-2); border: 1px solid var(--glass-bd);
  color: var(--t-2);
}
.mod-hero__sun { width: 120px; height: 120px; flex-shrink: 0;
  border-radius: 10px; background: #fff; padding: 4px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3); }

/* 标签页 */
.tabs {
  display: flex; gap: 6px; margin: 26px 0 22px;
  border-bottom: 1px solid var(--glass-bd); padding-bottom: 0;
}
.tab {
  padding: 10px 20px; font-size: 14.5px; color: var(--t-3);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: all .22s; cursor: pointer; background: none; border-top: 0;
  border-left: 0; border-right: 0; font-family: var(--font);
}
.tab:hover { color: var(--t-2); }
.tab.on { color: var(--t-1); border-bottom-color: var(--mod, var(--accent)); font-weight: 500; }

.panel { display: none; padding-bottom: 40px; }
.panel.on { display: block; animation: fade .3s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* 内容块 */
.blk { margin-bottom: 26px; }
.blk__t {
  font-size: 16px; font-weight: 600; margin-bottom: 12px;
  display: flex; align-items: center; gap: 9px;
}
.blk__t::before {
  content: ""; width: 3px; height: 15px; border-radius: 2px;
  background: var(--mod, var(--accent)); flex-shrink: 0;
}
.steps { list-style: none; counter-reset: st; }
.steps li {
  counter-increment: st; position: relative;
  padding: 9px 0 9px 36px; font-size: 14.5px; color: var(--t-2);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.steps li:last-child { border-bottom: none; }
.steps li::before {
  content: counter(st); position: absolute; left: 0; top: 10px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--glass-bg-2); border: 1px solid var(--glass-bd);
  font-size: 11.5px; color: var(--t-2);
  display: grid; place-items: center; font-weight: 600;
}
.para { font-size: 14.5px; color: var(--t-2); line-height: 1.85; }
.para + .para { margin-top: 12px; }

/* 字段表 */
.ftable { width: 100%; border-collapse: collapse; font-size: 14px; }
.ftable th, .ftable td {
  text-align: left; padding: 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.ftable th {
  color: var(--t-3); font-weight: 500; font-size: 12.5px;
  letter-spacing: 0.04em; text-transform: uppercase;
  background: rgba(255,255,255,0.03);
}
.ftable td { color: var(--t-2); }
.ftable td:first-child { color: var(--t-1); font-weight: 500; white-space: nowrap; }
.ftable tr:last-child td { border-bottom: none; }

/* FAQ 折叠 */
.faq { border: 1px solid var(--glass-bd); border-radius: var(--radius-sm);
  overflow: hidden; background: var(--glass-bg); margin-bottom: 12px; }
.faq__q {
  padding: 15px 18px; font-size: 14.5px; cursor: pointer;
  display: flex; align-items: center; gap: 12px; color: var(--t-1);
  transition: background .2s;
}
.faq__q:hover { background: var(--glass-bg-2); }
.faq__q::after {
  content: "+"; margin-left: auto; font-size: 17px; color: var(--t-3);
  transition: transform .25s; flex-shrink: 0;
}
.faq.on .faq__q::after { transform: rotate(45deg); }
.faq__a {
  max-height: 0; overflow: hidden; transition: max-height .3s ease;
  font-size: 14px; color: var(--t-2); line-height: 1.8;
}
.faq.on .faq__a { max-height: 500px; }
.faq__a-inner { padding: 0 18px 16px 18px; }

/* 提示条 */
.note {
  display: flex; gap: 10px; padding: 13px 16px; border-radius: var(--radius-sm);
  background: rgba(217,74,61,0.09); border: 1px solid rgba(217,74,61,0.24);
  font-size: 13.5px; color: var(--t-2); line-height: 1.7;
}
.note__i { color: var(--accent); flex-shrink: 0; font-weight: 700; }

/* 视频占位 */
.vwrap {
  position: relative; width: 100%; aspect-ratio: 16/9;
  background: rgba(0,0,0,0.35); border: 1px dashed var(--glass-bd);
  border-radius: var(--radius-sm); display: grid; place-items: center;
  color: var(--t-4); font-size: 13.5px; text-align: center; padding: 20px;
}

/* 空态 */
.empty {
  padding: 46px 20px; text-align: center; color: var(--t-4); font-size: 14px;
  border: 1px dashed var(--glass-bd); border-radius: var(--radius);
}

/* ============================ 响应式 ============================ */
@media (max-width: 980px) {
  .apps { grid-template-columns: repeat(2, 1fr); }
  .res  { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .hero { padding: 40px 0 26px; }
  .hero__title { font-size: 25px; }
  .hero__sub { font-size: 13px; letter-spacing: 0.1em; }

  .apps { grid-template-columns: 1fr; gap: 16px; }
  .app-card { padding: 22px 18px 18px; }
  .app-card__sun { width: 118px; height: 118px; }

  .mod-hero { flex-direction: column; align-items: flex-start; gap: 18px; }
  .mod-hero__sun { width: 100px; height: 100px; }
  .mod-hero__name { font-size: 22px; }

  .tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { padding: 10px 14px; white-space: nowrap; }

  /* 顶栏：只留 Logo + 搜索，隐藏文字导航，彻底防溢出 */
  .topbar__inner { padding: 11px 14px; gap: 8px; }
  .brand { gap: 0; }
  .brand__logo { height: 28px; }
  .topbar { overflow: hidden; }
  .topbar__nav { gap: 0; flex: 1 1 auto; min-width: 0; justify-content: flex-end; }
  .topbar__nav .topbar__link { display: none; }
  .search { flex: 0 1 168px; min-width: 0; }
  .search__input { width: 100%; min-width: 0; font-size: 12.5px;
    padding: 7px 10px 7px 28px; }
  .search__input:focus { width: 100%; }
  .search__icon { left: 9px; width: 11px; height: 11px; }
  .search__results { width: calc(100vw - 28px); right: -6px; }

  .sec__head { flex-direction: column; align-items: flex-start; gap: 4px; }
  .sec__title { font-size: 17px; }

  .foot { padding: 24px 0 32px; }
  .foot__inner { flex-direction: column; align-items: flex-start; gap: 12px; }

  .ftable { font-size: 13px; }
  .ftable th, .ftable td { padding: 8px 10px; }
  .ftable td:first-child { white-space: normal; }

  .blk__t { font-size: 15px; }
  .para, .steps li { font-size: 14px; }
  .steps li { padding-left: 32px; }

  /* 合规页/联系页的 3 列资源块改单列 */
  .res[style*="repeat(3"] { grid-template-columns: 1fr !important; }
  .apps[style*="repeat(4"] { grid-template-columns: 1fr !important; }
}

/* 极小屏再收一档 */
@media (max-width: 380px) {
  .hero__title { font-size: 22px; }
  .brand__logo { height: 26px; }
  .app-card__sun { width: 104px; height: 104px; }
}
