/* ============================================================
   优贝智佳特教网 - 机构详情页样式
   色彩: honey/coral/sage/paper 四色体系
   ============================================================ */

:root {
  /* 色彩体系 */
  --honey: #E2963C;        /* 主色 - 蜂蜜橙 */
  --honey-light: #F0B878;  /* 主色浅 */
  --honey-dark: #C47D26;   /* 主色深 */
  --coral: #F0846B;        /* 辅助色 - 珊瑚 */
  --coral-light: #F5AFA0;  /* 辅助色浅 */
  --sage: #7C9473;         /* 信任绿 - 鼠尾草 */
  --sage-light: #A8BCA1;   /* 信任绿浅 */
  --sage-dark: #5E7656;    /* 信任绿深 */
  --paper: #FBF1E1;        /* 纸色 - 暖底 */
  --paper-deep: #F5E6CC;   /* 纸色深 */
  --paper-light: #FDF8EE;  /* 纸色浅 */

  /* 文字色 */
  --ink: #2C2418;          /* 主文字 - 深棕墨 */
  --ink-soft: #6B5D4A;     /* 辅助文字 */
  --ink-light: #9A8B75;    /* 弱文字 */

  /* 线条/边框 */
  --line: #E8D9C0;         /* 主线条 */
  --line-light: #F0E6D2;   /* 浅线条 */

  /* 字体 */
  --font-display: 'Noto Serif SC', 'Source Han Serif SC', serif;
  --font-body: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-mono: 'JetBrains Mono', 'Consolas', monospace;

  /* 阴影 */
  --shadow-sm: 0 1px 3px rgba(140, 100, 40, 0.06);
  --shadow-md: 0 4px 12px rgba(140, 100, 40, 0.08);
  --shadow-lg: 0 8px 24px rgba(140, 100, 40, 0.12);
  --shadow-honey: 0 4px 16px rgba(226, 150, 60, 0.18);
}

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

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper-light);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--honey-dark);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--coral);
}

/* ==================== 顶部导航 ==================== */
.site-header {
  background: rgba(251, 241, 225, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
}

.site-logo__mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--honey), var(--coral));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
}

.site-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}

.site-nav a {
  font-size: 14px;
  color: var(--ink-soft);
  font-weight: 500;
  transition: color 0.2s;
}

.site-nav a:hover {
  color: var(--honey-dark);
}

/* ==================== 面包屑 ==================== */
.breadcrumb {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px 0;
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-light);
}

.breadcrumb li::after {
  content: "›";
  margin-left: 6px;
  color: var(--ink-light);
}

.breadcrumb li:last-child::after {
  content: "";
}

.breadcrumb a {
  color: var(--ink-light);
}

.breadcrumb a:hover {
  color: var(--honey-dark);
}

.breadcrumb li:last-child {
  color: var(--ink-soft);
}

/* ==================== 主体布局 ==================== */
.inst-detail {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 24px 16px;
}

.inst-detail__main {
  min-width: 0;
}

/* ==================== 机构头部 ==================== */
.inst-header {
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.inst-header__top {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.inst-logo {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--honey), var(--coral));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  box-shadow: var(--shadow-honey);
}

.inst-header__info {
  flex: 1;
  min-width: 0;
}

.inst-header__name {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
  line-height: 1.3;
}

.inst-header__fullname {
  font-size: 13px;
  color: var(--ink-light);
  margin-bottom: 10px;
}

.inst-header__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
}

.badge--tag {
  background: var(--paper-deep);
  color: var(--honey-dark);
}

.badge--unverified {
  background: var(--paper-deep);
  color: var(--ink-soft);
}

.badge--verified {
  background: var(--sage-light);
  color: var(--sage-dark);
}

/* 基础信息行 */
.inst-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line-light);
  font-size: 14px;
  color: var(--ink-soft);
}

.inst-meta__item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.inst-meta__item svg {
  width: 15px;
  height: 15px;
  color: var(--honey);
  flex-shrink: 0;
}

/* ==================== 内容区块 ==================== */
.section {
  background: #fff;
  border-radius: 16px;
  padding: 24px 28px;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.section__title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section__title::before {
  content: "";
  width: 4px;
  height: 18px;
  background: linear-gradient(180deg, var(--honey), var(--coral));
  border-radius: 2px;
  flex-shrink: 0;
}

.section__text {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.85;
  white-space: pre-wrap;
}

/* 课程/服务对象列表 */
.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.service-list__item {
  background: var(--paper-light);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 14px;
  color: var(--honey-dark);
  transition: all 0.2s;
}

.service-list__item:hover {
  background: var(--honey);
  color: #fff;
  border-color: var(--honey);
}

/* ==================== FAQ ==================== */
.faq-item {
  border-bottom: 1px solid var(--line-light);
  padding: 16px 0;
}

.faq-item:first-child {
  padding-top: 0;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item__question {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.faq-item__question::before {
  content: "Q";
  background: var(--honey);
  color: #fff;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.faq-item__answer {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.8;
  padding-left: 28px;
}

/* ==================== 同城机构 ==================== */
.same-city {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.same-city__card {
  background: var(--paper-light);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  transition: all 0.2s;
  display: block;
}

.same-city__card:hover {
  background: #fff;
  border-color: var(--honey-light);
  box-shadow: var(--shadow-honey);
  transform: translateY(-2px);
}

.same-city__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}

.same-city__addr {
  font-size: 12px;
  color: var(--ink-light);
  line-height: 1.5;
}

/* ==================== 侧边栏 ==================== */
.contact-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
}

.contact-card__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 16px;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn--primary {
  background: linear-gradient(135deg, var(--honey), var(--coral));
  color: #fff;
  box-shadow: var(--shadow-honey);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(226, 150, 60, 0.28);
  color: #fff;
}

.btn--secondary {
  background: var(--paper-deep);
  color: var(--ink-soft);
  border: 1px solid var(--line);
}

.btn--secondary:hover {
  background: var(--sage-light);
  color: var(--sage-dark);
  border-color: var(--sage-light);
}

.btn + .btn {
  margin-top: 10px;
}

.btn svg {
  width: 18px;
  height: 18px;
}

/* 微信号展示 */
.wechat-box {
  background: var(--paper);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  margin-top: 14px;
}

.wechat-box__label {
  font-size: 12px;
  color: var(--ink-light);
  margin-bottom: 4px;
}

.wechat-box__id {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--honey-dark);
  letter-spacing: 1px;
}

/* 备注框 */
.note-box {
  background: var(--paper-light);
  border: 1px solid var(--line);
  border-left: 3px solid var(--honey);
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-top: 14px;
}

/* ==================== Empty 模板 ==================== */
.empty-page {
  max-width: 600px;
  margin: 60px auto;
  padding: 0 24px;
}

.empty-card {
  background: #fff;
  border-radius: 16px;
  padding: 40px 32px;
  text-align: center;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

.empty-card__logo {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--honey), var(--coral));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  margin: 0 auto 20px;
  box-shadow: var(--shadow-honey);
}

.empty-card__name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.empty-card__location {
  font-size: 14px;
  color: var(--ink-light);
  margin-bottom: 24px;
}

.empty-card__desc {
  background: var(--paper-light);
  border-radius: 12px;
  padding: 20px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.85;
  margin-bottom: 24px;
  text-align: left;
}

.empty-card .btn {
  max-width: 280px;
  margin: 0 auto;
}

/* ==================== 页脚 ==================== */
.site-footer {
  background: var(--ink);
  color: var(--paper-deep);
  padding: 32px 24px 20px;
  margin-top: 40px;
}

.site-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.site-footer__brand {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.site-footer__copy {
  font-size: 12px;
  color: var(--ink-light);
  line-height: 1.7;
}

/* ==================== 底部联系模块(全站统一) ==================== */
.bottom-contact {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 48px;
}
.bottom-contact__card {
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}
.bottom-contact__info {
  flex: 1;
  min-width: 200px;
}
.bottom-contact__title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}
.bottom-contact__desc {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
}
.bottom-contact__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 200px;
}
.bottom-contact__actions .btn {
  width: 100%;
}
.bottom-contact__wechat {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--paper);
  border-radius: 12px;
  padding: 14px 18px;
}
.bottom-contact__qr {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  border: 2px solid var(--paper-deep);
  flex-shrink: 0;
}
.bottom-contact__wx-text {
  font-size: 13px;
  color: var(--ink-soft);
}
.bottom-contact__wx-id {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--honey-dark);
  letter-spacing: 1px;
  margin-top: 2px;
}

/* ==================== 响应式 ==================== */
@media (max-width: 768px) {
  .site-header__inner {
    padding: 12px 16px;
  }
  .site-logo {
    font-size: 16px;
  }
  .site-logo__mark {
    width: 30px;
    height: 30px;
    font-size: 15px;
  }
  .site-nav {
    gap: 14px;
  }
  .site-nav a {
    font-size: 13px;
  }
  .breadcrumb {
    padding: 12px 16px 0;
  }
  .breadcrumb ol {
    font-size: 12px;
  }
  .inst-detail {
    grid-template-columns: 1fr;
    padding: 16px 12px 40px;
    gap: 16px;
  }
  .inst-header {
    padding: 18px 16px;
    border-radius: 14px;
  }
  .inst-header__top {
    gap: 14px;
  }
  .inst-logo {
    width: 56px;
    height: 56px;
    font-size: 26px;
    border-radius: 12px;
  }
  .inst-header__name {
    font-size: 20px;
  }
  .inst-header__fullname {
    font-size: 12px;
  }
  .inst-meta {
    gap: 12px;
    font-size: 13px;
    padding-top: 12px;
  }
  .section {
    padding: 18px 16px;
    border-radius: 14px;
    margin-bottom: 14px;
  }
  .section__title {
    font-size: 16px;
  }
  .section__text {
    font-size: 14px;
    line-height: 1.8;
  }
  .same-city {
    grid-template-columns: 1fr;
  }
  .same-city__card {
    padding: 12px;
    border-radius: 10px;
  }
  .faq-item__question {
    font-size: 14px;
  }
  .faq-item__answer {
    font-size: 13px;
    padding-left: 24px;
  }
  .empty-page {
    padding: 0 12px;
    margin: 30px auto;
  }
  .empty-card {
    padding: 28px 20px;
    border-radius: 14px;
  }
  .empty-card__name {
    font-size: 20px;
  }
  .empty-card__desc {
    padding: 16px;
    font-size: 13px;
  }
  .bottom-contact {
    padding: 0 12px 36px;
  }
  .bottom-contact__card {
    padding: 20px 16px;
    border-radius: 14px;
    flex-direction: column;
    text-align: center;
  }
  .bottom-contact__actions {
    width: 100%;
  }
  .bottom-contact__wechat {
    width: 100%;
    justify-content: center;
  }
  .bottom-contact__qr {
    width: 64px;
    height: 64px;
  }
  .bottom-contact__wx-id {
    font-size: 18px;
  }
  .site-footer {
    padding: 24px 16px 16px;
  }
  .site-footer__brand {
    font-size: 14px;
  }
  .site-footer__copy {
    font-size: 11px;
  }
}

@media (max-width: 380px) {
  .site-nav a {
    font-size: 12px;
  }
  .inst-header__name {
    font-size: 18px;
  }
  .section {
    padding: 14px 12px;
  }
  .bottom-contact__qr {
    width: 56px;
    height: 56px;
  }
  .bottom-contact__wx-id {
    font-size: 16px;
  }
}

/* 隐藏移动端侧边栏(已改为底部模块) */
@media (max-width: 900px) {
  .inst-detail__sidebar {
    display: none;
  }
}
