/* === Word文档伪装主题 === */
html {
  background: #e3e3e3;
}
body {
  background: #ffffff;
  color: #333333;
  font-family: "Calibri", "Microsoft YaHei", "PingFang SC", sans-serif;
  max-width: 816px; /* A4 width in px at 96dpi */
  margin: 0 auto;
  padding: 60px 72px 40px; /* Word default margins */
  line-height: 1.6;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
  min-height: 100vh;
  position: relative;
}
/* 模拟Word顶部工具栏 */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 28px;
  background: linear-gradient(180deg, #f3f3f3 0%, #e8e8e8 100%);
  border-bottom: 1px solid #c8c8c8;
  z-index: 1000;
}
body::after {
  content: "Q2 Strategy Review - Final.docx - Microsoft Word";
  position: fixed;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
  font-size: 12px;
  color: #666;
  z-index: 1001;
  white-space: nowrap;
}
h1 {
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  color: #333;
  text-align: center;
  font-size: 22px;
  margin-bottom: 4px;
  font-weight: bold;
}
.meta {
  text-align: center;
  color: #666;
  margin-bottom: 24px;
  letter-spacing: 1px;
  font-size: 11px;
}
nav {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid #d9d9d9;
  margin-bottom: 16px;
  margin-top: 36px;
  font-size: 12px;
}
nav a {
  color: #4472c4;
  text-decoration: none;
}
nav a:hover {
  color: #2b5797;
  text-decoration: underline;
}
.section-title {
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  color: #333;
  font-size: 14px;
  font-weight: bold;
  margin: 24px 0 10px 0;
  padding-bottom: 4px;
  border-bottom: 1px solid #d9d9d9;
  text-align: left;
  letter-spacing: 1px;
}
.pair {
  margin-bottom: 12px;
  padding: 8px 12px;
  border-left: 3px solid #4472c4;
  background: #f9f9f9;
  border-radius: 0;
}
.yuan {
  font-size: 14px;
  color: #1a1a1a;
  margin: 0 0 4px 0;
  font-weight: normal;
  line-height: 1.7;
}
.yi {
  font-size: 13px;
  color: #555;
  font-family: "Calibri", "Microsoft YaHei", "PingFang SC", sans-serif;
  padding-left: 12px;
  border-left: 2px solid #d9d9d9;
  margin: 0;
  line-height: 1.65;
}
.yi::before {
  content: "译：";
  color: #4472c4;
  font-weight: bold;
  margin-right: 2px;
  font-size: 12px;
}

/* index page */
.intro {
  text-align: left;
  color: #555;
  font-family: "Calibri", "Microsoft YaHei", sans-serif;
  font-size: 13px;
  margin-bottom: 20px;
  line-height: 1.6;
}
.gua-group-title {
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  color: #333;
  font-size: 14px;
  font-weight: bold;
  text-align: left;
  margin: 20px 0 10px 0;
  letter-spacing: 1px;
  border-bottom: 1px solid #d9d9d9;
  padding-bottom: 4px;
}
.gua-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
  margin-bottom: 16px;
}
.gua-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px 2px;
  background: #f5f5f5;
  border: 1px solid #d9d9d9;
  text-decoration: none;
  color: #333;
  border-radius: 0;
  transition: all 0.15s;
  min-height: 44px;
}
.gua-cell:hover {
  background: #4472c4;
  color: #fff;
  border-color: #4472c4;
}
.gua-cell .num {
  font-size: 10px;
  color: #999;
  margin-bottom: 1px;
}
.gua-cell:hover .num {
  color: #ccdaf0;
}
.gua-cell .name {
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 13px;
  font-weight: bold;
}
.gua-cell .pinyin {
  font-size: 9px;
  color: #888;
  margin-top: 1px;
}
.gua-cell:hover .pinyin {
  color: #ccdaf0;
}
footer {
  text-align: center;
  color: #999;
  font-size: 11px;
  margin-top: 30px;
  padding-top: 12px;
  border-top: 1px solid #d9d9d9;
}
/* 卦象图案 */
.hexagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 12px auto 20px;
  gap: 4px;
}
.hexagram .yao {
  display: flex;
  justify-content: center;
  gap: 6px;
}
.hexagram .yao .bar {
  height: 6px;
  background: #333;
  border-radius: 1px;
}
.hexagram .yao.yang .bar {
  width: 60px;
}
.hexagram .yao.yin .bar {
  width: 26px;
}
.hexagram .trigram-label {
  font-size: 10px;
  color: #666;
  font-family: "Calibri", "Microsoft YaHei", sans-serif;
  text-align: center;
  margin-top: 1px;
  letter-spacing: 1px;
}
.hexagram .trigram-gap {
  height: 3px;
}

@media (max-width: 600px) {
  .gua-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  body { padding: 40px 16px 20px; }
  h1 { font-size: 18px; }
  .yuan { font-size: 13px; }
  .yi { font-size: 12px; }
}
