/* app.css */

:root {
  --theme-main: #0dc2b3;
  --theme-main-dark: #099e8f;
  --theme-main-light: #5ee7d6;
  --theme-main-gradient: linear-gradient(45deg, #0dc2b3, #5ee7d6);
  --theme-main-gradient-h: linear-gradient(90deg, #0dc2b3 0%, #5ee7d6 100%);
  --theme-main-gradient-dark: linear-gradient(45deg, #099e8f, #0dc2b3);
  --theme-main-shadow: 0 4px 20px rgba(13, 194, 179, 0.12);
  --theme-main-border: #0dc2b3;
  --theme-main-hover: #099e8f;
  --theme-main-active: #0dc2b3;
  --theme-main-text: #0dc2b3;
}

body {
    font-family:
        'PingFang SC', /* iOS/macOS 优先苹方 */
        'Alibaba PuHuiTi', /* 其他优先阿里巴巴普惠体 */
        'Hiragino Sans GB',
        'Microsoft YaHei',
        'Segoe UI',
        Arial,
        sans-serif;
    background: #f5f5f7; /* 浅灰色背景 */
    display: block; /* 覆盖 main.css 中的 flex 布局 */
    min-height: auto; /* 覆盖 main.css 中的最小高度 */
    overflow: auto; /* 允许滚动 */
    padding: 20px;
}

.app-container {
    max-width: 400px;
    margin: 0 auto 20px auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 25px;
}

.header {
    margin-bottom: 20px;
    padding-bottom: 20px;
    box-sizing: border-box;
    border-bottom: 1px solid #eee;
}

.input-group {
    margin-bottom: 18px;
}

.input-group label {
    display: block;
    font-size: 15px;
    color: #555;
    margin-bottom: 8px;
    font-weight: 500;
}

.input-with-icon {
    position: relative;
}

.input-with-icon input[type="text"] {
    width: 100%;
    padding: 12px 15px 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    color: #333;
    padding-right: 40px; /* Space for icon */
}

.input-with-icon input[type="text"]::placeholder {
    color: #bbb;
}

.input-with-icon .icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
    cursor: pointer;
}

.calendar-icon {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23888"><path d="M19 4h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11zM5 7V6h14v1H5z"/></svg>');
}

.time-icon {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23888"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-.22 17.5c-.71.32-1.5.5-2.31.5-3.86 0-7-3.14-7-7s3.14-7 7-7 7 3.14 7 7c0 .81-.18 1.6-.5 2.31L12.35 12.35c-.38-.38-.88-.58-1.42-.58-.54 0-1.04.2-1.42.58l-1.06 1.06c-.39.39-.39 1.02 0 1.41.39.39 1.02.39 1.41 0l.71-.71c.19-.19.46-.19.66 0l1.06 1.06c.38.39.38 1.02-.01 1.41-.39.39-1.02.39-1.41 0L12.78 19.5zm-.46 3.01c.21 0 .42-.03.62-.08.76-.19 1.44-.55 2.01-1.06l-.7-.7c-.38-.38-1.02-.38-1.41 0-.38.39-.38 1.02 0 1.41l.1.1c-.24.16-.5.29-.77.38-.27.09-.55.13-.77.13zm2.59-1.11c.47-.5.79-1.15.93-1.87l.7.7c.38.38 1.02.38 1.41 0 .39-.39.39-1.02 0-1.41l-1.06-1.06c-.39-.39-1.02-.39-1.41 0-.39.39-.39 1.02 0 1.41l.7.7zm2.52-2.52c.67-.47 1.25-1.05 1.72-1.72l-.7-.7c-.38-.39-.38-1.02 0-1.41.39-.39 1.02-.39 1.41 0l1.06 1.06c.39.39.39 1.02 0 1.41l-1.06 1.06c-.39.39-1.02.39-1.41 0z"/></svg>');
}

/* 三级联动选择框样式 */
.location-select-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.location-select-group .location-select {
    flex: 1;
    min-width: 120px;
}

/* 城市选择框样式 */
.location-select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    color: #333;
    background: #fff;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23888"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    padding-right: 40px;
}

.location-select:focus {
    outline: none;
    border-color: var(--theme-main);
    box-shadow: 0 0 0 2px rgba(13, 194, 179, 0.15);
}

.location-select option {
    padding: 8px;
}

.location-select optgroup {
    font-weight: 600;
    color: #666;
}

/* 位置信息显示样式 */
.location-info {
    margin-top: 8px;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid var(--theme-main);
}

.location-coords {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

/* 调整纯文本输入框样式以匹配带图标的输入框 */
input[type="text"]#lastName {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    color: #333;
}

input[type="text"]#lastName::placeholder {
    color: #bbb;
}

input[type="text"]#chayinzhaiLastName {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    color: #333;
}
input[type="text"]#chayinzhaiLastName::placeholder {
    color: #bbb;
}

.btn-primary {
    width: 100%;
    padding: 14px;
    background: var(--theme-main-gradient-h);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--theme-main-shadow);
    font-family: inherit;
    letter-spacing: 1px;
    margin-top: 16px;
}

.btn-primary:hover {
    background: var(--theme-main-gradient-dark);
    box-shadow: 0 6px 20px rgba(13, 194, 179, 0.18);
}

.section {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.section h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--theme-main);
    padding-bottom: 10px;
    display: inline-block;
}

.collapsible-sum {
    text-align: center;
    margin-bottom: 26px;
}

.collapsible-sum .value {
    font-size: 22px;
    font-weight: 700;
    color: var(--theme-main);
}

.collapsible-sum .guizang {
    font-size: 16px;
    color: #555;
    margin-top: 8px;
}

.bazi-table-container {
    overflow-x: auto;
}

.bazi-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 8px;
    overflow: hidden;
    table-layout: fixed;
    border: 1px solid #eee;
}

.bazi-table th {
    background: transparent;
    color: #333;
    font-weight: 600;
    font-size: 14px;
    padding: 12px 8px;
    text-align: center;
    border-bottom: none;
}

.bazi-table th:first-child {
    width: 20%;
}

.bazi-table th:not(:first-child) {
    width: 20%;
    position: relative;
}

/* 大运与年柱中间的竖线 */
.bazi-table.show-dayun-line .dayun-column::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background-color: #f0f0f0;
}

.bazi-table td {
    padding: 12px 8px;
    text-align: center;
    border-bottom: none;
    font-size: 12px;
    color: #555;
    position: relative;
}

.bazi-table td:first-child {
    font-weight: 500;
    color: #999;
    text-align: center;
}

.bazi-table .value {
    font-weight: 700;
    color: var(--theme-main);
    font-size: 16px;
}

.bazi-table .guizang {
    font-weight: 600;
    color: #666;
    font-size: 14px;
}

.bazi-table tr:hover {
    background: #f5f5f5;
}

.bazi-table tr td {
    border-bottom: none;
}

.bazi-table tr .zhuxing {
    color: #000;
    font-size: 12px;
}

/* 藏干元素顶部对齐 */
#yearCanggan,
#monthCanggan,
#dayCanggan,
#hourCanggan {
    vertical-align: top;
    padding-top: 8px;
}

/* 藏干行背景颜色 */
.bazi-table tr.canggan-row {
    background-color: #f5f5f7;
}

/* 副星元素顶部对齐 */
#yearFuxing,
#monthFuxing,
#dayFuxing,
#hourFuxing {
    vertical-align: top;
    padding-top: 8px;
    color: #000;
}

.additional-info p {
    font-size: 16px;
    color: #555;
    margin-bottom: 10px;
}

.additional-info .value {
    font-weight: 600;
    color: var(--theme-main);
}

.subsection {
    margin-top: 22px;
}

.subsection h4 {
    font-size: 18px;
    color: #444;
    padding-bottom: 5px;
    border-bottom: 1px dashed #ccc;
}

.grid-container {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    text-align: center;
    padding: 10px 0;
    scrollbar-width: thin;
    scrollbar-color: var(--theme-main) #f0f0f0;
}

.grid-container::-webkit-scrollbar {
    height: 6px;
}

.grid-container::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 3px;
}

.grid-container::-webkit-scrollbar-thumb {
    background: var(--theme-main);
    border-radius: 3px;
}

.grid-container::-webkit-scrollbar-thumb:hover {
    background: var(--theme-main);
}

.grid-item {
    background: #fff;
    padding: 10px 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s ease;
    cursor: pointer;
    user-select: none;
    flex-shrink: 0;
}

.grid-item-one {
    display: flex;
    align-items: end;
    justify-content: center;
}

.grid-item-two {
    display: flex;
    align-items: end;
    justify-content: center;
}

.grid-item:hover {
    transform: translateY(-3px);
}

.grid-item p {
    font-size: 13px;
    color: #666;
    margin-bottom: 3px;
}

.grid-item .value {
    font-size: 16px;
    font-weight: 600;
    color: #555;
}

.grid-item .sub-value {
    font-size: 12px;
    color: #999;
    font-weight: 500;
    margin-left: 1px;
    color: red;
}

.grid-item .grid-item-gan {
    margin-top: 6px;
}

.grid-item .grid-item-age {
    font-size: 10px;
}

.grid-item.highlight {
    background: #e6e6fa;
    border-color: var(--theme-main);
}

.grid-item.highlight .value,
.grid-item.highlight .sub-value {
    font-weight: 700;
}

.good-day-result .result-card {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 16px;
    line-height: 1.6;
}

.good-day-result .result-card.good {
    background-color: #e6ffe6;
    border: 1px solid #4CAF50;
    color: #333;
}

.good-day-result .result-card.bad {
    background-color: #ffe6e6;
    border: 1px solid #F44336;
    color: #333;
}

.good-day-result .result-card p {
    margin-bottom: 5px;
}

/* 响应式调整 */
@media (max-width: 480px) {
    .app-container {
        padding: 15px;
        margin: 0 auto 10px auto;
    }

    .section {
        padding: 15px 8px;
    }

    .section h3 {
        font-size: 18px;
    }

    .bazi-table th,
    .bazi-table td {
        font-size: 12px;
        padding: 8px 4px;
    }

    .bazi-table .value {
        font-size: 14px;
    }

    .grid-container {
        gap: 0px;
    }
    
    .grid-item p {
        font-size: 12px;
        font-weight: 500;
    }

    .grid-item .value {
        font-size: 14px;
    }
}

.input-row {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 18px;
}
.input-label {
    flex: 0 0 60px;
    font-size: 14px;
    color: #555;
    font-weight: 500;
    margin-right: 4px;
    text-align: left;
    white-space: nowrap;
}
.input-content {
    padding-left: 0;
    padding-right: 0;
    flex: 1 1 0;
    min-width: 0;
}
.input-content input[type="text"] {
    width: calc(100%);
    padding: 12px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 12px;
    color: #333;
}
.input-content input[type="text"]::placeholder {
    color: #bbb;
}
.input-content #lunarInfo {
    margin-left: 18px;
}
.gender-group {
    gap: 12px;
    margin: 0;
}

.grid-item.selected, .grid-item:active {
    background: linear-gradient(45deg, #fff2d9 60%, #fff3db 100%);
    border-color: var(--theme-main);
    box-shadow: 0 4px 16px rgba(13, 194, 179,0.15);
    transform: scale(1.04);
    transition: all 0.15s cubic-bezier(.4,2,.6,1);
}

.grid-item.selected .value,
.grid-item.selected .sub-value {
    font-weight: 700;
}

input, select {
    font-family: inherit;
    font-size: 16px;
}



/* 性别选择按钮组样式 */
.gender-group {
  display: flex;
  gap: 12px;
  margin: 8px 0 0 0;
}
.gender-btn {
  border: 1.5px solid #d6c7a6;
  background: #fff;
  color: #a08a5a;
  border-radius: 20px;
  padding: 4px 22px;
  font-size: 16px;
  cursor: pointer;
  outline: none;
  transition: all 0.2s;
}
.gender-btn.selected {
  background: var(--theme-main);
  color: #fff;
  border-color: var(--theme-main);
  box-shadow: 0 2px 8px rgba(13, 194, 179, 0.3);
}


@media (max-width: 600px) {
  .custom-navbar {
    max-width: 100vw;
    height: 44px;
  }
  .navbar-title { font-size: 18px; }
  .btn-primary { font-size: 17px; padding: 13px 0; }
  .bazi-table th, .bazi-table td { font-size: 12px; padding: 6px 2px; }
  .feature-item { width: 70px; padding: 10px 0 6px 0; }
  .feature-item img { width: 28px; height: 28px; }
  .input-content input[type="text"] {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
  }
}

/* 顶部导航栏 */
.custom-navbar {
  max-width: 400px;
  margin: 0 auto;
  width: 100%;
  height: 54px;
  background: var(--theme-main-gradient-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 12px var(--theme-main-shadow);
  position: relative;
  z-index: 10;
}
.navbar-logo img {
  height: 36px;
  margin-left: 18px;
}
.navbar-title {
  color: #ff6600;
  font-size: 22px;
  font-weight: bold;
  letter-spacing: 2px;
}
.navbar-cloud {
  width: 48px;
  height: 32px;
  margin-right: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 输入区美化 */
.input-content {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(13, 194, 179,0.04);
  padding: 6px 12px;
  align-items: center;
  position: relative;
}
.input-content input[type="text"] {
  border: none;
  background: transparent;
  font-size: 16px;
  color: #333;
  flex: 1;
  outline: none;
}
.input-content .icon {
  width: 22px;
  height: 22px;
  margin-left: 8px;
  background: url('assets/calendar.svg') no-repeat center/contain;
}
.input-row {
  margin-bottom: 18px;
}

/* 八字/五行表格美化 */
.bazi-table {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(13, 194, 179,0.04);
  border-collapse: separate;
  border-spacing: 0;
  margin-bottom: 18px;
}
.bazi-table th, .bazi-table td {
  padding: 8px 4px;
  text-align: center;
  border-bottom: 1px solid #f0f0f0;
  font-size: 12px;
}
.bazi-table th {
  color: #999;
  font-weight: 500;
  background: #faf7ff;
}
.bazi-table .wuxing-mu { color: #4caf50; font-weight: 700; }
.bazi-table .wuxing-huo { color: #e53935; font-weight: 700; }
.bazi-table .wuxing-tu { color: #bfa76a; font-weight: 700; }
.bazi-table .wuxing-jin { color: #ffd700; font-weight: 700; }
.bazi-table .wuxing-shui { color: #2196f3; font-weight: 700; }

/* 天干颜色 */
.bazi-table .tiangan-jia { color: #4caf50; font-weight: 700; }
.bazi-table .tiangan-yi { color: #4caf50; font-weight: 700; }
.bazi-table .tiangan-bing { color: #e53935; font-weight: 700; }
.bazi-table .tiangan-ding { color: #e53935; font-weight: 700; }
.bazi-table .tiangan-wu { color: #8d6e63; font-weight: 700; }
.bazi-table .tiangan-ji { color: #8d6e63; font-weight: 700; }
.bazi-table .tiangan-geng { color: #ffd700; font-weight: 700; }
.bazi-table .tiangan-xin { color: #ffd700; font-weight: 700; }
.bazi-table .tiangan-ren { color: #1565c0; font-weight: 700; }
.bazi-table .tiangan-gui { color: #1565c0; font-weight: 700; }

/* 地支颜色 */
.bazi-table .dizhi-zi { color: #1565c0; font-weight: 700; }
.bazi-table .dizhi-chou { color: #8d6e63; font-weight: 700; }
.bazi-table .dizhi-yin { color: #4caf50; font-weight: 700; }
.bazi-table .dizhi-mao { color: #4caf50; font-weight: 700; }
.bazi-table .dizhi-chen { color: #8d6e63; font-weight: 700; }
.bazi-table .dizhi-si { color: #e53935; font-weight: 700; }
.bazi-table .dizhi-wu { color: #e53935; font-weight: 700; }
.bazi-table .dizhi-wei { color: #8d6e63; font-weight: 700; }
.bazi-table .dizhi-shen { color: #ffd700; font-weight: 700; }
.bazi-table .dizhi-you { color: #ffd700; font-weight: 700; }
.bazi-table .dizhi-xu { color: #8d6e63; font-weight: 700; }
.bazi-table .dizhi-hai { color: #1565c0; font-weight: 700; }

.bazi-table tr:last-child td { border-bottom: none; }

/* 功能区图标 */
.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 18px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 80px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(13, 194, 179,0.04);
  padding: 12px 0 8px 0;
}
.feature-item img {
  width: 36px;
  height: 36px;
  margin-bottom: 6px;
}
.feature-item span {
  font-size: 14px;
  color: var(--theme-main);
  font-weight: 600;
}

/* 整体留白与间距 */
.section, .feature-list, .bazi-table, .input-row {
  margin-bottom: 18px;
}



.shishen-xiong {
    color: #e53935 !important;
    font-weight: 600;
}

.shishen-ji {
    color: #43a047 !important;
    font-weight: 600;
}

.grid-item-lucky.lucky {
    color: #ff531f !important;
    font-weight: 600;
}

.location-extra-info {
    color: #888;
    font-size: 14px;
    margin-top: 8px;
    margin-bottom: 0;
    text-align: left;
    display: flex;
}

.location-extra-info-checkbox {
    color: #fff;
    font-size: 14px;
    margin-top: 24px;
    margin-bottom: 24px;
    text-align: left;
    display: flex;
}

#locationLatLng {
    font-size: 14px;
    color: #888;
}

/* 复选框样式 */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    font-size: 16px;
    color: #fff;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
    accent-color: var(--theme-main);
    background-color: var(--theme-main);
    border: 2px solid var(--theme-main);
    border-radius: 3px;
}

.checkbox-label input[type="checkbox"]:checked {
    background-color: var(--theme-main);
    border-color: var(--theme-main);
}

.checkbox-text {
    font-weight: 500;
    color: #555;
}

/* 自定义日期时间选择器样式 */
.custom-datetime-picker {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #d6c7a6;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    z-index: 9999;
    margin-top: 8px;
    min-width: 320px;
    max-width: 400px;
}

.picker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--theme-main-gradient);
    color: #fff;
    border-radius: 12px 12px 0 0;
}

.picker-title {
    font-size: 16px;
    font-weight: 600;
}

.picker-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.picker-close:hover {
    background-color: rgba(255,255,255,0.2);
}

.picker-content {
    padding: 20px;
}

/* 公历/农历切换样式 */
.calendar-type-section {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.calendar-type-buttons {
    display: flex;
    gap: 12px;
}

.calendar-type-btn {
    flex: 1;
    padding: 8px 16px;
    border: 1.5px solid #d6c7a6;
    background: #fff;
    color: #a08a5a;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    outline: none;
    transition: all 0.2s;
}

.calendar-type-btn.selected {
    background: var(--theme-main);
    color: #fff;
    border-color: var(--theme-main);
    box-shadow: 0 2px 8px rgba(13, 194, 179, 0.3);
}

.calendar-type-btn:hover:not(.selected) {
    background: #f8f4e8;
    border-color: var(--theme-main);
}

.date-section, .time-section {
    margin-bottom: 20px;
}

.picker-row {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.picker-row label {
    width: 40px;
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.picker-select {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #d6c7a6;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    color: #333;
    cursor: pointer;
    transition: border-color 0.2s;
}

.picker-select:focus {
    outline: none;
    border-color: var(--theme-main);
    box-shadow: 0 0 0 2px rgba(13, 194, 179, 0.1);
}

.picker-footer {
    display: flex;
    justify-content: space-between;
    padding: 16px 20px;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
    border-radius: 0 0 12px 12px;
}

.picker-btn {
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.picker-btn-secondary {
    background: #f0f0f0;
    color: #666;
    border: 1px solid #ddd;
}

.picker-btn-secondary:hover {
    background: #e0e0e0;
}

.picker-btn-primary {
    background: var(--theme-main-gradient);
    color: #fff;
    box-shadow: 0 2px 8px rgba(13, 194, 179, 0.3);
}

.picker-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 194, 179, 0.4);
}

/* 响应式设计 */
@media (max-width: 600px) {
    .custom-datetime-picker {
        min-width: 280px;
        max-width: 100%;
    }
    
    .picker-content {
        padding: 16px;
    }
    
    .picker-header {
        padding: 12px 16px;
    }
    
    .picker-footer {
        padding: 12px 16px;
    }
}

/* tabs-bar 样式 */
.tabs-bar {
  max-width: 400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  box-shadow: 0 2px 8px rgba(13, 194, 179,0.04);
  padding: 4px 8px;
}
.tab-item {
  flex: 1;
  text-align: center;
  padding: 10px 0;
  font-size: 17px;
  color: var(--theme-main);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}
.tab-item.tab-active {
  background: var(--theme-main-gradient-h);
  color: #fffbe6;
  box-shadow: 0 2px 8px rgba(13, 194, 179,0.10);
}
.tab-item:not(.tab-active):hover {
  background: var(--theme-main-light);
  color: var(--theme-main-dark);
}

#hehunResult {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

#hehunResult p {
    margin-bottom: 24px;
    color: #333;
}


.hehun-bazi .collapsible-header {
    font-size: 20px;
    color: #333;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--theme-main);
    padding-bottom: 10px;
    display: inline-block;
    margin-top: 32px;
    margin-bottom: 8px;
}

.hehun-birth-info {
    margin: 8px 0 16px 0;
    text-align: left;
    color: #888;
    font-size: 14px;
}

#hehunBaziInfoSection1,
#hehunBaziInfoSection2 {
    margin-top: 24px;
}

/* 登录弹窗与状态栏样式 */
.login-modal {
  position: fixed; left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.25); z-index: 9999; display: flex; align-items: center; justify-content: center;
  overflow: hidden !important;
  touch-action: none;
}
.login-box {
  background: #fff; border-radius: 18px; box-shadow: 0 8px 32px rgba(13, 194, 179, 0.18);
  padding: 32px 24px; width: 320px; max-width: 90vw;
  position: relative;
}
#loginCloseBtn {
  position: absolute;
  right: 18px;
  top: 14px;
  font-size: 22px;
  cursor: pointer;
  color: var(--theme-main);
  transition: color 0.2s;
  z-index: 10;
}
#loginCloseBtn:hover {
  color: #e53935;
}
.login-box h2 { text-align: center; color: var(--theme-main); margin-bottom: 24px; }
.login-box .input-row { margin-bottom: 18px; }
.login-box input[type='text'], .login-box input[type='password'] {
  width: 100%; padding: 12px; border-radius: 8px; border: 1px solid #eee; font-size: 16px;
}
.login-box .btn-primary { width: 100%; margin-top: 8px; }
.login-tip { color: #e53935; font-size: 14px; text-align: center; margin-top: 10px; min-height: 20px; }
#loginStatusBar { user-select: none; }
#loginStatusText {
  color: var(--theme-main);
}
#loginStatusText:hover {
  text-decoration: underline;
  color: var(--theme-main-dark);
}

/* 登录下拉菜单样式 */
#loginDropdown {
  box-shadow: 0 2px 8px rgba(13, 194, 179, 0.10);
  border: 1px solid #f0e6d2;
  min-width: 120px;
  padding: 4px 0;
}
#loginDropdown button {
  width: 100%;
  padding: 10px 0;
  border: none;
  background: transparent;
  color: var(--theme-main);
  font-size: 15px;
  cursor: pointer;
  border-radius: 0;
  transition: background 0.2s, color 0.2s;
}
#loginDropdown button:hover {
  background: var(--theme-main-light);
  color: var(--theme-main-dark);
}

.login-desc {
  color: #888;
  font-size: 13px;
  margin: 16px 0;
  text-align: center;
}

#baziInfoSection,
#baziInfoSectionDetail {
  display: none;
}

