/* 大鸡腿系列 - PHP版本样式 */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
    background: #f1f5f9; color: #1e293b; line-height: 1.6; min-height: 100vh;
}

/* Hero Banner */
.hero {
    position: relative; margin: 12px 20px 20px; padding: 20px 24px 22px;
    border-radius: 22px;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.28), transparent 28%),
                linear-gradient(135deg, #111827 0%, #1d4ed8 34%, #7c3aed 68%, #f97316 100%);
    color: #fff; overflow: hidden;
}
.hero-badge {
    display: inline-block; padding: 4px 12px; border-radius: 999px;
    background: rgba(255,255,255,0.16); font-size: 12px; font-weight: 800;
    letter-spacing: 1px; margin-bottom: 10px;
}
.hero-title { font-size: 20px; font-weight: 900; margin-bottom: 4px; }
.hero-subtitle { color: rgba(255,255,255,0.88); font-size: 14px; }

/* Messages */
.message { margin: 0 20px 12px; padding: 10px 16px; border-radius: 10px; font-size: 14px; }
.message-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.message-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.message-info { background: #dbeafe; color: #1e40af; border: 1px solid #bfdbfe; }

/* Layout */
.main-layout { display: flex; gap: 20px; padding: 0 20px 20px; max-width: 1400px; margin: 0 auto; }

/* Sidebar */
.sidebar { width: 320px; flex-shrink: 0; }
.sidebar h3 { font-size: 16px; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid #3b82f6; }
.sidebar label { display: block; font-size: 13px; font-weight: 600; color: #475569; margin: 10px 0 4px; }
.sidebar input[type="text"],
.sidebar input[type="password"],
.sidebar input[type="date"],
.sidebar input[type="number"],
.sidebar select {
    width: 100%; padding: 8px 12px; border: 1px solid #cbd5e1; border-radius: 8px;
    font-size: 14px; transition: border 0.2s;
}
.sidebar input:focus { outline: none; border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,0.15); }
.sidebar input[type="range"] { width: 100%; }
.sidebar output { display: inline-block; font-size: 13px; color: #3b82f6; font-weight: 600; }
.sidebar .checkbox-label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.sidebar .checkbox-label input { width: auto; }

.btn { display: inline-block; padding: 10px 20px; border: none; border-radius: 10px;
       font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.btn-primary { background: #3b82f6; color: #fff; }
.btn-primary:hover { background: #2563eb; transform: translateY(-1px); }
.btn-secondary { background: #64748b; color: #fff; }
.btn-secondary:hover { background: #475569; }
.btn-full { width: 100%; margin-top: 12px; }

/* Update Panel */
.update-panel {
    margin-top: 16px; padding: 14px; background: #fff; border-radius: 12px;
    border: 1px solid #e2e8f0;
}
.update-panel h4 { font-size: 14px; color: #3b82f6; margin-bottom: 6px; }
.update-status { font-size: 13px; font-weight: 600; }
.update-hint { font-size: 12px; color: #94a3b8; margin: 4px 0 8px; }

/* Dashboard Links */
.dashboard-links { margin-top: 16px; }
.dashboard-links h4 { font-size: 13px; color: #64748b; margin-bottom: 8px; }
.dash-card {
    display: block; padding: 10px 12px; margin-bottom: 8px; border-radius: 12px;
    color: #fff; text-decoration: none; font-weight: 700; font-size: 13px;
    transition: transform 0.15s, box-shadow 0.15s;
}
.dash-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.12); }
.dash-blue { background: linear-gradient(135deg, #1e40af, #3b82f6); }
.dash-teal { background: linear-gradient(135deg, #0d9488, #14b8a6); }
.dash-purple { background: linear-gradient(135deg, #6d28d9, #8b5cf6); }
.dash-orange { background: linear-gradient(135deg, #c2410c, #f97316); }
.dash-tag { font-size: 10px; opacity: 0.8; letter-spacing: 0.5px; }
.dash-title { display: block; font-size: 15px; margin-top: 2px; }

/* Main Content */
.main-content { flex: 1; min-width: 0; }

.chart-container {
    background: #fff; border-radius: 16px; padding: 20px; margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06); height: 420px; position: relative;
}
.chart-container canvas { width: 100% !important; height: 100% !important; }

.result-grid { display: flex; gap: 16px; }
.result-table-wrap {
    background: #fff; border-radius: 16px; padding: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.result-table { width: 100%; border-collapse: collapse; }
.result-table td { padding: 8px 14px; font-size: 14px; border-bottom: 1px solid #f1f5f9; }
.header-cell { font-weight: 800; color: #3b82f6; background: #eff6ff; }
.label-cell { font-weight: 600; color: #475569; width: 140px; }
.value-cell { color: #1e293b; }

.empty-state {
    background: #fff; border-radius: 16px; padding: 60px 20px; text-align: center;
    color: #94a3b8; font-size: 16px; box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

/* Feedback */
.feedback-card {
    margin: 0 20px 24px; padding: 20px; background: #fff; border-radius: 16px;
    text-align: center; box-shadow: 0 1px 3px rgba(0,0,0,0.06); max-width: 1400px;
    margin-left: auto; margin-right: auto;
}
.feedback-title { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.feedback-qr { color: #3b82f6; font-weight: 600; margin-bottom: 4px; }
.feedback-note { font-size: 13px; color: #94a3b8; }

/* Responsive */
@media (max-width: 900px) {
    .main-layout { flex-direction: column; }
    .sidebar { width: 100%; }
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    align-items: end;
}
.settings-grid label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #475569;
}
.settings-grid input,
.settings-grid select,
.settings-grid textarea {
    width: 100%;
    padding: 9px 11px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 13px;
}
.settings-grid .wide { grid-column: 1 / -1; }
.settings-page .result-table-wrap { overflow-x: auto; scroll-margin-top: 14px; }
.settings-page form > label,
.settings-page .settings-grid label {
    color: #475569;
    font-size: 13px;
    font-weight: 700;
}
.settings-page input:not([type="checkbox"]):not([type="hidden"]),
.settings-page select,
.settings-page textarea {
    width: 100%;
    min-height: 40px;
    padding: 9px 11px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #fff;
    color: #1e293b;
    font: inherit;
    font-size: 13px;
    line-height: 1.4;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.settings-page textarea {
    min-height: 120px;
    resize: vertical;
}
.settings-page input:not([type="checkbox"]):not([type="hidden"]):focus,
.settings-page select:focus,
.settings-page textarea:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}
.settings-page input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #3b82f6;
    flex: 0 0 auto;
}
.settings-page .settings-check,
.settings-page .result-table label {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    min-height: 40px;
}
.settings-page .result-table input:not([type="checkbox"]):not([type="hidden"]),
.settings-page .result-table select {
    min-width: 130px;
}
/* Nav Tabs */
.nav-tabs {
    display: flex; gap: 4px; margin: 0 20px 16px; flex-wrap: wrap;
    max-width: 1400px; margin-left: auto; margin-right: auto;
}
.nav-tab {
    padding: 8px 16px; border-radius: 10px; background: #fff;
    color: #475569; text-decoration: none; font-size: 13px; font-weight: 600;
    border: 1px solid #e2e8f0; transition: all 0.15s;
}
.nav-tab:hover { background: #eff6ff; color: #3b82f6; border-color: #bfdbfe; }
.nav-tab.active { background: #3b82f6; color: #fff; border-color: #3b82f6; }

/* pre output */
.result-table-wrap pre { margin: 0; white-space: pre-wrap; }
.result-table-wrap h4 { margin: 0; font-size: 15px; }

/* header cells in screener */
.result-table th.header-cell { padding: 8px 14px; font-size: 13px; font-weight: 700; color: #3b82f6; background: #eff6ff; text-align: left; }
.result-table td { padding: 6px 14px; font-size: 13px; border-bottom: 1px solid #f1f5f9; }

/* Hint text */
.hint { font-size: 11px; color: #94a3b8; font-weight: 400; margin-left: 4px; }
.sidebar label { display: block; font-size: 13px; font-weight: 600; color: #475569; margin: 10px 0 4px; }
