/* ==========================================================================
   院长信箱 · 样式表（菏泽生物医药职业学院）
   蓝白简约风格，无任何外部依赖，可直接放入博达网站群。
   ========================================================================== */

:root {
  --brand-50: #eef5fc;
  --brand-100: #dbeaf8;
  --brand-200: #bcd8f1;
  --brand-300: #8fbde6;
  --brand-400: #5b9ad7;
  --brand-500: #357cc4;
  --brand-600: #1e5aa8;
  --brand-700: #1a4a89;
  --brand-800: #173f72;
  --brand-900: #14355e;

  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;

  --red-50: #fef2f2;
  --red-200: #fecaca;
  --red-600: #dc2626;
  --red-700: #b91c1c;

  --emerald-500: #10b981;

  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.1), 0 2px 4px -2px rgba(15, 23, 42, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.1), 0 4px 6px -4px rgba(15, 23, 42, 0.1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* hidden 属性优先级高于组件自身的 display，避免 .form__alert /
   .captcha-row 这类 display:flex 元素在 hidden 时仍然显示 */
[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--slate-800);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

.icon {
  width: 1em;
  height: 1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ===== 顶部导航 ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--slate-200);
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-700);
}

.brand__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--brand-600);
  color: #fff;
  font-size: 20px;
}

.brand__name {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 500;
}

.nav a {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--slate-600);
  transition: background-color 0.15s, color 0.15s;
}

.nav a:hover,
.nav a[aria-current="page"] {
  background: var(--brand-50);
  color: var(--brand-700);
}

main {
  flex: 1;
}

/* ===== 页脚 ===== */
.footer {
  border-top: 1px solid var(--slate-200);
  background: var(--slate-50);
}

.footer__inner {
  padding-top: 32px;
  padding-bottom: 32px;
}

.footer__line {
  margin: 0;
  font-size: 14px;
  color: var(--slate-500);
}

.footer__note {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.7;
  color: var(--slate-400);
}

/* ===== 首页 Hero ===== */
.hero {
  background: linear-gradient(to bottom, var(--brand-600), var(--brand-800));
  color: #fff;
}

.hero__inner {
  padding-top: 64px;
  padding-bottom: 64px;
}

.hero__kicker {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-100);
}

.hero__title {
  margin: 12px 0 0;
  font-size: 32px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero__slogans {
  margin: 20px 0 0;
  max-width: 42rem;
  font-size: 16px;
  color: var(--brand-100);
}

.hero__cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 40px;
}

.hero__note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 32px 0 0;
  font-size: 14px;
  color: var(--brand-100);
}

.hero__note .icon {
  font-size: 16px;
}

/* 入口卡片 */
.card {
  display: flex;
  flex-direction: column;
  padding: 32px;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-300);
  box-shadow: var(--shadow-lg);
}

.card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  background: var(--brand-50);
  color: var(--brand-700);
  font-size: 28px;
  transition: background-color 0.2s, color 0.2s;
}

.card:hover .card__icon {
  background: var(--brand-600);
  color: #fff;
}

.card__title {
  margin: 24px 0 0;
  font-size: 20px;
  font-weight: 600;
  color: var(--slate-900);
}

.card__desc {
  margin: 8px 0 0;
  flex: 1;
  font-size: 14px;
  line-height: 1.7;
  color: var(--slate-600);
}

.card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--brand-700);
}

.card__cta .icon {
  transition: transform 0.2s;
}

.card:hover .card__cta .icon {
  transform: translateX(2px);
}

/* ===== 子页面页头 ===== */
.page-head {
  border-bottom: 1px solid var(--slate-100);
  background: rgba(238, 245, 252, 0.6);
}

.page-head__inner {
  padding-top: 32px;
  padding-bottom: 32px;
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--brand-700);
  transition: color 0.15s;
}

.back:hover {
  color: var(--brand-800);
}

.page-head h1 {
  margin: 12px 0 0;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--slate-900);
}

.page-head__desc {
  margin: 8px 0 0;
  max-width: 42rem;
  font-size: 14px;
  color: var(--slate-600);
}

/* ===== 区块 ===== */
.section {
  padding-top: 32px;
  padding-bottom: 32px;
}

.toolbar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.toolbar__left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.count {
  font-size: 14px;
  color: var(--slate-500);
}

/* 下拉框 */
.select-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.select-wrap .icon--lead {
  position: absolute;
  left: 12px;
  font-size: 16px;
  color: var(--slate-400);
  pointer-events: none;
}

.select-wrap .icon--trail {
  position: absolute;
  right: 12px;
  font-size: 16px;
  color: var(--slate-400);
  pointer-events: none;
}

.select-wrap select {
  appearance: none;
  -webkit-appearance: none;
  padding: 10px 36px 10px 36px;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-sm);
  background: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--slate-700);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.select-wrap select:focus {
  outline: none;
  border-color: var(--brand-500);
  box-shadow: 0 0 0 2px var(--brand-200);
}

/* ===== 办结反馈列表 ===== */
.list {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  background: #fff;
  overflow: hidden;
}

.list > li + li {
  border-top: 1px solid var(--slate-100);
}

.item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  transition: background-color 0.15s;
}

.item:hover {
  background: rgba(238, 245, 252, 0.5);
}

.item__body {
  min-width: 0;
}

.item__title {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--slate-900);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.15s;
}

.item:hover .item__title {
  color: var(--brand-700);
}

.item__meta {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--slate-500);
}

.item__cat {
  margin-right: 12px;
  color: var(--brand-600);
}

.item__chevron {
  font-size: 20px;
  color: var(--slate-300);
  transition: transform 0.15s, color 0.15s;
}

.item:hover .item__chevron {
  transform: translateX(2px);
  color: var(--brand-500);
}

/* ===== 分页 ===== */
.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 32px;
}

.pager a,
.pager span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--slate-600);
  transition: border-color 0.15s, color 0.15s, background-color 0.15s;
}

.pager a:hover {
  border-color: var(--brand-400);
  color: var(--brand-700);
}

.pager .is-current {
  border-color: var(--brand-600);
  background: var(--brand-600);
  color: #fff;
  font-weight: 600;
}

.pager .is-disabled {
  border-color: var(--slate-200);
  color: var(--slate-300);
}

/* ===== 反馈详情 ===== */
.article {
  max-width: 820px;
  margin: 0 auto;
  padding: 24px;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.article__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--slate-500);
}

.badge {
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--brand-50);
  color: var(--brand-700);
}

.article__title {
  margin: 20px 0 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--slate-900);
  line-height: 1.4;
}

.article__section {
  margin-top: 32px;
}

.article__section h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--slate-500);
}

.article__section p {
  margin: 12px 0 0;
  line-height: 1.8;
  color: var(--slate-700);
  white-space: pre-wrap;
  word-break: break-word;
}

.article__section--result {
  padding: 20px;
  border-radius: var(--radius-lg);
  background: rgba(238, 245, 252, 0.6);
}

.article__section--result h2 {
  color: var(--brand-700);
}

/* ===== 表单 ===== */
.form {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.form__fields {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.field label,
.field__label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--slate-700);
}

.field input,
.field select,
.field textarea {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-sm);
  background: #fff;
  font-family: inherit;
  font-size: 14px;
  color: var(--slate-900);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.field textarea {
  resize: vertical;
  line-height: 1.7;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--slate-400);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand-500);
  box-shadow: 0 0 0 2px var(--brand-200);
}

.field__error {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--red-600);
}

.form__alert {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 24px;
  padding: 12px 16px;
  border: 1px solid var(--red-200);
  border-radius: var(--radius-md);
  background: var(--red-50);
  font-size: 14px;
  color: var(--red-700);
}

.form__alert .icon {
  margin-top: 3px;
  font-size: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 24px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--brand-600);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s, box-shadow 0.15s;
}

.btn:hover:not(:disabled) {
  background: var(--brand-700);
}

.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--brand-300);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* 验证码 */
.captcha-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.captcha-inline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.captcha-img {
  width: 112px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-sm);
  background: var(--brand-50);
  cursor: pointer;
  overflow: hidden;
}

.captcha-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.captcha-refresh {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--brand-700);
  cursor: pointer;
}

.captcha-refresh:hover {
  background: var(--brand-50);
}

/* 提交成功 */
.success {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.success__icon {
  font-size: 56px;
  color: var(--emerald-500);
}

.success h2 {
  margin: 16px 0 0;
  font-size: 20px;
  font-weight: 600;
  color: var(--slate-900);
}

.success__text {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--slate-600);
}

.success__receipt {
  display: inline-block;
  margin: 16px 0 0;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  background: var(--brand-50);
  font-size: 14px;
  color: var(--brand-700);
}

.success__note {
  margin: 16px 0 0;
  font-size: 12px;
  line-height: 1.7;
  color: var(--slate-400);
}

/* ===== 空状态 / 加载 ===== */
.empty {
  padding: 64px 0;
  border: 1px dashed var(--slate-300);
  border-radius: var(--radius-xl);
  background: #fff;
  text-align: center;
  color: var(--slate-500);
}

.empty--boxed {
  max-width: 820px;
  margin: 0 auto;
}

.empty h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--slate-900);
}

.empty p {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--slate-600);
}

.empty__action {
  display: inline-block;
  margin-top: 24px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  background: var(--brand-600);
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  transition: background-color 0.15s;
}

.empty__action:hover {
  background: var(--brand-700);
}

/* ===== 响应式 ===== */
@media (min-width: 640px) {
  .container {
    padding-left: 24px;
    padding-right: 24px;
  }

  .hero__inner {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .hero__title {
    font-size: 36px;
  }

  .hero__slogans {
    font-size: 18px;
  }

  .hero__cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-head h1 {
    font-size: 30px;
  }

  .toolbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .item {
    padding: 16px 20px;
  }

  .item__title {
    font-size: 16px;
  }

  .item__meta {
    font-size: 14px;
  }

  .article {
    padding: 32px;
  }

  .article__title {
    font-size: 24px;
  }

  .form {
    padding: 32px;
  }

  .captcha-row {
    flex-direction: row;
    align-items: flex-end;
  }

  .captcha-row > * {
    /*flex: 1;*/
  }
}

/* ===== 移动端（小于 640px） ===== */
@media (max-width: 639px) {
  /* 页头：校名较长，窄屏改为两行——品牌一行、导航换到下一行，避免横向挤压 */
  .header__inner {
    flex-wrap: wrap;
    height: auto;
    padding-top: 10px;
    padding-bottom: 10px;
    row-gap: 8px;
  }

  .brand__mark {
    width: 30px;
    height: 30px;
    font-size: 17px;
  }

  .brand__name {
    font-size: 15px;
  }

  .nav {
    width: 100%;
    font-size: 13px;
  }

  .nav a {
    padding: 6px 10px;
  }

  /* 首页 */
  .hero__inner {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .hero__title {
    font-size: 26px;
  }

  .hero__slogans {
    font-size: 15px;
  }

  .hero__cards {
    margin-top: 28px;
  }

  .card {
    padding: 24px;
  }

  .card__title {
    margin-top: 20px;
    font-size: 18px;
  }

  /* 子页面页头与内容区 */
  .page-head__inner {
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .page-head h1 {
    font-size: 22px;
  }

  .section {
    padding-top: 24px;
    padding-bottom: 24px;
  }

  /* 筛选条：下拉在窄屏独占一行，更好点按 */
  .toolbar {
    gap: 12px;
    margin-bottom: 20px;
  }

  .select-wrap {
    width: 100%;
  }

  .select-wrap select {
    width: 100%;
  }

  /* 列表条目 */
  .item {
    padding: 14px 16px;
    gap: 12px;
  }

  /* 长标题在窄屏给两行，超出再省略，比单行截断更好读 */
  .item__title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    white-space: normal;
  }

  /* 反馈详情 */
  .article {
    padding: 20px;
  }

  .article__title {
    margin-top: 16px;
    font-size: 18px;
  }

  .article__section {
    margin-top: 24px;
  }

  .article__section--result {
    padding: 16px;
  }

  /* 表单 */
  .form {
    padding: 20px;
  }

  .form__fields {
    gap: 20px;
  }

  .captcha-inline {
    flex-wrap: wrap;
  }

  .success {
    padding: 24px;
  }

  /* 分页与页脚 */
  .pager {
    flex-wrap: wrap;
    margin-top: 24px;
  }

  .footer__inner {
    padding-top: 24px;
    padding-bottom: 24px;
  }
}