/* ========== 公司起名页面完整CSS修复 ========== */
       /* VIP提示框样式 */
        .vip-tip-box {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: #fff;
            padding: 40px 30px;
            border-radius: 12px;
            text-align: center;
            margin: 30px auto;
            max-width: 600px;
            box-shadow: 0 8px 25px rgba(102,126,234,0.3);
        }
        .vip-tip-box .vip-icon {
            font-size: 48px;
            margin-bottom: 15px;
        }
        .vip-tip-box h3 {
            font-size: 22px;
            margin-bottom: 15px;
            font-weight: bold;
        }
        .vip-tip-box p {
            font-size: 16px;
            line-height: 1.8;
            margin-bottom: 25px;
            opacity: 0.95;
        }
        .vip-tip-box .vip-btn {
            display: inline-block;
            background: #fff;
            color: #667eea;
            padding: 14px 40px;
            border-radius: 30px;
            text-decoration: none;
            font-size: 16px;
            font-weight: bold;
            transition: all 0.3s;
            box-shadow: 0 4px 15px rgba(0,0,0,0.2);
        }
        .vip-tip-box .vip-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(0,0,0,0.3);
        }
        .vip-tip-box .login-link {
            margin-top: 20px;
            font-size: 14px;
            opacity: 0.8;
        }
        .vip-tip-box .login-link a {
            color: #fff;
            text-decoration: underline;
        }
/* ===== 全局容器 ===== */
.qiming-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.qiming-title {
    text-align: center;
    color: #1a5276;
    font-size: 28px;
    margin-bottom: 10px;
}

.qiming-subtitle {
    text-align: center;
    color: #666;
    font-size: 16px;
    margin-bottom: 30px;
}

/* ===== 表单区域 ===== */
.bazi-form {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.bazi-form h3 {
    color: #1a5276;
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e8d5b5;
}

/* 关键修复：form-row强制flex横向 */
.bazi-form .form-row {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    margin-bottom: 15px !important;
    align-items: flex-end !important;
}

.bazi-form .form-group {
    flex: 1 1 auto !important;
    min-width: 90px !important;
    max-width: 150px !important;
    margin-bottom: 0 !important;
}

.bazi-form .form-group label {
    display: block;
    font-size: 13px;
    color: #555;
    margin-bottom: 5px;
    font-weight: 500;
}

.bazi-form .form-group input[type="text"],
.bazi-form .form-group select {
    width: 100% !important;
    padding: 5px 8px !important;
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
    font-size: 13px !important;
    box-sizing: border-box !important;
    height: 32px !important;
    line-height: 20px !important;
}

/* ===== 合作人区域 ===== */
.partner-toggle {
    margin: 15px 0;
}

.partner-toggle button {
    background: linear-gradient(135deg, #8B4513, #D2691E);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.partner-content {
    display: none;
    background: #faf7f2;
    border-radius: 10px;
    padding: 20px;
    margin-top: 15px;
    border: 1px solid #e0d5c5;
}

.partner-content.show {
    display: block;
}

.partner-form h4 {
    color: #8B4513;
    font-size: 16px;
    margin-bottom: 15px;
}

/* ===== 公司基本信息区域 ===== */
.company-info {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px 25px;
    margin: 20px 0;
    border: 1px solid #e0d5c5;
}

.company-info h4 {
    color: #1a5276;
    margin-bottom: 15px;
    font-size: 16px;
}

/* 关键修复：公司信息行强制flex横向 */
.company-info .info-row {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 15px !important;
    align-items: flex-end !important;
}

.company-info .info-group {
    flex: 1 1 auto !important;
    min-width: 180px !important;
    max-width: 300px !important;
}

.company-info .info-group label {
    display: block;
    font-size: 13px;
    color: #555;
    margin-bottom: 5px;
    font-weight: 500;
}

.company-info .info-group input[type="text"],
.company-info .info-group select {
    width: 100% !important;
    padding: 5px 8px !important;
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
    font-size: 13px !important;
    box-sizing: border-box !important;
    height: 32px !important;
    background: #fff !important;
}

/* ===== 提交按钮 ===== */
.btn-submit {
    background: linear-gradient(135deg, #c9302c, #a52a2a);
    color: #fff;
    border: none;
    padding: 12px 40px;
    border-radius: 25px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(201, 48, 44, 0.3);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 48, 44, 0.4);
}

/* ===== 历史记录区域 ===== */
.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;
}

/* ===== 科学声明 ===== */
.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-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;
}

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

@media (max-width: 768px) {
    /* 手机版表单横向排列 */
    .bazi-form .form-row,
    .partner-form .form-row,
    .company-info .info-row {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        align-items: flex-end !important;
    }
    .bazi-form .form-group,
    .partner-form .form-group {
        flex: 1 1 auto !important;
        min-width: 80px !important;
        max-width: 120px !important;
        margin-bottom: 0 !important;
    }
    .company-info .info-group {
        flex: 1 1 auto !important;
        min-width: 140px !important;
        max-width: 200px !important;
    }
    .bazi-form .form-group input,
    .bazi-form .form-group select,
    .partner-form .form-group input,
    .partner-form .form-group select,
    .company-info .info-group input,
    .company-info .info-group select {
        width: 100% !important;
        height: 32px !important;
        box-sizing: border-box !important;
        font-size: 12px !important;
    }
    .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;
    }
    .science-notice {
        padding: 14px 16px;
        font-size: 12px;
    }
    .science-notice .notice-body {
        padding-left: 0;
        margin-top: 8px;
    }
}

@media (max-width: 480px) {
    .qiming-container {
        padding: 10px;
    }
    .bazi-form {
        padding: 15px;
    }
    /* 手机版表单保持横向排列 */
    .bazi-form .form-row,
    .partner-form .form-row,
    .company-info .info-row {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
    }
    .bazi-form .form-group,
    .partner-form .form-group {
        flex: 1 1 auto !important;
        min-width: 70px !important;
        max-width: 100px !important;
    }
    .company-info .info-group {
        flex: 1 1 auto !important;
        min-width: 120px !important;
        max-width: 100% !important;
    }
    .name-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .card-right {
        width: 100%;
    }
    .detail-btn {
        width: 100%;
    }
}

/* 紧急修复：表单横向布局 */
.bazi-form .form-row,
.partner-form .form-row,
.company-info .info-row {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    align-items: flex-end !important;
}
.bazi-form .form-group,
.partner-form .form-group {
    flex: 1 1 auto !important;
    min-width: 90px !important;
    max-width: 150px !important;
}
.company-info .info-group {
    flex: 1 1 auto !important;
    min-width: 180px !important;
}
.bazi-form .form-group input,
.bazi-form .form-group select,
.partner-form .form-group input,
.partner-form .form-group select,
.company-info .info-group input,
.company-info .info-group select {
    width: 100% !important;
    height: 32px !important;
    box-sizing: border-box !important;
}