/* ===== 老照片修复 - 双语风格样式表 ===== */
/* 主题色: #00bcd4 */

/* ===== CSS 变量 ===== */
:root {
  --accent-color: #00bcd4;
  --accent-dark: #0097a7;
  --text-primary: #333;
  --text-secondary: #666;
  --text-light: #999;
  --bg-white: #fff;
  --bg-light: #f5f5f5;
  --bg-gray: #eee;
  --border-color: #e0e0e0;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.15);
  --radius: 8px;
  --max-width: 1200px;
  --header-height: 60px;
}

/* ===== 重置样式 ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-light);
}

a {
  text-decoration: none;
  color: var(--accent-color);
  transition: color 0.3s;
}

a:hover {
  color: var(--accent-dark);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===== 布局容器 ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== 页头 ===== */
.header {
  background: var(--bg-white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.logo span {
  color: var(--accent-color);
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-secondary);
}

.lang-switch a {
  color: var(--text-secondary);
}

.lang-switch a.active,
.lang-switch a:hover {
  color: var(--accent-color);
  font-weight: 500;
}

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

.nav a {
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 500;
  position: relative;
}

.nav a:hover,
.nav a.active {
  color: var(--accent-color);
}

.nav a.active::after {
  content: '';
  position: absolute;
  bottom: -18px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-color);
}

/* ===== 搜索框 ===== */
.search-box {
  display: flex;
  align-items: center;
  background: var(--bg-light);
  border-radius: 20px;
  padding: 6px 16px;
  gap: 8px;
}

.search-box input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 14px;
  width: 160px;
}

.search-box button {
  border: none;
  background: none;
  cursor: pointer;
  color: var(--text-light);
}

/* ===== Hero 区域 ===== */
.hero {
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-dark) 100%);
  color: var(--bg-white);
  padding: 80px 0;
  text-align: center;
}

.hero h1 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 16px;
}

.hero .subtitle {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 8px;
}

.hero .subtitle-en {
  font-size: 16px;
  opacity: 0.8;
  font-style: italic;
}

/* ===== 面包屑 ===== */
.breadcrumb {
  background: var(--bg-white);
  padding: 16px 0;
  border-bottom: 1px solid var(--border-color);
}

.breadcrumb-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-secondary);
}

.breadcrumb-inner a {
  color: var(--text-secondary);
}

.breadcrumb-inner a:hover {
  color: var(--accent-color);
}

.breadcrumb-inner .sep {
  color: var(--text-light);
}

.breadcrumb-inner .current {
  color: var(--text-primary);
  font-weight: 500;
}

/* ===== 卡片组件 ===== */
.card {
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow 0.3s;
}

.card:hover {
  box-shadow: var(--shadow-hover);
}

.card-body {
  padding: 20px;
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.card-title-en {
  font-size: 14px;
  color: var(--text-light);
  font-style: italic;
  margin-bottom: 12px;
}

.card-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.card-desc-en {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 8px;
  font-style: italic;
}

/* ===== 文章列表 ===== */
.article-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.article-item {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.3s;
}

.article-item:hover {
  box-shadow: var(--shadow-hover);
}

.article-item-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
}

.article-item-title-en {
  font-size: 14px;
  color: var(--text-light);
  font-style: italic;
  margin-bottom: 10px;
}

.article-item-meta {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 10px;
}

.article-item-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.article-item-desc-en {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 6px;
  font-style: italic;
}

/* ===== 分页 ===== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
}

.pagination a,
.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text-secondary);
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  transition: all 0.3s;
}

.pagination a:hover {
  color: var(--accent-color);
  border-color: var(--accent-color);
}

.pagination .current {
  background: var(--accent-color);
  color: var(--bg-white);
  border-color: var(--accent-color);
}

.pagination .prev,
.pagination .next {
  padding: 0 12px;
}

/* ===== 文章详情 ===== */
.article-header {
  background: var(--bg-white);
  padding: 40px 0;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}

.article-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 10px;
}

.article-title-en {
  font-size: 18px;
  color: var(--text-light);
  font-style: italic;
  margin-bottom: 20px;
}

.article-meta {
  font-size: 14px;
  color: var(--text-secondary);
}

.article-meta span {
  margin: 0 10px;
}

.article-content {
  background: var(--bg-white);
  padding: 40px 0;
}

.article-body {
  max-width: 800px;
  margin: 0 auto;
}

.bilingual-block {
  margin-bottom: 30px;
  padding: 24px;
  background: var(--bg-light);
  border-radius: var(--radius);
  border-left: 4px solid var(--accent-color);
}

.bilingual-block p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-primary);
}

.bilingual-block .en {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--border-color);
  color: var(--text-secondary);
  font-style: italic;
}

.featured-image {
  margin-bottom: 30px;
  border-radius: var(--radius);
  overflow: hidden;
}

.featured-image img {
  width: 100%;
}

/* ===== 三栏布局 ===== */
.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.col-header {
  font-size: 16px;
  font-weight: 600;
  padding: 16px;
  background: var(--accent-color);
  color: var(--bg-white);
  border-radius: var(--radius) var(--radius) 0 0;
}

.col-list {
  background: var(--bg-white);
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}

.col-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
}

.col-list li:last-child {
  border-bottom: none;
}

.col-list a {
  display: block;
  color: var(--text-primary);
  font-size: 14px;
}

.col-list a:hover {
  color: var(--accent-color);
}

.col-list .item-en {
  font-size: 12px;
  color: var(--text-light);
  font-style: italic;
  margin-top: 2px;
}

/* ===== 相关文章 ===== */
.related-section {
  background: var(--bg-white);
  padding: 40px 0;
  border-top: 1px solid var(--border-color);
}

.section-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
  text-align: center;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.related-item {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  transition: transform 0.3s;
}

.related-item:hover {
  transform: translateY(-4px);
}

.related-item-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
}

.related-item-title-en {
  font-size: 12px;
  color: var(--text-light);
  font-style: italic;
  margin-top: 4px;
}

/* ===== 页脚 ===== */
.footer {
  background: var(--text-primary);
  color: var(--bg-white);
  padding: 40px 0 20px;
  margin-top: 40px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 30px;
}

.footer-brand h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.footer-brand h3 span {
  color: var(--accent-color);
}

.footer-brand p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
}

.footer-col h4 {
  font-size: 16px;
  margin-bottom: 16px;
  color: var(--bg-white);
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: var(--text-light);
  font-size: 14px;
}

.footer-col ul li a:hover {
  color: var(--accent-color);
}

.footer-bottom {
  border-top: 1px solid #444;
  padding-top: 20px;
  text-align: center;
  font-size: 13px;
  color: var(--text-light);
}

/* ===== 404 页面 ===== */
.error-page {
  min-height: calc(100vh - var(--header-height) - 300px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
}

.error-code {
  font-size: 120px;
  font-weight: 700;
  color: var(--accent-color);
  line-height: 1;
  margin-bottom: 20px;
}

.error-title {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 10px;
}

.error-title-en {
  font-size: 18px;
  color: var(--text-light);
  font-style: italic;
  margin-bottom: 20px;
}

.error-desc {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.btn {
  display: inline-block;
  padding: 12px 32px;
  background: var(--accent-color);
  color: var(--bg-white);
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
  transition: background 0.3s;
}

.btn:hover {
  background: var(--accent-dark);
  color: var(--bg-white);
}

/* ===== 主内容区 ===== */
.main-content {
  padding: 40px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 8px;
}

.section-header p {
  font-size: 16px;
  color: var(--text-secondary);
}

.section-header .en {
  font-size: 14px;
  color: var(--text-light);
  font-style: italic;
}

/* ===== 特色内容区 ===== */
.featured-section {
  background: var(--bg-white);
  padding: 60px 0;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* ===== 响应式设计 ===== */
@media (max-width: 992px) {
  .three-col,
  .footer-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .featured-grid {
    grid-template-columns: 1fr;
  }

  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .search-box {
    display: none;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero .subtitle {
    font-size: 16px;
  }

  .three-col,
  .footer-inner,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .article-title {
    font-size: 24px;
  }

  .error-code {
    font-size: 80px;
  }

  .lang-switch {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero {
    padding: 60px 0;
  }

  .hero h1 {
    font-size: 24px;
  }

  .card-body,
  .article-item {
    padding: 16px;
  }

  .bilingual-block {
    padding: 16px;
  }
}
