/* ============ 首页 ============ */
.greeting {
  font-size: 28px;
  font-weight: 800;
  color: var(--green);
  margin-bottom: 6px;
  letter-spacing: 2px;
}

.page-header-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-logo-img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 3px 12px rgba(46,90,60,0.2);
  border: 2px solid rgba(255,255,255,0.8);
  flex-shrink: 0;
}

.user-info {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: var(--brown);
}

.page-header {
  padding: 28px 0 20px;
  border-bottom: 2px solid rgba(46,90,60,0.10);
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.action-card {
  background: linear-gradient(145deg, #ffffff, #faf6ee);
  border-radius: 16px;
  padding: 22px 14px 18px;
  text-align: center;
  box-shadow: 0 3px 12px rgba(94,71,51,0.08), 0 1px 3px rgba(94,71,51,0.04);
  text-decoration: none;
  color: inherit;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: block;
  border: 1px solid rgba(209,195,168,0.4);
  position: relative;
  overflow: hidden;
}

.action-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--green), var(--green-light), var(--green));
  transform: scaleX(0);
  transition: transform 0.3s;
  transform-origin: left;
}

.action-card:active, .action-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(94,71,51,0.15), 0 2px 6px rgba(46,90,60,0.08);
}

.action-card:active::before, .action-card:hover::before {
  transform: scaleX(1);
}

.action-icon {
  font-size: 36px;
  margin-bottom: 10px;
  display: block;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.08));
}

.action-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 4px;
  letter-spacing: 1px;
}

.action-desc {
  font-size: 11px;
  color: var(--brown-light);
  line-height: 1.4;
}

.today-content {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.today-item {
  text-align: center;
  padding: 14px 8px;
  background: linear-gradient(135deg, #fdf8ee, #f8f1e3);
  border-radius: 12px;
  border: 1px solid rgba(209,195,168,0.35);
}

.today-label {
  font-size: 12px;
  color: var(--brown-light);
  margin-bottom: 6px;
}

.today-value {
  font-size: 15px;
  font-weight: 700;
  color: var(--green);
}

.tips-content {
  font-size: 15px;
  line-height: 2;
  color: var(--brown);
  padding: 14px 16px;
  background: linear-gradient(135deg, #fdf8ee, #f4e9d8);
  border-radius: 12px;
  border-left: 4px solid var(--green);
  font-family: var(--font-kai);
}

/* ============ 登录页 ============ */
.login-page {
  padding-top: 50px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-header {
  text-align: center;
  margin-bottom: 28px;
  padding-top: 20px;
}

.login-header .logo-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin-bottom: 14px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  object-fit: cover;
  box-shadow: 0 6px 24px rgba(46,90,60,0.25), 0 2px 8px rgba(94,71,51,0.15);
  border: 3px solid rgba(255,255,255,0.8);
  transition: transform 0.3s;
}

.login-header .logo-img:active {
  transform: scale(0.95);
}

.login-header .app-name {
  font-size: 28px;
  font-weight: 800;
  color: var(--green);
  margin-bottom: 8px;
  letter-spacing: 4px;
  font-family: var(--font-kai);
  text-shadow: 0 2px 6px rgba(46,90,60,0.15);
}

.login-header .app-desc {
  font-size: 13px;
  color: var(--brown-light);
  letter-spacing: 2px;
  font-family: var(--font-kai);
}

.code-examples {
  margin-top: 16px;
}

.examples-title {
  font-size: 13px;
  color: var(--brown-light);
  margin-bottom: 8px;
}

.examples-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.example-code {
  padding: 6px 16px;
  background: var(--cream-light);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 13px;
  color: var(--green);
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
}

.example-code:active {
  transform: scale(0.95);
  background: var(--green-bg);
}

.examples-note {
  font-size: 11px;
  color: var(--brown-light);
  margin-top: 8px;
  text-align: center;
}

.login-features {
  margin-top: 28px;
}

.feature-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--brown);
  margin-bottom: 14px;
  text-align: center;
}

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

.feature-item {
  text-align: center;
  padding: 10px 4px;
  background: var(--cream-light);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  transition: transform 0.2s;
}

.feature-item:active {
  transform: scale(0.95);
}

.feature-icon {
  font-size: 30px;
  margin-bottom: 6px;
  display: block;
}

.feature-name {
  font-size: 12px;
  color: var(--brown);
}

.login-footer {
  margin-top: 36px;
  text-align: center;
}

.footer-text {
  font-size: 13px;
  color: var(--brown-light);
  margin-bottom: 8px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.footer-link {
  font-size: 13px;
  color: var(--green);
  cursor: pointer;
}

.footer-divider {
  color: var(--border);
}

/* ============ 八字页 ============ */
.pillars-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.pillar-item {
  text-align: center;
  padding: 14px 4px;
  background: linear-gradient(180deg, var(--cream-light), var(--cream));
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  position: relative;
}

.pillar-item::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 2px;
  background: var(--green);
  border-radius: 0 0 2px 2px;
}

.pillar-name {
  font-size: 12px;
  color: var(--brown-light);
  margin-bottom: 6px;
  font-weight: 500;
}

.pillar-gan {
  font-size: 22px;
  font-weight: bold;
  color: var(--green);
  font-family: var(--font-kai);
}

.pillar-zhi {
  font-size: 22px;
  font-weight: bold;
  color: var(--brown);
  margin-top: 2px;
  font-family: var(--font-kai);
}

.pillar-shishen {
  font-size: 11px;
  color: var(--brown-light);
  margin-top: 6px;
  padding: 2px 6px;
  background: rgba(255,255,255,0.6);
  border-radius: 8px;
  display: inline-block;
}

.strength-info {
  font-size: 13px;
  color: var(--brown);
  text-align: center;
  padding: 8px;
  background: var(--cream);
  border-radius: 6px;
}

.wuxing-bars {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wuxing-bar-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wuxing-label {
  font-size: 14px;
  font-weight: 500;
  width: 20px;
}

.wuxing-bar-track {
  flex: 1;
  height: 12px;
  background: var(--cream);
  border-radius: 6px;
  overflow: hidden;
}

.wuxing-bar-fill {
  height: 100%;
  border-radius: 6px;
  transition: width 0.5s;
}

.wx-木 { background: #4caf50; }
.wx-火 { background: #f44336; }
.wx-土 { background: #ff9800; }
.wx-金 { background: #9e9e9e; }
.wx-水 { background: #2196f3; }

.wuxing-count {
  font-size: 12px;
  color: var(--brown-light);
  width: 32px;
  text-align: right;
}

.shensha-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.usegod-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.usegod-line {
  font-size: 13px;
  line-height: 1.7;
  color: var(--brown);
  padding: 8px 10px;
  border-radius: 6px;
  background: rgba(255,255,255,0.6);
}

.usegod-line.fy { border-left: 3px solid var(--green); }
.usegod-line.th { border-left: 3px solid var(--orange); }
.usegod-line.tg { border-left: 3px solid #1565c0; }
.usegod-line.by { border-left: 3px solid var(--red); }
.usegod-line.zh { border-left: 3px solid #6a1b9a; font-weight: 500; background: rgba(230,240,230,0.8); }

.dayun-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.dayun-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: var(--cream);
  border-radius: 6px;
  font-size: 13px;
}

.dayun-age {
  color: var(--brown-light);
  font-size: 12px;
}

.dayun-gz {
  font-weight: bold;
  color: var(--green);
}

.dayun-ss {
  font-size: 11px;
  color: var(--brown-light);
}

.usegod-detail-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--cream-dark);
}

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

.usegod-wx {
  font-weight: bold;
  color: var(--green);
}

.usegod-info {
  font-size: 13px;
  color: var(--brown);
}

/* ============ 紫微页 ============ */
.zw-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}

.zw-gong {
  background: linear-gradient(135deg, var(--cream-light), var(--cream));
  border-radius: var(--radius-sm);
  padding: 10px 4px;
  text-align: center;
  min-height: 64px;
  border: 1px solid var(--border-light);
  transition: transform 0.2s;
}

.zw-gong:active {
  transform: scale(0.96);
}

.zw-gong-name {
  font-size: 11px;
  color: var(--brown-light);
  margin-bottom: 4px;
  font-weight: 500;
}

.zw-gong-stars {
  font-size: 11px;
  color: var(--green);
  font-weight: 500;
  line-height: 1.4;
}

.zw-gong-master {
  font-size: 10px;
  color: var(--brown-light);
  margin-top: 2px;
}

.zw-daxian {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* ============ 奇门页 ============ */
.qm-info {
  font-size: 14px;
  color: var(--brown);
  margin-bottom: 12px;
  padding: 10px 14px;
  background: linear-gradient(135deg, var(--cream-light), var(--cream));
  border-radius: var(--radius-md);
  border-left: 3px solid var(--green);
}

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

.qm-gong {
  background: linear-gradient(135deg, var(--cream-light), var(--cream));
  border-radius: var(--radius-sm);
  padding: 12px 4px;
  text-align: center;
  min-height: 76px;
  border: 1px solid var(--border-light);
  transition: transform 0.2s;
}

.qm-gong:active {
  transform: scale(0.96);
}

.qm-gong-pos {
  font-size: 11px;
  color: var(--brown-light);
  font-weight: 500;
}

.qm-gong-star {
  font-size: 14px;
  font-weight: bold;
  color: var(--green);
  margin-top: 3px;
}

.qm-gong-men {
  font-size: 12px;
  color: var(--brown);
  margin-top: 2px;
  font-weight: 500;
}

.qm-gong-shen {
  font-size: 11px;
  color: var(--brown-light);
  margin-top: 2px;
}

/* ============ 合婚页 ============ */
.hh-score {
  font-size: 42px;
  font-weight: bold;
  color: var(--green);
  text-align: center;
  margin: 16px 0 8px;
  font-family: var(--font-kai);
  text-shadow: 0 2px 8px rgba(46,90,60,0.15);
}

.hh-level {
  font-size: 16px;
  color: var(--brown);
  text-align: center;
  margin-bottom: 12px;
  font-weight: 500;
}

/* ============ 择日页 ============ */
.zr-list-title {
  font-size: 14px;
  color: var(--brown);
  margin-bottom: 12px;
  font-weight: 500;
}

.zr-day-card {
  padding: 12px;
}

.zr-date {
  font-size: 15px;
  font-weight: bold;
  color: var(--green);
  margin-bottom: 4px;
}

.zr-lunar {
  font-size: 12px;
  color: var(--brown-light);
  margin-bottom: 8px;
}

.zr-row {
  display: flex;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 13px;
}

.zr-label {
  color: var(--brown-light);
  min-width: 24px;
}

.zr-yi .zr-label { color: var(--green); }
.zr-ji .zr-label { color: var(--red); }

.zr-value {
  color: var(--brown);
  flex: 1;
}

/* ============ 命卦页 ============ */
.kua-hero {
  text-align: center;
  padding: 28px 20px;
  background: linear-gradient(135deg, var(--cream-light), var(--cream));
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
}

.kua-num {
  font-size: 52px;
  font-weight: bold;
  color: var(--green);
  line-height: 1;
  font-family: var(--font-kai);
  text-shadow: 0 2px 8px rgba(46,90,60,0.15);
}

.kua-gua {
  font-size: 20px;
  color: var(--brown);
  margin: 10px 0;
  font-weight: 500;
  letter-spacing: 2px;
}

.kua-group-tag {
  display: inline-block;
  padding: 5px 16px;
  border-radius: 14px;
  font-size: 13px;
  margin-bottom: 8px;
  font-weight: 500;
}

.kua-group-tag.east { background: var(--green-bg); color: var(--green); border: 1px solid var(--green-light); }
.kua-group-tag.west { background: #fff3e0; color: var(--orange); border: 1px solid var(--orange-light); }

.kua-element {
  font-size: 14px;
  color: var(--brown-light);
}

.dir-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dir-chip {
  padding: 7px 16px;
  border-radius: 18px;
  font-size: 14px;
  font-weight: 500;
  transition: transform 0.2s;
}

.dir-chip:active {
  transform: scale(0.95);
}

.dir-chip.lucky { background: var(--green-bg); color: var(--green); border: 1px solid var(--green-light); }
.dir-chip.unlucky { background: #ffebee; color: var(--red); border: 1px solid var(--red-light); }

/* ============ 飞星页 ============ */
.jm-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  max-width: 420px;
  margin: 0 auto;
}

.jm-cell {
  background: linear-gradient(135deg, var(--cream-light), var(--cream));
  border-radius: var(--radius-md);
  padding: 14px 4px;
  text-align: center;
  border: 2px solid transparent;
  transition: transform 0.2s;
  position: relative;
}

.jm-cell:active {
  transform: scale(0.96);
}

.jm-cell.auspicious { background: linear-gradient(135deg, #e6f0e6, #d4e8d4); border-color: var(--green); }
.jm-cell.inauspicious { background: linear-gradient(135deg, #ffebee, #fccfcf); border-color: var(--red); }
.jm-cell.daji { background: linear-gradient(135deg, #fff8e1, #fff3e0); border-color: var(--gold); box-shadow: 0 0 12px rgba(255,215,0,0.2); }

.star-num {
  font-size: 26px;
  font-weight: bold;
  color: var(--green);
  line-height: 1;
  font-family: var(--font-kai);
}

.jm-cell.inauspicious .star-num { color: var(--red); }
.jm-cell.daji .star-num { color: var(--orange); }

.star-pos {
  font-size: 12px;
  color: var(--brown);
  margin-top: 2px;
}

.star-name {
  font-size: 10px;
  color: var(--brown-light);
}

.quick-section {
  margin-bottom: 10px;
  padding: 10px;
  background: var(--cream);
  border-radius: 8px;
}

.quick-label {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 4px;
}

.quick-items {
  font-size: 13px;
  color: var(--brown);
}

.warning-card {
  background: linear-gradient(135deg, #fff8e1, #fff3e0);
}

/* ============ 八卦/布局页 ============ */
.bg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.bg-cell {
  background: linear-gradient(135deg, var(--cream-light), var(--cream));
  border-radius: var(--radius-md);
  padding: 12px 10px;
  text-align: center;
  min-height: 88px;
  border: 1px solid var(--border-light);
  transition: transform 0.2s;
}

.bg-cell:active {
  transform: scale(0.96);
}

.bg-cell.focus {
  background: linear-gradient(135deg, #e6f0e6, #d4e8d4);
  border: 2px solid var(--green);
  box-shadow: 0 0 12px rgba(46,90,60,0.12);
}

.bg-dir {
  font-size: 12px;
  color: var(--brown-light);
}

.bg-name {
  font-size: 14px;
  font-weight: bold;
  color: var(--green);
  margin: 2px 0;
}

.bg-area {
  font-size: 11px;
  color: var(--brown);
}

.bg-element {
  font-size: 10px;
  color: var(--brown-light);
  margin-top: 2px;
}

.bg-suggestion {
  font-size: 10px;
  color: var(--brown);
  margin-top: 4px;
  line-height: 1.4;
}

/* ============ 五行调理页 ============ */
.wx-type-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wx-type-item {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  color: var(--brown);
  cursor: pointer;
}

.wx-type-item.active {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

.wx-type-icon {
  font-size: 18px;
}

/* ============ 知识库页 ============ */
.kw-total {
  font-size: 12px;
  color: var(--brown-light);
  margin-bottom: 8px;
}

.kw-cat-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.kw-cat-tab {
  display: inline-block;
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 14px;
  background: var(--cream);
  color: var(--brown);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}

.kw-cat-tab:active {
  transform: scale(0.95);
}

.kw-cat-tab.kw-cat-active {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

.kw-cat-title {
  font-size: 14px;
  font-weight: bold;
  color: var(--green);
  margin-top: 12px;
  margin-bottom: 6px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--cream-dark);
}

.kw-cat-count {
  font-size: 11px;
  font-weight: normal;
  color: var(--brown-light);
}

.kw-item {
  padding: 0;
  border-bottom: 1px solid var(--cream-dark);
}

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

.kw-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  cursor: pointer;
  user-select: none;
}

.kw-item-header:active {
  background: rgba(0,0,0,0.03);
}

.kw-item-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--brown);
  flex: 1;
}

.kw-item-arrow {
  font-size: 10px;
  color: var(--brown-light);
  transition: transform 0.2s;
  margin-left: 8px;
}

.kw-item-active .kw-item-arrow {
  transform: rotate(180deg);
}

.kw-item-body {
  padding-bottom: 10px;
}

.kw-item-content {
  font-size: 12px;
  line-height: 1.7;
  color: var(--brown-light);
  padding: 4px 0 8px 0;
}

/* ============ 个人中心页 ============ */
.profile-header {
  display: flex;
  align-items: center;
  padding: 24px 0 16px;
  gap: 16px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 12px;
}

.avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: bold;
  box-shadow: var(--shadow-green);
}

.profile-logo-img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 16px rgba(46,90,60,0.25);
  border: 2px solid rgba(255,255,255,0.8);
  flex-shrink: 0;
}

.user-name {
  font-size: 18px;
  font-weight: 500;
  color: var(--brown);
}

.user-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.status-badge {
  padding: 3px 10px;
  background: var(--green-bg);
  color: var(--green);
  border-radius: 10px;
  font-size: 11px;
  font-weight: 500;
  border: 1px solid var(--green-light);
}

.activation-code {
  font-size: 12px;
  color: var(--brown-light);
}

.info-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--cream-dark);
  font-size: 14px;
}

.info-row:last-child {
  border-bottom: none;
}

.info-label {
  color: var(--brown-light);
}

.info-value {
  color: var(--brown);
  font-weight: 500;
}

.menu-item {
  display: flex;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--cream-dark);
  text-decoration: none;
  color: inherit;
  transition: background 0.2s;
}

.menu-item:active {
  background: rgba(0,0,0,0.03);
}

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

.menu-icon {
  font-size: 22px;
  margin-right: 14px;
}

.menu-text {
  flex: 1;
  font-size: 15px;
  color: var(--brown);
}

.menu-arrow {
  color: var(--border);
  font-size: 18px;
}

/* ============ 响应式 ============ */
@media (max-width: 380px) {
  .quick-actions { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(3, 1fr); }
  .zw-grid { grid-template-columns: repeat(3, 1fr); }
  .action-icon { font-size: 28px; }
  .action-title { font-size: 13px; }
}

/* ============ 补充样式 ============ */
.advice-card {
  background: linear-gradient(135deg, #f0f8f0, #e8f5e9);
  border-left: 3px solid var(--green);
}

.zw-gong-ming {
  background: #e6f0e6;
  border: 2px solid var(--green);
}

.user-meta {
  flex: 1;
}

.yunpan-info {
  font-size: 13px;
  color: var(--green);
  padding: 8px 12px;
  background: var(--cream);
  border-radius: 6px;
  margin-bottom: 12px;
  font-weight: 500;
}

/* ============ 紫微斗数新增样式 ============ */
.zw-gong-shen {
  font-size: 11px;
  color: var(--brown-light);
  margin-top: 2px;
}

.zw-gong-daxian {
  font-size: 10px;
  color: var(--green);
  margin-top: 2px;
  font-weight: 500;
}

.zw-gong-pos {
  font-size: 10px;
  color: var(--border);
}

.zw-star-card {
  background: var(--cream);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 10px;
  border-left: 3px solid var(--green);
}

.zw-star-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.zw-star-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--brown);
}

.zw-star-brightness {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 10px;
  background: #e8f5e9;
  color: var(--green);
}

.zw-star-element {
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 8px;
  background: #fff3e0;
  color: #e65100;
}

.zw-star-nature {
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 8px;
  background: #e3f2fd;
  color: #1565c0;
}

.zw-aux-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 10px;
  background: var(--cream);
  border-radius: 6px;
  margin-bottom: 6px;
}

.zw-aux-name {
  font-weight: 600;
  color: var(--brown);
  font-size: 14px;
  white-space: nowrap;
}

.zw-aux-nature {
  font-size: 11px;
  color: var(--brown-light);
}

.zw-pattern-item {
  padding: 10px 12px;
  background: linear-gradient(135deg, #f0f8f0, #e8f5e9);
  border-radius: 8px;
  margin-bottom: 8px;
  border-left: 3px solid var(--green);
}

.zw-sanfang-list {
  margin-top: 6px;
}

.zw-sanfang-item {
  padding: 8px 10px;
  background: var(--cream);
  border-radius: 6px;
  margin-bottom: 6px;
}

.zw-sanfang-pos {
  font-size: 12px;
  color: var(--green);
  font-weight: 600;
}

.zw-sanfang-gong {
  font-size: 13px;
  color: var(--brown);
  margin-left: 4px;
}

.zw-sanfang-stars {
  font-size: 12px;
  color: var(--brown-light);
  margin-top: 4px;
}

.zw-sihua-item {
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 8px;
}

.zw-sihua-star {
  font-weight: 600;
  font-size: 14px;
}

.zw-sihua-gong {
  font-size: 12px;
  color: var(--brown-light);
  margin-left: 6px;
}

.zw-palace-item {
  padding: 10px 12px;
  background: var(--cream);
  border-radius: 8px;
  margin-bottom: 8px;
}

.zw-palace-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.zw-palace-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--brown);
}

.zw-palace-pos {
  font-size: 11px;
  color: var(--border);
}

.zw-luck-ji {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  background: #e8f5e9;
  color: var(--green);
}

.zw-luck-xiong {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  background: #ffebee;
  color: #c62828;
}

.zw-luck-ping {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  background: #fff3e0;
  color: #e65100;
}

.zw-palace-key {
  font-size: 12px;
  color: var(--brown-light);
  line-height: 1.6;
  margin-top: 4px;
}

/* ============ 奇门遁甲新增样式 ============ */
.qm-gong-daji {
  background: #c8e6c9 !important;
  border: 2px solid var(--green);
}

.qm-gong-ji {
  background: #dcedc8 !important;
  border: 2px solid #8bc34a;
}

.qm-gong-ping {
  background: #fff8e1 !important;
  border: 2px solid #ffc107;
}

.qm-gong-xiong {
  background: #ffccbc !important;
  border: 2px solid #ff5722;
}

.qm-gong-daxiong {
  background: #ffcdd2 !important;
  border: 2px solid #c62828;
}

.qm-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  justify-content: center;
}

.qm-legend-item {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.qm-pattern-item {
  padding: 10px 12px;
  background: var(--cream);
  border-radius: 8px;
  margin-bottom: 8px;
  border-left: 3px solid var(--green);
}

.qm-pattern-name {
  font-weight: 600;
  color: var(--brown);
  font-size: 14px;
  margin-left: 6px;
}

.qm-detail-card {
  background: var(--cream);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 10px;
  border-left: 3px solid var(--green);
}

.qm-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.qm-detail-pos {
  font-size: 15px;
  font-weight: 600;
  color: var(--brown);
}

.qm-detail-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0;
  flex-wrap: wrap;
}

.qm-detail-label {
  font-size: 12px;
  color: var(--brown-light);
  min-width: 36px;
}

.qm-detail-star {
  font-size: 14px;
  font-weight: 600;
  color: #1565c0;
}

.qm-detail-men {
  font-size: 14px;
  font-weight: 600;
  color: var(--green);
}

.qm-detail-shen {
  font-size: 14px;
  font-weight: 600;
  color: #6a1b9a;
}

.qm-detail-nature {
  font-size: 11px;
  color: var(--brown-light);
  padding: 2px 6px;
  background: #fff;
  border-radius: 6px;
}

.qm-dir-item {
  padding: 10px 12px;
  background: #fff;
  border-radius: 8px;
  margin-bottom: 8px;
  border: 1px solid var(--border);
}

.qm-dir-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.qm-dir-event {
  font-size: 14px;
  font-weight: 600;
  color: var(--brown);
}

.qm-dir-score {
  font-size: 14px;
  color: #f9a825;
  letter-spacing: 2px;
}

.qm-dir-direction {
  font-size: 13px;
  color: var(--green);
  margin-bottom: 4px;
}

.qm-dir-detail {
  font-size: 12px;
  color: var(--brown-light);
  margin-bottom: 4px;
}

/* ============ 深度分析组件 ============ */
.deep-card {
  margin-top: 12px;
}

.deep-section {
  margin-bottom: 12px;
  padding: 10px 12px;
  background: rgba(248,241,227,0.4);
  border-radius: var(--radius-sm);
}

.deep-label {
  font-size: 13px;
  font-weight: bold;
  color: var(--green);
  margin-bottom: 6px;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.deep-label::before {
  content: '◆';
  font-size: 10px;
  color: var(--green-light);
}

.deep-text {
  font-size: 13px;
  line-height: 1.8;
  color: var(--brown);
  margin-bottom: 6px;
}

.deep-row {
  display: flex;
  gap: 12px;
  margin-bottom: 8px;
}

.deep-col {
  flex: 1;
}

.deep-sub {
  font-size: 12px;
  line-height: 1.7;
  color: var(--brown);
  padding: 5px 0;
}

.deep-good {
  color: var(--green);
  font-weight: 500;
}

.deep-bad {
  color: var(--red);
  font-weight: 500;
}

.deep-block {
  padding: 14px;
  background: linear-gradient(135deg, var(--cream-light), var(--cream));
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  border-left: 3px solid var(--green);
}

.deep-block-focus {
  border-left-color: var(--orange);
  background: linear-gradient(135deg, #fff8e1, #fff3e0);
}

.deep-block-title {
  font-size: 15px;
  font-weight: bold;
  color: var(--green);
  margin-bottom: 8px;
}

.deep-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.deep-tags .tag {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 12px;
}

.deep-classical {
  font-family: var(--font-kai);
  font-style: italic;
  color: var(--brown);
  padding: 10px 14px;
  background: linear-gradient(135deg, rgba(255,255,255,0.8), rgba(248,241,227,0.6));
  border-radius: var(--radius-md);
  border-left: 3px solid var(--brown-light);
  font-size: 14px;
  line-height: 1.8;
}

.deep-summary-card {
  background: linear-gradient(135deg, #f8fdf8, #f0f8f0);
  border: 1px solid var(--green);
  border-radius: var(--radius-md);
}

.deep-summary-text {
  font-size: 14px;
  line-height: 2;
  color: var(--brown);
  text-align: justify;
}

.deep-section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 12px 0;
}

/* ============ 六爻占卜 ============ */
.ly-hexagram-wrap {
  display: flex;
  justify-content: center;
  gap: 50px;
  padding: 24px 0 16px;
  flex-wrap: wrap;
}

.ly-hex-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.ly-hex-title {
  font-size: 15px;
  font-weight: bold;
  color: var(--green);
  margin-bottom: 10px;
  padding: 4px 16px;
  background: var(--green-bg);
  border-radius: 12px;
  letter-spacing: 1px;
}

.ly-yao-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-family: var(--font-kai);
  min-height: 32px;
}

.ly-yao-pos {
  font-size: 12px;
  color: var(--brown-light);
  width: 36px;
  text-align: right;
}

.ly-yao-sym {
  letter-spacing: 3px;
  font-size: 20px;
  color: var(--green);
  position: relative;
  min-width: 130px;
  text-align: center;
  font-weight: 500;
}

.ly-moving-mark {
  color: var(--red);
  font-size: 16px;
  margin-left: 6px;
  font-weight: bold;
}

.ly-yao-mark {
  font-size: 13px;
  width: 22px;
  text-align: center;
  font-weight: bold;
}

.ly-shi-mark {
  color: var(--red);
}

.ly-ying-mark {
  color: var(--blue);
}

.ly-yao-table {
  width: 100%;
  font-size: 13px;
  border-collapse: collapse;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.ly-yao-header {
  display: grid;
  grid-template-columns: 1fr 0.8fr 1fr 1fr 1fr 0.8fr 0.5fr;
  font-weight: bold;
  color: var(--green);
  background: var(--green-bg);
  padding: 10px 0;
  text-align: center;
  border-bottom: 2px solid var(--green-light);
}

.ly-yao-header span {
  text-align: center;
}

.ly-yao-tr {
  display: grid;
  grid-template-columns: 1fr 0.8fr 1fr 1fr 1fr 0.8fr 0.5fr;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  text-align: center;
  color: var(--brown);
  transition: background 0.15s;
}

.ly-yao-tr:last-child {
  border-bottom: none;
}

.ly-yao-tr span {
  text-align: center;
}

.ly-yao-tr.ly-moving {
  background: rgba(198,40,40,0.06);
}

.ly-yao-tr.ly-moving span:first-child {
  color: var(--red);
  font-weight: bold;
}
