:root {
  --brand-red: #b82a2a;
  --brand-red-dark: #8f1b1b;
  --accent-gold: #c8a24a;
  --bg-light: #f4efe4;
  --panel: #fdfaf5;
  --text-main: #3d322d;
  --text-sub: #8c7e75;
  --tab-gray: #9fa3a9;
  --border-gold: #d4b886;
}

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

html,
body {
  background: #e8e2d5;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text-main);
  line-height: 1.4;
}

.page {
  max-width: 375px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--bg-light);
  position: relative;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

/* Hero Section */
.hero {
  position: relative;
  height: 520px;
  padding: calc(env(safe-area-inset-top) + 12px) 16px 20px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1), transparent 30%),
              url("../../小图/微信图片_20260414193434_77_535.jpg") center top / cover no-repeat;
}

.hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
}

.brand-logo {
  width: 120px;
  height: auto;
}

.hero-copy {
  margin-top: 40px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-slogan-left {
  position: absolute;
  left: 0;
  top: 10px;
  display: flex;
  gap: 12px;
}

.hero-slogan-left .vertical {
  writing-mode: vertical-rl;
  color: rgba(255, 255, 255, 0.95);
  font-size: 14px;
  letter-spacing: 3px;
  font-family: "STSong", "SimSun", serif;
  font-weight: 300;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
  border-left: 1px solid rgba(255, 255, 255, 0.4);
  padding-left: 6px;
}

.hero-title-img {
  width: 130px;
  height: auto;
  margin-top: 10px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.hero-slogan-bottom {
  position: absolute;
  top: 220px;
  left: 36%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: row-reverse;
  gap: 12px;
  z-index: 5;
}

.hero-slogan-bottom span {
  writing-mode: vertical-rl;
  color: rgba(255, 255, 255, 0.95);
  font-size: 15px;
  letter-spacing: 3px;
  font-family: "STKaiti", "KaiTi", "BiauKai", serif;
  font-weight: 300;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
  line-height: 1.2;
}

.hero-slogan-bottom .slogan-1 {
  margin-top: 0;
}

.hero-slogan-bottom .slogan-2 {
  margin-top: 35px;
}

/* Content Area */
.content {
  position: relative;
  margin-top: -30px;
  padding: 0 12px 100px;
  background: linear-gradient(to bottom, transparent, var(--bg-light) 40px),
              radial-gradient(circle at 90% 150px, rgba(212, 184, 134, 0.1) 0, transparent 150px);
  z-index: 5;
}

/* Decorative Borders */
.login-banner, .feature-card {
  position: relative;
  background: #fdfaf5;
  box-shadow: 0 4px 15px rgba(120, 92, 63, 0.08);
  border: 1px solid #e8dcc4;
}

.banner-border, .card-border {
  position: absolute;
  inset: 4px;
  border: 0.5px solid #d4b886;
  pointer-events: none;
  border-radius: inherit;
  opacity: 0.6;
}

/* Login Banner */
.login-banner {
  border-radius: 20px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  background: #fffcf8;
}

.banner-avatar {
  width: 60px;
  height: 60px;
  object-fit: contain;
  z-index: 1;
}

.banner-text {
  flex: 1;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.banner-text h2 {
  font-size: 18px;
  color: #453831;
  margin-bottom: 2px;
  font-weight: 600;
  white-space: nowrap;
}

.banner-text p {
  font-size: 12px;
  color: #a08d7a;
  white-space: nowrap;
}

.login-btn {
  background: #c1272d;
  color: white;
  border: none;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 10px rgba(193, 39, 45, 0.25);
  z-index: 1;
  position: relative;
  white-space: nowrap;
  margin-left: auto;
}

.login-btn::before, .login-btn::after {
  content: '';
  width: 2.5px;
  height: 2.5px;
  background: white;
  border-radius: 50%;
  opacity: 0.8;
}

/* Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

.feature-card {
  border-radius: 12px;
  padding: 12px 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 80px;
  text-decoration: none;
}

.card-content h3 {
  font-size: 22px;
  margin-bottom: 2px;
  color: #453831;
  font-weight: 600;
  white-space: nowrap;
}

.card-content p {
  font-size: 12px;
  color: #a08d7a;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.feature-card img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  z-index: 1;
}

/* Village Section */
.village h4 {
  font-size: 18px;
  margin-bottom: 12px;
  color: #453831;
  text-align: left;
  padding-left: 4px;
  font-weight: 600;
}

.village-img-wrapper {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.village-img-wrapper img {
  width: 100%;
  height: 140px;
  display: block;
  object-fit: cover;
}

/* Bottom Tab */
.bottom-tab {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 375px;
  height: calc(65px + env(safe-area-inset-bottom));
  background: rgba(253, 250, 245, 0.95);
  backdrop-filter: blur(10px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding-bottom: env(safe-area-inset-bottom);
  border-top: 1px solid rgba(0,0,0,0.05);
  z-index: 100;
}

.tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #a0a0a0;
  gap: 4px;
}

/* Bottom Tab Icons */
.tab-icon-svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.tab-item.active .tab-icon-svg {
  fill: var(--accent-gold);
}

.tab-icon-placeholder {
  width: 24px;
  height: 24px;
  background: #e0e0e0;
  border-radius: 50%;
}

.tab-item span {
  font-size: 11px;
}

.tab-item.active {
  color: var(--accent-gold);
}

