@charset "utf-8";
/* ================================================================
   DBN Modern Design System v3.0 (2026-06-19)
   统一现代化视觉语言，覆盖全站页面
   ================================================================ */

/* ================================================================
   CSS Variables — Design Tokens
   ================================================================ */
:root {
    /* 主色调 */
    --primary: #2563eb;          --primary-hover: #1d4ed8;    --primary-light: #dbeafe;
    /* 强调色 */
    --accent: #f97316;           --accent-hover: #ea580c;     --accent-light: #fff7ed;
    /* 成功/警告/错误 */
    --success: #16a34a;          --warning: #f59e0b;          --danger: #dc2626;
    /* 中性色 */
    --gray-50: #f9fafb;  --gray-100: #f3f4f6;  --gray-200: #e5e7eb;
    --gray-300: #d1d5db;  --gray-400: #9ca3af;  --gray-500: #6b7280;
    --gray-600: #4b5563;  --gray-700: #374151;  --gray-800: #1f2937;  --gray-900: #111827;
    /* 背景/文字 */
    --bg: #f8fafc;               --surface: #ffffff;          --text: #1e293b;
    --text-secondary: #64748b;   --border: #e2e8f0;
    /* 圆角 */
    --radius-sm: 6px;  --radius: 10px;  --radius-lg: 16px;  --radius-xl: 24px;
    /* 阴影 */
    --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
    --shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
    --shadow-md: 0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
    --shadow-lg: 0 10px 15px rgba(0,0,0,.1), 0 4px 6px rgba(0,0,0,.05);
    /* 字体 */
    --font-sans: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    --font-mono: "SF Mono", "Fira Code", "Consolas", monospace;
    /* 过渡 */
    --transition: 0.2s cubic-bezier(.4,0,.2,1);
    /* 布局 */
    --max-width: 1200px;
    --header-h: 64px;
}

/* ================================================================
   Reset & Base
   ================================================================ */
.container *, .card *, .btn, .form-input, .hero *, .modern-header *, .section *, [class^="grid-"] * { box-sizing: border-box; }
*, *::before, *::after { /* box-sizing reset removed to avoid breaking existing carousels */ }
body {
    font-family: var(--font-sans);
    font-size: 15px; line-height: 1.6;
    color: var(--text);
    margin: 0; -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-hover); }
img { max-width: 100%; height: auto; }

/* ================================================================
   Modern Header
   ================================================================ */
.modern-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    position: sticky; top: 0; z-index: 100;
}
.modern-header .header-inner {
    max-width: var(--max-width); margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 24px; height: var(--header-h);
}
.modern-header .logo { font-size: 20px; font-weight: 700; color: var(--primary); }
.modern-header .logo:hover { color: var(--primary-hover); }
.modern-header nav { display: flex; gap: 24px; align-items: center; }
.modern-header nav a {
    font-size: 14px; color: var(--gray-600); font-weight: 500;
    transition: color var(--transition); padding: 6px 0;
    border-bottom: 2px solid transparent;
}
.modern-header nav a:hover, .modern-header nav a.active {
    color: var(--primary); border-bottom-color: var(--primary);
}

/* ================================================================
   Buttons
   ================================================================ */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 24px; border-radius: var(--radius);
    font-size: 14px; font-weight: 600; cursor: pointer;
    border: none; transition: all var(--transition);
    text-decoration: none; line-height: 1.5;
}
.btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-ghost { background: transparent; color: var(--gray-600); }
.btn-ghost:hover { background: var(--gray-100); }
.btn-sm { padding: 6px 14px; font-size: 13px; border-radius: var(--radius-sm); }
.btn-lg { padding: 14px 32px; font-size: 16px; }

/* ================================================================
   Cards
   ================================================================ */
.card {
    background: var(--surface); border-radius: var(--radius-lg);
    box-shadow: var(--shadow); border: 1px solid var(--border);
    transition: box-shadow var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); }
.card-body { padding: 24px; }
.card-header {
    padding: 16px 24px; border-bottom: 1px solid var(--border);
    font-weight: 600; font-size: 16px; color: var(--gray-800);
}
.card-footer {
    padding: 12px 24px; border-top: 1px solid var(--border);
    background: var(--gray-50); border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* ================================================================
   Form Elements
   ================================================================ */
.form-input {
    width: 100%; padding: 10px 14px; border: 1.5px solid var(--border);
    border-radius: var(--radius); font-size: 14px;
    transition: border-color var(--transition), box-shadow var(--transition);
    background: var(--surface); color: var(--text);
    font-family: var(--font-sans);
}
.form-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.form-input.error { border-color: var(--danger); }
.form-label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 500; color: var(--gray-700); }
.form-hint { font-size: 12px; color: var(--gray-400); margin-top: 4px; }
.form-group { margin-bottom: 16px; }

/* ================================================================
   Utilities
   ================================================================ */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section { padding: 60px 0; }
.section-sm { padding: 32px 0; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.text-center { text-align: center; }
.text-muted { color: var(--gray-500); }
.text-sm { font-size: 13px; }
.text-lg { font-size: 18px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-16 { margin-bottom: 16px; }

/* ================================================================
   Animations
   ================================================================ */
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.animate-fade-in { animation: fadeIn 0.4s ease-out; }
.animate-slide-up { animation: slideUp 0.5s ease-out; }

/* ================================================================
   Responsive
   ================================================================ */
@media (max-width: 768px) {
    .modern-header nav { gap: 12px; }
    .modern-header .header-inner { padding: 0 16px; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .section { padding: 40px 0; }
    .container { padding: 0 16px; }
}

/* ================================================================
   Accessibility
   ================================================================ */
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } }
@media (prefers-color-scheme: dark) { /* dark mode placeholder */ }

/* Footer 确保白色文字可见 */
#block4, #block4 a, #block4 div, #block4 span { color: #ccc; }
#block4 a:hover { color: #fff; }
body { display: flex; flex-direction: column; min-height: 100vh; }
#block4 { margin-top: auto; }
