/* ===== 芳香灸养 共享样式 ===== */

:root {
  --brown-deep: #7d5630;
  --brown-mid: #8B5E3C;
  --brown-light: #C4956A;
  --red-accent: #A63A2A;
  --bg-warm: #F7F4EF;
  --bg-beige: #E8DDD2;
  --white: #FFFFFF;
  --shadow: rgba(44,26,14,0.08);
  --shadow-strong: rgba(44,26,14,0.16);

  /* Apple风格导航 */
  --nav-bg: #FFFFFF;
  --nav-text: #1D1D1F;
  --nav-text-hover: #8B5E3C;
  --nav-height: 60px;
  --nav-font-size: 18px;
  --footer-bg: #F5F5F7;
  --footer-text: #86868B;
  --footer-border: #D2D2D7;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Microsoft YaHei', '微软雅黑', 'PingFang SC', 'Helvetica Neue', sans-serif;
  background: var(--bg-warm);
  color: var(--brown-deep);
  line-height: 1.8;
  font-size: 12px;
}

/* ===== 顶部导航（Apple风格） ===== */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  background: rgba(255,255,255,0.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.3s;
}

.nav-logo:hover { opacity: 0.8; }

.nav-logo-img {
  height: 36px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  flex: 1;
  justify-content: center;
}

.nav-links li { display: flex; }

.nav-links a {
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  height: 60px;
  font-size: 18px;
  color: var(--nav-text);
  text-decoration: none;
  font-weight: 400;
  white-space: nowrap;
  transition: opacity 0.3s;
}

.nav-links a:hover { opacity: 0.7; }

/* 导航下拉菜单 */
.nav-dropdown { position: relative; }
.nav-dropdown > a::after {
  content: "▾";
  font-size: 12px;
  margin-left: 4px;
  opacity: 0.6;
}
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  list-style: none;
  padding: 0;
  margin: 0;
  min-width: 160px;
  border-radius: 0 0 8px 8px;
  overflow: hidden;
  display: none;
  z-index: 100;
}
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-menu li { display: block; }
.nav-dropdown-menu a {
  display: block;
  padding: 12px 20px;
  height: auto;
  font-size: 12px;
  font-weight: 700;
  border-bottom: 1px solid var(--bg-beige);
}
.nav-dropdown-menu li:last-child a { border-bottom: none; }
.nav-dropdown-menu a:hover {
  opacity: 1;
  background: var(--bg-warm);
}

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

.nav-search {
  display: flex;
  align-items: center;
  width: 260px;
  height: 36px;
  background: var(--bg-warm);
  border: 1px solid var(--footer-border);
  border-radius: 18px;
  padding: 0 12px 0 16px;
  transition: border-color 0.3s, background 0.3s;
}

.nav-search:hover,
.nav-search:focus-within {
  background: var(--white);
  border-color: var(--brown-light);
}

.nav-search input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 14px;
  color: var(--nav-text);
  outline: none;
  padding: 0;
  height: 100%;
}

.nav-search input::placeholder {
  color: #999;
}

.nav-search button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 0 0 8px;
  color: var(--brown-mid);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-staff-btn {
  font-size: 18px;
  color: var(--red-accent);
  text-decoration: none;
  white-space: nowrap;
  padding: 0 10px;
  height: 60px;
  display: inline-flex;
  align-items: center;
  font-weight: 500;
  transition: opacity 0.3s;
}

.nav-staff-btn:hover { opacity: 0.7; }

.nav-kaoqin-btn {
  color: var(--brown-mid);
  font-size: 16px;
}

/* 汉堡菜单按钮（手机端） */
.nav-mobile-toggle {
  display: none;
  height: 60px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 4px;
}

.nav-mobile-label {
  font-size: 14px;
  color: var(--nav-text);
  font-weight: 500;
}

.hamburger-icon {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--nav-text);
  position: relative;
  transition: background 0.3s;
}

.hamburger-icon::before,
.hamburger-icon::after {
  content: '';
  display: block;
  width: 22px;
  height: 2px;
  background: var(--nav-text);
  position: absolute;
  left: 0;
  transition: transform 0.3s, background 0.3s;
}

.hamburger-icon::before { top: -7px; }
.hamburger-icon::after { top: 7px; }

/* 汉堡菜单打开状态 */
.nav-mobile-toggle.active .hamburger-icon { background: transparent; }
.nav-mobile-toggle.active .hamburger-icon::before { transform: rotate(45deg); top: 0; }
.nav-mobile-toggle.active .hamburger-icon::after { transform: rotate(-45deg); top: 0; }

/* 手机端展开菜单 */
.nav-mobile-menu {
  display: none;
  position: fixed;
  top: 60px;
  left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 9998;
  padding: 20px 0;
  overflow-y: auto;
}

.nav-mobile-menu.open { display: block; }

.nav-mobile-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-mobile-menu li { border-bottom: 1px solid rgba(0,0,0,0.08); }

.nav-mobile-menu a {
  display: block;
  padding: 12px 22px;
  font-size: 14px;
  color: var(--nav-text);
  text-decoration: none;
  transition: opacity 0.3s;
}

.nav-mobile-menu a:hover { opacity: 0.7; }

/* 手机端子菜单 */
.mobile-submenu > a {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-arrow {
  font-size: 18px;
  transition: transform 0.3s;
  display: inline-block;
}

.mobile-submenu.open .mobile-arrow { transform: rotate(90deg); }

.mobile-submenu-list {
  display: none;
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-submenu.open .mobile-submenu-list { display: block; }

.mobile-submenu-list a {
  padding-left: 44px;
  font-size: 13px;
  color: var(--brown-mid);
}

/* ===== 底部导航（Apple风格） ===== */
#site-footer {
  background: var(--footer-bg);
  padding: 16px 22px;
  border-top: 1px solid var(--footer-border);
  font-size: 18px;
  color: var(--footer-text);
  line-height: 1.6;
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--nav-text);
  text-decoration: none;
  font-size: 18px;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.footer-links a:hover { opacity: 1; }

.footer-divider {
  color: var(--footer-border);
  margin: 0 6px;
}

.footer-copyright {
  text-align: center;
  font-size: 18px;
  color: var(--footer-text);
}

.footer-letter-link {
  color: var(--brown-mid);
  text-decoration: none;
  border-bottom: 1px dashed rgba(139, 94, 60, 0.5);
  transition: all 0.3s;
}

.footer-letter-link:hover {
  color: var(--brown-deep);
  border-bottom-color: var(--brown-deep);
}

/* ===== 内容容器 ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 22px;
  padding-right: 22px;
}

/* ===== 主页通用 ===== */
.main-content {
  margin-top: var(--nav-height);
}

/* ===== 首屏：左侧轮播图 + 右侧视频 ===== */
.hero-section {
  width: 100%;
  background: var(--bg-beige);
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 12px;
  padding: 12px 0;
  align-items: stretch;
}

.hero-carousel {
  position: relative;
  flex: 2;
  overflow: hidden;
  border-radius: 8px;
}

.hero-video-grid {
  flex: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
}

.video-card {
  display: flex;
  flex-direction: column;
  border-radius: 6px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 1px 6px var(--shadow);
}

.video-card video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  background: var(--bg-beige);
}

.video-info {
  padding: 8px 10px 10px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.video-title {
  font-size: 14px;
  color: var(--brown-deep);
  font-weight: 500;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8em;
}

.video-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--brown-mid);
  margin-top: auto;
}

.banner-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease;
}

.banner-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
}

.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 占位图（有实际图片后删除） */
.banner-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 4px;
}
.banner-ph-1 { background: linear-gradient(135deg, #2C1A0E, #8B5E3C); }
.banner-ph-2 { background: linear-gradient(135deg, #8B5E3C, #C4956A); }
.banner-ph-3 { background: linear-gradient(135deg, #C4956A, #A63A2A); }
.banner-ph-4 { background: linear-gradient(135deg, #A63A2A, #8B5E3C); }
.banner-ph-5 { background: linear-gradient(135deg, #2C1A0E, #C4956A); }

/* 轮播图标题渐变遮罩 */
.banner-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 48px 20px 14px;
  background: linear-gradient(transparent, rgba(0,0,0,0.65));
  z-index: 1;
}

.banner-title {
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
}

/* 轮播按钮 */
.banner-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.3);
  border: none;
  color: #fff;
  font-size: 32px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
  z-index: 2;
}

.banner-btn:hover {
  background: rgba(0,0,0,0.6);
}

.banner-prev { left: 16px; }
.banner-next { right: 16px; }

/* 轮播圆点 */
.banner-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.banner-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: background 0.3s;
}

.banner-dot.active {
  background: #fff;
}

/* ===== 通用section ===== */
.section-header {
  text-align: center;
  margin-bottom: 32px;
}

.section-title {
  font-size: 22px;
  letter-spacing: 4px;
  color: var(--brown-deep);
}

.section-line {
  width: 48px;
  height: 2px;
  background: var(--red-accent);
  margin: 8px auto 6px;
}

.section-subtitle {
  font-size: 12px;
  color: var(--brown-mid);
  letter-spacing: 2px;
}

/* ===== 服务卡片 ===== */
.services-section {
  padding: 48px 22px;
  max-width: 960px;
  margin: 0 auto;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.service-card {
  background: var(--white);
  border-radius: 12px;
  padding: 24px 20px;
  box-shadow: 0 2px 12px var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: default;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px var(--shadow-strong);
}

.service-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg-beige);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 12px;
}

.service-name {
  font-size: 22px;
  letter-spacing: 2px;
  color: var(--brown-deep);
  margin-bottom: 6px;
}

.service-desc {
  font-size: 12px;
  color: var(--brown-mid);
  line-height: 1.8;
}

/* ===== 品牌理念 ===== */
.philosophy-section {
  padding: 48px 22px;
  background: var(--bg-beige);
}

.philosophy-inner {
  max-width: 960px;
  margin: 0 auto;
}

.philosophy-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.philosophy-item {
  background: var(--white);
  border-radius: 10px;
  padding: 20px 24px;
  box-shadow: 0 2px 8px var(--shadow);
}

.philosophy-key {
  font-size: 22px;
  letter-spacing: 2px;
  color: var(--brown-deep);
  margin-bottom: 6px;
}

.philosophy-text {
  font-size: 12px;
  color: var(--brown-mid);
  line-height: 1.8;
}

/* ===== 联系方式 ===== */
.contact-section {
  padding: 48px 22px;
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

.contact-card {
  background: var(--brown-deep);
  border-radius: 16px;
  padding: 36px;
  color: var(--bg-warm);
  max-width: 400px;
  margin: 0 auto;
}

.contact-brand {
  font-size: 22px;
  letter-spacing: 6px;
  color: var(--brown-light);
  margin-bottom: 4px;
}

.contact-slogan {
  font-size: 12px;
  color: var(--bg-beige);
  letter-spacing: 3px;
  margin-bottom: 20px;
  opacity: 0.8;
}

.contact-item {
  font-size: 12px;
  color: var(--bg-beige);
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.contact-item strong {
  color: var(--brown-light);
}

/* ===== 二十四节气表 ===== */
.solar-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 22px 60px;
}

.solar-header {
  text-align: center;
  padding-bottom: 24px;
  border-bottom: 3px double var(--brown-mid);
  margin-bottom: 32px;
}

.solar-title {
  font-size: 28px;
  color: var(--brown-deep);
  letter-spacing: 6px;
}

.solar-year {
  font-size: 16px;
  color: var(--red-accent);
  letter-spacing: 4px;
  margin-top: 6px;
}

.solar-slogan {
  font-size: 16px;
  color: var(--red-accent);
  letter-spacing: 4px;
  margin-top: 4px;
}

.season-block {
  border: 2px solid var(--brown-light);
  border-radius: 10px;
  background: #FBF8F3;
  margin-bottom: 20px;
  overflow: hidden;
}

.season-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  color: var(--bg-warm);
}

.season-head .s-name {
  font-size: 20px;
  letter-spacing: 6px;
}

.season-head .s-info {
  font-size: 13px;
  letter-spacing: 2px;
  opacity: 0.9;
}

.season-spring .season-head { background: var(--brown-mid); }
.season-summer .season-head { background: #2E5D3A; }
.season-autumn .season-head { background: #6B4423; }
.season-winter .season-head { background: #3D2E1F; }

.season-body {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 16px;
}

.term-card {
  background: var(--bg-warm);
  border: 2px solid var(--brown-mid);
  border-radius: 8px;
  padding: 16px 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.season-summer .term-card { border-color: #2E5D3A; }
.season-autumn .term-card { border-color: #6B4423; }
.season-winter .term-card { border-color: #3D2E1F; }

.term-name {
  font-size: 24px;
  color: var(--brown-deep);
  letter-spacing: 4px;
  line-height: 1.2;
}

.season-summer .term-name { color: #2E5D3A; }

.term-solar {
  font-size: 15px;
  color: var(--brown-mid);
  letter-spacing: 1px;
}

.term-lunar {
  font-size: 13px;
  color: var(--red-accent);
  letter-spacing: 1px;
}

.solar-footer {
  text-align: center;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 2px solid var(--brown-light);
}

.solar-footer .f-slogan {
  font-size: 18px;
  color: var(--red-accent);
  letter-spacing: 6px;
}

.solar-footer .f-info {
  font-size: 13px;
  color: var(--brown-mid);
  letter-spacing: 2px;
  margin-top: 4px;
}

/* ===== 超宽屏（2560px+） ===== */
@media (min-width: 1600px) {
  .hero-inner { max-width: 1400px; }
}

/* ===== 响应式（手机端） ===== */
@media (max-width: 833px) {
  /* 手机端导航 */
  .nav-links, .nav-search { display: none; }
  .nav-mobile-toggle { display: flex; }
  .nav-inner { padding: 0 16px; height: 60px; }
  .nav-mobile-menu { top: 60px; }
  .main-content { margin-top: 60px; }
  .nav-logo-img { height: 32px; }

  /* 首屏变上下排列 */
  .hero-inner { flex-direction: column; gap: 8px; padding: 8px 16px; }
  .hero-carousel { height: 200px; }
  .hero-video-grid { grid-template-columns: 1fr 1fr; gap: 6px; }
  .banner-btn { width: 32px; height: 32px; font-size: 24px; }

  /* 内容区 */
  .services-section, .philosophy-section, .contact-section { padding: 32px 16px; }
  .philosophy-values { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
  .season-body { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .hero-carousel { height: 150px; }
  .hero-video-grid { grid-template-columns: 1fr 1fr; gap: 4px; }
  .banner-btn { display: none; }
}
