:root {
  --red-900: #7f1d1d;
  --red-800: #991b1b;
  --red-700: #b91c1c;
  --red-600: #dc2626;
  --red-500: #ef4444;
  --red-200: #fecaca;
  --red-100: #fee2e2;
  --red-50: #fef2f2;
  --amber-700: #b45309;
  --amber-600: #d97706;
  --amber-500: #f59e0b;
  --amber-100: #fef3c7;
  --amber-50: #fffbeb;
  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-400: #9ca3af;
  --white: #fff;
  --radius: 12px;
  --shadow: 0 10px 40px rgba(185, 28, 28, 0.08);
  font-family: 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', 'Noto Sans SC', ui-sans-serif,
    system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--gray-900);
  -webkit-font-smoothing: antialiased;
}

.page {
  min-height: 100vh;
  background: linear-gradient(180deg, #fff7ed 0%, #fffbeb 45%, #fef2f2 100%);
}

/* 导航栏样式 */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--red-100);
  box-shadow: 0 2px 10px rgba(185, 28, 28, 0.05);
}

.navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.navbar-brand {
  display: flex;
  align-items: center;
}

.brand-text {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(90deg, var(--red-800), var(--amber-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: 'Noto Serif SC', 'Songti SC', Georgia, serif;
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar-link {
  padding: 0.5rem 1rem;
  text-decoration: none;
  color: var(--gray-700);
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.navbar-link:hover {
  color: var(--red-700);
  background: var(--red-50);
}

.navbar-link.active {
  color: var(--red-700);
  background: var(--red-100);
}

.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
}

.navbar-toggle span {
  width: 20px;
  height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Banner图样式 */
.banner {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
}

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

.banner-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(127, 29, 29, 0.7) 0%, rgba(180, 83, 9, 0.5) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-text {
  text-align: center;
  color: var(--white);
  padding: 2rem;
  max-width: 600px;
}

.banner-title {
  margin: 0 0 1rem;
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 700;
  font-family: 'Noto Serif SC', 'Songti SC', Georgia, serif;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.banner-subtitle {
  margin: 0 0 2rem;
  font-size: 1.25rem;
  opacity: 0.95;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.banner-btn {
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--white);
  background: linear-gradient(90deg, var(--red-600), var(--amber-600));
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.35);
  transition: all 0.3s ease;
  font-family: 'Noto Serif SC', Georgia, serif;
}

.banner-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.45);
}

.banner-btn:active {
  transform: translateY(0);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .navbar-toggle {
    display: flex;
  }

  .navbar-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-top: 1px solid var(--red-100);
    display: none;
  }

  .navbar-menu.active {
    display: flex;
  }

  .navbar-link {
    width: 100%;
    text-align: center;
    padding: 0.75rem;
  }

  .banner {
    height: 300px;
  }

  .banner-title {
    font-size: 2rem;
  }

  .banner-subtitle {
    font-size: 1rem;
  }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
}

.site-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.site-title {
  margin: 0 0 1rem;
  font-size: clamp(2.25rem, 5vw, 3rem);
  font-weight: 700;
  font-family: 'Noto Serif SC', 'Songti SC', Georgia, serif;
  background: linear-gradient(90deg, var(--red-800), var(--amber-600), var(--red-800));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-subtitle {
  margin: 0;
  font-size: 1.125rem;
  color: rgba(127, 29, 29, 0.75);
}

.hidden {
  display: none !important;
}

.error-banner {
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--red-100);
  border: 1px solid var(--red-200);
  border-radius: var(--radius);
  color: var(--red-800);
  text-align: center;
  font-weight: 500;
}

.transition-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #fff7ed 0%, #fffbeb 45%, #fef2f2 100%);
}

.transition-inner {
  position: relative;
  width: min(90vw, 360px);
  height: min(90vw, 360px);
}

.transition-ring {
  position: absolute;
  inset: 0;
  animation: spin-reverse 8s linear infinite;
}

@keyframes spin-reverse {
  to {
    transform: rotate(-360deg);
  }
}

.transition-svg {
  width: 100%;
  height: 100%;
}

.transition-svg-text {
  fill: var(--red-900);
  font-family: 'Microsoft YaHei', sans-serif;
  letter-spacing: 0.5px;
}

.transition-bagua {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 75%;
  height: 75%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.4;
  animation: bagua-spin 15s linear infinite;
}

.transition-bagua-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

/* 八卦图在环形文字内部旋转的动画 */
@keyframes bagua-spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.transition-msg {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2rem;
  margin: 0;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--red-900);
  font-family: 'Microsoft YaHei', sans-serif;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  50% {
    opacity: 0.65;
  }
}

.card {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--red-200);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
}

.card-main {
  max-width: 42rem;
  margin: 0 auto;
}

.card-head {
  padding: 1.5rem 1.5rem 1rem;
  background: linear-gradient(90deg, var(--red-50), var(--amber-50));
  border-radius: var(--radius) var(--radius) 0 0;
}

.card-title {
  margin: 0;
  font-size: 1.5rem;
  text-align: center;
  color: var(--red-900);
  font-family: 'Noto Serif SC', Georgia, serif;
}

.card-desc {
  margin: 0.5rem 0 0;
  text-align: center;
  color: rgba(127, 29, 29, 0.7);
  font-size: 1rem;
}

.card-body {
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.label {
  font-size: 1rem;
  font-weight: 500;
  color: var(--red-900);
}

.req {
  color: var(--red-500);
}

.input,
.select {
  width: 100%;
  height: 3rem;
  padding: 0 1rem;
  font-size: 1rem;
  border: 1px solid var(--red-200);
  border-radius: 10px;
  background: var(--white);
  color: var(--gray-900);
}

.input:focus,
.select:focus {
  outline: none;
  border-color: var(--red-600);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

.radio-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.radio-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0 1rem;
  border: 1px solid var(--red-200);
  border-radius: 10px;
  cursor: pointer;
  font-weight: 500;
  color: var(--red-900);
}

.radio-pill input {
  accent-color: var(--red-600);
}

.btn-primary {
  width: 100%;
  padding: 1.25rem 1rem;
  font-size: 1.125rem;
  font-weight: 600;
  font-family: 'Noto Serif SC', Georgia, serif;
  color: var(--white);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  background: linear-gradient(90deg, var(--red-600), var(--amber-600));
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.25);
}

.btn-primary:hover:not(:disabled) {
  filter: brightness(1.05);
}

.btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-outline {
  padding: 0.75rem 2rem;
  font-size: 1rem;
  border-radius: 10px;
  cursor: pointer;
  border: 1px solid var(--red-200);
  color: var(--red-700);
  background: transparent;
}

.btn-outline:hover {
  background: var(--red-50);
}

.btn-disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.features {
  margin-top: 2rem;
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
}

.features-title {
  text-align: center;
  font-size: 1.5rem;
  margin: 0 0 2rem;
  color: var(--red-900);
  font-family: 'Noto Serif SC', Georgia, serif;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  padding: 2rem;
  text-align: center;
  border-radius: var(--radius);
  border: 1px solid var(--red-100);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.25s ease;
}

.feature-card:hover {
  box-shadow: 0 12px 32px rgba(185, 28, 28, 0.12);
}

.feature-icon {
  width: 5rem;
  height: 5rem;
  margin: 0 auto 1.25rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, var(--red-500), var(--amber-500));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--white);
  font-family: 'Noto Serif SC', Georgia, serif;
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.35);
}

.feature-card h4 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  color: var(--red-900);
  font-family: 'Noto Serif SC', Georgia, serif;
}

.feature-card p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--gray-600);
}

.results-toolbar {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.results-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.result-card {
  border-radius: var(--radius);
  border: 1px solid var(--red-200);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.result-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(90deg, var(--red-50), var(--amber-50));
}

.result-num {
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  border-radius: 9999px;
  background: linear-gradient(135deg, var(--red-500), var(--amber-500));
  color: var(--white);
  font-weight: 700;
  font-size: 1.125rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.result-name {
  margin: 0;
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--red-900);
  font-family: 'Noto Serif SC', Georgia, serif;
}

.result-pinyin {
  margin: 0.25rem 0 0;
  font-size: 1rem;
  color: rgba(127, 29, 29, 0.72);
}

.result-body {
  padding: 1.5rem 1.25rem;
}

.analysis-block {
  margin-bottom: 1rem;
}

.analysis-block:last-child {
  margin-bottom: 0;
}

.analysis-block h4 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
}

.analysis-block h4 .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.analysis-block p {
  margin: 0;
  padding: 1.25rem;
  border-radius: 10px;
  line-height: 1.65;
  font-size: 1rem;
}

.wuxing h4 {
  color: #1e3a5f;
}
.wuxing .dot {
  background: #3b82f6;
}
.wuxing p {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}

.shuli h4 {
  color: #14532d;
}
.shuli .dot {
  background: #22c55e;
}
.shuli p {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}

.sancai h4 {
  color: #4c1d95;
}
.sancai .dot {
  background: #a855f7;
}
.sancai p {
  background: #faf5ff;
  border: 1px solid #e9d5ff;
}

.culture h4 {
  color: #78350f;
}
.culture .dot {
  background: var(--amber-500);
}
.culture p {
  background: var(--amber-50);
  border: 1px solid var(--amber-100);
}

.sound h4 {
  color: #831843;
}
.sound .dot {
  background: #ec4899;
}
.sound p {
  background: #fdf2f8;
  border: 1px solid #fbcfe8;
}

.practicality h4 {
  color: #312e81;
}
.practicality .dot {
  background: #6366f1;
}
.practicality p {
  background: #eef2ff;
  border: 1px solid #c7d2fe;
}

.analysis-pending {
  text-align: center;
  padding: 1.25rem;
  border-radius: 10px;
  border: 1px solid var(--red-100);
  background: var(--red-50);
  color: var(--gray-600);
}

.skeleton {
  height: 5rem;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--red-50) 25%, var(--amber-50) 50%, var(--red-50) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s ease-in-out infinite;
}

@keyframes shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

.site-footer {
  margin-top: 3rem;
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-size: 0.875rem;
  color: rgba(127, 29, 29, 0.5);
}

.mobile-bottom-nav {
  display: none;
}

@media (max-width: 768px) {
  .mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 120;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--red-100);
    box-shadow: 0 -8px 20px rgba(127, 29, 29, 0.08);
  }

  .mobile-bottom-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    text-decoration: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--red-700);
    background: var(--red-50);
    border: 1px solid var(--red-200);
    transition: all 0.2s ease;
  }

  .mobile-bottom-link.active {
    color: var(--white);
    border-color: transparent;
    background: linear-gradient(90deg, var(--red-600), var(--amber-600));
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.25);
  }

  .mobile-bottom-link:active {
    transform: scale(0.98);
  }

  .container {
    padding-bottom: 6.75rem;
  }
}

/* 名字打分样式 */
.score-overview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2rem;
  background: linear-gradient(135deg, #fef3c7 0%, #fee2e2 100%);
  border-radius: var(--radius);
  margin-bottom: 2rem;
  border: 1px solid var(--amber-100);
}

.score-main {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.score-number {
  font-size: 4rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--amber-600) 0%, var(--red-600) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}

.score-label {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--gray-600);
  font-weight: 500;
}

.score-jixiong {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 2rem;
  background: white;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(185, 28, 28, 0.1);
}

.jixiong-label {
  font-size: 0.875rem;
  color: var(--gray-600);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.jixiong-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--red-700);
  font-family: 'Noto Serif SC', 'Songti SC', Georgia, serif;
}

.score-description {
  padding: 1.5rem;
  background: var(--red-50);
  border-radius: var(--radius);
  border: 1px solid var(--red-100);
  margin-bottom: 2rem;
}

.score-desc-title {
  margin: 0 0 0.75rem 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--red-700);
  font-family: 'Noto Serif SC', 'Songti SC', Georgia, serif;
}

.score-desc-text {
  margin: 0;
  line-height: 1.8;
  color: var(--gray-700);
}

.score-section-title {
  margin: 0 0 1rem 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gray-800);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.score-section-title::before {
  content: '';
  width: 4px;
  height: 1.25rem;
  background: linear-gradient(180deg, var(--amber-600) 0%, var(--red-600) 100%);
  border-radius: 2px;
}

.score-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.score-detail-card {
  padding: 1.5rem;
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--red-100);
  transition: all 0.2s ease;
}

.score-detail-card:hover {
  box-shadow: 0 4px 12px rgba(185, 28, 28, 0.1);
  transform: translateY(-2px);
}

.detail-title {
  margin: 0 0 0.75rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-800);
}

.detail-score {
  font-size: 2rem;
  font-weight: 700;
  color: var(--amber-600);
  margin-bottom: 0.25rem;
}

.detail-xiongji {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.detail-xiongji[data-xiongji="吉"] {
  color: #059669;
}

.detail-xiongji[data-xiongji="凶"] {
  color: #dc2626;
}

.detail-xiongji[data-xiongji="平"] {
  color: var(--amber-600);
}

.detail-desc {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--gray-600);
}

.score-info {
  padding: 1.5rem;
  background: var(--amber-50);
  border-radius: var(--radius);
  border: 1px solid var(--amber-100);
  margin-bottom: 2rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.info-label {
  font-size: 0.875rem;
  color: var(--gray-600);
  font-weight: 500;
}

.info-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-800);
}

.score-notice {
  padding: 1rem;
  background: #fef3c7;
  border-left: 4px solid var(--amber-600);
  border-radius: 8px;
  margin-bottom: 2rem;
}

.score-notice p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--amber-800);
  line-height: 1.5;
}

/* ========================================
   日历选择器样式优化 - 大气中国风
   ======================================== */

.date-input-wrapper {
  position: relative;
  width: 100%;
}

.date-input {
  width: 100%;
  padding-right: 3rem !important;
  cursor: pointer;
  background: linear-gradient(135deg, #fff 0%, #fef7f0 100%);
  font-family: 'Noto Serif SC', Georgia, serif;
  font-size: 1rem;
  letter-spacing: 0.05em;
}

.date-input:hover {
  border-color: var(--red-400);
  background: linear-gradient(135deg, #fff7f0 0%, #fff 100%);
}

.date-icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--red-500);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.date-input-wrapper:hover .date-icon {
  opacity: 1;
}

/* Flatpickr 容器优化 */
.flatpickr-calendar {
  width: 340px !important;
  max-width: 95vw !important;
  padding: 1rem !important;
  border-radius: 20px !important;
  border: 2px solid var(--red-200) !important;
  box-shadow: 0 20px 60px rgba(127, 29, 29, 0.15), 0 8px 20px rgba(0, 0, 0, 0.08) !important;
  background: linear-gradient(180deg, #ffffff 0%, #fef9f5 100%) !important;
  font-family: 'Noto Serif SC', Georgia, serif !important;
  overflow: visible !important;
}

.flatpickr-calendar::before,
.flatpickr-calendar::after {
  display: none !important;
}

/* Flatpickr 月份头部 */
.flatpickr-months {
  padding: 0.5rem 0 !important;
  margin-bottom: 0.5rem !important;
}

.flatpickr-month {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px !important;
}

.flatpickr-current-month {
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  padding: 0 !important;
  font-size: 1.125rem !important;
  font-weight: 600 !important;
  color: var(--red-900) !important;
  font-family: 'Noto Serif SC', Georgia, serif !important;
}

.flatpickr-current-month .cur-month {
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  color: var(--red-800) !important;
}

.flatpickr-current-month input.cur-year {
  font-size: 1.125rem !important;
  font-weight: 700 !important;
  color: var(--amber-700) !important;
  letter-spacing: 0.05em;
}

/* 导航箭头 */
.flatpickr-prev-month,
.flatpickr-next-month {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.3s ease !important;
  background: transparent !important;
}

.flatpickr-prev-month:hover,
.flatpickr-next-month:hover {
  background: var(--red-100) !important;
}

.flatpickr-prev-month:hover svg,
.flatpickr-next-month:hover svg {
  stroke: var(--red-600) !important;
}

.flatpickr-prev-month svg,
.flatpickr-next-month svg {
  width: 18px !important;
  height: 18px !important;
  stroke: var(--red-500) !important;
  stroke-width: 2.5 !important;
}

/* 星期头部 */
.flatpickr-weekdays {
  padding: 0.5rem 0 !important;
  margin-bottom: 0.25rem !important;
}

.flatpickr-weekday {
  font-size: 0.8125rem !important;
  font-weight: 600 !important;
  color: var(--gray-600) !important;
  letter-spacing: 0.05em;
  background: transparent !important;
  text-transform: none !important;
  font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif !important;
}

.flatpickr-weekday:nth-child(7),
.flatpickr-weekday:last-child {
  color: var(--red-500) !important;
}

/* 日期网格 */
.flatpickr-days {
  width: 100% !important;
  padding: 0.5rem 0 !important;
}

.dayContainer {
  min-width: 100% !important;
  justify-content: space-between !important;
  gap: 2px !important;
}

.flatpickr-day {
  width: 42px !important;
  height: 42px !important;
  line-height: 42px !important;
  font-size: 0.9375rem !important;
  font-weight: 500 !important;
  color: var(--gray-800) !important;
  border-radius: 12px !important;
  border: none !important;
  background: transparent !important;
  margin: 2px !important;
  transition: all 0.2s ease !important;
  font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif !important;
}

.flatpickr-day:hover:not(.disabled):not(.selected) {
  background: linear-gradient(135deg, var(--red-100) 0%, var(--amber-50) 100%) !important;
  color: var(--red-700) !important;
  transform: scale(1.08) !important;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.15) !important;
}

.flatpickr-day.selected {
  background: linear-gradient(135deg, var(--red-600) 0%, var(--amber-600) 100%) !important;
  color: white !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4) !important;
  transform: scale(1.05) !important;
}

.flatpickr-day.selected:hover {
  background: linear-gradient(135deg, var(--red-700) 0%, var(--amber-700) 100%) !important;
}

.flatpickr-day.today {
  border: 2px solid var(--red-400) !important;
  color: var(--red-600) !important;
  font-weight: 700 !important;
}

.flatpickr-day.today:hover {
  background: var(--red-50) !important;
}

.flatpickr-day.startRange,
.flatpickr-day.endRange {
  background: linear-gradient(135deg, var(--red-500) 0%, var(--amber-500) 100%) !important;
  color: white !important;
  font-weight: 700 !important;
}

.flatpickr-day.inRange {
  background: linear-gradient(135deg, var(--red-50) 0%, var(--amber-50) 100%) !important;
  border: none !important;
  box-shadow: -2px 0 0 #fff, 2px 0 0 #fff !important;
}

.flatpickr-day.disabled {
  color: var(--gray-400) !important;
  cursor: not-allowed !important;
}

.flatpickr-day.disabled:hover {
  background: transparent !important;
  transform: none !important;
  box-shadow: none !important;
}

.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
  color: var(--gray-400) !important;
  opacity: 0.6;
}

.flatpickr-day.prevMonthDay:hover,
.flatpickr-day.nextMonthDay:hover {
  color: var(--red-400) !important;
  background: var(--red-50) !important;
}

/* 底部快捷操作区域 */
.flatpickr-time {
  border-top: 1px solid var(--red-100) !important;
  margin-top: 0.5rem !important;
  padding-top: 0.75rem !important;
}

/* 清除按钮 */
.flatpickr-clear {
  display: none !important;
}

/* Flatpickr 动画 */
.flatpickr-calendar.open {
  animation: calendarFadeIn 0.3s ease-out !important;
}

@keyframes calendarFadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* 响应式优化 */
@media (max-width: 400px) {
  .flatpickr-calendar {
    width: 300px !important;
    padding: 0.75rem !important;
  }
  
  .flatpickr-day {
    width: 36px !important;
    height: 36px !important;
    line-height: 36px !important;
    font-size: 0.875rem !important;
  }
}

/* 输入框焦点增强 */
.input:focus,
.date-input:focus {
  outline: none;
  border-color: var(--red-500);
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.12), 0 4px 12px rgba(220, 38, 38, 0.08);
}

/* ========================================
   全屏日历模态框
   ======================================== */

.date-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.date-modal.hidden,
.date-modal.active {
  opacity: 1;
  visibility: visible;
}

.date-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.date-modal-content {
  position: relative;
  width: min(95vw, 480px);
  max-height: 90vh;
  background: linear-gradient(180deg, #ffffff 0%, #fef9f5 100%);
  border-radius: 24px;
  box-shadow: 0 25px 80px rgba(127, 29, 29, 0.25), 0 10px 30px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
}

.date-modal.active .date-modal-content {
  transform: scale(1) translateY(0);
}

.date-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1.5rem 1rem;
  background: linear-gradient(135deg, var(--red-50) 0%, var(--amber-50) 100%);
  border-bottom: 1px solid var(--red-100);
}

.date-modal-year-month {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.dm-year {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--amber-700);
  font-family: 'Noto Serif SC', Georgia, serif;
  letter-spacing: 0.05em;
}

.dm-month {
  font-size: 2rem;
  font-weight: 700;
  color: var(--red-900);
  font-family: 'Noto Serif SC', Georgia, serif;
}

.dm-close {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  color: var(--gray-600);
  cursor: pointer;
  transition: all 0.2s ease;
}

.dm-close:hover {
  background: var(--red-100);
  color: var(--red-600);
  transform: rotate(90deg);
}

.date-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
}

/* 视图切换 */
.dm-year-picker,
.dm-month-picker {
  display: none;
}

.dm-year-picker.active,
.dm-month-picker.active {
  display: block;
}

.dm-calendar {
  display: block;
}

/* 年份选择器 */
.dm-year-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding: 0 0.5rem;
}

.dm-nav-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: var(--red-50);
  color: var(--red-600);
  cursor: pointer;
  transition: all 0.2s ease;
}

.dm-nav-btn:hover {
  background: var(--red-100);
  transform: scale(1.1);
}

.dm-year-range {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gray-800);
  font-family: 'PingFang SC', sans-serif;
}

.dm-year-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.dm-year-item {
  aspect-ratio: 1.2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gray-700);
  border: 2px solid transparent;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'PingFang SC', sans-serif;
}

.dm-year-item:hover {
  background: var(--red-50);
  border-color: var(--red-200);
  color: var(--red-700);
  transform: scale(1.05);
}

.dm-year-item.selected {
  background: linear-gradient(135deg, var(--red-600) 0%, var(--amber-600) 100%);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

/* 月份选择器 */
.dm-month-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.dm-month-item {
  aspect-ratio: 1.3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-700);
  border: 2px solid transparent;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'PingFang SC', sans-serif;
}

.dm-month-item .dm-month-zh {
  font-size: 1.25rem;
  font-family: 'Noto Serif SC', Georgia, serif;
}

.dm-month-item:hover {
  background: var(--red-50);
  border-color: var(--red-200);
  color: var(--red-700);
  transform: scale(1.05);
}

.dm-month-item.selected {
  background: linear-gradient(135deg, var(--red-600) 0%, var(--amber-600) 100%);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.dm-month-item.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* 日历视图 */
.dm-calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.dm-cal-nav {
  display: flex;
  gap: 1rem;
}

.dm-cal-nav-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: var(--red-50);
  color: var(--red-600);
  cursor: pointer;
  transition: all 0.2s ease;
}

.dm-cal-nav-btn:hover {
  background: var(--red-100);
  transform: scale(1.1);
}

.dm-cal-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--red-900);
  font-family: 'Noto Serif SC', Georgia, serif;
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.dm-cal-title:hover {
  background: var(--red-50);
}

/* 星期头部 */
.dm-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}

.dm-weekday {
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gray-500);
  padding: 0.5rem 0;
  font-family: 'PingFang SC', sans-serif;
}

.dm-weekday:nth-child(6),
.dm-weekday:last-child {
  color: var(--red-500);
}

/* 日期网格 */
.dm-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.25rem;
}

.dm-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 500;
  color: var(--gray-700);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'PingFang SC', sans-serif;
}

.dm-day:hover:not(.disabled):not(.empty) {
  background: linear-gradient(135deg, var(--red-100) 0%, var(--amber-50) 100%);
  color: var(--red-700);
  transform: scale(1.15);
}

.dm-day.selected {
  background: linear-gradient(135deg, var(--red-600) 0%, var(--amber-600) 100%);
  color: white;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4);
  transform: scale(1.1);
}

.dm-day.today:not(.selected) {
  border: 2px solid var(--red-400);
  color: var(--red-600);
  font-weight: 700;
}

.dm-day.disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

.dm-day.empty {
  cursor: default;
}

.dm-day.prev-month,
.dm-day.next-month {
  opacity: 0.4;
}

/* 底部 */
.date-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, var(--red-50) 0%, var(--amber-50) 100%);
  border-top: 1px solid var(--red-100);
}

.dm-selected-display {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.dm-selected-label {
  font-size: 0.75rem;
  color: var(--gray-500);
  font-family: 'PingFang SC', sans-serif;
}

.dm-selected-value {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--red-900);
  font-family: 'Noto Serif SC', Georgia, serif;
}

.dm-actions {
  display: flex;
  gap: 0.75rem;
}

.dm-btn {
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'PingFang SC', sans-serif;
}

.dm-btn-cancel {
  background: rgba(255, 255, 255, 0.9);
  color: var(--gray-600);
  border: 1px solid var(--gray-200);
}

.dm-btn-cancel:hover {
  background: var(--gray-100);
  color: var(--gray-800);
}

.dm-btn-confirm {
  background: linear-gradient(135deg, var(--red-600) 0%, var(--amber-600) 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.35);
}

.dm-btn-confirm:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.45);
}

.dm-btn-confirm:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* 响应式 */
@media (max-width: 480px) {
  .date-modal-content {
    width: 100vw;
    max-height: 100vh;
    height: 100vh;
    border-radius: 0;
  }
  
  .dm-month-grid {
    gap: 0.5rem;
  }
  
  .dm-month-item {
    font-size: 0.875rem;
  }
  
  .dm-month-item .dm-month-zh {
    font-size: 1.125rem;
  }
  
  .dm-year-grid {
    gap: 0.5rem;
  }
  
  .dm-year-item {
    font-size: 1rem;
  }
}

/* ========================================
   名字打分结果页 - 独立设计
   ======================================== */

.score-result-page {
  animation: resultPageIn 0.6s ease-out;
}

@keyframes resultPageIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.result-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.result-name-display {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.result-name-label {
  font-size: 0.875rem;
  color: var(--gray-500);
  font-family: 'PingFang SC', sans-serif;
}

.result-name-value {
  margin: 0;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--red-900);
  font-family: 'Noto Serif SC', Georgia, serif;
  letter-spacing: 0.1em;
  text-shadow: 2px 2px 4px rgba(127, 29, 29, 0.1);
}

.btn-score-again {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--red-700);
  background: var(--red-50);
  border: 1px solid var(--red-200);
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'PingFang SC', sans-serif;
}

.btn-score-again:hover {
  background: var(--red-100);
  border-color: var(--red-300);
  transform: scale(1.05);
}

/* 评分圆环 */
.result-page-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.score-circle {
  position: relative;
  width: 180px;
  height: 180px;
}

.score-circle-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.score-circle-bg {
  fill: none;
  stroke: var(--red-100);
  stroke-width: 8;
}

.score-circle-progress {
  fill: none;
  stroke: url(#scoreGradient);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 339.292;
  stroke-dashoffset: 339.292;
  transition: stroke-dashoffset 1.5s ease-out;
}

@keyframes scoreProgress {
  from {
    stroke-dashoffset: 339.292;
  }
}

.score-circle-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.score-circle-number {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--red-800);
  font-family: 'Noto Serif SC', Georgia, serif;
  line-height: 1;
}

.score-circle-label {
  font-size: 1rem;
  color: var(--gray-500);
  margin-top: 0.25rem;
}

.score-jixiong-badge {
  padding: 0.5rem 1.5rem;
  background: linear-gradient(135deg, var(--red-50) 0%, var(--amber-50) 100%);
  border: 2px solid var(--red-200);
  border-radius: 9999px;
}

.jixiong-text {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--red-800);
  font-family: 'Noto Serif SC', Georgia, serif;
}

/* 结果描述 */
.result-page-desc {
  text-align: center;
  padding: 2rem;
  background: linear-gradient(135deg, var(--red-50) 0%, var(--amber-50) 100%);
  border-radius: 20px;
  margin-bottom: 2rem;
}

.result-desc-title {
  margin: 0 0 1rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--red-900);
  font-family: 'Noto Serif SC', Georgia, serif;
}

.result-desc-text {
  margin: 0;
  font-size: 1rem;
  color: var(--gray-700);
  line-height: 1.8;
}

/* 五格分析 & 基本信息 */
.result-page-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .result-page-grid {
    grid-template-columns: 1fr;
  }
}

.wuge-card,
.baseinfo-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  padding: 1.5rem;
  border: 1px solid var(--red-100);
  box-shadow: 0 4px 20px rgba(127, 29, 29, 0.06);
}

.wuge-title,
.baseinfo-title {
  margin: 0 0 1.25rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--red-900);
  font-family: 'Noto Serif SC', Georgia, serif;
  text-align: center;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--red-100);
}

.wuge-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}

.wuge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 1rem;
  background: var(--red-50);
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s ease;
}

.wuge-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(127, 29, 29, 0.12);
}

.wuge-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--red-800);
  font-family: 'Noto Serif SC', Georgia, serif;
}

.wuge-score {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--amber-700);
  font-family: 'Noto Serif SC', Georgia, serif;
  line-height: 1.2;
}

.wuge-xiongji {
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.125rem 0.75rem;
  border-radius: 9999px;
  background: var(--red-100);
  color: var(--red-700);
}

.wuge-desc {
  margin: 0.5rem 0 0;
  font-size: 0.75rem;
  color: var(--gray-600);
  line-height: 1.4;
}

.baseinfo-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.baseinfo-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  background: var(--red-50);
  border-radius: 10px;
}

.baseinfo-label {
  font-size: 0.875rem;
  color: var(--gray-600);
  font-family: 'PingFang SC', sans-serif;
}

.baseinfo-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-800);
  font-family: 'PingFang SC', sans-serif;
}

/* 提示信息 */
.result-notice {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--amber-50);
  border: 1px solid var(--amber-200);
  border-radius: 12px;
  color: var(--amber-800);
}

.result-notice svg {
  flex-shrink: 0;
  color: var(--amber-600);
}

.result-notice p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
}

/* 移动端适配 */
@media (max-width: 480px) {
  .result-name-value {
    font-size: 2rem;
  }
  
  .score-circle {
    width: 150px;
    height: 150px;
  }
  
  .score-circle-number {
    font-size: 2.5rem;
  }
  
  .wuge-items {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .wuge-score {
    font-size: 1.5rem;
  }
}

/* 出生日期和日历选择器字体 */
.date-input,
.date-input-wrapper input,
.calendar-modal,
.calendar-modal *,
.date-modal,
.date-modal * {
  font-family: 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', 'Noto Sans SC', ui-sans-serif,
    system-ui, sans-serif !important;
}

/* 日期输入框样式优化 */
.date-input {
  cursor: pointer;
  font-size: 1rem;
  color: var(--gray-900);
}

/* 日历模态框字体 */
.calendar-modal,
.date-modal {
  font-family: 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', 'Noto Sans SC', ui-sans-serif,
    system-ui, sans-serif;
}

/* 出生地点输入框 - 单个 */
.location-input-single {
  cursor: pointer;
  background: var(--white);
  font-family: 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', 'Noto Sans SC', ui-sans-serif,
    system-ui, sans-serif;
}

.location-input-single:read-only {
  cursor: pointer;
}

/* 城市选择全屏模态框 */
.location-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  background: var(--white);
  display: flex;
  flex-direction: column;
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.location-modal.hidden {
  display: none;
}

.location-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--red-200);
  background: var(--white);
}

.location-modal-header h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gray-900);
  font-family: 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', 'Noto Sans SC', ui-sans-serif,
    system-ui, sans-serif;
}

.location-modal-close {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: var(--gray-600);
  transition: background-color 0.2s;
}

.location-modal-close:hover {
  background: var(--red-50);
  color: var(--red-600);
}

.location-modal-search {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--red-100);
  background: var(--red-50);
}

.location-search-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--red-200);
  border-radius: 8px;
  font-size: 1rem;
  background: var(--white);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', 'Noto Sans SC', ui-sans-serif,
    system-ui, sans-serif;
}

.location-search-input:focus {
  border-color: var(--red-500);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.location-search-input::placeholder {
  color: var(--gray-400);
}

.location-modal-content {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem;
  -webkit-overflow-scrolling: touch;
}

/* 省份列表 */
.location-section {
  margin-bottom: 1rem;
}

.location-section-title {
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', 'Noto Sans SC', ui-sans-serif,
    system-ui, sans-serif;
}

.location-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  padding: 0 0.25rem;
}

@media (max-width: 480px) {
  .location-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.location-item {
  padding: 0.875rem 0.5rem;
  text-align: center;
  border: 1px solid var(--red-100);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.9375rem;
  color: var(--gray-800);
  font-family: 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', 'Noto Sans SC', ui-sans-serif,
    system-ui, sans-serif;
}

.location-item:hover {
  background: var(--red-50);
  border-color: var(--red-300);
}

.location-item:active {
  background: var(--red-100);
}

.location-item.selected {
  background: var(--red-600);
  border-color: var(--red-600);
  color: var(--white);
}

.location-item.highlighted {
  background: var(--amber-100);
  border-color: var(--amber-400);
}

/* 搜索结果 */
.location-search-result {
  padding: 0.75rem;
  border-bottom: 1px solid var(--red-100);
  cursor: pointer;
  transition: background-color 0.2s;
  font-family: 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', 'Noto Sans SC', ui-sans-serif,
    system-ui, sans-serif;
}

.location-search-result:hover {
  background: var(--red-50);
}

.location-search-result:active {
  background: var(--red-100);
}

.location-search-result .province {
  font-size: 0.75rem;
  color: var(--gray-500);
  margin-bottom: 0.25rem;
}

.location-search-result .city {
  font-size: 1rem;
  font-weight: 500;
  color: var(--gray-900);
}

/* 无搜索结果 */
.location-no-result {
  padding: 2rem 1rem;
  text-align: center;
  color: var(--gray-500);
  font-size: 0.9375rem;
  font-family: 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', 'Noto Sans SC', ui-sans-serif,
    system-ui, sans-serif;
}

/* 城市模态框覆盖层（用于背景遮罩） */
.location-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  background: rgba(0, 0, 0, 0.5);
}

.location-modal-overlay.hidden {
  display: none;
}

/* 城市列表样式 */
.location-city-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.location-city-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1rem;
  background: var(--white);
  border: 1px solid var(--red-100);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', 'Noto Sans SC', ui-sans-serif,
    system-ui, sans-serif;
}

.location-city-item:hover {
  background: var(--red-50);
  border-color: var(--red-300);
}

.location-city-item:active {
  background: var(--red-100);
}

.location-city-item .city-name {
  font-size: 1rem;
  font-weight: 500;
  color: var(--gray-900);
}

.location-city-item .city-province {
  font-size: 0.8125rem;
  color: var(--gray-500);
}

/* 热门城市网格 */
.location-hot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

@media (max-width: 480px) {
  .location-hot-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.location-city-item.hot {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem 0.5rem;
  text-align: center;
}

.location-city-item.hot .city-name {
  font-size: 1rem;
  font-weight: 600;
}

.location-city-item.hot .city-province {
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

/* 出生日期时间输入框 */
.birth-datetime-input {
  cursor: pointer;
  background: var(--white);
  font-family: 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', 'Noto Sans SC', ui-sans-serif,
    system-ui, sans-serif;
}

.birth-datetime-input:read-only {
  cursor: pointer;
}

/* 时辰选择器 */
.dm-hour-picker {
  padding: 1rem;
  border-top: 1px solid var(--red-100);
  display: none;
}

.dm-hour-picker.active {
  display: block;
}

.dm-hour-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: 0.75rem;
  font-family: 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', 'Noto Sans SC', ui-sans-serif,
    system-ui, sans-serif;
}

.dm-hour-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

@media (max-width: 480px) {
  .dm-hour-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.dm-hour-item {
  padding: 0.75rem 0.5rem;
  text-align: center;
  border: 1px solid var(--red-200);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', 'Noto Sans SC', ui-sans-serif,
    system-ui, sans-serif;
}

.dm-hour-item:hover {
  background: var(--red-50);
  border-color: var(--red-300);
}

.dm-hour-item:active {
  background: var(--red-100);
}

.dm-hour-item.selected {
  background: var(--red-600);
  border-color: var(--red-600);
  color: var(--white);
}

.dm-hour-item .hour-name {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--gray-900);
}

.dm-hour-item.selected .hour-name {
  color: var(--white);
}

.dm-hour-item .hour-time {
  font-size: 0.75rem;
  color: var(--gray-500);
  margin-top: 0.25rem;
}

.dm-hour-item.selected .hour-time {
  color: rgba(255, 255, 255, 0.8);
}

.dm-selected-separator {
  margin: 0 0.25rem;
  color: var(--gray-400);
}
