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

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

a {
    color: #1677ff;
    text-decoration: none;
}
a:hover {
    opacity: 0.85;
}

/* ===== 卡片容器 ===== */
.card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    padding: 32px 24px;
    margin: 16px auto;
    max-width: 520px;
}
.card-wide {
    max-width: 1200px;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #1677ff;
}

/* ===== 顶部导航 ===== */
.top-bar {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    padding: 12px 20px;
    margin-bottom: 16px;
    text-align: center;
}
.top-bar a {
    display: inline-block;
    padding: 6px 20px;
    background: #1677ff;
    color: #fff;
    border-radius: 6px;
    font-size: 14px;
}
.top-bar a:hover {
    background: #4096ff;
}

/* ===== 提示文本 ===== */
.text-center { text-align: center; }
.text-red { color: #e53935; }
.text-green { color: #22a03e; }
.text-blue { color: #1677ff; }
.text-bold { font-weight: 600; }
.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: 15px;
    font-weight: 500;
    margin-bottom: 6px;
    color: #555;
}

input[type="text"],
input[type="number"],
input[type="password"],
select {
    width: 100%;
    max-width: 400px;
    padding: 10px 14px;
    border: 1.5px solid #d9d9d9;
    border-radius: 8px;
    font-size: 16px;
    color: #333;
    background: #fff;
    transition: all 0.2s ease;
    outline: none;
}
input[type="text"]:focus,
input[type="number"]:focus,
select:focus {
    border-color: #1677ff;
    box-shadow: 0 0 0 3px rgba(22,119,255,0.12);
}

select {
    appearance: auto;
    cursor: pointer;
}

/* ===== 按钮 ===== */
.btn {
    display: inline-block;
    padding: 10px 28px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    line-height: 1.5;
    transition: all 0.2s ease;
    outline: none;
}
.btn:hover {
    opacity: 0.88;
}
.btn:active {
    transform: scale(0.97);
}

.btn-primary { background: #1677ff; color: #fff; }
.btn-primary:hover { background: #4096ff; }

.btn-success { background: #22a03e; color: #fff; }
.btn-success:hover { background: #2bc350; }

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

.btn-warning { background: #fa8c16; color: #fff; }
.btn-warning:hover { background: #ffa940; }

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

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

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

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

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

table thead th {
    background: #1677ff;
    color: #fff;
    font-weight: 600;
    font-size: 13px;
}

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

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

table input[type="text"] {
    border: none;
    background: transparent;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    width: 100%;
    padding: 4px;
    outline: none;
    box-shadow: none;
    max-width: none;
}
table input[type="text"]:focus {
    box-shadow: none;
}

/* ===== 消息提示 ===== */
.msg-box {
    padding: 12px 18px;
    border-radius: 8px;
    margin: 10px 0;
    font-size: 15px;
    text-align: center;
}
.msg-success {
    background: #f6ffed;
    color: #22a03e;
    border: 1px solid #b7eb8f;
}
.msg-error {
    background: #fff2f0;
    color: #e53935;
    border: 1px solid #ffccc7;
}
.msg-info {
    background: #e6f4ff;
    color: #1677ff;
    border: 1px solid #91caff;
}
.msg-warning {
    background: #fffbe6;
    color: #d46b08;
    border: 1px solid #ffe58f;
}

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

/* ===== 成功页面 ===== */
.success-page {
    text-align: center;
    padding: 48px 20px;
}
.success-page .icon {
    font-size: 56px;
    margin-bottom: 12px;
}
.success-page h2 {
    font-size: 26px;
    color: #22a03e;
    margin-bottom: 8px;
    font-weight: 600;
}
.success-page .detail {
    color: #666;
    font-size: 15px;
    margin-bottom: 20px;
}

/* ===== 表单内联布局辅助 ===== */
.form-inline {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}
.form-inline select,
.form-inline input {
    width: auto;
    min-width: 120px;
}
