@charset "UTF-8";
/* ==========================================================================
   tdsm.ltd 静态站样式（纯 CSS，无框架、无 JS）
   设计基准全部取自原站样式表，未自行发挥：
     主色 #0068e1 | 主文字 #1f1f1f | 次要文字 #727272 | 浅灰字 #a8a8a8
     分割线 #cccccc / #f1f1f1 | 页面浅底 rgba(31,31,31,.04)
     根字号 16px（1rem = 16px）| 内容区最宽 1200px，≤1200px 时 93%
     顶栏 110px（1200~992：78px，992~768：66px，≤768：44px）
   ========================================================================== */

:root {
  --brand: #0068e1;
  --ink: #1f1f1f;
  --ink-2: #727272;
  --ink-3: #a8a8a8;
  --line: #cccccc;
  --line-light: #f1f1f1;
  --bg-page: rgba(31, 31, 31, 0.04);
  --shadow: 0 3px 6px 1px rgba(0, 0, 0, 0.06);
  --shadow-card: 0 3px 6px 1px rgba(0, 0, 0, 0.16);
  --header-h: 110px;
}

/* ---------- 基础重置 ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "PingFangSC-Regular", "helvetica neue", tahoma, "PingFang SC",
    "microsoft yahei", arial, "hiragino sans gb", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, blockquote {
  margin: 0;
  padding: 0;
}

ul, ol {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  border: 0;
}

/* 内容区容器：最宽 1200px，窄屏取 93% */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

@media screen and (max-width: 1200px) {
  .container {
    max-width: 93%;
  }
}

/* ==========================================================================
   顶栏：固定定位 + 占位块（原站用 .header-gap 撑开，避免内容被盖住）
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 99;
  height: var(--header-h);
  background: #fff;
  box-shadow: var(--shadow);
}

.site-header .container {
  height: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: block;
  max-width: 150px;
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* 导航 */
.nav {
  display: flex;
  flex-wrap: wrap;
}

.nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--header-h);
  padding: 0 20px;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--ink);
  text-align: center;
}

.nav a:hover,
.nav a.is-active {
  background: var(--brand);
  color: #fff;
}

/* 第 2、3 项原来就是两行文字、宽 202px */
.nav a.is-stacked {
  flex-direction: column;
  width: 202px;
  line-height: 1.35;
}

/* 顶栏占位：height 与顶栏一致 */
.header-gap {
  height: var(--header-h);
  flex: 0 0 auto;
}

/* 移动端汉堡菜单：用 checkbox + label 实现，纯 CSS */
.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle-label i {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ==========================================================================
   首页：首屏大图 + 图文区块
   ========================================================================== */
.hero {
  overflow: hidden;
}

.hero img {
  width: 100%;
  height: 44.2708333333vw;
  object-fit: cover;
}

.article {
  padding: 88px 0 80px;
  background: #fff;
}

.article-title {
  text-align: center;
}

.article-title h2 {
  font-size: 2.375rem;
  color: var(--ink);
}

.article-title h4 {
  margin: 20px 0 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 500;
}

/* 标题下方：横线 + 英文 + 横线 */
.article-title h4 span:nth-of-type(1),
.article-title h4 span:nth-of-type(3) {
  display: block;
  width: 107px;
  height: 2px;
  background: var(--line);
}

.article-title h4 span:nth-of-type(2) {
  margin: 0 28px;
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--ink-3);
}

.article-title p {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--ink-2);
}

.article-figure {
  margin-top: 80px;
}

.article-figure img {
  width: 100%;
  height: auto;
}

/* 通栏图片区块（原站 nav7） */
.full-figure img {
  width: 100%;
  height: auto;
}

/* ==========================================================================
   页脚
   ========================================================================== */
.site-footer {
  height: 294px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  background: #fff;
  font-size: 20px;
  font-weight: 400;
  color: var(--ink-2);
}

.site-footer p {
  margin: 20px 0 30px;
}

.site-footer p a {
  color: var(--ink-2);
}

.site-footer p a:first-child {
  margin-right: 26px;
}

.site-footer .support {
  font-size: 16px;
}

/* ==========================================================================
   内页骨架：浅灰底 + 返回按钮 + 内容卡片
   .page-body 加在 <main> 上（原站就是给 main 打内联灰底），
   所以首页的 main 不带这个类，保持白底。
   ========================================================================== */
.page-body {
  background: var(--bg-page);
}

.page {
  padding-top: 80px;
}

/* 返回按钮（原站是文字按钮 + 左侧箭头） */
.back {
  display: inline-flex;
  align-items: center;
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 28px;
  font-weight: 400;
  color: var(--ink);
  cursor: pointer;
}

.back svg {
  width: 1em;
  height: 1em;
  margin-right: 16px;
  flex: none;
}

.back:hover {
  color: var(--brand);
}

/* 空状态（原站这些页面接口返回 null，页面本身是空的）
   这里给一句提示，避免访问者以为页面坏了；填内容后删掉即可 */
.empty {
  padding: 80px 0;
  text-align: center;
  font-size: 1rem;
  color: var(--ink-3);
}

/* ---------- 资讯列表（notes.html） ---------- */
.news-article {
  padding: 88px 0 80px;
}

.news-article .article-title h2 {
  font-size: 38px;
}

.news-article .article-title h4 {
  margin: 20px 0 80px;
}

.news-article .article-title h4 span:nth-of-type(2) {
  font-size: 20px;
  margin: 0 28px;
}

.news-article .article-title p {
  font-size: 20px;
}

.news-card {
  margin-top: 80px;
  padding-bottom: 80px;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.news-item {
  display: flex;
  padding: 30px 52px 30px 30px;
  border-bottom: 1px solid var(--line-light);
}

.news-item:last-child {
  border-bottom: 0;
}

.news-item__img {
  flex: none;
  margin-right: 30px;
}

.news-item__img img {
  width: 280px;
  height: 188px;
  object-fit: cover;
}

.news-item__body {
  flex: 1;
  min-width: 0;
}

.news-item__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.news-item__title {
  width: 70%;
  font-size: 20px;
  font-weight: 500;
  color: var(--ink);
}

.news-item__date {
  font-size: 16px;
  color: var(--ink-3);
}

.news-item__text {
  font-size: 18px;
  font-weight: 400;
  color: var(--ink-2);
}

/* ---------- 详情页两栏（team_detail.html / note_detail.html） ---------- */
.detail {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin-top: 80px;
  padding-bottom: 80px;
}

.detail__aside {
  flex: none;
  width: 368px;
  background: #fff;
  box-shadow: var(--shadow-card);
  padding: 40px 0;
}

.detail__aside-title {
  display: block;
  padding: 0 24px;
  margin-bottom: 10px;
  font-size: 20px;
}

.detail__aside-list p {
  padding: 0 24px 20px;
  font-size: 18px;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line-light);
}

.detail__aside-list p:last-child {
  border-bottom: 0;
}

/* 团队详情左侧：图片 + 白色信息卡 */
.detail__aside--plain {
  width: 397px;
  background: none;
  box-shadow: none;
  padding: 0;
}

.detail__aside--plain > img {
  width: 100%;
  margin-bottom: 44px;
}

.info-card {
  padding: 48px 30px;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.info-card__title {
  display: block;
  margin-bottom: 30px;
  font-size: 24px;
  color: var(--ink-2);
}

.info-card__row {
  display: flex;
  margin-bottom: 34px;
  color: var(--ink-2);
}

.info-card__row:last-child {
  margin-bottom: 0;
}

.info-card__row dt {
  width: 100px;
  margin-right: 20px;
  font-size: 22px;
  text-align: right;
  flex: none;
}

.info-card__row dd {
  margin: 0;
  font-size: 18px;
}

.detail__main {
  flex: 1;
  min-width: 0;
}

.detail__main h3 {
  font-size: 24px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 20px;
}

.detail__main p,
.detail__main span {
  font-size: 20px;
  font-weight: 400;
  color: var(--ink-2);
}

.detail__main p + p {
  margin-top: 16px;
}

.rule {
  width: 100%;
  height: 1px;
  background: var(--line);
  margin: 40px 0;
}

.rule--brand {
  height: 2px;
  background: var(--brand);
  box-shadow: var(--shadow);
  margin: 0 0 30px;
}

/* ==========================================================================
   响应式：断点与原站一致（≤768 / 768~992 / 992~1200 / ≥1200）
   ========================================================================== */
@media screen and (min-width: 992px) and (max-width: 1200px) {
  :root {
    --header-h: 78px;
  }

  .nav a {
    padding: 0 12px;
    font-size: 16px;
  }
}

@media screen and (min-width: 768px) and (max-width: 992px) {
  :root {
    --header-h: 66px;
  }

  .nav a {
    padding: 0 12px;
    font-size: 12px;
  }

  .nav a.is-stacked {
    width: 130px;
  }
}

@media screen and (max-width: 768px) {
  :root {
    --header-h: 44px;
  }

  .logo {
    max-width: 88px;
  }

  /* 移动端：汉堡按钮出现，导航收进下拉面板 */
  .nav-toggle-label {
    display: flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .nav-toggle:checked ~ .nav {
    display: flex;
  }

  .nav-toggle:checked ~ .nav-toggle-label i:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle:checked ~ .nav-toggle-label i:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle:checked ~ .nav-toggle-label i:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav a,
  .nav a.is-stacked {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    font-size: 14px;
    flex-direction: row;
    gap: 4px;
    justify-content: flex-start;
  }

  /* 首屏 */
  .hero img {
    height: 50.6666666667vw;
  }

  /* 图文区块 */
  .article {
    padding: 24px 0;
  }

  .article-title h2 {
    font-size: 1rem;
  }

  .article-title h4 {
    margin: 10px 0 8px;
  }

  .article-title h4 span:nth-of-type(1),
  .article-title h4 span:nth-of-type(3) {
    width: 84px;
    height: 1px;
  }

  .article-title h4 span:nth-of-type(2) {
    margin: 0 6px;
    font-size: 0.625rem;
  }

  .article-title p {
    font-size: 0.875rem;
  }

  .article-figure {
    margin-top: 20px;
  }

  /* 页脚 */
  .site-footer {
    height: 97px;
    font-size: 0.5rem;
    color: var(--ink-3);
  }

  .site-footer p {
    margin: 5px 0 10px;
  }

  .site-footer p a {
    color: var(--ink-3);
  }

  .site-footer p a:first-child {
    margin-right: 10px;
  }

  .site-footer .support {
    font-size: 0.5rem;
  }

  /* 内页 */
  .page {
    padding-top: 15px;
  }

  .back {
    font-size: 14px;
  }

  .back svg {
    margin-right: 6px;
  }

  .news-article {
    padding: 24px 0;
  }

  .news-article .article-title h2 {
    font-size: 14px;
  }

  .news-article .article-title h4 {
    margin: 10px 0 8px;
  }

  .news-article .article-title h4 span:nth-of-type(2) {
    font-size: 10px;
    margin: 0 6px;
  }

  .news-article .article-title p {
    font-size: 14px;
  }

  .news-card {
    margin-top: 24px;
    padding-bottom: 0;
    background: none;
    box-shadow: none;
  }

  .news-item {
    display: block;
    padding: 0;
    border-bottom: 0;
    margin-bottom: 16px;
    background: #fff;
    box-shadow: var(--shadow-card);
  }

  .news-item__img {
    margin-right: 0;
  }

  .news-item__img img {
    width: 100%;
    height: auto;
  }

  .news-item__body {
    padding: 14px 10px;
  }

  .news-item__top {
    margin-bottom: 8px;
  }

  .news-item__title {
    width: 100%;
    font-size: 14px;
  }

  .news-item__text {
    font-size: 12px;
  }

  .empty {
    padding: 32px 0;
    font-size: 12px;
  }

  .detail {
    display: block;
    margin-top: 30px;
    padding-bottom: 30px;
  }

  .detail__aside,
  .detail__aside--plain {
    width: 100%;
  }

  /* 移动端隐藏侧栏（原站同款处理） */
  .detail__aside {
    display: none;
  }

  .detail__aside--plain {
    display: block;
    margin-bottom: 24px;
  }

  .detail__aside--plain > img {
    margin-bottom: 16px;
  }

  .info-card {
    padding: 20px 16px;
  }

  .info-card__title {
    font-size: 16px;
    margin-bottom: 12px;
  }

  .info-card__row {
    margin-bottom: 12px;
  }

  .info-card__row dt {
    font-size: 14px;
    width: 70px;
  }

  .info-card__row dd {
    font-size: 14px;
  }

  .detail__main h3 {
    font-size: 14px;
    margin: 6px 0 16px;
  }

  .detail__main p,
  .detail__main span {
    font-size: 12px;
  }

  .rule,
  .rule--brand {
    display: none;
  }
}
