﻿:root {
    --version: "1.0.0";
}

/* 🔥 Loading 遮罩层：全屏覆盖，默认隐藏，用于显示加载动画 */
#loading {
    display: none; /* 默认隐藏 */
    position: fixed; /* 固定在屏幕最上层 */
    top: 0;
    left: 0;
    width: 100%; /* 占满整个屏幕 */
    height: 100%;
    flex-direction: column; /* 垂直排列（旋转圈在上，文字在下） */
    justify-content: center; /* 垂直居中 */
    align-items: center; /* 水平居中 */
    background: rgba(255, 255, 255, 0.7); /* 半透明背景 */
    z-index: 9999; /* 保证在最上层 */
}

/* 🔥 旋转圈样式 */
.spinner {
    width: 48px; /* 圆圈大小 */
    height: 48px;
    border: 5px solid #ccc; /* 灰色边框 */
    border-top: 5px solid #007bff; /* 蓝色高亮部分 */
    border-radius: 50%; /* 圆形 */
    animation: spin 1s linear infinite; /* 无限旋转动画 */
    margin-bottom: 10px; /* 和文字保持间距 */
}

/* 🔥 旋转动画关键帧 */
@keyframes spin {
    0% {
        transform: rotate(0deg); /* 初始角度 */
    }

    100% {
        transform: rotate(360deg); /* 旋转一整圈 */
    }
}

/* 🔥 提示文字样式 */
.loading-text {
    font-size: 16px; /* 字体大小 */
    color: #555; /* 深灰色 */
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1); /* 轻微阴影 */
}

/* 全局初始化：去掉默认边距、内边距，启用 border-box 模型 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 页面整体背景和字体 */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif; /* 适配中英文 */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); /* 渐变背景 */
    min-height: 100vh; /* 最小高度铺满视口 */
    padding: 10px 7px;
    color: #333; /* 默认字体颜色 */
    font-size: 16px;
}

/* 页面标题样式 */
.astro-header {
    font-size: clamp(20px, 5vw, 24px); /* 自适应字号 */
    color: #ffffff;
    font-weight: 600;
    text-align: center;
    padding: 10px 7px;
    margin-top: -5px;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3); /* 文字阴影 */
    background: rgba(255,255,255,0.1); /* 半透明背景 */
    border-radius: 12px;
    backdrop-filter: blur(10px); /* 毛玻璃效果 */
    border: 1px solid rgba(255,255,255,0.2);
}

/* 主容器居中 */
.astro-container {
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
}

/* 表单容器 */
.astro-table__container {
    background: rgba(255, 255, 255, 0.95); /* 白色半透明背景 */
    padding: 25px;
    border-radius: 16px; /* 圆角 */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); /* 阴影 */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 20px;
}

/* 每一行 */
.astro-row {
    margin: 20px 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px; /* 控件之间的间距 */
}

    .astro-row:first-child {
        margin-top: 15px;
    }

    .astro-row:last-child {
        margin-bottom: 15px;
    }

    /* 姓名和性别行：垂直布局 */
    .astro-row.name-row {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        font-size: 18px;
    }

        .astro-row.name-row > div:first-child {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .astro-row.name-row label:first-child {
            font-weight: 500;
            color: #555;
            min-width: 60px; /* 标签最小宽度 */
        }

        /* 姓名输入框 */
        .astro-row.name-row input[type="text"] {
            flex: 1;
            padding: 12px 15px;
            border: 2px solid #e1e5e9;
            border-radius: 8px;
            font-size: 18px;
            transition: all 0.3s ease;
            background: #fafbfc;
        }

            .astro-row.name-row input[type="text"]:focus {
                outline: none;
                border-color: #667eea; /* 聚焦时高亮 */
                background: #fff;
                box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
            }

        /* 性别选择 */
        .astro-row.name-row .gender-group {
            display: flex;
            gap: 18px;
            align-items: center;
        }

            .astro-row.name-row .gender-group label {
                display: flex;
                align-items: center;
                gap: 5px;
                font-size: 18px;
                color: #555;
                cursor: pointer;
                user-select: none;
            }

            .astro-row.name-row .gender-group input[type="radio"] {
                width: 18px;
                height: 18px;
                accent-color: #667eea; /* 自定义选中颜色 */
            }

    /* 日期类型行 - 水平布局 */
    .astro-row.cal-type-row {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start; /* 靠左排列 */
        flex-wrap: nowrap; /* 不换行 */
        gap: 15px;
    }

        .astro-row.cal-type-row .date-type-group {
            display: flex;
            align-items: center;
            gap: 18px;
        }

            .astro-row.cal-type-row .date-type-group label {
                display: flex;
                align-items: center;
                gap: 5px;
                font-size: 18px;
                color: #555;
                cursor: pointer;
                user-select: none;
            }

            .astro-row.cal-type-row .date-type-group input[type="radio"] {
                width: 18px;
                height: 18px;
                accent-color: #667eea;
            }

        /* 阴历闰月选择 */
        .astro-row.cal-type-row .leap-month-group {
            display: flex;
            align-items: center;
            gap: 8px;
            display: none; /* 默认隐藏，选阴历时才显示 */
        }

            .astro-row.cal-type-row .leap-month-group label {
                font-size: 16px;
                color: #666;
                cursor: pointer;
                user-select: none;
            }

            .astro-row.cal-type-row .leap-month-group select {
                min-width: 60px; /* 保证紧凑显示 */
                font-size: 16px; /* 字号小点，避免撑开 */
            }

    /* 年月日行 */
    .astro-row.datetime-main {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 10px;
    }

/* 年月日选择组 */
.datetime-main .datetime-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 120px;
    justify-content: center;
}

    .datetime-main .datetime-group .astro-label {
        font-size: 16px;
        font-weight: 500;
        color: #555;
        min-width: 25px;
        text-align: center;
        white-space: nowrap;
    }

    .datetime-main .datetime-group select {
        flex: 1;
        min-width: 60px;
    }

/* 时分秒行 */
.astro-row.datetime-sub {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

/* 时分秒选择组 */
.datetime-sub .datetime-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 100px;
    justify-content: center;
}

    .datetime-sub .datetime-group .astro-label {
        font-size: 16px;
        font-weight: 500;
        color: #555;
        min-width: 25px;
        text-align: center;
        white-space: nowrap;
    }

    .datetime-sub .datetime-group select {
        flex: 1;
        min-width: 50px;
    }

/* 通用标签 */
.astro-label {
    font-size: 16px;
    font-weight: 500;
    color: #555;
    min-width: 60px;
    text-align: right;
}

/* 下拉选择框 */
.astro-select {
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    background: #fafbfc;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    min-width: 70px;
}

    .astro-select:focus {
        outline: none;
        border-color: #667eea;
        background: #fff;
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    }

    .astro-select:hover {
        border-color: #667eea;
    }



.btn-wrapper {
    display: flex;
    justify-content: center;
}

#paipan {
    padding: 12px 30px;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}



    /* 悬停效果 */
    #paipan:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    }

    /* 点击效果 */
    #paipan:active {
        transform: translateY(0);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    }

/* 隐藏元素 */
.astro-select[style*="display: none"],
#leapMonth {
    display: none;
}

/* 响应式 - 小屏适配 */
@media (max-width: 480px) {
    body {
        padding: 10px 7px;
        font-size: 16px;
    }

    .astro-table__container {
        padding: 20px;
        border-radius: 12px;
    }

    .astro-row {
        gap: 8px;
        margin: 18px 0;
    }

        .astro-row.name-row > div:first-child {
            flex-direction: column;
            align-items: stretch;
            gap: 8px;
        }

        .astro-row.cal-type-row {
            flex-direction: column;
            align-items: stretch;
            gap: 12px;
        }
        /* 性别单选横排，靠一起 */
        .astro-row.name-row .gender-group {
            justify-content: flex-start; /* 靠左对齐 */
            flex-wrap: nowrap; /* 不换行 */
            gap: 16px; /* 男女按钮之间间距 */
            height: 30px;
        }

            .astro-row.name-row .gender-group label {
                font-size: 18px; /* 字号稍微小点 */
            }


        .astro-row.cal-type-row .date-type-group {
            justify-content: space-around;
            flex-wrap: wrap;
        }

        .astro-row.cal-type-row .leap-month-group {
            justify-content: flex-start;
            flex-wrap: wrap;
        }

    .datetime-main {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

        .datetime-main .datetime-group {
            flex-direction: row;
            justify-content: space-between;
            min-width: auto;
        }

            .datetime-main .datetime-group .astro-label {
                min-width: 30px;
                text-align: center;
            }

    .datetime-sub {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

        .datetime-sub .datetime-group {
            flex-direction: row;
            justify-content: space-between;
            min-width: auto;
        }

            .datetime-sub .datetime-group .astro-label {
                min-width: 30px;
                text-align: center;
            }

    .astro-select {
        height: 50px;
        /*                line-height: 36px;*/
        min-width: 60px;
        font-size: 16px; /* 防止iOS缩放 */
    }

    .astro-row.name-row input[type="text"] {
        font-size: 16px;
    }

    .astro-row.cal-type-row {
        flex-direction: row !important; /* 手机也横排 */
        align-items: center !important;
        flex-wrap: nowrap !important; /* 不换行 */
        gap: 8px; /* 缩小间距，避免挤出屏幕 */
    }

        .astro-row.cal-type-row .date-type-group label,
        .astro-row.cal-type-row .leap-month-group label {
            font-size: 18px; /* 字体缩小 */
        }

        .astro-row.cal-type-row .leap-month-group select {
            min-width: 60px;
            font-size: 18px;
        }
}

/* 响应式 - 超小屏适配 */
@media (max-width: 360px) {
    .astro-table__container {
        padding: 15px;
    }

    .astro-row {
        gap: 6px;
        margin: 15px 0;
    }

    .datetime-main .datetime-group,
    .datetime-sub .datetime-group {
        gap: 6px;
    }

        .datetime-main .datetime-group .astro-label,
        .datetime-sub .datetime-group .astro-label {
            min-width: 25px;
            font-size: 16px;
        }
}

/* 容器进入时的上滑动画 */
.astro-table__container {
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 输入框和下拉框聚焦时的轻微上移效果 */
.astro-select,
input[type="text"] {
    position: relative;
}

    .astro-select:focus,
    input[type="text"]:focus {
        transform: translateY(-1px);
    }




.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 25px 20px;
    }

    .options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}








/* iPhone设备专用适配 */
@supports (-webkit-touch-callout: none) {
    @media (max-width: 768px) {
        .astro-row.cal-type-row .date-type-group label {
            font-size: 17px; /* iOS优化字体大小 */
        }

        .astro-row.cal-type-row .leap-month-group label,
        .astro-row.cal-type-row .leap-month-group select {
            font-size: 17px; /* iOS优化字体大小 */
        }
    }
}
/* 安卓设备专用适配 */
@supports not (-webkit-touch-callout: none) {
    @media (max-width: 768px) {
        .astro-row.cal-type-row .date-type-group label {
            font-size: 13px; /* 安卓优化字体大小 */
        }

        .astro-row.cal-type-row .leap-month-group label,
        .astro-row.cal-type-row .leap-month-group select {
            font-size: 13px; /* 安卓优化字体大小 */
        }
    }
}



@supports (-webkit-touch-callout: none) {
    @media (max-width: 768px) {
        .astro-row.name-row .gender-group label {
            font-size: 17px; /* iOS优化字体大小 */
            -webkit-tap-highlight-color: transparent; /* 移除点击高亮 */
        }
        /* 性别选择 */
        .astro-row.name-row .gender-group {
            display: flex;
            gap: 14px;
            align-items: center;
        }
    }
}
/* 安卓设备专用适配 */
@supports not (-webkit-touch-callout: none) {
    @media (max-width: 768px) {
        #name {
            padding: 8px 12px; /* 上8px 下8px 左右12px */
            border: 1px solid #ddd;
            border-radius: 4px;
            font-size: 14px;
            box-sizing: border-box;
            height: auto; /* 让高度自适应内容 */
        }

        .name-row > div:first-child > label {
            font-size: 14px;
        }

        .astro-row.name-row .gender-group label {
            font-size: 14px; /* 安卓优化字体大小 */
            -webkit-tap-highlight-color: transparent; /* 移除点击高亮 */
        }
        /* 性别选择 */
        .astro-row.name-row .gender-group {
            display: flex;
            gap: 8px;
            align-items: center;
        }

        .astro-select {
            height: 36px;
            /*                line-height: 36px;*/
            min-width: 36px;
            font-size: 13px; /* 防止iOS缩放 */
            padding: 6px 8px;
        }
        /* 姓名输入框 */
        .astro-row.name-row input[type="text"] {
            flex: 1;
            padding: 5px 5px;
            border: 2px solid #e1e5e9;
            border-radius: 8px;
            font-size: 14px;
            transition: all 0.3s ease;
            background: #fafbfc;
        }
        /* 姓名输入框 - 核心高度设置 */
        .paipan-name {
            flex: 1;
            height: 24px; /* 默认高度 */
            padding: 0 2px;
            border: 2px solid #e1e5e9;
            border-radius: 8px;
            font-size: 14px;
            transition: all 0.3s ease;
            background: #fafbfc;
            color: #333;
            line-height: 36px; /* 确保文字垂直居中 */
            box-sizing: border-box; /* 确保padding包含在高度内 */
        }
            /* 聚焦状态 */
            .paipan-name:focus {
                outline: none;
                border-color: #667eea;
                background: #fff;
                box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
                height: 36px; /* 保持高度一致 */
            }
            /* 悬停状态 */
            .paipan-name:hover {
                border-color: #667eea;
            }
            /* placeholder样式 */
            .paipan-name::placeholder {
                color: #999;
                font-size: 14px;
                opacity: 0.7;
            }
    }
}





/*//////////////////////////////////////////////////////////////////////////////////////////*/
/* 新增排盘类型选择样式 */
.paipan-type-group {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-top: -30px;
    margin-bottom: -10px;
}

    .paipan-type-group label {
        display: flex;
        align-items: center;
        gap: 5px;
        font-weight: 500;
        color: #555;
        cursor: pointer;
    }

    .paipan-type-group input[type="radio"] {
        width: 16px;
        height: 16px;
    }

.astro-row {
    margin-bottom: 15px;
}

.paipan-type-row {
    display: flex;
    justify-content: center;
}

.paipan-type-group {
    display: flex;
    gap: 20px;
    align-items: center;
}

.paipan-xuanze {
    font-size: 18px;
}


/* 移除所有宽度限制 */
.taiyang-group label span {
    /* font-size: 12px !important; 强制小字体 */
    white-space: nowrap;
    overflow: visible !important; /* 允许文字溢出 */
    text-overflow: clip !important; /* 不显示省略号 */
    max-width: none !important; /* 移除最大宽度限制 */
    min-width: auto !important;
    flex: 0 1 auto; /* 根据内容自适应 */
}
/* iOS 设备专用 */
@supports (-webkit-touch-callout: none) {
    @media (max-width: 768px) {
        .paipan-xuanze {
            font-size: 17px;
        }

        .taiyang-group label span {
            font-size: 17px; /* 安卓使用更小字体 */
        }
    }
}
/* Android 设备检测 */
@supports not (-webkit-touch-callout: none) {
    @media (max-width: 768px) {
        .paipan-xuanze {
            font-size: 13px;
        }

        .taiyang-group label span {
            font-size: 13px; /* 安卓使用更小字体 */
            letter-spacing: -0.2px; /* 减少字间距 */
        }

        .taiyang-group label {
            padding: 8px 10px; /* 减小内边距 */
            min-width: 110px; /* 减小最小宽度 */
        }

        .taiyang-group {
            gap: 8px; /* 减小间距 */
        }
    }
}

/* 地理位置选择器组件样式 */
.location-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
    width: 100%;
}

.location-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    width: 100%;
}

.location-group {
    flex: 0 0 calc(25% - 12px); /* 4列布局，每列25%宽度减去gap */
    min-width: 0; /* 防止内容溢出 */
    position: relative;
}

.loc-select {
    width: 100%;
    height: 52px;
    padding: 0 20px;
    font-size: 16px;
    line-height: 1.5;
    color: #1a1a1a;
    background-color: #ffffff;
    border: 2px solid #d1d9e6;
    border-radius: 12px;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23737b8c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 18px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    cursor: pointer;
}

    .loc-select:hover {
        border-color: #3a86ff;
        box-shadow: 0 4px 12px rgba(58, 134, 255, 0.15);
    }

    .loc-select:focus {
        outline: none;
        border-color: #3a86ff;
        box-shadow: 0 0 0 3px rgba(58, 134, 255, 0.2);
    }

    .loc-select:disabled {
        background-color: #f8f9fa;
        color: #adb5bd;
        border-color: #e9ecef;
        cursor: not-allowed;
    }

    .loc-select option {
        padding: 12px;
        font-size: 15px;
    }

/* 标签样式（可选） */
.loc-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .location-group {
        flex: 0 0 calc(50% - 8px); /* 平板：2列布局 */
    }
}

@media (max-width: 768px) {
    .location-grid {
        gap: 12px;
    }

    .location-group {
        flex: 0 0 100%; /* 手机：1列布局 */
    }

    .loc-select {
        height: 48px;
        padding: 0 16px;
        font-size: 15px;
    }
}

/* iOS Safari 优化 */
@supports (-webkit-touch-callout: none) {
    .loc-select {
        font-size: 16px; /* 防止iOS缩放 */
    }
}

/* 暗色模式支持 */
@media (prefers-color-scheme: dark) {
    .loc-select {
        background-color: #2d3748;
        color: #e2e8f0;
        border-color: #4a5568;
        background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a0aec0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    }

        .loc-select:hover {
            border-color: #4299e1;
            box-shadow: 0 4px 12px rgba(66, 153, 225, 0.2);
        }

        .loc-select:focus {
            border-color: #4299e1;
            box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.2);
        }

        .loc-select:disabled {
            background-color: #4a5568;
            color: #718096;
            border-color: #2d3748;
        }

    .loc-label {
        color: #cbd5e0;
    }
}

/* 加载状态 */
.loc-loading {
    position: relative;
    opacity: 0.7;
}

    .loc-loading::after {
        content: '';
        position: absolute;
        right: 40px;
        top: 50%;
        transform: translateY(-50%);
        width: 16px;
        height: 16px;
        border: 2px solid #e2e8f0;
        border-top-color: #3a86ff;
        border-radius: 50%;
        animation: loc-spin 0.8s linear infinite;
    }

@keyframes loc-spin {
    from {
        transform: translateY(-50%) rotate(0deg);
    }

    to {
        transform: translateY(-50%) rotate(360deg);
    }
}

/* 错误状态 */
.loc-error {
    border-color: #ef4444 !important;
}

    .loc-error:focus {
        box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2) !important;
    }



/* 太阳时校对与地理位置选择组件样式 - 确保手机电脑都是一行显示 */

/* 太阳时校对选项 - 始终单行布局 */
.taiyang-row {
    display: flex;
    width: 100%;
    margin-top: -15px;
    margin-bottom: 0px;
    background: #ffffff;
    border-radius: 12px;
    padding: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.taiyang-group {
    display: flex;
    width: 100%;
    justify-content: space-between; /* 均匀分布 */
    align-items: center;
    flex-wrap: nowrap; /* 强制不换行 */
}

    .taiyang-group label {
        display: flex;
        width: 200px; /* 固定宽度 */
        align-items: center;
        gap: 6px;
        padding: 5px 6px;
        background: #f8f9fa;
        border-radius: 8px;
        cursor: pointer;
        transition: all 0.3s ease;
        font-weight: 500;
        color: #495057;
        white-space: nowrap;
        border: 2px solid transparent;
        flex: 1; /* 平均分配宽度 */
        margin: 0 4px; /* 左右间距 */
        justify-content: center;
        text-align: center;
        min-width: 0; /* 允许缩小 */
        overflow: hidden; /* 防止内容溢出 */
    }

    .taiyang-group input[type="radio"] {
        width: 16px;
        height: 16px;
        accent-color: #667eea;
        flex-shrink: 0; /* 防止单选按钮被压缩 */
    }

/* 国家选择 - 始终单行布局 */
.country-row {
    display: flex;
    width: 100%;
    margin-bottom: 10px;
}

.country-group {
    flex: 1;
    min-width: 0;
}

.country-select-wrapper {
    position: relative;
    width: 100%;
}

.country-select {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    font-size: 16px;
    color: #1a1a1a;
    background: #ffffff;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23737b8c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    transition: all 0.25s ease;
    cursor: pointer;
    font-weight: 500;
}

/* 省份城市区县 - 始终单行布局 */
.location-row {
    display: flex;
    width: 100%;
    gap: 8px; /* 减小间距 */
    margin-bottom: 15px;
    flex-wrap: nowrap; /* 强制不换行 */
    overflow: hidden; /* 防止溢出 */
}

.location-group {
    flex: 1;
    min-width: 0; /* 允许缩小到0 */
    position: relative;
}

.location-select-wrapper {
    position: relative;
    width: 100%;
}

.location-select {
    width: 100%;
    height: 48px;
    padding: 0 10px 0 12px;
    font-size: 14px;
    color: #1a1a1a;
    background: #ffffff;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23737b8c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 14px;
    transition: all 0.25s ease;
    cursor: pointer;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 60px; /* 最小宽度 */
}

/* 所有设备通用响应式 */
@media (max-width: 768px) {
    .taiyang-group {
        gap: 4px; /* 更小的间距 */
    }

        .taiyang-group label {
            padding: 4px 3px;
            font-size: 13px;
            margin: 0 2px;
        }

        .taiyang-group input[type="radio"] {
            width: 14px;
            height: 14px;
        }

    .country-select,
    .location-select {
        height: 44px;
        font-size: 14px;
    }

    .location-row {
        gap: 6px;
    }

    .location-select {
        font-size: 13px;
        padding: 0 8px 0 10px;
        background-position: right 6px center;
        background-size: 12px;
    }
}

/* 超小屏幕适配 - 但仍然保持一行 */
@media (max-width: 375px) {
    .taiyang-group label {
        font-size: 12px;
        padding: 6px 4px;
    }

    .taiyang-group span {
        display: inline-block;
        max-width: 60px; /* 限制文字宽度 */
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .location-select {
        font-size: 12px;
        padding: 0 6px 0 8px;
    }
}

/* 平板和电脑 */
@media (min-width: 769px) {
    .taiyang-row {
        padding: 16px;
    }

    .taiyang-group {
        gap: 15px;
        justify-content: center;
    }

        .taiyang-group label {
            padding: 10px 20px;
            font-size: 16px;
            margin: 0;
            flex: none; /* 取消平均分配，使用固定宽度 */
            min-width: 150px;
        }

    .location-row {
        gap: 15px;
    }

    .location-select {
        font-size: 15px;
        padding: 0 15px;
        background-position: right 12px center;
        background-size: 16px;
    }
}

/* 安卓设备优化 */
@media screen and (-webkit-min-device-pixel-ratio:0) and (min-resolution:.001dpcm) {
    .location-select {
        -webkit-appearance: none; /* 清除安卓默认样式 */
        -moz-appearance: none;
        appearance: none;
    }
}

/* 焦点状态 */
.taiyang-group label:focus-within,
.country-select:focus,
.location-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
}

/* 悬停效果 */
.taiyang-group label:hover {
    background: #e9ecef;
    transform: translateY(-1px);
}

/* 选中状态 */
.taiyang-group input[type="radio"]:checked + span {
    color: #667eea;
    font-weight: 600;
}

/* 禁用状态 */
.location-select:disabled {
    background-color: #f8f9fa;
    color: #adb5bd;
    border-color: #e9ecef;
    cursor: not-allowed;
    opacity: 0.7;
}

/* iOS Safari 优化 */
@supports (-webkit-touch-callout: none) {
    .country-select,
    .location-select {
        height: 52px;
        font-size: 16px;
    }

    .taiyang-group label {
        padding: 10px 8px;
    }
}

/* 安卓设备专用适配 */
@supports not (-webkit-touch-callout: none) {
    @media (max-width: 768px) {
        .country-select,
        .location-select {
            height: 36px;
            font-size: 13px;
        }

        .taiyang-group label {
            padding: 5px 4px;
        }
    }
}



.astro-row {
    margin-bottom: 15px;
}

.paipan-type-row {
    display: flex;
    justify-content: center;
}

.paipan-type-group {
    display: flex;
    gap: 20px;
    align-items: center;
}

/* 隐藏终身局时间选择和阴阳历选择的样式 */
.lifetime-datetime,
.cal-type-row {
    transition: all 0.3s ease;
}

.hidden {
    display: none !important;
}

/* 底部导航栏样式 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 3px 12px 3px;
    z-index: 1000;
    box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.1);
    border-radius: 5px 5px 0 0;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    flex: 1;
    text-decoration: none; /* 去除下划线 */
    color: #666;
    font-size: 10px;
    transition: all 0.2s ease;
    padding: 1px 0;
    border-radius: 12px;
    background: transparent;
    cursor: pointer;
}

    .nav-item:hover {
        background: rgba(102, 126, 234, 0.1);
    }

    .nav-item svg {
        width: 20px; /* 增大图标 */
        height: 20px;
        stroke: currentColor;
        stroke-width: 1.8;
        fill: none;
    }

    .nav-item.active {
        color: #667eea;
        background: rgba(102, 126, 234, 0.1);
    }

    .nav-item span {
        font-size: 10px; /* 增大文字 */
        font-weight: 500;
    }

/* 为底部导航留出空间 */
body {
    padding-bottom: 70px;
}

/* 安卓设备专用适配 */
@supports not (-webkit-touch-callout: none) {
    @media (max-width: 768px) {
        .paipan-type-group label {
            font-size: 12px; /* 添加字体大小 */
        }

        .nav-item svg {
            width: 16px;
            height: 16px;
        }

        .nav-item span {
            font-size: 10px;
        }

        .bottom-nav {
            padding: 5px 8px 5px;
        }
    }
}
/* iOS 适配 */
@supports (-webkit-touch-callout: none) {
    .bottom-nav {
        padding-bottom: calc(12px + env(safe-area-inset-bottom));
    }

    body {
        padding-bottom: calc(70px + env(safe-area-inset-bottom));
    }

    .paipan-type-group label {
        font-size: 14px; /* 添加字体大小 */
    }

    .nav-item svg {
        width: 20px;
        height: 20px;
    }

    .nav-item span {
        font-size: 12px;
    }

    .bottom-nav {
        padding: 5px 8px 5px;
    }
}


/* 原有样式保留 */
.contact-info-wenzi {
    display: grid;
    place-items: center;
    font-size: 14px;
    margin-top: 0px;
    margin-bottom: 0px;
    font-weight: normal !important; /* 强制覆盖其他样式 */
}
/* Android 设备检测 */
@supports not (-webkit-touch-callout: none) {
    @media (pointer: coarse) {
        .contact-info-wenzi {
            font-size: 12px;
            color: #ffffff;
        }
    }
}

.info-card {
    margin-top: -5px;
    padding: 10px 12px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 12px;
    color: #333;
    margin-bottom: 10px;
}
