/* ===== 订单验证门 + 后台管理页 样式 ===== */

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
                 "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    color: #333;
    background: #f5f7fa;
    line-height: 1.6;
}

/* ===== 验证门页面 ===== */

.verify-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, #2c74e2 0%, #1e5fc4 100%);
}

.verify-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .18);
    padding: 36px 28px 32px;
    text-align: center;
}

.verify-card .logo {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: #2c74e2;
    color: #fff;
    font-size: 30px;
    line-height: 60px;
    font-weight: bold;
}

.verify-card h1 {
    font-size: 20px;
    margin: 0 0 6px;
    color: #1a1a1a;
}

.verify-card .subtitle {
    font-size: 13px;
    color: #888;
    margin: 0 0 24px;
}

.verify-card .alert-error {
    background: #fff1f0;
    color: #d4380d;
    border: 1px solid #ffccc7;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 14px;
    text-align: left;
}

.verify-card label {
    display: block;
    text-align: left;
    font-size: 13px;
    color: #555;
    margin: 0 0 6px 2px;
    font-weight: 500;
}

.verify-card .field {
    margin-bottom: 16px;
    text-align: left;
}

.verify-card input[type="text"],
.verify-card input[type="tel"],
.verify-card input[type="password"] {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    background: #fff;
}

.verify-card input:focus {
    border-color: #2c74e2;
    box-shadow: 0 0 0 3px rgba(44, 116, 226, .15);
}

.verify-card .btn {
    width: 100%;
    padding: 13px;
    font-size: 16px;
    color: #fff;
    background: #2c74e2;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background .2s;
    margin-top: 4px;
}

.verify-card .btn:hover { background: #1e5fc4; }
.verify-card .btn:active { background: #1850a3; }

.verify-card .btn-secondary {
    background: #f0f2f5;
    color: #333;
}
.verify-card .btn-secondary:hover { background: #e4e7eb; }

.verify-card .footer-note {
    margin-top: 18px;
    font-size: 12px;
    color: #aaa;
}

/* ===== 后台管理页 ===== */

.admin-header {
    background: #2c74e2;
    color: #fff;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.admin-header h1 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.admin-header .actions a,
.admin-header .actions button {
    color: #fff;
    background: rgba(255, 255, 255, .15);
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    text-decoration: none;
    margin-left: 8px;
    transition: background .2s;
}

.admin-header .actions a:hover,
.admin-header .actions button:hover {
    background: rgba(255, 255, 255, .28);
}

.admin-container {
    max-width: 1100px;
    margin: 24px auto;
    padding: 0 16px;
}

.stats-row {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.stat-card {
    flex: 1;
    min-width: 140px;
    background: #fff;
    border-radius: 10px;
    padding: 18px 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
}

.stat-card .label {
    font-size: 13px;
    color: #888;
    margin-bottom: 6px;
}

.stat-card .value {
    font-size: 26px;
    font-weight: 600;
    color: #2c74e2;
}

.toolbar {
    background: #fff;
    padding: 14px 16px;
    border-radius: 10px 10px 0 0;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    border-bottom: 1px solid #eee;
}

.toolbar input[type="text"],
.toolbar input[type="date"] {
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
}

.toolbar input:focus {
    border-color: #2c74e2;
}

.toolbar .btn-small {
    padding: 8px 14px;
    background: #2c74e2;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
}

.toolbar .btn-small.secondary {
    background: #f0f2f5;
    color: #333;
}

.toolbar .btn-small.danger {
    background: #ff4d4f;
}

.table-wrap {
    background: #fff;
    border-radius: 0 0 10px 10px;
    overflow-x: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
}

table.records {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 720px;
}

table.records th,
table.records td {
    padding: 11px 14px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
    white-space: nowrap;
}

table.records th {
    background: #fafafa;
    color: #555;
    font-weight: 600;
    position: sticky;
    top: 0;
}

table.records tbody tr:nth-child(even) {
    background: #fafbfc;
}

table.records tbody tr:hover {
    background: #eef5ff;
}

table.records td .phone-toggle {
    color: #2c74e2;
    cursor: pointer;
    text-decoration: underline dotted;
    font-size: 12px;
    margin-left: 6px;
}

table.records td .del-link {
    color: #ff4d4f;
    text-decoration: none;
    font-size: 13px;
}

.empty-row td {
    text-align: center;
    padding: 40px;
    color: #999;
}

.login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #f5f7fa;
}

/* 移动端优化 */
@media (max-width: 600px) {
    .verify-card { padding: 28px 20px 24px; }
    .admin-header { padding: 12px 14px; }
    .admin-header h1 { font-size: 16px; }
    .admin-container { padding: 0 10px; margin: 14px auto; }
    .stats-row { gap: 10px; }
    .stat-card { padding: 14px; }
    .stat-card .value { font-size: 22px; }
    .toolbar { padding: 10px; }
    .toolbar input[type="text"],
    .toolbar input[type="date"] { flex: 1; min-width: 120px; }
}
