/* style.css —— pengyuxiang 门户主题：深空底 + 玻璃卡片 + 工作台组件 */

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

body {
  min-height: 100vh;
  background:
    linear-gradient(rgba(8, 12, 24, .55), rgba(8, 12, 24, .85)),
    url("assets/bg.jpg") center / cover no-repeat #080c18;
  color: #eaf0ff;
  font-family: -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

.wrap { max-width: 960px; margin: 0 auto; padding: 9vh 24px 48px; }
.wrap--narrow { max-width: 760px; }

.eyebrow { letter-spacing: .35em; font-size: 12px; color: #9db4ff; text-transform: uppercase; }
h1 { font-size: clamp(30px, 6vw, 46px); font-weight: 700; letter-spacing: .02em; margin-top: 10px; }
.lede { margin-top: 12px; color: #c6d2f2; max-width: 580px; }

/* 模块卡片栅格（门户） */
.grid { margin-top: 44px; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.card {
  display: block; padding: 22px; border-radius: 16px;
  background: rgba(16, 22, 40, .55);
  border: 1px solid rgba(157, 180, 255, .18);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  text-decoration: none; color: inherit;
  transition: transform .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-3px); border-color: rgba(157, 180, 255, .5); }
.card--open { border-color: rgba(122, 162, 255, .55); box-shadow: 0 10px 30px rgba(30, 60, 140, .35); }
.card--ghost { opacity: .55; }
.card__tag { display: inline-block; font-size: 11px; letter-spacing: .2em; padding: 3px 10px; border-radius: 999px; background: rgba(122, 162, 255, .16); color: #aecbff; margin-bottom: 12px; }
.card h2 { font-size: 19px; }
.card p { margin-top: 6px; color: #b9c6e8; font-size: 13.5px; }

/* 标签页（学业页） */
.tabs { display: flex; gap: 8px; margin-top: 28px; flex-wrap: wrap; }
.tab {
  padding: 9px 18px; border-radius: 999px;
  border: 1px solid rgba(157, 180, 255, .25);
  background: rgba(16, 22, 40, .4); color: #c6d2f2;
  font-size: 14px; cursor: pointer; font-family: inherit;
  transition: border-color .15s ease, background .15s ease;
}
.tab:hover { border-color: rgba(157, 180, 255, .6); }
.tab--active { background: rgba(122, 162, 255, .2); border-color: rgba(122, 162, 255, .6); color: #fff; }

/* 面板 */
.panel { margin-top: 20px; padding: 24px; border-radius: 16px; background: rgba(16, 22, 40, .55); border: 1px solid rgba(157, 180, 255, .18); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.panel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.panel__head h2 { font-size: 17px; }
.pill { font-size: 12px; padding: 4px 12px; border-radius: 999px; background: rgba(122, 162, 255, .14); color: #aecbff; }
.pill--ok { background: rgba(70, 200, 150, .16); color: #8fe6c3; }
.pill--err { background: rgba(240, 100, 100, .16); color: #ffb3b3; }

/* 表单 */
.form { display: grid; gap: 10px; margin-bottom: 18px; }
.form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.form input, .form textarea, #ai-question {
  width: 100%; padding: 11px 14px; border-radius: 10px;
  border: 1px solid rgba(157, 180, 255, .22);
  background: rgba(255, 255, 255, .06); color: #eaf0ff;
  font-size: 14px; font-family: inherit;
}
.form input::placeholder, .form textarea::placeholder, #ai-question::placeholder { color: #7d8db5; }
.form input:focus, .form textarea:focus, #ai-question:focus { outline: none; border-color: rgba(122, 162, 255, .7); }
#ai-question { margin-bottom: 10px; }

.btn {
  padding: 10px 22px; border-radius: 10px; border: none;
  background: rgba(140, 175, 255, .9); color: #0a1228;
  font-weight: 600; font-size: 14px; cursor: pointer;
  justify-self: start; font-family: inherit;
}
.btn:hover { background: #b7ccff; }
.btn:disabled { opacity: .5; cursor: default; }

/* 记录行 */
.rows { list-style: none; display: grid; gap: 10px; }
.row { padding: 14px 16px; border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(157, 180, 255, .12); display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.row-title { font-weight: 600; }
.row-meta { color: #b9c6e8; font-size: 13px; flex: 1 1 auto; }
.row-side { font-size: 12px; color: #8fa0c9; }
.row-empty { color: #8fa0c9; font-size: 13.5px; padding: 14px 16px; border: 1px dashed rgba(157, 180, 255, .25); border-radius: 12px; }

/* AI 回答 */
.hint { color: #9fb0d8; font-size: 13.5px; margin-bottom: 12px; }
.answer { margin-top: 14px; padding: 16px; border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(157, 180, 255, .15); white-space: pre-wrap; font-size: 14px; }

.back { display: inline-block; color: #9db4ff; text-decoration: none; font-size: 14px; }
.back:hover { text-decoration: underline; }

.foot { margin-top: 52px; color: #8fa0c9; font-size: 12.5px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
