/* --- 全局变量 (保持与 time-his.css 一致) --- */
:root {
  --bg-color: #0f1012;
  --card-bg: #151618;
  --text-main: #ffffff;
  --text-grey: #8c8c8c;
  --accent-orange: #d99c68;
  --border-color: #333;

  /* 字体定义 */
  --font-serif: "SimSun", "Songti SC", serif;
  /* 宋体/衬线 */
  --font-sans: "DengXian", "Microsoft YaHei", sans-serif;
  /* 等线/无衬线 */
  --font-mono: "Consolas", "Monaco", monospace;
  /* 等宽字体 */
  --font-calli: "KaiTi", "STKaiti", serif;
  /* 楷体/书法体 */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

a {
  text-decoration: none;
  /* 核心属性：移除下划线 */
  color: inherit;
  /* 可选：继承父元素颜色，避免a标签默认蓝色 */
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-sans);
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  /* 导航栏固定，主体滚动 */
}

/* --- 顶部导航 (复用样式) --- */
header {
  height: 60px;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
  background-color: var(--bg-color);
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-left .back-btn {
  background: none;
  border: none;
  color: #ccc;
  font-size: 14px;
  font-family: var(--font-sans);
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: color 0.3s ease;
}

.header-left .back-btn:hover {
  color: #ffffff;
}

.logo-area {
  text-align: center;
}

.logo-title {
  font-family: var(--font-serif);
  font-size: 18px;
  letter-spacing: 2px;
  color: #fff;
  margin-left: 320px;
}

.logo-sub {
  font-size: 10px;
  color: #fff;
  letter-spacing: 3px;
  margin-left: 320px;
}

.nav-menu {
  display: flex;
  gap: 20px;
}

.nav-item {
  font-size: 15px;
  padding: 6px 16px;
  border-radius: 4px;
  color: var(--text-grey);
  transition: all 0.3s;
  text-decoration: none;
}

.nav-item.active {
  background-color: var(--accent-orange);
  color: #1e1f21;
  font-weight: bold;
}

.nav-item:hover:not(.active) {
  color: var(--text-main);
}

a {
  text-decoration: none;
  color: inherit;
}


/* --- 主体滚动区域 --- */
.scroll-container {
  flex: 1;
  overflow-y: auto;
  padding: 40px 10%;
  /* 两侧留白 */
  scroll-behavior: smooth;
}

/* 隐藏滚动条但保留功能 */
.scroll-container::-webkit-scrollbar {
  display: none;
}

.scroll-container {
  -ms-overflow-style: none;
  scrollbar-width: none;
}


/* --- 通用部分样式 --- */
section {
  margin-bottom: 80px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 40px;
  color: #d99c68;
}

.text-content {
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.8;
  color: #ccc;
  margin-bottom: 20px;
  text-align: justify;
}


/* --- 第一部分：类型卡片 --- */
.types-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.type-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 40px 20px;
  text-align: center;
  border-radius: 8px;
  transition: transform 0.3s, border-color 0.3s;
}

.type-card:hover {
  transform: translateY(-5px);
  /* border-color: var(--accent-orange); */
}

.type-name {
  /* font-family: var(--font-serif); */
  font-size: 22px;
  margin-bottom: 12px;
  font-weight: normal;
}

.type-desc {
  font-family: var(--font-sans);
  font-size: 17px;
  color: #ccc;
}


/* --- 第二部分：工艺与合金 (左右布局) --- */
.section-tech-alloy {
  display: flex;
  gap: 40px;
  align-items: stretch;
}

.tech-box,
.alloy-box {
  flex: 1;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 40px;
}

.box-title {
  font-family: var(--font-serif);
  font-size: 30px;
  margin-bottom: 25px;
  color: var(--text-main);
  font-weight: normal;
}

/* 引用样式 */
.quote-block {
  margin-top: 30px;
  padding-left: 15px;
  border-left: 3px solid var(--accent-orange);
}

.quote-text {
  font-family: var(--font-calli);
  font-size: 24px;
  font-style: italic;
  margin-bottom: 8px;
  color: var(--text-main);
}

.quote-source {
  font-family: var(--font-sans);
  font-size: 18px;
  color: var(--text-grey);
}

/* 合金表格样式 */
.alloy-table {
  width: 100%;
  margin-top: 20px;
}

.table-header,
.table-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.table-header {
  font-size: 12px;
  color: var(--accent-orange);
  font-weight: bold;
}

.table-row span {
  font-size: 17px;
  color: var(--text-grey);
  flex: 1;
}

.table-header span {
  flex: 1;
  font-size: 18px;
}

.mono-font {
  font-family: var(--font-mono);
  color: var(--text-grey) !important;
}


/* --- 第三部分：工艺流程 (Grid) --- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 15px;
}

.step-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 30px 15px;
  border-radius: 8px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.step-num {
  width: 32px;
  height: 32px;
  background-color: var(--accent-orange);
  color: #000;
  border-radius: 50%;
  font-family: var(--font-sans);
  font-weight: bold;
  font-size: 16px;
  line-height: 32px;
  margin: 0 auto 15px auto;
}

.step-title {
  font-family: var(--font-sans);
  font-size: 20px;
  margin-bottom: 8px;
  font-weight: bold;
}

.step-desc {
  font-size: 16px;
  color: #ccc;
  line-height: 1.4;
}


/* --- 第四部分：底部哲学 (左右布局) --- */
.section-philosophy {
  display: flex;
  gap: 60px;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.philo-content {
  flex: 3;
}

.philo-quote {
  flex: 2;
  border-left: 2px solid var(--accent-orange);
  padding-left: 30px;
}

.big-quote {
  font-family: var(--font-calli);
  font-size: 24px;
  /* 稍微大一点以突出 */
  color: #dcd8d8;
  margin-bottom: 15px;
  line-height: 1.5;
}

.align-right {
  display: block;
  text-align: right;
}

.footer-spacer {
  height: 60px;
}


/* --- 动画类 --- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 响应式调整 (简单适配小屏幕) */
@media (max-width: 1024px) {
  .types-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-tech-alloy {
    flex-direction: column;
  }

  .process-steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .section-philosophy {
    flex-direction: column;
    gap: 30px;
  }

  .philo-quote {
    border-left: none;
    padding-left: 0;
    text-align: center;
  }

  .align-right {
    text-align: center;
  }
}

@media (max-width: 768px) {

  body {
    height: auto;
    overflow-y: auto;
    overflow-x: hidden;
  }

  header {
    height: auto;
    flex-direction: column;
    padding: 15px 15px 10px 15px;
    gap: 15px;
    /* 两行间距 */
    position: relative;
  }

  .header-left {
    position: absolute;
    left: 15px;
    top: 20px;
  }

  .logo-title,
  .logo-sub {
    margin-left: 0;
    text-align: center;
  }

  .nav-menu {
    width: 100%;
    justify-content: center;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 5px;
  }

  .nav-item {
    font-size: 12px;
    padding: 6px 10px;
    white-space: nowrap;
  }

  .hero-text {
    margin-top: 15px;
    margin-bottom: 20px;
    padding: 0 15px;
  }

  .main-title {
    font-size: 24px;
    margin-bottom: 8px;
  }
}