/* 整体容器 */
.tool-container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

/* 查询区域 */
.query-box {
    padding: 25px 30px;
    /*border-radius: 12px;*/
    /*box-shadow: 0 2px 10px rgba(0,0,0,0.08);*/
    margin-bottom: 40px;
    text-align: center;
}

.query-box h2 {
    font-size: 22px;
    margin-bottom: 20px;
    color: #333;
}

.query-input {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.query-input input {
    width: 200px;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    outline: none;
}

.query-input input:focus {
    border-color: #409eff;
}

.query-input button {
    padding: 10px 20px;
    background: #409eff;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.2s;
}

.query-input button:hover {
    background: #337ecc;
}

/* 结果展示 */
.result-box {
    margin-top: 20px;
    font-size: 18px;
    min-height: 30px;
}

.result-success {
    color: #138808;
    font-weight: bold;
}

.result-error {
    color: #d9534f;
}

/* 朝代表样式 - 表格版 */
.dynasty-table {
    width: 100%;
    overflow-x: auto;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.dynasty-table table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

/* 表头样式 */
.dynasty-table th {
    background: #409eff;
    color: #fff;
    padding: 12px 15px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    position: sticky;
    top: 0;
}

/* 表格行样式 */
.dynasty-table td {
    padding: 12px 15px;
    text-align: center;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

/* 奇偶行区分 */
.dynasty-table tr:nth-child(even) {
    background: #f8f9fa;
}

/* 行hover效果 */
.dynasty-table tr:hover {
    background: #e8f4fe;
    cursor: pointer;
}

/* 合并单元格的样式（比如五代十国） */
td[rowspan] {
    vertical-align: middle;
    font-weight: bold;
    color: #333;
}