/**
 * AI 八字算命 - 中国风样式
 *
 * 设计理念：
 * - 色彩：红色（喜庆）、金色（尊贵）、深色（沉稳）
 * - 元素：云纹、祥云、八卦、太极
 * - 字体：优雅的中文字体
 */

/* ==================== 全局样式 ==================== */
:root {
    --color-primary: #c41e3a;        /* 中国红 */
    --color-gold: #d4af37;           /* 金色 */
    --color-dark: #2c1810;           /* 深棕色 */
    --color-light-gold: #f5e6d3;     /* 浅金色 */
    --color-bg: #faf8f3;             /* 米白色背景 */
    --color-text: #333;
    --color-text-muted: #666;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', '微软雅黑', 'SimSun', '宋体', sans-serif;
    background: linear-gradient(135deg, #faf8f3 0%, #f5e6d3 100%);
    background-attachment: fixed;
    color: var(--color-text);
    min-height: 100vh;
}

/* 背景装饰纹理 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(196, 30, 58, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(212, 175, 55, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* ==================== 导航栏 ==================== */
.navbar {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-bottom: 3px solid var(--color-gold);
}

.bg-dark-custom {
    background: linear-gradient(90deg, var(--color-dark) 0%, #3d2414 100%);
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--color-gold) !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    color: #fff !important;
    transform: scale(1.05);
}

.brand-icon {
    display: inline-block;
    animation: rotate 10s linear infinite;
    font-size: 2rem;
    margin-right: 10px;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ==================== 主内容区 ==================== */
.main-content {
    position: relative;
    z-index: 1;
    padding: 40px 0;
    min-height: calc(100vh - 140px);
}

/* ==================== 标题样式 ==================== */
.chinese-title {
    font-family: 'KaiTi', '楷体', 'SimSun', serif;
    letter-spacing: 2px;
}

.text-gold {
    color: var(--color-gold);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.taiji-icon {
    display: inline-block;
    font-size: 3rem;
    animation: rotate-slow 20s linear infinite;
}

@keyframes rotate-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ==================== 卡片样式 ==================== */
.bazi-card {
    background: #fff;
    border: none;
    border-radius: 15px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.bazi-card:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.bazi-card .card-header {
    border-bottom: 2px solid var(--color-gold);
    padding: 1rem 1.5rem;
}

.bg-gold {
    background: linear-gradient(135deg, var(--color-gold) 0%, #e6c45c 100%);
}

/* ==================== 表单样式 ==================== */
.chinese-label {
    font-weight: bold;
    color: var(--color-primary);
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--color-gold);
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
}

.form-control-lg {
    border-radius: 10px;
    border: 2px solid #ddd;
}

.form-check-input:checked {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

/* ==================== 按钮样式 ==================== */
.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, #a01729 100%);
    border: none;
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(196, 30, 58, 0.3);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #a01729 0%, var(--color-primary) 100%);
    box-shadow: 0 6px 16px rgba(196, 30, 58, 0.4);
    transform: translateY(-2px);
}

.btn-submit {
    position: relative;
    overflow: hidden;
}

.btn-submit::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-submit:hover::before {
    width: 300px;
    height: 300px;
}

/* ==================== 八字排盘展示 ==================== */
.bazi-display {
    padding: 20px;
}

.pillar-card {
    background: linear-gradient(135deg, #fff 0%, var(--color-light-gold) 100%);
    border: 2px solid var(--color-gold);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.pillar-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* 未知时柱样式 */
.unknown-pillar {
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    border: 2px dashed #999;
    opacity: 0.7;
}

.unknown-pillar:hover {
    transform: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.pillar-title {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 8px;
    font-weight: bold;
}

.pillar-content {
    font-size: 2rem;
    font-weight: bold;
    color: var(--color-primary);
    font-family: 'KaiTi', '楷体', serif;
    margin-bottom: 8px;
    letter-spacing: 3px;
}

.day-pillar {
    color: var(--color-gold);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.pillar-wuxing {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* 五行进度条 */
.wuxing-bars {
    margin-top: 10px;
}

.wuxing-label {
    display: inline-block;
    width: 40px;
    font-weight: bold;
    color: var(--color-primary);
}

/* 五行颜色 */
.bg-warning { background-color: #ffc107 !important; } /* 金 */
.bg-success { background-color: #28a745 !important; } /* 木 */
.bg-info { background-color: #17a2b8 !important; }    /* 水 */
.bg-danger { background-color: #dc3545 !important; }  /* 火 */
.bg-secondary { background-color: #6c757d !important; } /* 土 */

/* ==================== AI 报告样式 ==================== */
.ai-report {
    padding: 20px;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-text);
}

.ai-report h1, .ai-report h2, .ai-report h3 {
    color: var(--color-primary);
    font-family: 'KaiTi', '楷体', serif;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.ai-report h3 {
    border-left: 4px solid var(--color-gold);
    padding-left: 12px;
}

.ai-report p {
    margin-bottom: 1rem;
    text-align: justify;
}

.ai-report strong {
    color: var(--color-primary);
    font-weight: 600;
}

.ai-report li {
    margin-bottom: 0.5rem;
}

.typing-indicator {
    display: inline-block;
    padding: 10px 20px;
    background: var(--color-light-gold);
    border-radius: 20px;
    color: var(--color-text-muted);
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* ==================== 城市搜索 ==================== */
.city-btn {
    border-color: var(--color-gold);
    color: var(--color-primary);
    transition: all 0.3s ease;
}

.city-btn:hover {
    background-color: var(--color-gold);
    color: #fff;
    border-color: var(--color-gold);
}

/* ==================== 城市选择下拉框 ==================== */
.city-selector-wrapper {
    position: relative;
}

.city-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 350px;
    background: #fff;
    border: 1px solid rgba(212, 175, 55, 0.5);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: none;
    margin-top: 5px;
    overflow: hidden;
    animation: fadeIn 0.2s ease-out;
}

.city-dropdown.show {
    display: flex;
    flex-direction: column;
}

.city-tabs {
    display: flex;
    background: var(--color-bg);
    border-bottom: 1px solid #eee;
}

.city-tab {
    padding: 10px 15px;
    cursor: pointer;
    font-weight: bold;
    color: var(--color-text-muted);
    transition: all 0.2s;
    flex: 1;
    text-align: center;
    border-bottom: 2px solid transparent;
}

.city-tab.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
    background: #fff;
}

.city-tab:hover {
    color: var(--color-primary);
    background: #fff;
}

.city-list-container {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

/* 热门城市网格 */
.hot-cities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
}

.city-item {
    padding: 6px 10px;
    text-align: center;
    border-radius: 4px;
    cursor: pointer;
    background: #f8f9fa;
    border: 1px solid #eee;
    transition: all 0.2s;
}

.city-item:hover {
    background: var(--color-light-gold);
    color: var(--color-primary);
    border-color: var(--color-gold);
}

/* 省份列表 */
.province-group {
    margin-bottom: 15px;
}

.province-title {
    font-weight: bold;
    color: var(--color-dark);
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: 1px dashed #eee;
}

.province-cities {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.province-city-item {
    padding: 4px 8px;
    cursor: pointer;
    border-radius: 4px;
    color: #555;
}

.province-city-item:hover {
    background: var(--color-light-gold);
    color: var(--color-primary);
}

/* 搜索结果 */
.search-result-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

.search-result-item:hover {
    background: var(--color-bg);
    color: var(--color-primary);
}

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

.empty-result {
    padding: 20px;
    text-align: center;
    color: #999;
}

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

/* ==================== 页脚 ==================== */
.footer {
    background-color: rgba(255, 255, 255, 0.8);
    border-top: 2px solid var(--color-gold);
    padding: 20px 0;
    margin-top: 40px;
}

/* ==================== 模态框 ==================== */
.modal-header {
    background: linear-gradient(135deg, var(--color-gold) 0%, #e6c45c 100%);
    color: var(--color-dark);
    border-bottom: none;
}

.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 768px) {
    .chinese-title {
        font-size: 1.5rem;
    }

    .pillar-content {
        font-size: 1.5rem;
    }

    .navbar-brand {
        font-size: 1.3rem;
    }
}

/* ==================== 滚动条样式 ==================== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--color-light-gold);
}

::-webkit-scrollbar-thumb {
    background: var(--color-gold);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

/* ==================== 新增样式 (Refactor) ==================== */

.cursor-pointer {
    cursor: pointer !important;
    background-color: #fff !important; /* Ensure it looks enabled */
}

/* 性别选择器美化 */
.gender-selector {
    display: flex;
    gap: 20px;
}

.gender-btn {
    flex: 1;
    padding: 10px;
    border-radius: 10px;
    font-size: 1.1rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.gender-btn span {
    font-size: 1.4rem;
}

.gender-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* MobileSelect 样式覆盖/优化 */
.mobile-select .content {
    border-radius: 15px 15px 0 0 !important;
}

.mobile-select .title {
    font-family: 'Microsoft YaHei', sans-serif;
    font-weight: bold;
    color: var(--color-dark);
}

.mobile-select .ensure {
    color: var(--color-primary) !important;
    font-weight: bold;
}

.mobile-select .cancel {
    color: var(--color-text-muted) !important;
}

.mobile-select .wheel-item {
    font-size: 16px; 
    color: var(--color-text);
}

.mobile-select .select-line {
    border-color: var(--color-gold) !important;
}

/* 输入框右侧图标 */
.input-group-text {
    background: transparent;
    border-left: none;
}

/* ==================== 专业八字排盘样式 ==================== */

/* 八字排盘卡片 */
.bazi-paipan-card {
    background: linear-gradient(135deg, #fff 0%, #fafafa 100%);
    border: 2px solid var(--color-gold);
    border-radius: 15px;
    padding: 25px 20px;
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.15);
}

/* 四柱容器 */
.pillars-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 20px;
}

/* 柱子组 */
.pillar-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}

.pillar-group:hover {
    transform: translateY(-5px);
}

/* 柱子标题 */
.pillar-header {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    font-weight: bold;
    margin-bottom: 8px;
    text-align: center;
}

.pillar-header small {
    font-size: 0.7rem;
    color: var(--color-gold);
}

/* 柱子盒子 */
.pillar-box {
    background: linear-gradient(135deg, #fff 0%, #f9f9f9 100%);
    border: 2px solid #ddd;
    border-radius: 12px;
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pillar-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pillar-box:hover::before {
    opacity: 1;
}

.pillar-box:hover {
    border-color: var(--color-gold);
    box-shadow: 0 6px 16px rgba(212, 175, 55, 0.25);
}

/* 日柱高亮 */
.pillar-box.highlight {
    background: linear-gradient(135deg, #fff8e1 0%, #fff3cd 100%);
    border-color: var(--color-gold);
    border-width: 3px;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
}

/* 天干 */
.pillar-box .gan {
    font-family: 'KaiTi', '楷体', serif;
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 5px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.pillar-box.highlight .gan {
    color: var(--color-gold);
    font-size: 2.8rem;
}

/* 地支 */
.pillar-box .zhi {
    font-family: 'KaiTi', '楷体', serif;
    font-size: 2.5rem;
    font-weight: bold;
    color: #333;
    line-height: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.pillar-box.highlight .zhi {
    color: var(--color-dark);
    font-size: 2.8rem;
}

/* 柱子底部（五行） */
.pillar-footer {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-top: 8px;
    font-weight: 500;
}

/* 十神 */
.pillar-shishen {
    font-size: 0.7rem;
    color: var(--color-gold);
    margin-top: 4px;
    font-weight: bold;
}

/* 日主特殊样式 */
.day-master .pillar-shishen {
    color: var(--color-primary);
    font-size: 0.75rem;
}

/* 纳音显示 */
.nayin-display {
    padding: 10px;
    background: rgba(212, 175, 55, 0.08);
    border-radius: 8px;
    font-size: 0.9rem;
}

/* ==================== 五行分析样式 ==================== */

.wuxing-analysis-card {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.wuxing-bars-container {
    margin-top: 15px;
}

.wuxing-bar-item {
    display: grid;
    grid-template-columns: 40px 1fr 60px;
    gap: 10px;
    align-items: center;
    margin-bottom: 15px;
}

.wuxing-label {
    font-weight: bold;
    font-size: 1rem;
    color: var(--color-dark);
    text-align: center;
}

.wuxing-bar-wrapper {
    background: #f0f0f0;
    border-radius: 10px;
    height: 30px;
    overflow: hidden;
    position: relative;
}

.wuxing-bar {
    height: 100%;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 0.6s ease-out;
    position: relative;
    min-width: 30px;
}

.wuxing-value {
    color: #fff;
    font-weight: bold;
    font-size: 0.85rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.wuxing-percent {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    text-align: right;
    font-weight: 500;
}

/* ==================== 详细信息卡片 ==================== */

.detailed-info-card {
    background: #fafafa;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 15px;
}

.detailed-info-card .row {
    margin: 0;
}

.detailed-info-card .col-6 {
    padding: 5px 10px;
}

/* ==================== AI报告区域 ==================== */

.ai-report-section {
    margin-top: 30px;
}

.ai-report {
    border: 2px solid #e0e0e0;
    min-height: 150px;
}

/* ==================== 响应式设计 ==================== */

@media (max-width: 768px) {
    .pillars-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .pillar-box .gan,
    .pillar-box .zhi {
        font-size: 2rem;
    }

    .pillar-box.highlight .gan,
    .pillar-box.highlight .zhi {
        font-size: 2.2rem;
    }

    .wuxing-bar-item {
        grid-template-columns: 35px 1fr 55px;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .pillars-container {
        gap: 8px;
    }

    .pillar-box .gan,
    .pillar-box .zhi {
        font-size: 1.6rem;
    }

    .pillar-box.highlight .gan,
    .pillar-box.highlight .zhi {
        font-size: 1.8rem;
    }

    .pillar-header {
        font-size: 0.75rem;
    }

    .pillar-footer {
        font-size: 0.65rem;
    }

    .pillar-shishen {
        font-size: 0.6rem;
    }
}

/* ==================== 底部弹出式弹窗样式 ==================== */

.bottom-sheet {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.bottom-sheet.show {
    display: flex;
}

.bottom-sheet-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.bottom-sheet-content {
    position: relative;
    background: #fff;
    border-radius: 20px;
    max-height: 80vh;
    width: 90%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    animation: zoomIn 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 1;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.bottom-sheet-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.sheet-close-btn {
    position: absolute;
    right: 15px;
    top: 15px;
    border: none;
    background: transparent;
    font-size: 1.2rem;
    color: #666;
    cursor: pointer;
    padding: 5px;
}

.sheet-tabs {
    display: flex;
    gap: 10px;
}

.sheet-tab {
    padding: 8px 20px;
    border: none;
    background: #f0f0f0;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sheet-tab.active {
    background: var(--color-gold);
    color: #fff;
    font-weight: bold;
}

.bottom-sheet-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.bottom-sheet-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
}

.btn-confirm {
    width: 100%;
    padding: 15px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-confirm:hover {
    background: #333;
}

/* ==================== 滚轮选择器样式 ==================== */

.quick-input-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
}

.quick-input-wrapper input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.picker-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 10px;
    height: 240px;  /* 增加高度以容纳标签 */
    position: relative;
    padding-top: 40px;  /* 为标签留出空间 */
}

.picker-container::before {
    content: '';
    position: absolute;
    top: 120px;  /* 标签40px + 2个缓冲项80px = 120px */
    left: 0;
    right: 0;
    height: 40px;
    background: rgba(212, 175, 55, 0.1);
    border-top: 2px solid var(--color-gold);
    border-bottom: 2px solid var(--color-gold);
    pointer-events: none;
    z-index: 1;
}

.picker-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.picker-label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
    font-weight: bold;
    height: 30px;  /* 固定标签高度 */
    line-height: 30px;
    position: absolute;
    top: -40px;  /* 放到padding-top区域 */
}

.picker-scroll {
    width: 100%;
    height: 200px;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
    position: relative;
    cursor: grab;
    user-select: none;
}

.picker-scroll:active {
    cursor: grabbing;
}

.picker-scroll::-webkit-scrollbar {
    display: none;
}

.picker-item {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #999;
    transition: all 0.3s ease;
}

.picker-item.selected {
    color: #000;
    font-weight: bold;
    font-size: 1.2rem;
}

/* ==================== 地址选择器样式 ==================== */

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: #f5f5f5;
    border-radius: 25px;
}

.search-box i {
    color: #999;
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.95rem;
}

.cascade-tabs {
    display: flex;
    gap: 10px;
    border-bottom: 1px solid #eee;
}

.cascade-tab {
    padding: 10px 20px;
    border: none;
    background: transparent;
    color: #666;
    font-size: 0.95rem;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.cascade-tab.active {
    color: var(--color-primary);
    font-weight: bold;
}

.cascade-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: var(--color-primary);
    border-radius: 2px 2px 0 0;
}

.unknown-location-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.unknown-location-option:hover {
    background: #e0e0e0;
}

.city-list-container {
    max-height: 300px;
    overflow-y: auto;
}

.city-list-item {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.city-list-item:hover {
    background: #f5f5f5;
}

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

/* ==================== 四柱选择器样式 ==================== */

.sizhu-picker-container {
    padding: 20px 10px;
}

.sizhu-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

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

.sizhu-header {
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--color-text-muted);
    margin-bottom: 12px;
    text-align: center;
}

.sizhu-gan-group,
.sizhu-zhi-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    width: 100%;
    margin-bottom: 10px;
}

.sizhu-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid #ddd;
    background: #fff;
    color: #666;
    font-size: 1rem;
    font-weight: bold;
    font-family: 'KaiTi', '楷体', serif;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.sizhu-btn:hover {
    border-color: var(--color-gold);
    background: var(--color-light-gold);
    transform: scale(1.05);
}

.sizhu-btn.selected {
    background: var(--color-gold);
    border-color: var(--color-gold);
    color: #fff;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
    transform: scale(1.1);
}

.sizhu-range-info {
    margin-top: 15px;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 8px;
}

/* 响应式设计 - 小屏幕 */
@media (max-width: 480px) {
    .sizhu-columns {
        gap: 10px;
    }

    .sizhu-btn {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }

    .sizhu-gan-group,
    .sizhu-zhi-group {
        gap: 6px;
    }
}