/* GLIRA site — cleaned build for SVOCF + sibling pages */

:root{
  --bg:#0b1220;
  --card:#0f1b2b;
  --soft:#12263b;
  --text:#eaf1ff;
  --muted:#b6c4db;
  --line:rgba(255,255,255,.10);
  --shadow:0 18px 40px rgba(0,0,0,.45);
  --radius:18px;
  --max:1100px;

  /* FLOURISH bars */
  --tileTallH:540px;
  --barImgH:calc(var(--tileTallH) * .6667);
  --barImgW:calc(var(--barImgH) * 1.35);
}

*{box-sizing:border-box}
html,body{height:100%}

body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
  background:
    radial-gradient(1000px 600px at 30% 10%, rgba(26,92,116,.35), transparent 60%),
    var(--bg);
  color:var(--text);
  line-height:1.55;
}

a{color:inherit}
img{max-width:100%;display:block}
.container{max-width:var(--max);margin:0 auto;padding:0 18px}

/* Nav */
.nav{
  position:sticky;
  top:0;
  z-index:40;
  background:rgba(9,14,22,.70);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}
.navInner{
  display:flex;
  gap:12px;
  align-items:center;
  flex-wrap:wrap;
  padding:10px 0;
}
.navLink{
  text-decoration:none;
  font-size:14px;
  padding:8px 10px;
  border-radius:12px;
  color:var(--muted);
  border:1px solid transparent;
  transition:transform .15s ease, background .15s ease, border-color .15s ease;
}
.navLink:hover{
  background:rgba(255,255,255,.06);
  transform:translateY(-1px);
}
.navLink.isActive{
  color:var(--text);
  border-color:rgba(255,255,255,.16);
  background:rgba(255,255,255,.05);
}

/* Hero */
.hero{
  position:relative;
  min-height:78vh;
  display:flex;
  align-items:flex-end;
}
.heroVideo,
.heroImg{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
}
.heroOverlay{
  position:absolute;
  inset:0;
  background:linear-gradient(
    180deg,
    rgba(0,0,0,.04),
    rgba(0,0,0,.14) 70%,
    rgba(0,0,0,.24)
  );
}
.heroInner{
  position:relative;
  width:100%;
  padding:34px 0 30px;
}
.brandTopLeft{
  position:absolute;
  top:14px;
  left:16px;
  z-index:2;
  font-weight:700;
  letter-spacing:.22em;
  font-size:12px;
  opacity:.85;
}
.heroTitle{
  margin:0;
  font-size:44px;
  letter-spacing:.02em;
}
.heroSubline{
  margin:10px 0 0;
  color:rgba(234,241,255,.90);
  max-width:860px;
}
.heroCTA{
  margin-top:16px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 14px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(255,255,255,.06);
  text-decoration:none;
  font-weight:600;
  font-size:14px;
}
.btn:hover{background:rgba(255,255,255,.10)}
.btn.primary{
  background:rgba(27,173,196,.18);
  border-color:rgba(27,173,196,.35);
}

/* Sections & cards */
.section{padding:26px 0}
.card{
  background:linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}
.pad{padding:18px}
.badge{
  display:inline-block;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(255,255,255,.05);
  font-size:12px;
  color:var(--muted);
  letter-spacing:.10em;
  text-transform:uppercase;
}
.h2{
  font-size:22px;
  margin:0;
}
.h3{
  font-size:16px;
  margin:0;
}
.p{
  margin:10px 0 0;
  color:rgba(234,241,255,.92);
}
.hr{
  height:1px;
  background:var(--line);
  margin:16px 0;
}

/* Tiles */
.tileGrid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
}
.tile{
  display:block;
  text-decoration:none;
  border-radius:22px;
  overflow:hidden;
  border:1px solid var(--line);
  background:rgba(255,255,255,.03);
  box-shadow:var(--shadow);
  cursor:pointer;
  transition:transform .15s ease, border-color .15s ease, background .15s ease;
}
.tile:hover{
  transform:translateY(-3px);
  border-color:rgba(255,255,255,.20);
  background:rgba(255,255,255,.05);
}
.tile img{
  aspect-ratio:3/4;
  object-fit:cover;
}
.tileBody{padding:14px}
.tileTitle{
  font-size:16px;
  font-weight:750;
}
.tileHint{
  margin-top:6px;
  font-size:13px;
  color:var(--muted);
}
.roadGrid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
}
.road{cursor:pointer}

/* Bars */
.barList{
  display:flex;
  flex-direction:column;
  gap:16px;
}
.bar{
  display:grid;
  grid-template-columns:var(--barImgW) 1fr;
  grid-template-rows:auto auto;
  gap:18px;
  align-items:start;
  border-radius:22px;
  overflow:hidden;
  border:1px solid var(--line);
  background:rgba(255,255,255,.03);
  box-shadow:var(--shadow);
  cursor:pointer;
  padding:14px;
  transition:transform .15s ease, border-color .15s ease, background .15s ease;
}
.bar:hover{
  transform:translateY(-2px);
  border-color:rgba(255,255,255,.20);
  background:rgba(255,255,255,.05);
}
.bar:focus{
  outline:2px solid rgba(27,173,196,.55);
  outline-offset:2px;
}
.barImg{
  width:var(--barImgW);
  height:var(--barImgH);
  border-radius:18px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.14);
  background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(0,0,0,.25));
  display:flex;
  align-items:center;
  justify-content:center;
}
.barImg img{
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:center;
}
.barMain{
  padding:6px 0 0;
  position:static;
}
.barTitle{
  font-size:18px;
  font-weight:900;
  letter-spacing:.02em;
}
.barHint{
  margin-top:6px;
  font-size:14px;
  color:var(--muted);
}
.barTeaser{
  margin-top:6px;
  font-size:14px;
  color:rgba(234,241,255,.90);
}
.ellipsis{opacity:.8}
.barDrop{
  grid-column:1 / -1;
  position:static;
  margin-top:8px;
  display:none;
}
.bar:hover .barDrop{display:block}
.bar.isPinned .barDrop{display:block}
.barDropInner{
  border-radius:16px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(10,18,28,.92);
  padding:14px;
}
.barDropTitle{
  font-weight:900;
  font-size:14px;
}
.barDropText{
  margin-top:8px;
  font-size:14px;
  line-height:1.7;
  color:rgba(234,241,255,.92);
}

/* Document list */
.docList{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.docRow{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding:12px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.03);
}
.docName{
  font-size:14px;
  color:rgba(234,241,255,.95);
}
.docMeta{
  font-size:12px;
  color:var(--muted);
  margin-top:2px;
}
.docBtn{
  flex:0 0 auto;
  padding:9px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(255,255,255,.06);
  text-decoration:none;
  font-weight:700;
  font-size:13px;
}
.docBtn:hover{background:rgba(255,255,255,.10)}

/* Fold */
.foldText{
  margin-top:10px;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  color:rgba(234,241,255,.92);
}
.fold.isOpen .foldText{-webkit-line-clamp:unset}
.foldBtn{
  margin-top:12px;
  cursor:pointer;
}

/* Footer */
.footer{
  border-top:1px solid var(--line);
  padding:18px 0;
  background:rgba(9,14,22,.55);
}
.footerInner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
}
.footerLink{
  text-decoration:none;
  color:var(--muted);
}
.footerLink:hover{color:var(--text)}

/* ===== SVOCF immersive feature blocks ===== */
/* content-level banners inside the narrow container */
.featureBlock{
  overflow:hidden;
  margin-top:28px;
  border-radius:24px;
  border:1px solid rgba(255,255,255,.10);
  background:linear-gradient(180deg, rgba(12,18,28,.96), rgba(15,22,34,.96));
  box-shadow:0 20px 48px rgba(0,0,0,.34);
}

.featureMedia{
  position:relative;
  min-height:460px;
  overflow:hidden;
  background:#152233;
}

.featureMedia img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center center;
}

.featureOverlay{
  position:absolute;
  inset:0;
  background:linear-gradient(
    180deg,
    rgba(4,10,18,.16) 0%,
    rgba(4,10,18,.18) 30%,
    rgba(4,10,18,.42) 68%,
    rgba(4,10,18,.72) 100%
  );
  pointer-events:none;
}

/* frosted text panel on image */
.featureTextBox{
  position:absolute;
  left:28px;
  right:28px;
  bottom:28px;
  z-index:2;
  max-width:900px;
  padding:24px 26px 22px;
  border-radius:22px;
  background:linear-gradient(180deg, rgba(10,18,30,.5), rgba(10,18,30,.8));
  border:1px solid rgba(255,255,255,.08);
  backdrop-filter:blur(20px);
  -webkit-backdrop-filter:blur(20px);
  box-shadow:0 6px 18px rgba(0,0,0,.12);
}

.featureKicker{
  margin:0 0 10px 0;
  color:rgba(234,241,255,.76);
  font-size:12px;
  line-height:1;
  letter-spacing:.18em;
  text-transform:uppercase;
  font-weight:700;
  text-shadow:0 1px 6px rgba(0,0,0,.18);
}

.featureTitle{
  margin:0;
  color:#fff;
  font-size:clamp(30px, 3vw, 48px);
  line-height:1.02;
  font-weight:800;
  letter-spacing:.04em;
  text-transform:uppercase;
  text-shadow:0 2px 10px rgba(0,0,0,.28);
}

.featureDesc{
  margin:14px 0 0 0;
  color:rgba(234,241,255,.94);
  font-size:15px;
  line-height:1.7;
  max-width:820px;
  text-shadow:0 1px 6px rgba(0,0,0,.18);
}

.featureBody{
  padding:22px 22px 24px;
}

.featureBody .p{
  color:rgba(234,241,255,.92);
  text-align:justify;
  text-justify:inter-ideograph;
  hyphens:auto;
}

.featureBody .p:first-child{
  margin-top:0;
}

/* Responsive */
@media (max-width:980px){
  .heroTitle{font-size:38px}

  .tileGrid,
  .roadGrid{
    grid-template-columns:1fr;
    gap:12px;
  }

  :root{
    --tileTallH:60vh;
    --barImgH:calc(var(--tileTallH) * .6667);
    --barImgW:100%;
  }

  .bar{
    grid-template-columns:1fr;
    grid-template-rows:auto auto auto;
  }

  .barImg{
    width:100%;
    height:var(--barImgH);
  }

  .bar:hover .barDrop{display:none}
  .bar.isPinned .barDrop{display:block}
}

@media (max-width:900px){
  .featureMedia{
    min-height:340px;
  }

  .featureTextBox{
    left:18px;
    right:18px;
    bottom:18px;
    padding:18px 18px 16px;
    border-radius:18px;
  }

  .featureTitle{
    font-size:clamp(24px, 6vw, 34px);
  }

  .featureDesc{
    margin-top:10px;
    font-size:14px;
    line-height:1.6;
  }

  .featureBody{
    padding:18px;
  }
}

@media (max-width:520px){
  .hero{min-height:72vh}
  .heroInner{padding:28px 0 26px}
  .heroTitle{font-size:32px}
  .navInner{gap:8px}
  .navLink{padding:7px 9px}

  .featureMedia{
    min-height:300px;
  }

  .featureTextBox{
    left:14px;
    right:14px;
    bottom:14px;
    padding:16px 16px 14px;
  }

  .featureKicker{
    font-size:11px;
    letter-spacing:.14em;
  }
}
.izyworldPage .heroSubline,
.izyworldPage .p,
.izyworldPage .barTeaser,
.izyworldPage .barDropText {
  text-align: justify;
  line-height: 1.8;
}

.izyworldPage .p,
.izyworldPage .barDropText {
  max-width: 920px;
}

.izyworldPage .heroTitle,
.izyworldPage .h2,
.izyworldPage .barTitle,
.izyworldPage .barDropTitle,
.izyworldPage .tileTitle {
  text-align: left;
}
/* =========================
   MOBILE OVERHAUL PATCH
   paste at end of styles.css
   ========================= */

/* 0) global tightening */
@media (max-width: 520px){
  .container{ padding: 0 14px; }
  .section{ padding: 20px 0; }
  .pad{ padding: 14px; }
  .h2{ font-size: 20px; }
  .p{ font-size: 14px; line-height: 1.65; }
}

/* 1) NAV: single-row scroll instead of wrapping */
@media (max-width: 980px){
  .navInner{
    flex-wrap: nowrap !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 10px 0;
    gap: 8px;
  }
  .navInner::-webkit-scrollbar{ display:none; }
  .navLink{
    white-space: nowrap;
    flex: 0 0 auto;
    font-size: 13px;
    padding: 7px 10px;
    border-radius: 12px;
  }
}

/* 2) HERO: better height + typography */
@media (max-width: 520px){
  .hero{ min-height: 62vh !important; }   /* 原来72–78vh偏高 */
  .heroInner{ padding: 22px 0 20px; }
  .brandTopLeft{ top: 10px; left: 12px; font-size: 11px; }
  .heroTitle{ font-size: 30px; letter-spacing: .01em; }
  .heroSubline{ font-size: 14px; line-height: 1.6; }
  .heroCTA{ gap: 8px; }
  .btn{ padding: 10px 12px; border-radius: 14px; }
}

/* 3) TILE/ROAD cards: image size and text spacing */
@media (max-width: 520px){
  .tile{ border-radius: 18px; }
  .tile img{
    aspect-ratio: 16/10;        /* 3/4 在手机太“高”，改更横向 */
    width: 100%;
    object-fit: cover;
  }
  .tileBody{ padding: 12px; }
  .tileTitle{ font-size: 15px; }
  .tileHint{ font-size: 13px; line-height: 1.55; }
}

/* 4) BAR list (FLOURISH): phone-friendly layout + make drop readable */
@media (max-width: 980px){
  :root{
    --tileTallH: auto;          /* 避免基于vh计算导致怪异高度 */
    --barImgW: 100%;
    --barImgH: 210px;           /* 统一一个手机友好高度 */
  }

  .bar{ padding: 12px; border-radius: 18px; gap: 12px; }
  .barImg{ height: var(--barImgH) !important; border-radius: 16px; }
  .barImg img{ object-fit: cover; }       /* contain 容易出现“太小留白” */

  /* 手机上没有 hover：默认让内容可读（如果你已有JS切 isPinned，则不影响） */
  .barDrop{ display: block; }              /* 让详情默认可见，避免手机看不到 */
  .barDropInner{ padding: 12px; border-radius: 14px; }
  .barDropText{ font-size: 14px; line-height: 1.75; }
}

/* 如果你不想“默认展开”，把上面 .barDrop{display:block;} 改成下面这种更克制：
@media (max-width: 980px){
  .barDrop{ display:none; }
  .bar.isPinned .barDrop{ display:block; }
}
*/

/* 5) DOC LIST: prevent overflow, stack button */
@media (max-width: 520px){
  .docRow{
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .docName{
    word-break: break-word;
    overflow-wrap: anywhere;
    line-height: 1.45;
  }
  .docBtn{
    width: 100%;
    text-align: center;
  }
}

/* 6) FEATURE blocks on SVOCF: reduce visual heaviness */
@media (max-width: 520px){
  .featureBlock{ border-radius: 18px; }
  .featureMedia{ min-height: 240px; }
  .featureTextBox{
    left: 12px; right: 12px; bottom: 12px;
    padding: 14px;
    border-radius: 16px;
  }
  .featureTitle{ letter-spacing: .03em; }
  .featureDesc{ font-size: 14px; line-height: 1.6; }
  .featureBody{ padding: 14px; }
}
.brandTopLeft{
  display:flex;
  align-items:center;
  gap:10px;
}

.brandMark{
  width:22px;
  height:22px;
  border-radius:6px;     /* 如果你想圆形就改成 999px */
  object-fit:contain;
  opacity:.95;
}

.brandWord{
  font-weight:700;
  letter-spacing:.22em;
  font-size:12px;
  opacity:.85;
}
