/* ===== 全局 ===== */
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: 'Roboto', 'Arial', sans-serif;
    background: #e8f5e9;
    color: #1b3d1b;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== 主容器：占满宽度，上下留白 ===== */
.container {
    margin: 30px auto;
    width: 95%;                 /* 几乎占满 */
    max-width: 1400px;          /* 超大屏幕也有上限 */
    background: rgba(255,255,255,0.95);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    flex: 1;                    /* 让 footer 始终在底部 */
}

/* ===== 标题 ===== */
h1 {
    text-align: center;
    color: #2e7d32;
    margin-bottom: 30px;
    font-size: 2rem;
}

/* ===== 输入区域 ===== */
.input-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;           /* 小屏幕自动折行 */
    margin-bottom: 30px;
}
.input-field {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
label {
    font-weight: 500;
    white-space: nowrap;
}
input[type="text"] {
    padding: 12px;
    width: 340px;
    max-width: 100%;
    font-size: 16px;
    border: 2px solid #81c784;
    border-radius: 8px;
    background: #f9fff9;
}
input:focus {
    outline: none;
    border-color: #4caf50;
    box-shadow: 0 0 0 3px rgba(76,175,80,0.2);
}
.cross {
    font-size: 36px;
    font-weight: bold;
    color: #2e7d32;
}
button {
    padding: 12px 28px;
    font-size: 16px;
    background:#4caf50;
    color:#fff;
    border:none;
    border-radius:8px;
    cursor:pointer;
    transition: background 0.3s;
}
button:hover { background:#388e3c; }

/* ===== 结果区域 ===== */
.result-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}
.table-container {
    flex: 1 1 400px;           /* 最小400px，允许两列 */
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
h3 {
    margin: 0 0 15px 0;
    color: #2e7d32;
    font-size: 1.4rem;
    text-align: center;
}
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}
th, td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}
th {
    background:#a5d6a7;
    color:#1b3d1b;
}
td {
    background:#f1f8f1;
}

/* ========= 最终融合版：三部分融为一体 ========= */
.footer-section {
    margin: 50px auto 0;
    width: 95%;
    max-width: 1400px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    overflow: hidden;
    padding-bottom: 30px;
}

/* 统计条 */
.stats-bar {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 30px 20px 25px;
    flex-wrap: wrap;
    background: #f8fff8;
}
.stat {
    text-align: center;
    font-size: 1.1rem;
    color: #2e7d32;
}
.stat span {
    display: block;
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 6px;
}

/* 底部大图 */
.footer-img {
    width: 100%;
    height: auto;
    display: block;
}

/* 纯文字版权：无背景、无下划线、颜色不变 */
.pure-copyright {
    text-align: center;
    padding: 25px 20px 10px;
    font-size: 1rem;
    color: #1b3d1b;
    font-weight: 500;
}
.pure-copyright a {
    color: inherit;
    text-decoration: none;
}
.pure-copyright a:hover {
    color: #2e7d32;
}
/* 强制两个表格容器等宽 + 左右完美对齐 */
.result-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-top: 40px;
}
.table-container {
    flex: 1 1 480px;        /* 最小宽度稍大一点 */
    max-width: 600px;       /* 最大宽度限制，防止过宽 */
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.table-container table {
    table-layout: fixed;    /* 关键！强制列宽一致 */
    width: 100%;
}
.table-container th,
.table-container td {
    width: 50%;             /* 两列平分 */
    word-wrap: break-word;
}
.table-container th {
    text-align: center;
}
.table-container td:first-child {
    font-weight: 500;
    color: #2e7d32;
}