        .qiming-container { max-width: 1200px; margin: 0 auto; padding: 20px; }
        .qiming-title { text-align: center; color: #c9302c; font-size: 28px; margin-bottom: 10px; }
        .qiming-subtitle { text-align: center; color: #666; margin-bottom: 30px; }
        .lunar-notice { background: #fff3cd; border: 1px solid #ffeaa7; padding: 10px; border-radius: 5px; text-align: center; margin-bottom: 20px; color: #856404; }

        /* 八字输入区域 */
        .bazi-form { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); padding: 30px; border-radius: 15px; margin-bottom: 30px; }
        .bazi-form h3 { color: #fff; text-align: center; margin-bottom: 20px; font-size: 20px; }
        .form-row { display: flex; gap: 15px; flex-wrap: wrap; justify-content: center; align-items: flex-end; }
        .compact-form { gap: 12px; align-items: flex-end; }
        .form-group { display: flex; flex-direction: column; }
        .form-group label { color: #fff; margin-bottom: 5px; font-size: 13px; font-weight: 500; }
        .form-group label .lunar-tag { color: #ffd700; font-weight: bold; }

        /* 日期组 */
        .date-group { width: auto; }
        .date-group .date-inputs { display: flex; gap: 5px; }
        .date-group select { padding: 8px 5px; border: none; border-radius: 6px; font-size: 13px; }
        .year-select { width: 85px; }
        .month-select { width: 65px; }
        .day-select { width: 65px; }

        /* 时辰 */
        .time-group select { padding: 8px 10px; border: none; border-radius: 6px; font-size: 13px; width: 120px; }

        /* 性别 */
        .gender-group select { padding: 8px 10px; border: none; border-radius: 6px; font-size: 13px; width: 90px; }

        /* 姓名组 */
        .name-group { width: auto; }
        .name-group .name-inputs { display: flex; gap: 5px; }
        .name-group input { padding: 8px 5px; border: none; border-radius: 6px; font-size: 13px; text-align: center; }
        .surname-input { width: 50px; }
        .beifen-input { width: 50px; }
        .oldname-input { width: 70px; }

        .btn-submit { background: #c9302c; color: #fff; padding: 10px 30px; border: none; border-radius: 20px; font-size: 15px; cursor: pointer; transition: all 0.3s; margin-bottom: 0; }
        .btn-submit:hover { background: #a52724; transform: translateY(-2px); }

        /* 八字结果展示 */
        .bazi-result { background: #fff8f0; border: 2px solid #c9302c; border-radius: 15px; padding: 25px; margin-bottom: 30px; display: none; }
        .bazi-result.show { display: block; }
        .bazi-result h3 { color: #c9302c; text-align: center; margin-bottom: 20px; }
        .bazi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-bottom: 20px; }
        .bazi-item { text-align: center; padding: 15px; background: #fff; border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
        .bazi-item .label { color: #999; font-size: 12px; margin-bottom: 5px; }
        .bazi-item .gan { font-size: 24px; font-weight: bold; color: #c9302c; }
        .bazi-item .zhi { font-size: 24px; font-weight: bold; color: #1a5276; }

        .wuxing-analysis { display: flex; justify-content: center; gap: 30px; margin: 20px 0; flex-wrap: wrap; }
        .wuxing-item { text-align: center; padding: 10px 20px; border-radius: 10px; }
        .wuxing-item .name { font-size: 18px; font-weight: bold; }
        .wuxing-item .count { font-size: 24px; }
        .wuxing-item.jin { background: #fff8dc; } .wuxing-item.jin .name { color: #d4af37; }
        .wuxing-item.mu { background: #f0fff0; } .wuxing-item.mu .name { color: #228b22; }
        .wuxing-item.shui { background: #f0f8ff; } .wuxing-item.shui .name { color: #1e90ff; }
        .wuxing-item.huo { background: #fff5ee; } .wuxing-item.huo .name { color: #ff4500; }
        .wuxing-item.tu { background: #faf0e6; } .wuxing-item.tu .name { color: #8b4513; }

        .xiyong-info { background: #e8f5e9; padding: 15px; border-radius: 10px; text-align: center; margin: 20px 0; }
        .xiyong-info strong { color: #c9302c; font-size: 18px; }

        /* 名字列表 - 新版详细展示 */
        .names-section { margin-top: 30px; }
        .names-section h3 { color: #c9302c; text-align: center; margin-bottom: 20px; font-size: 22px; }
        .names-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 20px; }

        .name-card { background: #fff; border-radius: 12px; padding: 20px; box-shadow: 0 4px 15px rgba(0,0,0,0.08); transition: all 0.3s; border: 2px solid transparent; position: relative; overflow: hidden; }
        .name-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,0.15); border-color: #c9302c; }
        .name-card .rank-badge { position: absolute; top: 10px; right: 10px; background: linear-gradient(135deg, #c9302c, #a52724); color: #fff; padding: 5px 12px; border-radius: 20px; font-size: 12px; font-weight: bold; }
        .name-card .rank-badge.top1 { background: linear-gradient(135deg, #ffd700, #ff8c00); color: #333; }
        .name-card .rank-badge.top2 { background: linear-gradient(135deg, #c0c0c0, #808080); }
        .name-card .rank-badge.top3 { background: linear-gradient(135deg, #cd7f32, #8b4513); }

        .name-card .fullname { font-size: 32px; font-weight: bold; color: #c9302c; text-align: center; margin-bottom: 10px; margin-top: 10px; }
        .name-card .pinyin { text-align: center; color: #999; font-size: 14px; margin-bottom: 15px; }
        .name-card .info-row { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 14px; align-items: center; }
        .name-card .info-row .label { color: #666; }
        .name-card .info-row .value { color: #333; font-weight: bold; }
        .name-card .score { text-align: center; margin: 15px 0; }
        .name-card .score .num { font-size: 42px; font-weight: bold; color: #c9302c; }
        .name-card .score .label { font-size: 14px; color: #666; }
        .name-card .score .stars { color: #ffd700; font-size: 18px; margin-top: 5px; }

        .name-card .meaning-box { background: #f8f9fa; border-radius: 8px; padding: 12px; margin: 10px 0; }
        .name-card .meaning-box .meaning-title { font-weight: bold; color: #c9302c; font-size: 14px; margin-bottom: 5px; }
        .name-card .meaning-box .meaning-text { color: #555; font-size: 13px; line-height: 1.8; text-align: justify; }

        .name-card .advice-box { background: #e8f5e9; border-radius: 8px; padding: 10px; margin-top: 10px; border-left: 3px solid #4caf50; }
        .name-card .advice-box .advice-title { font-weight: bold; color: #2e7d32; font-size: 13px; margin-bottom: 3px; }
        .name-card .advice-box .advice-text { color: #555; font-size: 12px; line-height: 1.6; }

        .name-card .origin { color: #999; font-size: 12px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed #ddd; }

        .wuxing-tag { display: inline-block; padding: 3px 10px; border-radius: 15px; font-size: 12px; margin: 2px; }
        .wuxing-jin { background: #fff8dc; color: #d4af37; }
        .wuxing-mu { background: #f0fff0; color: #228b22; }
        .wuxing-shui { background: #f0f8ff; color: #1e90ff; }
        .wuxing-huo { background: #fff5ee; color: #ff4500; }
        .wuxing-tu { background: #faf0e6; color: #8b4513; }

        .gender-tag { display: inline-block; padding: 3px 10px; border-radius: 15px; font-size: 12px; font-weight: bold; }
        .gender-boy { background: #e3f2fd; color: #1976d2; }
        .gender-girl { background: #fce4ec; color: #c2185b; }

        /* 分页样式 */
        .pagination { display: flex; justify-content: center; align-items: center; gap: 5px; margin: 30px 0; flex-wrap: wrap; }
        .pagination a, .pagination span { display: inline-block; padding: 8px 14px; border-radius: 6px; font-size: 14px; text-decoration: none; transition: all 0.3s; }
        .pagination a { background: #fff; color: #c9302c; border: 1px solid #c9302c; }
        .pagination a:hover { background: #c9302c; color: #fff; }
        .pagination .current { background: #c9302c; color: #fff; border: 1px solid #c9302c; }
        .pagination .disabled { background: #f5f5f5; color: #999; border: 1px solid #ddd; cursor: not-allowed; }
        .pagination .info { background: transparent; border: none; color: #666; margin: 0 10px; }

        /* 姓名字段标签 */
        .name-field { display: flex; flex-direction: column; align-items: center; }
        .name-field .field-label { color: #ffd700; font-size: 11px; margin-bottom: 3px; font-weight: bold; }

        @media (max-width: 768px) {
            .bazi-grid { grid-template-columns: repeat(2, 1fr); }
            .form-row { flex-direction: column; }
            .form-group input, .form-group select { width: 100%; }
            .names-grid { grid-template-columns: 1fr; }
            .pagination a, .pagination span { padding: 6px 10px; font-size: 12px; }
        }
        
        /* 科学声明样式 */
.science-notice-wrapper {
    max-width: 1200px;
    margin: 0 auto 25px;
    padding: 0 20px;
}
.science-notice {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-left: 5px solid #6c757d;
    border-radius: 10px;
    padding: 18px 22px;
    font-size: 13px;
    color: #495057;
    line-height: 1.9;
    position: relative;
}
.science-notice::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -5px;
    width: 5px;
    height: calc(100% + 2px);
    background: linear-gradient(180deg, #8B4513, #D2691E, #FFD700);
    border-radius: 10px 0 0 10px;
}
.science-notice .notice-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #8B4513, #D2691E);
    color: #fff;
    border-radius: 50%;
    font-size: 14px;
    margin-right: 12px;
    flex-shrink: 0;
}
.science-notice .notice-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-weight: bold;
    font-size: 15px;
    color: #343a40;
}
.science-notice .notice-body {
    padding-left: 40px;
}
.science-notice .notice-body p {
    margin: 0 0 8px 0;
}
.science-notice .notice-body p:last-child {
    margin-bottom: 0;
}
.science-notice .notice-highlight {
    color: #8B4513;
    font-weight: bold;
}
.science-notice .notice-tag {
    display: inline-block;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #8B4513;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    margin-right: 8px;
}

/* 小型声明（用于按钮下方） */
.science-notice-mini {
    background: #f8f9fa;
    border: 1px dashed #adb5bd;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 12px;
    color: #6c757d;
    line-height: 1.7;
    margin: 15px 0;
    text-align: center;
}
.science-notice-mini i {
    color: #8B4513;
    margin-right: 6px;
}

/* 打印时隐藏 */
@media print {
    .science-notice-wrapper,
    .science-notice,
    .science-notice-mini {
        display: none !important;
    }
}

/* 移动端适配 */
@media (max-width: 768px) {
    .science-notice {
        padding: 14px 16px;
        font-size: 12px;
    }
    .science-notice .notice-body {
        padding-left: 0;
        margin-top: 8px;
    }
    .science-notice .notice-header {
        flex-wrap: wrap;
    }
}
/* 查询记录列表 */
.history-records { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 15px; padding: 20px 0; }
.history-item { background: #fff; border-radius: 10px; padding: 15px 20px; box-shadow: 0 2px 10px rgba(0,0,0,0.08); display: flex; justify-content: space-between; align-items: center; transition: all 0.3s; border-left: 4px solid #c9302c; }
.history-item:hover { transform: translateY(-3px); box-shadow: 0 5px 20px rgba(0,0,0,0.12); }
.history-info { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.history-surname { font-size: 18px; font-weight: bold; color: #c9302c; }
.history-date { color: #666; font-size: 14px; }
.history-gender { font-size: 13px; }
.history-beifen { background: #fff3cd; color: #856404; padding: 2px 8px; border-radius: 10px; font-size: 12px; }
.history-link { color: #fff; padding: 8px 20px; border-radius: 20px; text-decoration: none; font-size: 14px; transition: all 0.3s; }
.history-link:hover { transform: scale(1.05); opacity: 0.9; }

/* 四种类型颜色 */
.type-bazi { border-left-color: #8B4513 !important; }
.type-bazi:hover { border-left-color: #FFD700 !important; }
.type-hehun { border-left-color: #e91e63 !important; }
.type-hehun:hover { border-left-color: #FFD700 !important; }
.type-child { border-left-color: #c9302c !important; }
.type-child:hover { border-left-color: #FFD700 !important; }
.type-company { border-left-color: #764ba2 !important; }
.type-company:hover { border-left-color: #FFD700 !important; }

.history-type-badge { display: inline-block; padding: 3px 12px; border-radius: 15px; font-size: 12px; font-weight: bold; margin-bottom: 8px; color: #fff; }

.history-pagination { margin-top: 20px; }

@media (max-width: 768px) {
    .history-records { grid-template-columns: 1fr; }
    .history-item { flex-direction: column; gap: 10px; text-align: center; }
}

/* ========== 历史记录卡片 - 公司起名风格 ========== */
.names-section {
    margin-top: 40px;
}

.names-section h3 {
    color: #c9302c;
    text-align: center;
    margin-bottom: 25px;
    font-size: 22px;
}

/* 卡片网格 - 3列布局 */
.names-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

/* 单个卡片 - 横向flex布局 */
.name-card {
    background: #fff;
    border-radius: 12px;
    padding: 15px 18px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
    transition: all 0.3s;
    border-left: 4px solid #ddd;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

.name-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

/* 左侧类型标签 */
.card-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    min-width: 60px;
}

.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: bold;
    white-space: nowrap;
}

/* 中间信息区域 */
.card-middle {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.fullname {
    font-size: 17px;
    font-weight: bold;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wuxing {
    font-size: 12px;
    color: #888;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.wuxing span {
    display: inline-block;
    padding: 2px 8px;
    background: #f5f5f5;
    border-radius: 4px;
    font-size: 11px;
    color: #666;
}

/* 卡片内信息行 */
.name-card .info-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.name-card .info-row .label {
    color: #999;
    font-size: 12px;
}

.name-card .info-row .value {
    color: #333;
    font-weight: 500;
}

/* 性别标签 */
.gender-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: bold;
}

.gender-boy {
    background: #e3f2fd;
    color: #1976d2;
}

.gender-girl {
    background: #fce4ec;
    color: #c2185b;
}

.gender-tag.company-tag {
    background: #fff3e0 !important;
    color: #e65100 !important;
}

/* 辈分标签 */
.history-beifen {
    background: #fff3cd;
    color: #856404;
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 11px;
}

/* 右侧按钮 */
.card-right {
    min-width: 80px;
}

.detail-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 16px;
    color: #fff;
    text-decoration: none;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.detail-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.pagination a, .pagination span {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s;
}

.pagination a {
    background: #fff;
    color: #c9302c;
    border: 1px solid #c9302c;
}

.pagination a:hover {
    background: #c9302c;
    color: #fff;
}

.pagination .current {
    background: #c9302c;
    color: #fff;
    border: 1px solid #c9302c;
}

.pagination .disabled {
    background: #f5f5f5;
    color: #999;
    border: 1px solid #ddd;
    cursor: not-allowed;
}

.pagination .info {
    background: transparent;
    border: none;
    color: #666;
    margin: 0 10px;
}

/* 响应式 */
@media (max-width: 992px) {
    .names-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .names-grid {
        grid-template-columns: 1fr;
    }
    .name-card {
        padding: 12px 15px;
        gap: 10px;
    }
    .fullname {
        font-size: 15px;
    }
    .detail-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .name-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .card-right {
        width: 100%;
    }
    .detail-btn {
        width: 100%;
    }
}
/* ========== 最终优化：历史记录卡片与公司起名完全一致 ========== */

/* 确保历史记录区域使用正确的网格 */
.names-section .names-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 15px !important;
    margin-bottom: 30px !important;
}

/* 卡片基础样式 */
.names-section .name-card {
    background: #fff !important;
    border-radius: 12px !important;
    padding: 15px 18px !important;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08) !important;
    transition: all 0.3s !important;
    border-left: 4px solid #ddd !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    position: relative !important;
    overflow: hidden !important;
    border: none !important;
    border-top: none !important;
    border-right: none !important;
    border-bottom: none !important;
}

.names-section .name-card:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12) !important;
}

/* 左侧标签区域 */
.names-section .name-card .card-left {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 5px !important;
    min-width: 60px !important;
}

/* 类型标签 */
.names-section .name-card .rank-badge {
    position: static !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #fff !important;
    padding: 4px 10px !important;
    border-radius: 15px !important;
    font-size: 11px !important;
    font-weight: bold !important;
    white-space: nowrap !important;
    top: auto !important;
    right: auto !important;
}

/* 中间信息区域 */
.names-section .name-card .card-middle {
    flex: 1 !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 5px !important;
}

/* 姓名 */
.names-section .name-card .fullname {
    font-size: 17px !important;
    font-weight: bold !important;
    margin-bottom: 3px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    text-align: left !important;
    margin-top: 0 !important;
}

/* 日期信息 */
.names-section .name-card .wuxing {
    font-size: 12px !important;
    color: #888 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 5px !important;
}

.names-section .name-card .wuxing span {
    display: inline-block !important;
    padding: 2px 8px !important;
    background: #f5f5f5 !important;
    border-radius: 4px !important;
    font-size: 11px !important;
    color: #666 !important;
}

/* 信息行 */
.names-section .name-card .info-row {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 13px !important;
    justify-content: flex-start !important;
    margin-bottom: 0 !important;
}

/* 性别标签 */
.names-section .name-card .gender-tag {
    display: inline-block !important;
    padding: 2px 8px !important;
    border-radius: 10px !important;
    font-size: 11px !important;
    font-weight: bold !important;
}

/* 公司标签 */
.names-section .name-card .gender-tag.company-tag {
    background: #fff3e0 !important;
    color: #e65100 !important;
}

/* 辈分标签 */
.names-section .name-card .history-beifen {
    background: #fff3cd !important;
    color: #856404 !important;
    padding: 2px 8px !important;
    border-radius: 8px !important;
    font-size: 11px !important;
}

/* 右侧按钮区域 */
.names-section .name-card .card-right {
    min-width: 80px !important;
    display: flex !important;
    align-items: center !important;
}

/* 查看结果按钮 */
.names-section .name-card .detail-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    padding: 8px 16px !important;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 20px !important;
    font-size: 13px !important;
    font-weight: bold !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
    white-space: nowrap !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
}

.names-section .name-card .detail-btn:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2) !important;
}

/* 响应式 */
@media (max-width: 992px) {
    .names-section .names-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .names-section .names-grid {
        grid-template-columns: 1fr !important;
    }
    .names-section .name-card {
        padding: 12px 15px !important;
        gap: 10px !important;
    }
    .names-section .name-card .fullname {
        font-size: 15px !important;
    }
    .names-section .name-card .detail-btn {
        padding: 6px 12px !important;
        font-size: 12px !important;
    }
}

@media (max-width: 480px) {
    .names-section .name-card {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
    }
    .names-section .name-card .card-right {
        width: 100% !important;
    }
    .names-section .name-card .detail-btn {
        width: 100% !important;
    }
}