/* ═══ annyang.cn — Raycast 风格 ═══
   精密仪器质感 · macOS原生阴影 · 蓝调近黑 · 正字距 */

:root {
  --bg: #07080a;                 /* 蓝调近黑 */
  --surface: #101111;            /* 卡片表面 */
  --surface2: #1b1c1e;           /* 徽章表面 */
  --text: #f9f9f9;               /* 主文字 */
  --text2: #cecece;              /* 次级文字 */
  --text3: #9c9c9d;              /* 三级文字 */
  --dim: #6a6b6c;                /* 弱化文字 */
  --border: rgba(255,255,255,0.06);
  --border-hi: rgba(255,255,255,0.12);
  --red: #ff6363;                /* Raycast Red 品牌色 */
  --blue: #55b3ff;               /* 交互蓝 */
  --green: #5fc992;              /* 成功绿（A股跌） */
  --yellow: #ffbc33;             /* 警示黄 */
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text2);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  font-feature-settings: 'calt', 'kern', 'liga', 'ss03';
  font-size: 16px; font-weight: 500;
  line-height: 1.6; letter-spacing: 0.2px;
  padding: 16px;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 760px; margin: 0 auto; }
.num { font-variant-numeric: tabular-nums; }

/* ── 站头 ── */
.masthead { padding: 56px 0 36px; position: relative; }
.masthead .kicker {
  font-size: 14px; font-weight: 500; color: var(--red);
  letter-spacing: 0.3px;
}
.masthead h1 {
  font-size: 44px; font-weight: 600; line-height: 1.1;
  letter-spacing: 0; color: var(--text); margin-top: 10px;
}
.masthead .sub {
  margin-top: 12px; font-size: 16px; font-weight: 400;
  color: var(--text3); letter-spacing: 0.2px;
}

/* ── 返回链接 ── */
.back {
  display: inline-block; color: var(--text3); text-decoration: none;
  font-size: 14px; font-weight: 500; letter-spacing: 0.2px; padding: 4px 0;
  transition: opacity .15s ease;
}
.back:hover { opacity: 0.6; color: var(--text); }

/* ── 模块/列表项（Raycast 卡片） ── */
.module {
  display: block; text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 22px; margin-bottom: 12px;
  box-shadow: rgb(27,28,30) 0px 0px 0px 1px, rgb(7,8,10) 0px 0px 0px 1px inset;
  transition: border-color .15s ease, opacity .15s ease;
}
.module:hover { border-color: var(--border-hi); }
.module .row1 { display: flex; align-items: center; gap: 12px; }
.module .icon {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  background: var(--surface2);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  box-shadow: rgba(255,255,255,0.05) 0px 1px 0px 0px inset;
}
.module .title {
  font-size: 16px; font-weight: 600; letter-spacing: 0.2px;
  color: var(--text); flex: 1;
}
.module .arrow {
  color: var(--dim); flex-shrink: 0;
  transition: color .15s ease;
}
.module:hover .arrow { color: var(--text3); }
.module .desc {
  font-size: 14px; font-weight: 400; color: var(--text3);
  margin-top: 6px; letter-spacing: 0.2px;
}
.module .meta {
  font-size: 13px; font-weight: 500; color: var(--dim); margin-top: 10px;
  letter-spacing: 0.2px;
}
.module .meta .fresh { color: var(--green); }
.module.locked .title::after {
  content: ' · 已锁定'; font-size: 12px; font-weight: 500;
  color: var(--dim);
}

/* ── 内容卡片 ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 24px; margin-bottom: 12px;
  box-shadow: rgb(27,28,30) 0px 0px 0px 1px, rgb(7,8,10) 0px 0px 0px 1px inset;
}
.card h2 {
  font-size: 17px; font-weight: 600; letter-spacing: 0.2px;
  color: var(--text); margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.card h2::before {
  content: ''; width: 4px; height: 16px; border-radius: 2px;
  background: var(--red); flex-shrink: 0;
}

/* ── 表格 ── */
table { width: 100%; border-collapse: collapse; font-size: 14px; font-weight: 400; }
th {
  text-align: left; color: var(--dim); font-weight: 600;
  font-size: 12px; letter-spacing: 0.3px;
  padding: 8px 10px; border-bottom: 1px solid var(--border-hi);
}
td {
  padding: 10px; border-bottom: 1px solid var(--border);
  color: var(--text3); letter-spacing: 0.2px;
}
tr:last-child td { border-bottom: none; }
.up { color: var(--red); font-weight: 600; }      /* A股：涨红 */
.down { color: var(--green); font-weight: 600; }  /* A股：跌绿 */
.flat { color: var(--dim); }
.name { color: var(--text); font-weight: 500; }
.tip { color: var(--text3); }

/* ── 列表 ── */
ul.notes { padding-left: 22px; }
ul.notes li { margin-bottom: 8px; font-size: 14px; font-weight: 400; color: var(--text3); letter-spacing: 0.2px; }
ul.notes li::marker { color: var(--dim); }

/* ── 信息行 ── */
.info-row { display: flex; gap: 12px; margin-bottom: 10px; font-size: 14px; flex-wrap: wrap; }
.info-label { color: var(--dim); min-width: 64px; flex-shrink: 0; font-weight: 500; }
.info-value { color: var(--text2); }

/* ── 密码门 ── */
.password-gate {
  position: fixed; inset: 0;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999; padding: 16px;
}
.password-gate.hidden { display: none; }
.password-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px; max-width: 380px; width: 100%;
  box-shadow: rgba(0,0,0,0.5) 0px 0px 0px 2px, rgba(255,255,255,0.19) 0px 0px 14px;
}
.password-box h2 {
  font-size: 18px; font-weight: 600; color: var(--text); margin-bottom: 8px;
  letter-spacing: 0.2px;
}
.password-box p { font-size: 14px; font-weight: 400; color: var(--text3); margin-bottom: 18px; }
.password-box input {
  width: 100%; padding: 12px 14px;
  background: var(--bg); color: var(--text);
  border: 1px solid rgba(255,255,255,0.08); border-radius: 8px;
  font-family: inherit; font-size: 16px; font-weight: 500; letter-spacing: 0.2px;
  margin-bottom: 12px; outline: none;
  transition: border-color .15s ease;
}
.password-box input::placeholder { color: var(--dim); }
.password-box input:focus {
  border-color: var(--blue);
  box-shadow: hsla(202,100%,67%,0.15) 0px 0px 0px 3px;
}
.password-box button {
  width: 100%; padding: 10px 20px;
  background: hsla(0,0%,100%,0.815); color: #18191a;
  border: none; border-radius: 86px;
  font-family: inherit; font-size: 16px; font-weight: 600; letter-spacing: 0.3px;
  cursor: pointer; transition: background .15s ease;
}
.password-box button:hover { background: #fff; }
.password-box .error {
  color: var(--red); font-size: 13px; font-weight: 500;
  margin-top: 12px; display: none;
}
.password-box .error.show { display: block; }

/* ── 日历块（列表页） ── */
.item .cal {
  flex-shrink: 0; width: 64px; text-align: center;
  background: var(--surface2);
  border: 1px solid var(--border); border-radius: 10px;
  padding: 8px 4px;
  box-shadow: rgba(255,255,255,0.05) 0px 1px 0px 0px inset;
}
.item .cal .day { font-size: 22px; font-weight: 600; color: var(--text); line-height: 1.2; }
.item .cal .ym { font-size: 12px; color: var(--dim); margin-top: 2px; white-space: nowrap; }
.item .tag {
  display: inline-block; margin-top: 5px;
  font-size: 12px; font-weight: 600; color: var(--text2);
  background: var(--surface2); border-radius: 6px; padding: 1px 8px;
}
.item.latest { border-color: rgba(255,99,99,0.25); }
.item.latest .title::after {
  content: '最新'; margin-left: 8px;
  font-size: 11px; font-weight: 600; color: var(--red);
  background: hsla(0,100%,69%,0.15); border-radius: 6px; padding: 1px 6px;
  vertical-align: 2px;
}

/* ── 空状态 ── */
.empty, .loading { text-align: center; color: var(--text3); font-size: 14px; font-weight: 400; padding: 48px 0; }

/* ── 页脚 ── */
footer {
  padding: 48px 0 40px; text-align: left;
  color: var(--dim); font-size: 13px; font-weight: 400; letter-spacing: 0.4px;
}

@media (max-width: 600px) {
  body { padding: 10px; }
  .masthead { padding: 40px 0 28px; }
  .masthead h1 { font-size: 34px; }
  table { font-size: 13px; }
  th, td { padding: 8px 6px; }
  .card { padding: 16px 18px; }
  .module { padding: 16px 18px; }
}
