/* ============================================
   佛缘堂 - 八字车牌号吉凶查询样式 (参照手机版美化)
   文件: /static/css/chepai.css
   ============================================ */

/* ========== 页面基础 ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.page-header {
    text-align: center;
    margin-bottom: 25px;
    padding: 20px 0;
}

.page-header h1 {
    font-size: 28px;
    color: #8b5a2b;
    margin-bottom: 8px;
    font-weight: 700;
}

.page-header p {
    color: #a08040;
    font-size: 15px;
}

/* ========== 区块通用样式（卡片风格）========== */
.section-box {
    background: #fff;
    border: 1px solid #e8d5b5;
    border-radius: 14px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(139,90,43,0.06);
}

.section-title {
    font-size: 17px;
    font-weight: 700;
    color: #8b5a2b;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e8d5b5;
}

.section-title .icon {
    font-size: 20px;
}

/* ========== 排名对比表格 ========== */
.batch-result-table {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
    border: 1px solid #e8d5b5;
}

.compare-table {
    width: 100%;
    min-width: 750px;
    border-collapse: collapse;
    background: #fff;
    font-size: 14px;
    border-radius: 12px;
    overflow: hidden;
}

.compare-table thead {
    background: linear-gradient(135deg, #8b5a2b, #a67c52);
    color: #fff8e7;
}

.compare-table thead th {
    padding: 14px 12px;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
}

.compare-table tbody td {
    padding: 14px 12px;
    border-bottom: 1px solid #f0e6d3;
    font-size: 14px;
    color: #5d4e37;
    vertical-align: middle;
}

.compare-table tbody tr:hover {
    background: rgba(139,90,43,0.04);
}

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

/* 各列宽度 */
.compare-table td:first-child,
.compare-table th:first-child { width: 60px; text-align: center; }
.compare-table td:nth-child(2),
.compare-table th:nth-child(2) { width: 130px; text-align: center; white-space: nowrap; }
.compare-table td:nth-child(3),
.compare-table th:nth-child(3) { width: 80px; text-align: center; white-space: nowrap; }
.compare-table td:nth-child(4),
.compare-table th:nth-child(4) { width: 90px; text-align: center; white-space: nowrap; }
.compare-table td:nth-child(5),
.compare-table th:nth-child(5) { min-width: 300px; max-width: 450px; text-align: left; line-height: 1.8; padding: 14px 16px; }
.compare-table td:nth-child(6),
.compare-table th:nth-child(6) { width: 90px; text-align: center; white-space: nowrap; }

.rank-num {
    display: inline-block;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    line-height: 34px;
    font-weight: 700;
    font-size: 15px;
    text-align: center;
}

.rank-1 { background: linear-gradient(135deg, #ffd700, #ffec8b); color: #8b5a2b; }
.rank-2 { background: linear-gradient(135deg, #c0c0c0, #e8e8e8); color: #8b5a2b; }
.rank-3 { background: linear-gradient(135deg, #cd7f32, #daa520); color: #fff; }

.plate-num {
    font-size: 17px;
    font-weight: 700;
    color: #8b5a2b;
    letter-spacing: 2px;
}

.compare-table .score {
    font-size: 17px;
    font-weight: 700;
    color: #c0392b;
}

.level {
    display: inline-block;
    padding: 5px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.level-daji { background: #c0392b; color: #fff; }
.level-ji { background: #e67e22; color: #fff; }
.level-ping { background: #f39c12; color: #fff; }
.level-xiong { background: #7f8c8d; color: #fff; }
.level-daxiong { background: #2c3e50; color: #fff; }

.wuxing-match {
    font-size: 13px;
    color: #5d4e37;
    line-height: 1.8;
    word-break: break-word;
}

.btn-detail {
    display: inline-block;
    padding: 7px 16px;
    background: #8b5a2b;
    color: #fff;
    text-decoration: none;
    border-radius: 18px;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s;
    white-space: nowrap;
}

.btn-detail:hover {
    background: #a67c52;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139,90,43,0.3);
}

/* ========== 详细分析区域 ========== */
.detail-section {
    margin-bottom: 30px;
}

.rank-badge {
    display: inline-block;
    padding: 5px 14px;
    background: #ffd700;
    color: #8b5a2b;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 700;
    margin-left: 10px;
}

/* ========== 综合评分区（深色背景风格）========== */
.score-box {
    background: linear-gradient(135deg, #5d4037, #8d6e63);
    border-radius: 16px;
    padding: 35px 25px;
    text-align: center;
    margin-bottom: 25px;
    color: #fff;
    box-shadow: 0 4px 20px rgba(93,64,55,0.3);
}

.plate-display {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: 10px;
    margin-bottom: 20px;
    color: #ffd700;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
    word-break: break-all;
}

.score-number {
    font-size: 48px;
    font-weight: 700;
    color: #ffd700;
    margin-bottom: 10px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.score-label {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 15px;
}

.score-level {
    display: inline-block;
    padding: 8px 30px;
    border-radius: 25px;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    background: rgba(255,255,255,0.2);
    color: #fff;
    border: 2px solid rgba(255,255,255,0.3);
}

.score-summary {
    font-size: 15px;
    color: rgba(255,255,255,0.9);
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto;
}

/* ========== 车牌数字五行分析（彩色方块风格）========== */
.digit-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    max-width: 500px;
    margin: 0 auto;
}

.digit-card {
    border: 2px solid #d4b896;
    border-radius: 12px;
    padding: 16px 8px;
    text-align: center;
    transition: all 0.3s;
    background: #fff;
}

.digit-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(139,90,43,0.15);
}

.digit-num {
    font-size: 26px;
    font-weight: 700;
    color: #8b5a2b;
    line-height: 1.2;
    margin-bottom: 6px;
}

.digit-wuxing {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
}

.digit-score {
    font-size: 13px;
    color: #c0392b;
    font-weight: 700;
}

/* 五行颜色 */
.wuxing-jin { border-color: #d4af37; }
.wuxing-jin .digit-wuxing { color: #d4af37; }
.wuxing-mu { border-color: #27ae60; }
.wuxing-mu .digit-wuxing { color: #27ae60; }
.wuxing-shui { border-color: #2980b9; }
.wuxing-shui .digit-wuxing { color: #2980b9; }
.wuxing-huo { border-color: #e74c3c; }
.wuxing-huo .digit-wuxing { color: #e74c3c; }
.wuxing-tu { border-color: #a0522d; }
.wuxing-tu .digit-wuxing { color: #a0522d; }

/* ========== 车牌五行分布（进度条风格）========== */
.wuxing-stats {
    max-width: 500px;
    margin: 0 auto;
    padding: 15px;
}

.wuxing-stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 14px;
    padding: 10px 0;
    border-bottom: 1px dashed #e8d5b5;
}

.wuxing-stat-item:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.wuxing-label {
    width: 40px;
    font-size: 15px;
    font-weight: 700;
    color: #8b5a2b;
    text-align: center;
    flex-shrink: 0;
}

.wuxing-bar {
    flex: 1;
    height: 20px;
    background: #f0e6d3;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.wuxing-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.8s ease;
    min-width: 4px;
}

.wuxing-fill.jin { background: #d4af37; }
.wuxing-fill.mu { background: #27ae60; }
.wuxing-fill.shui { background: #2980b9; }
.wuxing-fill.huo { background: #e74c3c; }
.wuxing-fill.tu { background: #a0522d; }

.wuxing-count {
    width: 50px;
    font-size: 14px;
    font-weight: 700;
    color: #c0392b;
    text-align: right;
    flex-shrink: 0;
}

/* ========== 八字命理匹配分析（表格风格）========== */
.match-info {
    background: #fff;
    border: 1px solid #e8d5b5;
    border-radius: 12px;
    padding: 0;
    margin-bottom: 18px;
    overflow: hidden;
}

.match-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid #f0e6d3;
}

.match-row:last-child {
    border-bottom: none;
}

.match-label {
    font-size: 15px;
    color: #a08040;
    font-weight: 600;
}

.match-value {
    font-size: 17px;
    font-weight: 700;
    color: #8b5a2b;
    padding: 6px 16px;
    border-radius: 16px;
    background: #fff8e7;
    border: 1px solid #e8d5b5;
}

.match-score {
    font-size: 20px;
    font-weight: 700;
    color: #c0392b;
    padding: 6px 16px;
    border-radius: 16px;
    background: #fff5f5;
    border: 1px solid #e74c3c;
}

.match-desc {
    background: #faf5eb;
    border: 1px solid #e8d5b5;
    border-radius: 12px;
    padding: 18px;
    font-size: 14px;
    color: #5d4e37;
    line-height: 1.9;
}

/* ========== 数字组合分析（标签卡片风格）========== */
.pair-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    max-width: 420px;
    margin: 0 auto;
}

.pair-card {
    border: 1px solid #e8d5b5;
    border-radius: 10px;
    padding: 12px 8px;
    text-align: center;
    transition: all 0.3s;
    background: #fff;
}

.pair-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(139,90,43,0.1);
}

.pair-card.lucky {
    border-color: #27ae60;
    background: #f0f8e8;
}

.pair-card.unlucky {
    border-color: #e74c3c;
    background: #fff5f5;
}

.pair-num {
    font-size: 20px;
    font-weight: 700;
    color: #8b5a2b;
    line-height: 1.2;
    margin-bottom: 4px;
}

.pair-desc {
    font-size: 12px;
    color: #a08040;
    margin-bottom: 4px;
    line-height: 1.3;
}

.pair-score {
    font-size: 13px;
    color: #c0392b;
    font-weight: 700;
}

/* ========== 使用建议 ========== */
.advice-content {
    background: #faf5eb;
    border: 1px solid #e8d5b5;
    border-radius: 12px;
    padding: 18px;
    font-size: 15px;
    color: #5d4e37;
    line-height: 1.9;
}

.advice-content strong {
    color: #8b5a2b;
}

/* ========== 大吉车牌推荐（三列卡片风格）========== */
.lucky-plate-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 20px;
}

.lucky-plate-card {
    background: #fff;
    border: 1px solid #e8d5b5;
    border-radius: 14px;
    padding: 20px 15px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(139,90,43,0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lucky-plate-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(139,90,43,0.15);
    border-color: #d4b896;
}

.lucky-plate-card::before {
    content: '👑';
    position: absolute;
    top: 10px;
    right: 12px;
    font-size: 18px;
    opacity: 0.4;
}

.lucky-plate-number {
    font-size: 22px;
    font-weight: 700;
    color: #8b5a2b;
    letter-spacing: 3px;
    margin-bottom: 12px;
    word-break: break-all;
    line-height: 1.3;
}

.lucky-plate-score {
    font-size: 26px;
    font-weight: 700;
    color: #c0392b;
    margin-bottom: 10px;
}

.lucky-plate-wuxing {
    font-size: 13px;
    color: #a08040;
    margin-bottom: 10px;
    font-weight: 600;
    line-height: 1.4;
}

.lucky-plate-desc {
    font-size: 12px;
    color: #5d4e37;
    line-height: 1.6;
    margin-bottom: 12px;
    min-height: 38px;
}

.lucky-plate-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-top: auto;
}

.lucky-tag {
    display: inline-block;
    padding: 4px 10px;
    background: #fff8e7;
    border: 1px solid #e8d5b5;
    border-radius: 10px;
    font-size: 11px;
    color: #8b5a2b;
    font-weight: 600;
}

.lucky-plate-intro {
    background: #faf5eb;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 20px;
    border: 1px solid #e8d5b5;
    font-size: 14px;
    line-height: 1.8;
    color: #5d4e37;
}

.lucky-plate-intro strong {
    color: #8b5a2b;
}

/* ========== 返回按钮 ========== */
.back-btn {
    display: block;
    width: fit-content;
    margin: 30px auto;
    padding: 14px 40px;
    background: #8b5a2b;
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(139,90,43,0.2);
}

.back-btn:hover {
    background: #a67c52;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(139,90,43,0.3);
}

/* ========== 重要提示与理论说明 ========== */
.disclaimer-box {
    background: #fff;
    border: 1px solid #e8d5b5;
    border-radius: 16px;
    padding: 25px;
    margin-top: 25px;
}

.disclaimer-alert {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: #fff8e7;
    border: 1px solid #e8d5b5;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 22px;
}

.alert-icon {
    font-size: 26px;
    flex-shrink: 0;
    margin-top: 2px;
}

.alert-content strong {
    display: block;
    font-size: 16px;
    color: #8b5a2b;
    margin-bottom: 8px;
}

.alert-content p {
    font-size: 14px;
    color: #5d4e37;
    line-height: 1.8;
    margin: 0;
}

.theory-section,
.accuracy-section,
.system-logic,
.important-notes,
.suggestions {
    margin-bottom: 22px;
}

.theory-section h4,
.accuracy-section h4,
.system-logic h4,
.important-notes h4,
.suggestions h4 {
    font-size: 16px;
    color: #8b5a2b;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e8d5b5;
}

.section-icon {
    font-size: 20px;
}

.table-wrapper {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid #e8d5b5;
}

.theory-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    font-size: 14px;
}

.theory-table thead {
    background: linear-gradient(135deg, #8b5a2b, #a67c52);
    color: #fff8e7;
}

.theory-table thead th {
    padding: 12px 14px;
    font-weight: 700;
    text-align: left;
    font-size: 14px;
}

.theory-table tbody td {
    padding: 12px 14px;
    border-bottom: 1px solid #f0e6d3;
    color: #5d4e37;
    line-height: 1.7;
    vertical-align: top;
}

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

.theory-table tbody tr:hover {
    background: rgba(139,90,43,0.03);
}

.theory-name {
    color: #8b5a2b;
    font-weight: 700;
    white-space: nowrap;
}

.accuracy-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.accuracy-item {
    background: #fff;
    border: 1px solid #e8d5b5;
    border-radius: 12px;
    padding: 20px;
}

.accuracy-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 8px;
}

.accuracy-badge {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
}

.badge-kexue { background: #3498db; color: #fff; }
.badge-minsu { background: #e67e22; color: #fff; }

.accuracy-subtitle {
    font-size: 13px;
    color: #a08040;
    font-weight: 600;
}

.accuracy-item ul {
    margin: 0;
    padding-left: 20px;
    color: #5d4e37;
    font-size: 14px;
    line-height: 1.9;
}

.accuracy-item li {
    margin-bottom: 8px;
}

.logic-steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.logic-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #fff;
    border: 1px solid #e8d5b5;
    border-radius: 12px;
    padding: 16px;
}

.step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #8b5a2b;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.step-content strong {
    display: block;
    color: #8b5a2b;
    font-size: 15px;
    margin-bottom: 4px;
}

.step-content span {
    font-size: 13px;
    color: #5d4e37;
    line-height: 1.6;
}

.notes-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.note-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #fff;
    border: 1px solid #e8d5b5;
    border-radius: 12px;
    padding: 16px;
}

.note-icon {
    font-size: 22px;
    flex-shrink: 0;
}

.note-text {
    font-size: 14px;
    color: #5d4e37;
    line-height: 1.7;
}

.note-text strong {
    color: #8b5a2b;
}

.suggestion-content {
    background: #faf5eb;
    border: 1px solid #e8d5b5;
    border-radius: 12px;
    padding: 20px;
    font-size: 14px;
    color: #5d4e37;
    line-height: 1.9;
}

.suggestion-content strong {
    color: #8b5a2b;
}

/* ========== 响应式适配 ========== */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    .page-header h1 {
        font-size: 22px;
    }
    .section-box {
        padding: 18px;
    }
    .section-title {
        font-size: 16px;
    }

    .compare-table {
        min-width: 650px;
    }
    .compare-table thead th {
        padding: 12px 10px;
        font-size: 13px;
    }
    .compare-table tbody td {
        padding: 12px 10px;
        font-size: 13px;
    }

    .score-box {
        padding: 28px 20px;
    }
    .plate-display {
        font-size: 28px;
        letter-spacing: 6px;
    }
    .score-number {
        font-size: 40px;
    }

    .digit-grid {
        gap: 10px;
    }
    .digit-card {
        padding: 14px 8px;
    }
    .digit-num {
        font-size: 24px;
    }

    .wuxing-stat-item {
        padding: 8px 0;
        gap: 12px;
    }
    .wuxing-label {
        width: 35px;
        font-size: 14px;
    }
    .wuxing-bar {
        height: 18px;
    }
    .wuxing-count {
        width: 40px;
        font-size: 13px;
    }

    .match-row {
        padding: 12px 16px;
    }
    .match-label {
        font-size: 14px;
    }
    .match-value {
        font-size: 15px;
        padding: 5px 12px;
    }
    .match-score {
        font-size: 18px;
        padding: 5px 12px;
    }

    .pair-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .lucky-plate-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    .lucky-plate-card {
        padding: 18px 12px;
    }
    .lucky-plate-number {
        font-size: 20px;
    }
    .lucky-plate-score {
        font-size: 24px;
    }

    .accuracy-grid {
        grid-template-columns: 1fr;
    }
    .logic-steps {
        grid-template-columns: 1fr;
    }
    .notes-cards {
        grid-template-columns: 1fr;
    }

    .disclaimer-box {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .compare-table {
        min-width: 550px;
    }
    .compare-table thead th {
        padding: 10px 8px;
        font-size: 12px;
    }
    .compare-table tbody td {
        padding: 10px 8px;
        font-size: 12px;
    }

    .plate-display {
        font-size: 22px;
        letter-spacing: 3px;
    }
    .score-number {
        font-size: 34px;
    }
    .score-level {
        font-size: 16px;
        padding: 6px 20px;
    }

    .digit-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 6px;
    }
    .digit-card {
        padding: 10px 4px;
        border-radius: 8px;
        border-width: 1px;
    }
    .digit-num {
        font-size: 20px;
    }
    .digit-wuxing {
        font-size: 12px;
    }
    .digit-score {
        font-size: 11px;
    }

    .wuxing-stat-item {
        gap: 8px;
    }
    .wuxing-label {
        width: 30px;
        font-size: 12px;
    }
    .wuxing-bar {
        height: 16px;
    }
    .wuxing-count {
        width: 35px;
        font-size: 12px;
    }

    .match-info {
        padding: 0;
    }
    .match-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding: 10px 14px;
    }
    .match-value,
    .match-score {
        font-size: 15px;
        padding: 4px 12px;
    }

    .pair-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .pair-card {
        padding: 10px 5px;
    }
    .pair-num {
        font-size: 17px;
    }

    .lucky-plate-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .lucky-plate-card {
        padding: 16px 12px;
    }
    .lucky-plate-card::before {
        font-size: 16px;
        top: 8px;
        right: 10px;
    }
    .lucky-plate-number {
        font-size: 20px;
        letter-spacing: 2px;
    }
    .lucky-plate-score {
        font-size: 24px;
    }

    .back-btn {
        padding: 12px 30px;
        font-size: 15px;
    }

    .disclaimer-box {
        padding: 15px;
    }
    .disclaimer-alert {
        padding: 14px;
    }
    .theory-table thead th,
    .theory-table tbody td {
        padding: 8px 10px;
        font-size: 12px;
    }
    .logic-step {
        padding: 14px;
    }
    .note-card {
        padding: 14px;
    }
}

/* ============================================
   查询表单页面样式（追加）
   ============================================ */

/* ========== 表单容器 ========== */
.form-box {
    background: #fff;
    border: 1px solid #e8d5b5;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 2px 12px rgba(139,90,43,0.08);
}

/* ========== 表单区块 ========== */
.form-section {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px dashed #e8d5b5;
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.form-section h3 {
    font-size: 18px;
    font-weight: 700;
    color: #8b5a2b;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-section h3 .icon {
    font-size: 22px;
}

/* ========== 表单行 ========== */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.form-row:last-child {
    margin-bottom: 0;
}

/* ========== 表单组 ========== */
.form-group {
    flex: 1;
    min-width: 200px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #8b5a2b;
    margin-bottom: 8px;
}

.form-group input[type="text"],
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #d4b896;
    border-radius: 10px;
    font-size: 15px;
    color: #5d4e37;
    background: #fff;
    transition: all 0.3s;
    box-sizing: border-box;
}

.form-group input[type="text"]:focus,
.form-group select:focus {
    outline: none;
    border-color: #8b5a2b;
    box-shadow: 0 0 0 3px rgba(139,90,43,0.1);
}

.form-group input[type="text"]::placeholder {
    color: #c0b090;
}

/* ========== 车牌输入区域 ========== */
.plate-section {
    background: linear-gradient(135deg, #fffef5, #faf8f0);
    border: 2px solid #e8d5b5;
    border-radius: 14px;
    padding: 25px;
}

/* 城市代号选择 */
.plate-prefix-box {
    margin-bottom: 20px;
}

.prefix-label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #8b5a2b;
    margin-bottom: 10px;
}

.prefix-select-wrapper {
    position: relative;
}

.prefix-select {
    width: 100%;
    max-width: 400px;
    padding: 12px 40px 12px 15px;
    border: 1px solid #d4b896;
    border-radius: 10px;
    font-size: 15px;
    color: #5d4e37;
    background: #fff;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238b5a2b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
}

.prefix-select:focus {
    outline: none;
    border-color: #8b5a2b;
    box-shadow: 0 0 0 3px rgba(139,90,43,0.1);
}

/* 序号输入 */
.plate-suffix-box {
    margin-top: 20px;
}

.suffix-label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #8b5a2b;
    margin-bottom: 12px;
}

.plate-input-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.prefix-display {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    padding: 12px 15px;
    background: linear-gradient(135deg, #8b5a2b, #a67c52);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    border-radius: 10px;
    letter-spacing: 2px;
}

.plate-suffix-input {
    flex: 1;
    min-width: 200px;
    padding: 12px 15px;
    border: 1px solid #d4b896;
    border-radius: 10px;
    font-size: 16px;
    color: #5d4e37;
    background: #fff;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.plate-suffix-input:focus {
    outline: none;
    border-color: #8b5a2b;
    box-shadow: 0 0 0 3px rgba(139,90,43,0.1);
}

.plate-suffix-input::placeholder {
    color: #c0b090;
    font-size: 14px;
    letter-spacing: 0;
    text-transform: none;
}

/* 添加/删除按钮 */
.btn-add {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: #fff;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.btn-add:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(39,174,96,0.3);
}

.btn-remove {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: #fff;
    border: none;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-remove:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(231,76,60,0.3);
}

/* ========== 提交按钮 ========== */
.submit-btn {
    display: block;
    width: 100%;
    max-width: 400px;
    margin: 30px auto 0;
    padding: 16px 40px;
    background: linear-gradient(135deg, #8b5a2b, #a67c52);
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(139,90,43,0.25);
    text-align: center;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(139,90,43,0.35);
}

.submit-btn:active {
    transform: translateY(0);
}

/* ========== 表单响应式 ========== */
@media (max-width: 768px) {
    .form-box {
        padding: 20px;
    }
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
    .form-group {
        min-width: 100%;
    }
    .plate-input-row {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .prefix-display {
        width: fit-content;
    }
    .plate-suffix-input {
        min-width: 100%;
    }
    .submit-btn {
        font-size: 16px;
        padding: 14px 30px;
    }
}

@media (max-width: 480px) {
    .form-box {
        padding: 15px;
    }
    .form-section {
        padding-bottom: 20px;
        margin-bottom: 20px;
    }
    .form-section h3 {
        font-size: 16px;
    }
    .form-group input[type="text"],
    .form-group select,
    .prefix-select,
    .plate-suffix-input {
        padding: 10px 12px;
        font-size: 14px;
    }
    .submit-btn {
        font-size: 15px;
        padding: 12px 25px;
    }
}