/* Extracted from template/default/html/index.html */
:root {
    --bg: #f8fafc;
    --panel: #ffffff;
    --muted: #64748b;
    --text: #1f2937;
    --brand: #2563eb;
    --brand-2: #38bdf8;
    --accent: #f59e0b;
    --success: #10b981;
    --error: #ef4444;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
    margin: 0;
    font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
    color: var(--text);
    background: linear-gradient(180deg, #f8fafc, #f8fafc 60%, #f8fafc);
}
a { color: inherit; text-decoration: none; }
.header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 24px; position: sticky; top: 0; background: rgba(255,255,255,.9); backdrop-filter: saturate(120%) blur(6px);
    border-bottom: 1px solid #e5e7eb;
}
.brand { font-weight: 700; letter-spacing: .4px; }
.brand strong { color: var(--brand); }
.nav { display: flex; gap: 18px; color: var(--muted); }
.nav a:hover { color: var(--text); }
.hero {
    padding: 160px; text-align: center;
    background-image:
      linear-gradient(180deg, rgba(37, 82, 230, 0.85), rgba(24, 29, 104, 0.85)),
      url('/static/images/banner.jpg');
    background-size: cover; background-position: center; background-repeat: no-repeat;
    
}
.hero h1 { margin: 0; font-size: 36px; letter-spacing: .6px; color: #ffffff; }
.hero p { margin: 12px auto 0; max-width: 840px; color: rgba(255,255,255,.92); }
.container { max-width: 1040px; margin: 0 auto; padding: 24px; }
fieldset { background: var(--panel); border: 1px solid #e5e7eb; border-radius: 16px; padding: 22px; box-shadow: 0 10px 24px rgba(15,23,42,.06); }
legend { color: var(--text); font-weight: 600; }
.row { display: flex; align-items: center; gap: 12px; margin: 12px 0; flex-wrap: wrap; }
label { color: var(--muted); }
input[type="text"], input[type="email"], select { background: #ffffff; border: 1px solid #e5e7eb; padding: 12px 14px; border-radius: 12px; color: var(--text); outline: none; transition: border-color .15s ease, box-shadow .15s ease; }
input[type="text"]:focus, input[type="email"]:focus, select:focus { border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(56,189,248,.2); }
.btns { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
button { appearance: none; border: 0; cursor: pointer; background: linear-gradient(90deg, var(--brand), var(--brand-2)); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 600; letter-spacing: .2px; box-shadow: 0 10px 24px rgba(37,99,235,.25); }
#btnValidate { font-size: 16px; padding: 14px 24px; min-width: 280px; }
.hint { color: var(--muted); margin: 8px 0 24px; }
.ok { margin: 10px 0; padding: 10px 12px; border-radius: 12px; background: rgba(16,185,129,.10); border: 1px solid rgba(16,185,129,.25); color: #0f766e; }
.error { margin: 10px 0; padding: 10px 12px; border-radius: 12px; background: rgba(239,68,68,.08); border: 1px solid rgba(239,68,68,.25); color: #b91c1c; }
pre { background: #ffffff; border: 1px solid #e5e7eb; padding: 12px; border-radius: 12px; overflow: auto; max-height: 360px; }
.features { max-width: 1040px; margin: 0 auto; padding: 24px 24px; }
.container form { margin: 24px 0; }

@media (min-width: 820px) { .feat-grid { grid-template-columns: repeat(1, 1fr); } }
.feat-card { background: var(--panel); border: 1px solid #e5e7eb; border-radius: 16px; padding: 18px; box-shadow: 0 10px 24px rgba(15,23,42,.06); }
.feat-title { font-weight: 600; margin-bottom: 6px; }
.footer { color: var(--muted); text-align: center; padding: 28px 24px; }

/* 状态提示样式 */
.status {
    display: none;
    margin: 12px 0;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(15,23,42,.08);
    background: #e7f6f2; /* 统一使用一种浅绿色背景 */
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
}
.status-text { font-weight: 500; }
.status-icon {
    width: 28px; height: 28px;
    line-height: 28px;
    border-radius: 50%;
    border: 2px solid currentColor;
    margin-right: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-sizing: border-box; /* 防止边框导致尺寸不一致，确保正圆 */
}
.status-icon.loading::before { content: '⏳'; }
.status-icon.ok::before { content: '✓'; }
.status-icon.error::before { content: '×'; }
.status-loading {
    border-color: rgba(56,189,248,.35);
    color: #0ea5e9;
}
.status-ok {
    border-color: rgba(16,185,129,.35);
    color: #0f766e;
}
.status-error {
    border-color: rgba(239,68,68,.35);
    color: #b91c1c;
}