/* iLGQ1994小站 · 与冰粒题库统一的 HE 染色视觉语言
   苏木精 ink #312B52 · 伊红 eosin #C24D6E · 天蓝 moss #2E86C1 · 切片纸 paper #FAF7F5 */
:root {
  --ink: #312B52;
  --ink-2: #4A4370;
  --eosin: #C24D6E;
  --eosin-soft: #F9E7EC;
  --moss: #2E86C1;
  --moss-soft: #E3F1FA;
  --paper: #FAF7F5;
  --glass: #FFFFFF;
  --line: #E7E1EA;
  --haze: #8B85A6;
  --serif: Georgia, "Times New Roman", "STZhongsong", serif;
  --sans: -apple-system, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  --shadow: 0 1px 2px rgba(49, 43, 82, .06), 0 4px 16px rgba(49, 43, 82, .05);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 15.5px; line-height: 1.7; }
a { color: inherit; }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 18px; }

/* 顶栏 */
.topbar { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; gap: 14px; height: 54px; }
.brand { display: flex; align-items: center; gap: 9px; font-family: var(--serif); font-weight: 800; font-size: 17px; text-decoration: none; letter-spacing: .5px; }
.brand .avatar { width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--line); object-fit: cover; }
.hamburger { display: none; width: 38px; height: 38px; margin-left: -8px; border-radius: 11px; align-items: center; justify-content: center; color: var(--ink-2); background: transparent; border: none; flex-shrink: 0; }
.topnav { margin-left: auto; display: flex; gap: 4px; overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 62vw; }
.topnav a { flex-shrink: 0; padding: 7px 11px; border-radius: 10px; font-size: 13.5px; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.topnav a:hover { background: #F1EDF5; }
@media (max-width: 899px) {
  .hamburger { display: inline-flex; }
  .topnav { display: none; }
}

/* 侧边栏（手机端） */
.sb-mask { position: fixed; inset: 0; background: rgba(49, 43, 82, .35); z-index: 49; opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.sb-mask.show { opacity: 1; pointer-events: auto; }
.sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 236px; z-index: 50; background: var(--glass); border-right: 1px solid var(--line); transform: translateX(-100%); transition: transform .2s ease; box-shadow: 4px 0 24px rgba(49, 43, 82, .08); display: flex; flex-direction: column; padding: 18px 12px 12px; }
.sidebar.open { transform: none; }
@media (min-width: 900px) { .sidebar, .sb-mask { display: none !important; } }
.sb-head { display: flex; align-items: center; gap: 11px; padding: 4px 10px 14px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.sb-head .avatar { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line); object-fit: cover; }
.sb-title { font-family: var(--serif); font-weight: 800; font-size: 16px; letter-spacing: .5px; }
.sb-motto { font-size: 11px; color: var(--haze); }
.sb-nav a { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 11px; margin-bottom: 2px; color: var(--ink-2); font-size: 14.5px; text-decoration: none; }
.sb-nav a:hover { background: #F1EDF5; }
.sb-nav a svg { width: 16px; height: 16px; flex-shrink: 0; }
.sb-foot { margin-top: auto; font-size: 11.5px; color: var(--haze); padding: 10px 12px 4px; border-top: 1px solid var(--line); }

/* 首页 */
.hero { padding: 30px 0 8px; }
.hero .motto { font-size: 13px; color: var(--haze); letter-spacing: 1px; margin-bottom: 10px; }
.hero-card { position: relative; display: block; background: var(--glass); border: 1px solid var(--line); border-radius: 18px; padding: 26px 24px 24px; text-decoration: none; box-shadow: var(--shadow); overflow: hidden; }
.hero-card::before { content: ""; position: absolute; left: 24px; right: 24px; top: 0; height: 4px; border-radius: 0 0 99px 99px; background: linear-gradient(90deg, var(--ink) 0 30%, var(--eosin) 55%, #E8B4C4 75%, transparent); opacity: .85; }
.hero-card .hc-kicker { font-size: 12px; color: var(--haze); letter-spacing: 2px; margin: 6px 0 8px; }
.hero-card h1 { margin: 0; font-family: var(--serif); font-size: 30px; letter-spacing: 1px; }
.hero-card .hc-desc { color: var(--ink-2); font-size: 14px; margin: 10px 0 18px; }
.hero-card .hc-desc b { color: var(--eosin); }
.hc-btn { display: inline-block; padding: 12px 34px; border-radius: 999px; background: linear-gradient(135deg, #3B9AE1, #2E86C1); color: #fff; font-weight: 700; font-size: 15px; box-shadow: 0 6px 20px rgba(46, 134, 193, .38); }
.hc-arrow { position: absolute; right: 22px; bottom: 22px; color: var(--haze); }

.section-label { margin: 28px 2px 12px; font-size: 13px; font-weight: 700; color: var(--haze); letter-spacing: 2px; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile { display: block; background: var(--glass); border: 1px solid var(--line); border-radius: 16px; padding: 18px; text-decoration: none; box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease; }
.tile:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(49, 43, 82, .10); }
.tile .t-ic { width: 38px; height: 38px; border-radius: 11px; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.tile .t-ic svg { width: 19px; height: 19px; }
.tile .t-ic.c1 { background: var(--eosin-soft); color: var(--eosin); }
.tile .t-ic.c2 { background: var(--moss-soft); color: var(--moss); }
.tile .t-ic.c3 { background: #F1EDF5; color: var(--ink); }
.tile h2 { margin: 0 0 4px; font-size: 16.5px; }
.tile p { margin: 0; font-size: 12.5px; color: var(--haze); line-height: 1.55; }

.home-foot { text-align: center; font-size: 12px; color: var(--haze); padding: 34px 0 26px; }

/* 子页面 */
.page-card { background: var(--glass); border: 1px solid var(--line); border-radius: 18px; padding: 26px 24px; margin: 20px 0 8px; box-shadow: var(--shadow); }
.page-title { margin: 0 0 6px; font-family: var(--serif); font-size: 24px; letter-spacing: 1px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.page-content { padding-top: 14px; }
.page-content h1 { font-size: 19px; margin: 26px 0 10px; padding-left: 10px; border-left: 4px solid var(--eosin); line-height: 1.4; }
.page-content h2 { font-size: 17px; margin: 24px 0 8px; }
.page-content h3 { font-size: 15.5px; margin: 18px 0 6px; color: var(--ink-2); }
.page-content p { margin: 8px 0; font-size: 15px; line-height: 1.9; word-break: break-all; }
.page-content strong { color: var(--eosin); }
.page-content ul, .page-content ol { margin: 8px 0; padding-left: 22px; }
.page-content li { margin: 4px 0; }
.page-content hr { border: none; border-top: 1px dashed var(--line); margin: 18px 0; }
.page-content a { color: var(--moss); }
.page-content img { max-width: 100%; border-radius: 10px; }

.site-foot { text-align: center; font-size: 12px; color: var(--haze); padding: 22px 18px 30px; }

@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .hero-card h1 { font-size: 25px; }
  .topbar-in { gap: 10px; }
}
}
