/* ============================================================
   Style2 — "Modern Business" theme for Innomind
   Self-contained (no external CSS/JS). Light corporate look:
   deep navy ink, refined gold accent, slate neutrals.
   ============================================================ */

:root {
  --ink:      #0b1f3a;   /* deep navy — headings, header, footer */
  --ink-2:    #16324f;   /* secondary navy */
  --accent:   #c8a24b;   /* refined gold */
  --accent-d: #a9843a;   /* gold hover */
  --slate:    #56657a;   /* muted body text */
  --line:     #e4e8ee;   /* borders */
  --bg:       #f5f7fa;   /* page background */
  --surface:  #ffffff;   /* cards */
  --surface-2:#eef2f7;   /* subtle fills */
  --ok:       #1f7a54;
  --shadow:   0 1px 2px rgba(11,31,58,.06), 0 8px 24px rgba(11,31,58,.06);
  --shadow-h: 0 6px 16px rgba(11,31,58,.10), 0 18px 40px rgba(11,31,58,.12);
  --radius:   12px;
  --radius-s: 8px;
  --maxw:     1180px;
  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue",
          "PingFang SC", "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--ink-2); text-decoration: none; transition: color .15s; }
a:hover { color: var(--accent-d); }
img { max-width: 100%; display: block; }
h1,h2,h3,h4 { line-height: 1.25; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }

.s2-container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.s2-muted { color: var(--slate); }
.s2-center { text-align: center; }

/* ---------- Buttons ---------- */
.s2-btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .7em 1.4em; border-radius: var(--radius-s);
  font-weight: 600; font-size: .95rem; cursor: pointer;
  border: 1px solid transparent; transition: all .15s; white-space: nowrap;
}
.s2-btn-primary { background: var(--accent); color: #1a1300; }
.s2-btn-primary:hover { background: var(--accent-d); color: #fff; }
.s2-btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.s2-btn-ghost:hover { background: rgba(255,255,255,.12); color:#fff; }
.s2-btn-outline { background: transparent; color: var(--ink-2); border-color: var(--line); }
.s2-btn-outline:hover { border-color: var(--accent); color: var(--accent-d); }

/* ---------- Header ---------- */
.s2-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.s2-nav { display: flex; align-items: center; gap: 28px; height: 68px; }
.s2-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; color: var(--ink); }
.s2-brand .mark {
  width: 34px; height: 34px; border-radius: 8px; flex: none;
  background: linear-gradient(135deg, var(--ink), var(--ink-2));
  display: grid; place-items: center; color: var(--accent); font-weight: 800;
}
.s2-navlinks { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.s2-navlinks a { color: var(--slate); font-weight: 600; font-size: .95rem; padding: 6px 0; position: relative; }
.s2-navlinks a:hover, .s2-navlinks a.active { color: var(--ink); }
.s2-navlinks a.active::after {
  content:""; position:absolute; left:0; right:0; bottom:-2px; height:2px; background: var(--accent);
}
.s2-lang { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.s2-lang a { padding: 5px 12px; font-size: .82rem; font-weight: 700; color: var(--slate); }
.s2-lang a.active { background: var(--ink); color: #fff; }
.s2-burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; margin-left: auto; }
.s2-burger span { display:block; width:22px; height:2px; background: var(--ink); margin: 4px 0; }

/* ---------- Hero ---------- */
.s2-hero {
  background:
    radial-gradient(1200px 400px at 80% -10%, rgba(200,162,75,.18), transparent 60%),
    linear-gradient(160deg, var(--ink) 0%, var(--ink-2) 100%);
  color: #fff; padding: 84px 0 72px;
}
.s2-hero .eyebrow {
  display:inline-block; color: var(--accent); font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; font-size: .78rem; margin-bottom: 16px;
}
.s2-hero h1 { font-size: clamp(2rem, 4vw, 3.1rem); color: #fff; margin-bottom: .4em; }
.s2-hero p { font-size: 1.12rem; color: #c9d4e2; max-width: 640px; margin: 0 0 28px; }
.s2-hero .accent { color: var(--accent); }

/* search */
.s2-search { display: flex; gap: 10px; max-width: 560px; }
.s2-search input {
  flex: 1; padding: .85em 1.1em; border-radius: var(--radius-s);
  border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.08);
  color: #fff; font-size: 1rem; outline: none;
}
.s2-search input::placeholder { color: #a9b6c7; }
.s2-search input:focus { border-color: var(--accent); background: rgba(255,255,255,.14); }

/* hero stats */
.s2-hero-stats { display: flex; gap: 40px; margin-top: 44px; flex-wrap: wrap; }
.s2-hero-stats .num { font-size: 2rem; font-weight: 800; color: #fff; }
.s2-hero-stats .lbl { color: #a9b6c7; font-size: .9rem; }

/* ---------- Sections ---------- */
.s2-section { padding: 64px 0; }
.s2-section-head { margin-bottom: 34px; }
.s2-section-head .kicker { color: var(--accent-d); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .76rem; }
.s2-section-head h2 { font-size: 1.8rem; margin: 6px 0 4px; }
.s2-section-head p { color: var(--slate); margin: 0; }
.s2-head-row { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- Grid + Cards ---------- */
.s2-grid { display: grid; gap: 22px; grid-template-columns: repeat(4, 1fr); }
.s2-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 992px){ .s2-grid, .s2-grid.cols-3 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px){ .s2-grid, .s2-grid.cols-3 { grid-template-columns: 1fr; } }

.s2-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); transition: transform .18s, box-shadow .18s, border-color .18s;
  display: flex; flex-direction: column;
}
.s2-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-h); border-color: #d7ccae; }
.s2-card .photo { aspect-ratio: 4/5; background: var(--surface-2); overflow: hidden; }
.s2-card .photo img { width: 100%; height: 100%; object-fit: cover; }
.s2-card .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.s2-card .name { font-size: 1.08rem; font-weight: 700; margin: 0; }
.s2-card .excerpt { color: var(--slate); font-size: .9rem; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.s2-card .foot { margin-top: auto; padding-top: 6px; }

/* tags / badges */
.s2-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.s2-tag {
  font-size: .72rem; font-weight: 600; color: var(--ink-2);
  background: var(--surface-2); border: 1px solid var(--line);
  padding: 3px 9px; border-radius: 999px;
}
.s2-tag.gold { background: rgba(200,162,75,.12); border-color: rgba(200,162,75,.4); color: var(--accent-d); }

/* ---------- Category chips ---------- */
.s2-cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px,1fr)); gap: 14px; }
.s2-cat {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-s); box-shadow: var(--shadow); transition: all .15s;
}
.s2-cat:hover { border-color: var(--accent); transform: translateY(-2px); }
.s2-cat .c-name { font-weight: 700; color: var(--ink); }
.s2-cat .c-count { font-weight: 800; color: var(--accent-d); }

/* ---------- Stats tiles ---------- */
.s2-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 18px; }
.s2-stat {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow); text-align: center;
}
.s2-stat .n { font-size: 2.4rem; font-weight: 800; color: var(--ink); }
.s2-stat .l { color: var(--slate); font-weight: 600; }
.s2-bar { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.s2-bar > span { display:block; height:100%; background: linear-gradient(90deg, var(--accent), var(--accent-d)); }

/* ---------- Detail page ---------- */
.s2-detail { display: grid; grid-template-columns: 340px 1fr; gap: 40px; align-items: start; }
@media (max-width: 860px){ .s2-detail { grid-template-columns: 1fr; } }
.s2-detail .photo-wrap { position: sticky; top: 88px; }
.s2-detail .photo-wrap img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
.s2-detail h1 { font-size: 2rem; }
.s2-prose { color: #33404f; font-size: 1.02rem; }
.s2-prose p { margin: 0 0 1em; }
.s2-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); }
.s2-social { display:flex; gap:10px; flex-wrap:wrap; }

/* ---------- Pagination ---------- */
.s2-pager { display: flex; gap: 6px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.s2-pager a, .s2-pager span {
  min-width: 40px; text-align: center; padding: 8px 12px; border-radius: var(--radius-s);
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font-weight: 600;
}
.s2-pager a:hover { border-color: var(--accent); color: var(--accent-d); }
.s2-pager .cur { background: var(--ink); color: #fff; border-color: var(--ink); }
.s2-pager .dis { opacity: .4; pointer-events: none; }

/* ---------- Footer ---------- */
.s2-footer { background: var(--ink); color: #c1cddb; margin-top: 40px; }
.s2-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 40px; padding: 56px 0 34px; }
@media (max-width: 760px){ .s2-footer .cols { grid-template-columns: 1fr; gap: 28px; } }
.s2-footer h4 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; }
.s2-footer a { color: #c1cddb; }
.s2-footer a:hover { color: var(--accent); }
.s2-footer .fbrand { display:flex; align-items:center; gap:10px; font-weight:800; color:#fff; font-size:1.2rem; margin-bottom:12px; }
.s2-footer ul { list-style: none; padding: 0; margin: 0; }
.s2-footer li { margin-bottom: 8px; }
.s2-footer .bar { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; font-size: .85rem; color: #8ea0b4; text-align:center; }

/* ---------- Empty state ---------- */
.s2-empty { text-align:center; padding: 70px 20px; color: var(--slate); }
.s2-empty .big { font-size: 3rem; margin-bottom: 10px; }

/* ---------- Banner carousel (About) ---------- */
.s2-carousel { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-h); background: var(--ink); }
.s2-slides { position: relative; aspect-ratio: 21/9; }
@media (max-width: 700px){ .s2-slides { aspect-ratio: 16/10; } }
.s2-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; }
.s2-slide.active { opacity: 1; }
.s2-slide img { width: 100%; height: 100%; object-fit: cover; }
.s2-slide .cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 28px 22px; color: #fff;
  background: linear-gradient(transparent, rgba(11,31,58,.85)); font-weight: 600; font-size: 1.05rem;
}
.s2-cbtn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.85); color: var(--ink); font-size: 1.4rem; line-height: 1;
  display: grid; place-items: center; transition: background .15s;
}
.s2-cbtn:hover { background: #fff; }
.s2-cprev { left: 14px; } .s2-cnext { right: 14px; }
.s2-dots { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: 8px; }
.s2-dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; background: rgba(255,255,255,.5); cursor: pointer; padding: 0; }
.s2-dots button.active { background: var(--accent); width: 22px; border-radius: 999px; }

/* small utils */
.mt-0{margin-top:0}.mb-0{margin-bottom:0}
.s2-inline-search { display:flex; gap:10px; max-width:520px; }
.s2-inline-search input { flex:1; padding:.7em 1em; border:1px solid var(--line); border-radius:var(--radius-s); font-size:.95rem; outline:none; background:#fff; }
.s2-inline-search input:focus { border-color: var(--accent); }

@media (max-width: 820px){
  .s2-navlinks { display:none; }
  .s2-navlinks.open {
    display:flex; position:absolute; top:68px; left:0; right:0; flex-direction:column;
    background:#fff; border-bottom:1px solid var(--line); padding:14px 24px; gap:14px; box-shadow: var(--shadow);
  }
  .s2-navlinks.open a { padding: 4px 0; }
  .s2-navlinks.open .s2-lang { width: max-content; }
  .s2-burger { display:block; }
}
