/* ===== 全局样式 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "微软雅黑", "Helvetica Neue", Arial, sans-serif;
    background: #eef1f5;
    color: #333;
    line-height: 1.6;
    padding: 20px;
    min-height: 100vh;
}

a {
    color: #2196F3;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* ===== 卡片容器 ===== */
.card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 30px;
    margin: 20px auto;
    max-width: 800px;
    text-align: center;
}
.card table,
.card .table-wrap {
    text-align: left;
}
/* 卡片内表单元素居中 */
.card form input[type="text"],
.card form input[type="number"],
.card form select,
.card-title {
    margin-left: auto;
    margin-right: auto;
}

.card-wide {
    max-width: 98%;
}

.card-title {
    font-size: 22px;
    font-weight: bold;
    color: #333;
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #2196F3;
}

/* ===== 顶部导航 ===== */
.top-bar {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 12px 20px;
    margin-bottom: 20px;
    display: block;
    text-align: center;
}
.top-bar a {
    display: inline-block;
    padding: 6px 18px;
    background: #2196F3;
    color: #fff;
    border-radius: 4px;
    font-size: 14px;
    text-decoration: none;
}
.top-bar a:hover {
    background: #1976D2;
}

/* ===== 提示文本 ===== */
.text-center {
    text-align: center;
}
.text-red {
    color: #e53935;
}
.text-green {
    color: #43A047;
}
.text-blue {
    color: #1E88E5;
}
.text-bold {
    font-weight: bold;
}
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }

/* ===== 表单元素 ===== */
label {
    display: block;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 6px;
    color: #555;
}

input[type="text"],
input[type="number"],
input[type="password"],
select {
    width: 100%;
    max-width: 400px;
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 18px;
    color: #333;
    background: #fafafa;
    transition: border-color 0.25s, box-shadow 0.25s;
    outline: none;
}
input[type="text"]:focus,
input[type="number"]:focus,
select:focus {
    border-color: #2196F3;
    box-shadow: 0 0 0 3px rgba(33,150,243,0.15);
    background: #fff;
}

/* 按钮 */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, transform 0.1s;
    outline: none;
    line-height: 1.4;
}
.btn:hover {
    text-decoration: none;
}
.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background: #2196F3;
    color: #fff;
}
.btn-primary:hover {
    background: #1976D2;
}

.btn-success {
    background: #43A047;
    color: #fff;
}
.btn-success:hover {
    background: #2E7D32;
}

.btn-danger {
    background: #e53935;
    color: #fff;
}
.btn-danger:hover {
    background: #C62828;
}

.btn-warning {
    background: #FB8C00;
    color: #fff;
}
.btn-warning:hover {
    background: #EF6C00;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 13px;
}

.btn-block {
    display: block;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

/* select 美化 */
select {
    appearance: auto;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

/* ===== 表格 ===== */
.table-wrap {
    overflow-x: auto;
    margin: 15px 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

table th,
table td {
    padding: 10px 8px;
    text-align: center;
    border: 1px solid #e0e0e0;
}

table thead th {
    background: #2196F3;
    color: #fff;
    font-weight: bold;
    white-space: nowrap;
}

table tbody tr:nth-child(even) {
    background: #f8f9fb;
}

table tbody tr:hover {
    background: #e3f2fd;
}

/* 表格中的输入框 */
table input[type="text"] {
    border: none;
    background: transparent;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    width: 100%;
    padding: 4px;
    outline: none;
}

/* ===== 消息提示 ===== */
.msg-box {
    padding: 15px 20px;
    border-radius: 6px;
    margin: 10px 0;
    font-size: 16px;
    text-align: center;
}
.msg-success {
    background: #E8F5E9;
    color: #2E7D32;
    border: 1px solid #A5D6A7;
}
.msg-error {
    background: #FFEBEE;
    color: #C62828;
    border: 1px solid #EF9A9A;
}
.msg-info {
    background: #E3F2FD;
    color: #1565C0;
    border: 1px solid #90CAF9;
}
.msg-warning {
    background: #FFF3E0;
    color: #E65100;
    border: 1px solid #FFCC80;
}

/* ===== 信息行 ===== */
.info-row {
    padding: 6px 0;
    font-size: 15px;
    border-bottom: 1px dashed #eee;
}
.info-row:last-child {
    border-bottom: none;
}
.info-label {
    font-weight: bold;
    color: #666;
    display: inline-block;
    min-width: 80px;
}

/* ===== 成功页面 ===== */
.success-page {
    text-align: center;
    padding: 40px 20px;
}
.success-page .icon {
    font-size: 64px;
    margin-bottom: 15px;
}
.success-page h2 {
    font-size: 28px;
    color: #2E7D32;
    margin-bottom: 10px;
}
.success-page .detail {
    color: #666;
    font-size: 16px;
    margin-bottom: 20px;
}
