/* 问涯官网 · 按《问涯官网框架》补充的组件样式（在 style.css 之后加载） */

/* 渐变主按钮的文字对比度加强 */
.btn--primary { color: #041a22; font-weight: 700; }

/* ---------- Part1: slogan 开屏动画 ---------- */
.splash {
  position: fixed; inset: 0; z-index: 200;
  background: radial-gradient(900px 600px at 50% 40%, #123642 0%, #0a1b24 62%, #06141b 100%);
  color: #eef7fa;
  display: flex; align-items: center; justify-content: center;
  opacity: 1; transition: opacity .6s ease, visibility .6s ease;
}
.splash::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(75,199,220,.05) 1px, transparent 1px);
  background-size: 100% 44px; pointer-events: none;
}
.splash.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.splash__inner { position: relative; z-index: 1; text-align: center; padding: 0 24px; }
.splash__logo { width: 64px; height: 64px; border-radius: 16px; margin: 0 auto 26px; animation: splash-in .7s ease both; }
.splash__brand { font-size: 13px; letter-spacing: .36em; color: #7fd8e8; margin: 0 0 26px; animation: splash-in .7s .1s ease both; }
.splash__slogan {
  font-size: clamp(26px, 4.2vw, 50px); font-weight: 700; letter-spacing: .02em; line-height: 1.5;
  margin: 0; animation: splash-in .8s .22s ease both;
}
.splash__bar { width: 180px; height: 3px; border-radius: 999px; background: rgba(255,255,255,.14); margin: 36px auto 0; overflow: hidden; }
.splash__bar i { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg,#4bc7dc,#378de2,#23b889); animation: splash-progress 2s linear forwards; }
.splash__skip {
  margin-top: 28px; background: none; border: 1px solid rgba(255,255,255,.28);
  color: #b9d2da; border-radius: 999px; padding: 8px 20px; font-size: 13px;
  transition: border-color .2s, color .2s;
}
.splash__skip:hover { border-color: #7fd8e8; color: #eef7fa; }
@keyframes splash-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes splash-progress { to { width: 100%; } }
@media (prefers-reduced-motion: reduce) {
  .splash__logo, .splash__brand, .splash__slogan { animation: none; }
  .splash__bar i { animation: none; width: 100%; }
}

/* ---------- 导航下拉（Part3） ---------- */
.nav__item { position: relative; display: inline-block; }
.nav__item > .nav__link::after {
  content: "⌄"; display: inline-block; margin-left: 5px; font-size: 12px; opacity: .6;
}
.dropdown {
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 210px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 24px 54px -24px rgba(10,27,36,.42);
  padding: 8px; opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  z-index: 60;
}
.nav__item:hover .dropdown, .nav__item:focus-within .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a { display: block; padding: 10px 12px; border-radius: 9px; font-size: 14px; color: var(--text-soft); }
.dropdown a:hover { background: var(--paper-2); color: var(--text); }
.dropdown a b { display: block; font-size: 13.5px; color: var(--text); font-weight: 600; }
.dropdown a span { display: block; font-size: 12px; color: var(--text-dim); margin-top: 2px; }
.dropdown__head { padding: 8px 12px 6px; font-size: 11px; letter-spacing: .14em; color: var(--text-dim); font-weight: 700; }

/* ---------- 首页快速入口（Part2） ---------- */
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.quick-card {
  display: block; padding: 24px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.quick-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #c3e3eb; }
.quick-card__n { font-size: 12px; font-weight: 800; letter-spacing: .14em; color: #1687ad; }
.quick-card h3 { font-size: 19px; margin: 12px 0 8px; }
.quick-card p { font-size: 14px; color: var(--text-soft); margin: 0 0 16px; line-height: 1.75; }
.quick-card .link-arrow { font-size: 13.5px; }

/* ---------- 筛选（Part3） ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.filter-btn {
  border: 1px solid var(--line); background: #fff; color: var(--text-soft);
  border-radius: 999px; padding: 9px 20px; font-size: 14px; font-weight: 600;
  transition: all .2s ease;
}
.filter-btn:hover { border-color: #9fd6e3; color: var(--text); }
.filter-btn.is-active { background: var(--grad); border-color: transparent; color: #05202a; }
.filter-empty { text-align: center; color: var(--text-dim); padding: 40px 0; font-size: 15px; }
[data-filter-item].is-filtered { display: none; }

/* ---------- 课程卡 ---------- */
.course-card__meta { font-size: 12px; letter-spacing: .1em; color: #1687ad; font-weight: 700; margin-bottom: 12px; }
.course-card__note { font-size: 12.5px; color: var(--text-dim); margin-top: 14px; }
.tbd {
  display: inline-block; font-size: 12px; padding: 4px 10px; border-radius: 8px;
  background: #fff7e8; color: #966b25; border: 1px solid #f2e0bd;
}

/* ---------- 表单（Part4 / Part7） ---------- */
.form-panel {
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  padding: 32px; box-shadow: var(--shadow-sm);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field--full { grid-column: 1 / -1; }
.form-field label { font-size: 13.5px; font-weight: 600; color: var(--text); }
.form-field label em { font-style: normal; color: #d0684f; margin-left: 3px; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 10px;
  padding: 11px 13px; font-size: 14px; font-family: inherit; color: var(--text);
  background: #fbfdfe; outline: none; transition: border-color .2s, box-shadow .2s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  border-color: #7fd8e8; box-shadow: 0 0 0 3px rgba(75,199,220,.16); background: #fff;
}
.form-field textarea { min-height: 104px; resize: vertical; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 24px; }
.form-hint { font-size: 12.5px; color: var(--text-dim); line-height: 1.7; }
.form-output {
  margin-top: 20px; padding: 16px; border-radius: 12px;
  background: var(--paper-2); border: 1px dashed #b9d9e2;
  font-size: 13px; color: var(--text-soft); white-space: pre-wrap; line-height: 1.8;
}
.form-output:empty { display: none; }
.form-status { font-size: 13px; color: #17926b; font-weight: 600; min-height: 20px; }

/* ---------- 创始团队（Part7） ---------- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.team-card { text-align: left; }
.avatar {
  width: 72px; height: 72px; border-radius: 20px; margin-bottom: 20px;
  display: grid; place-items: center; font-size: 26px; font-weight: 800; color: #fff;
  background: linear-gradient(140deg, #4bc7dc, #378de2);
  box-shadow: 0 12px 26px -14px rgba(55,141,226,.8);
}
.team-card:nth-child(2) .avatar { background: linear-gradient(140deg, #378de2, #23b889); }
.team-card:nth-child(3) .avatar { background: linear-gradient(140deg, #23b889, #4bc7dc); }
.team-card:nth-child(4) .avatar { background: linear-gradient(140deg, #2f9fc7, #1b6fa8); }
.team-card__role { font-size: 12px; letter-spacing: .08em; color: #1687ad; font-weight: 700; }
.team-card h3 { font-size: 21px; margin: 8px 0 12px; }
.team-card p { font-size: 14px; color: var(--text-soft); margin: 0; line-height: 1.8; }
.avatar-note { font-size: 12.5px; color: var(--text-dim); margin-top: 18px; }

/* ---------- 生态共建（Part6） ---------- */
.coop-card__n { font-size: 12px; letter-spacing: .14em; font-weight: 800; color: #1687ad; }
.coop-card__fit { font-size: 12.5px; color: #17926b; margin-top: 14px; font-weight: 600; }
.pill-flow { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 12px; }
.pill-flow span {
  font-size: 13px; padding: 8px 16px; border-radius: 999px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); color: #d8ebf0;
}
.pill-flow em { font-style: normal; color: #7fd8e8; }
.eco-hero {
  background:
    radial-gradient(700px 420px at 84% -10%, rgba(196,150,92,.22), transparent 68%),
    linear-gradient(160deg, #1c1815, #0a1b24 78%);
}

/* ---------- 社媒二维码占位（Part8） ---------- */
.social-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.social-item { text-align: center; }
.qr-placeholder {
  width: 76px; height: 76px; border-radius: 10px;
  background: #fff; border: 1px solid rgba(255,255,255,.2);
  display: grid; place-items: center; position: relative; overflow: hidden;
}
.qr-placeholder::before {
  content: ""; position: absolute; inset: 8px;
  background:
    linear-gradient(90deg, #dbe7ec 1px, transparent 1px) 0 0/10px 10px,
    linear-gradient(#dbe7ec 1px, transparent 1px) 0 0/10px 10px;
  opacity: .8;
}
.qr-placeholder span {
  position: relative; z-index: 1; background: rgba(255,255,255,.94);
  font-size: 10px; color: #6b8490; padding: 3px 6px; border-radius: 5px; font-weight: 700;
}
.social-item small { display: block; font-size: 11.5px; color: #93b1bb; margin-top: 6px; }
.footer__social { grid-column: 1 / -1; border-top: 1px solid var(--line-dark); padding-top: 24px; margin-top: 8px; }
.footer__social h4 { font-size: 13px; color: #e6f3f7; margin-bottom: 4px; }
.footer__social p { font-size: 12px; color: #75939e; margin: 0 0 4px; }

/* ---------- 响应式补充 ---------- */
@media (max-width: 1024px) {
  .quick-grid, .team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav__item { display: block; }
  .nav__item > .nav__link::after { display: none; }
  .dropdown {
    display: block; position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; padding: 0 0 8px 14px; min-width: 0; background: transparent;
  }
  .dropdown a { padding: 8px 12px; font-size: 13.5px; color: var(--text-dim); }
  .dropdown a b { color: var(--text-soft); }
  .dropdown__head { display: none; }
  .site-header:not(.is-open) .dropdown { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .form-field--full { grid-column: auto; }
}
@media (max-width: 520px) {
  .quick-grid, .team-grid { grid-template-columns: 1fr; }
  .form-panel { padding: 22px; }
  .splash__slogan { font-size: 26px; }
  .social-row { gap: 10px; }
}
