/* 由模板 style_temple.html 复制生成，各页共用此文件 */

/* ===== 基础 ===== */
* { box-sizing: border-box; }
body {
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    background: #f5f5f5;
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 10px;
}
.wrap {
    max-width: 100%;
    margin: 0 auto;
    background: #fff;
    padding: 15px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* ===== 面包屑 ===== */
.breadcrumb {
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
}
.breadcrumb a { color: #8B4513; text-decoration: none; }

/* ===== 标题 ===== */
h1, h2, h3 {
    color: #8B4513;
    margin: 10px 0 8px;
    text-align: center;
}
h1 { font-size: 22px; }
h2 { font-size: 18px; }
h3 { font-size: 16px; }
p { margin: 0 0 10px; }
.header p { font-size: 13px; color: #888; text-align: center; }

/* ===== 表格 ===== */
.table-wrapper {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #ccc;
    border-radius: 4px;
}
.table-wrapper table {
    width: 100%;
    table-layout: fixed;        /* 列宽只由表头 <col> 决定，后续各行零参数 */
    border-collapse: collapse;
    font-size: 13px;
}
.table-wrapper th,
.table-wrapper td {
    border: 1px solid #888;
    padding: 6px 8px;
    text-align: left;
    word-wrap: break-word;
}
/* 第一行 = 表头（模板用 th，Excel 导出用 td） */
.table-wrapper tr:first-child > th,
.table-wrapper tr:first-child > td {
    background: #e8e0d0;
    font-weight: bold;
    text-align: center;
}
.table-wrapper td:first-child { text-align: center; }
.table-wrapper td font { font-size: inherit; color: inherit; }
.table-wrapper td a { color: #8B4513; text-decoration: none; }

/* 斑马纹 + 悬停 */
.table-wrapper tr:nth-child(even) td { background: #f9f7f2; }
.table-wrapper tr:hover td { background: #eef5ff; }

/* ===== 回复区 ===== */
.replies-container {
    margin-top: 25px;
    border-top: 2px dashed #ccc;
    padding-top: 15px;
}
.reply-item {
    background: #fafafa;
    border-left: 3px solid #8B4513;
    padding: 10px;
    margin-bottom: 10px;
    font-size: 13px;
}
.reply-meta {
    font-weight: bold;
    color: #8B4513;
    margin-bottom: 5px;
}

/* ===== 底部 ===== */
.footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
    font-size: 12px;
    color: #999;
}
.footer a { color: #8B4513; }

/* ===== 手机端：整页按屏幕宽度自适应，不横滑 ===== */
@media (max-width: 768px) {
    body { padding: 0; }
    .wrap {
        border-radius: 0;
        box-shadow: none;
        padding: 8px;
    }
}
