.env-tool-wrapper { --p-bg: #ffffff; --p-border: #e2e8f0; --p-primary: #8b5cf6; --p-text: #0f172a; width: 100%; max-width: 1200px; margin: 0 auto; background: var(--p-bg); border-radius: 24px; padding: 32px; border: 1px solid var(--p-border); box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05); transition: 0.3s; }
.env-header-main { font-size: 1.6rem; font-weight: 700; color: var(--p-text); margin-bottom: 12px; display: flex; align-items: center; justify-content: center; gap: 12px; }
.env-badge { background: #ede9fe; color: #6d28d9; padding: 4px 12px; border-radius: 30px; font-size: 0.85rem; font-weight: 600; border: 1px solid #ddd6fe; }
.env-subtitle { color: #64748b; font-size: 1rem; padding-bottom: 20px; border-bottom: 1px solid var(--p-border); margin-bottom: 30px; text-align: center; max-width: 900px; margin-left: auto; margin-right: auto; line-height: 1.6; }

.env-grid-layout { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; align-items: start; }
@media(max-width: 950px) { .env-grid-layout { grid-template-columns: 1fr; } }

.env-card { background: #f8fafc; border: 1px solid var(--p-border); border-radius: 16px; padding: 24px; transition: 0.3s; }
.env-card:hover { border-color: #cbd5e1; box-shadow: 0 8px 24px rgba(0,0,0,0.03); }

.env-card-title { font-weight: 800; color: var(--p-text); font-size: 1.15rem; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid #e2e8f0; display: flex; align-items: center; gap: 8px; }

.env-data-list { display: flex; flex-direction: column; gap: 16px; }
.env-data-item { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: #ffffff; border: 1px solid #e2e8f0; border-radius: 12px; }

.env-highlight-item { background: #f0fdf4; border-color: #bbf7d0; box-shadow: 0 2px 8px rgba(16, 185, 129, 0.1); }
.env-live-val { color: #059669 !important; font-size: 1.2rem !important; font-weight: 800 !important; }

.env-label { font-size: 0.95rem; font-weight: 600; color: #475569; line-height: 1.4; }
.env-value { font-size: 1.05rem; font-weight: 700; color: var(--p-text); font-family: ui-monospace, SFMono-Regular, monospace; text-align: right; }

.env-value-code { width: 100%; background: #0f172a; color: #e2e8f0; font-family: monospace; font-size: 0.9rem; padding: 12px; border-radius: 8px; line-height: 1.5; word-break: break-all; }

/* HTTP Headers Box */
.env-headers-box { background: #0f172a; border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 10px; max-height: 350px; overflow-y: auto; box-shadow: inset 0 2px 10px rgba(0,0,0,0.5); border: 1px solid #1e293b; }
.env-header-row { display: flex; flex-direction: column; gap: 4px; padding-bottom: 10px; border-bottom: 1px dashed rgba(255,255,255,0.1); }
.env-header-row:last-child { border-bottom: none; padding-bottom: 0; }
.env-h-key { color: #38bdf8; font-weight: 700; font-family: monospace; font-size: 0.9rem; }
.env-h-val { color: #f8fafc; font-family: monospace; font-size: 0.9rem; word-break: break-all; }

/* 黑夜模式强力覆盖 */
[data-theme="dark"] .env-tool-wrapper { background: #1e293b !important; border-color: #334155 !important; }
[data-theme="dark"] .env-card { background: #0f172a; border-color: #475569; }
[data-theme="dark"] .env-card-title { border-bottom-color: #475569; color: #f8fafc; }
[data-theme="dark"] .env-data-item { background: #1e293b; border-color: #334155; }
[data-theme="dark"] .env-highlight-item { background: rgba(16, 185, 129, 0.1); border-color: #065f46; }
[data-theme="dark"] .env-live-val { color: #34d399 !important; }
[data-theme="dark"] .env-label { color: #cbd5e1; }
[data-theme="dark"] .env-value { color: #f8fafc; }
[data-theme="dark"] .env-value-code { background: #020617; border: 1px solid #000; color: #cbd5e1; }
[data-theme="dark"] .env-headers-box { background: #020617; border-color: #000; }