/**
 * 统一设计系统 — 纯 CSS(不依赖 Tailwind 编译)
 * --------------------------------------------------------------
 * 适用于全站 6 个页面的全局基础样式。
 */

/* ============== 基础排版 ============== */
html, body {
    font-family: 'PingFang SC', 'Noto Sans SC', 'Microsoft YaHei', 'SF Pro SC', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: #F5F8FF;
    color: #0F172A;
    min-height: 100vh;
    overflow-x: hidden;
}

/* 给整体加一层柔和的渐变光斑背景,模仿 suiyiba 的冰蓝感 */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(at 5% 0%, rgba(43, 124, 254, 0.10) 0, transparent 45%),
        radial-gradient(at 95% 8%, rgba(14, 165, 233, 0.08) 0, transparent 38%),
        radial-gradient(at 80% 60%, rgba(168, 85, 247, 0.04) 0, transparent 35%),
        radial-gradient(at 20% 90%, rgba(20, 184, 166, 0.05) 0, transparent 40%),
        radial-gradient(at 50% 50%, rgba(245, 248, 255, 1) 0, transparent 100%);
}

/* ============== Material Symbols 默认字重 ============== */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
}

/* ============== 滚动条 ============== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: rgba(43, 124, 254, 0.18);
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(43, 124, 254, 0.32);
}

/* ============== 选中态 ============== */
::selection {
    background: rgba(43, 124, 254, 0.18);
    color: #0F172A;
}

/* ============== 链接默认无下划线 ============== */
a { color: inherit; text-decoration: none; }

/* ============== 蒙板 ============== */
.carousel-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.18) 60%, rgba(0,0,0,0.05) 100%);
}
.banner-overlay {
    background: linear-gradient(to bottom, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.65) 100%);
}

/* ============== 数字等宽 ============== */
.tabular-nums { font-variant-numeric: tabular-nums; }

/* ============== 表单元素统一样式 ============== */
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(43, 124, 254, 0.16);
    border-color: #2B7CFE;
}

/* 标准表单字段(.field-input):白底 + 细边 + 大圆角 + 蓝色 hover/focus */
.field-input,
input.field-input,
select.field-input,
textarea.field-input {
    width: 100%;
    height: 40px;
    padding: 0 14px;
    background-color: #FFFFFF;
    border: 1px solid #E5E9F2;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
    color: #0F172A;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
    appearance: none;
    -webkit-appearance: none;
}
textarea.field-input {
    height: auto;
    min-height: 120px;
    padding: 12px 14px;
    line-height: 1.7;
    resize: vertical;
}
.field-input::placeholder {
    color: #94A3B8;
}
.field-input:hover {
    border-color: #B9D3FE;
}
.field-input:focus,
.field-input:focus-visible {
    outline: none;
    border-color: #2B7CFE;
    box-shadow: 0 0 0 3px rgba(43, 124, 254, 0.16);
}
.field-input:disabled {
    background-color: #F8FAFE;
    color: #94A3B8;
    cursor: not-allowed;
}

/* select 自定义箭头 */
select.field-input {
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px 16px;
    cursor: pointer;
}
select.field-input:hover {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%232B7CFE' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}

/* 字段标签 */
.field-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #0F172A;
    margin-bottom: 8px;
    line-height: 1.4;
}
.field-label-meta {
    margin-left: 6px;
    font-size: 12px;
    font-weight: 400;
    color: #94A3B8;
}
.field-label-required::after {
    content: ' *';
    color: #EF4444;
    margin-left: 2px;
}
.field-helper {
    margin-top: 6px;
    font-size: 12px;
    color: #94A3B8;
    line-height: 1.5;
}

/* ============== 渐变文字工具 ============== */
.brand-text-gradient {
    background: linear-gradient(135deg, #2B7CFE 0%, #0EA5E9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* ============== Hero 渐变面板(纯 CSS 版,不依赖 Tailwind) ============== */
.hero-panel-css {
    border-radius: 22px;
    border: 1px solid rgba(229, 233, 242, 0.6);
    box-shadow: 0 2px 12px rgba(15, 78, 230, 0.05);
    background: linear-gradient(135deg, #E8F1FE 0%, #F0F9FF 50%, #E1F5FE 100%);
    position: relative;
    overflow: hidden;
}
.hero-panel-css::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(at 12% 0%, rgba(43,124,254,0.16) 0px, transparent 55%),
        radial-gradient(at 90% 100%, rgba(14,165,233,0.10) 0px, transparent 50%);
}

/* ============== 柔和渐变背景工具类 ============== */
/* 蓝青渐变 - hero 卡片用 */
.gradient-blue-cyan {
    background: linear-gradient(135deg, #B8D8FE 0%, #BEE5F2 50%, #C7F0E5 100%);
}
/* 青绿渐变 - 替换刺眼的蓝 */
.gradient-cyan-mint {
    background: linear-gradient(135deg, #BAE6FD 0%, #A7F0D8 100%);
}
/* 蓝紫渐变 - 中性活动 */
.gradient-blue-violet {
    background: linear-gradient(135deg, #BFDBFE 0%, #DDD6FE 100%);
}
/* 暖蓝渐变 - 温和的蓝 */
.gradient-soft-blue {
    background: linear-gradient(135deg, #DBEAFE 0%, #E0F2FE 50%, #BFDBFE 100%);
}
/* 落日渐变 - 警示/限时 */
.gradient-sunset {
    background: linear-gradient(135deg, #FED7AA 0%, #FECACA 100%);
}
/* 极淡的卡片背景渐变 */
.gradient-tint-blue {
    background: linear-gradient(135deg, #FFFFFF 0%, #F0F7FF 100%);
}
.gradient-tint-cyan {
    background: linear-gradient(135deg, #FFFFFF 0%, #F0FDFA 100%);
}
.gradient-tint-mint {
    background: linear-gradient(135deg, #FFFFFF 0%, #ECFDF5 100%);
}
.gradient-tint-amber {
    background: linear-gradient(135deg, #FFFFFF 0%, #FFFBEB 100%);
}
.gradient-tint-violet {
    background: linear-gradient(135deg, #FFFFFF 0%, #F5F3FF 100%);
}

/* btn-gradient-primary:同 btn-primary,三段水感渐变 */
.btn-gradient-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #fff;
    font-weight: 500;
    border-radius: 10px;
    padding: 8px 18px;
    background: linear-gradient(135deg, #3D7DFE 0%, #00BCE5 60%, #5DD5E5 100%);
    box-shadow:
        0 1px 2px rgba(15, 78, 230, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
    transition: all 0.2s ease;
    border: 0;
    cursor: pointer;
    line-height: 1.4;
    position: relative;
    overflow: hidden;
}
.btn-gradient-primary:hover {
    box-shadow:
        0 4px 14px rgba(15, 78, 230, 0.20),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
    background: linear-gradient(135deg, #2B7CFE 0%, #0EA5E9 60%, #2DD4DC 100%);
}
.btn-gradient-primary:active {
    box-shadow:
        0 1px 2px rgba(15, 78, 230, 0.10),
        inset 0 1px 2px rgba(15, 78, 230, 0.12);
}

/* 装饰性光斑 */
.glow-blob {
    position: absolute;
    border-radius: 9999px;
    pointer-events: none;
    filter: blur(40px);
    opacity: 0.5;
}
.glow-blob-blue {
    background: radial-gradient(circle, rgba(43, 124, 254, 0.5), transparent 70%);
}
.glow-blob-cyan {
    background: radial-gradient(circle, rgba(14, 165, 233, 0.5), transparent 70%);
}
.glow-blob-mint {
    background: radial-gradient(circle, rgba(20, 184, 166, 0.4), transparent 70%);
}

/* ============== 关键工具类(纯 CSS 版,不依赖 Tailwind 编译时机) ============== */
.pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 400;
    background-color: #E8F1FE;
    color: #2B7CFE;
    line-height: 1.4;
}
.pill-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 9999px;
    background-color: #2B7CFE;
    flex-shrink: 0;
}
.pill-badge-cyan {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 400;
    background-color: #BAE6FD;
    color: #0EA5E9;
}
.pill-badge-cyan::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 9999px;
    background-color: #0EA5E9;
    flex-shrink: 0;
}
.pill-badge-mint {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 400;
    background-color: #DCFCE7;
    color: #047857;
}
.pill-badge-mint::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 9999px;
    background-color: #10B981;
    flex-shrink: 0;
}
.pill-badge-amber {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 400;
    background-color: #FEF3C7;
    color: #B45309;
}
.pill-badge-amber::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 9999px;
    background-color: #F59E0B;
    flex-shrink: 0;
}

.tab-pill {
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 400;
    color: #475569;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 0;
    background: transparent;
}
.tab-pill:hover {
    color: #2B7CFE;
}
/* 激活态:用蓝→青多色渐变 + 柔和光晕,告别纯蓝 */
.tab-pill-active {
    color: #fff !important;
    font-weight: 500;
    background: linear-gradient(135deg, #2B7CFE 0%, #0EA5E9 60%, #14B8A6 130%) !important;
    box-shadow: 0 2px 10px rgba(15, 78, 230, 0.18), 0 1px 2px rgba(14, 165, 233, 0.12);
}
/* 软糖激活态:浅色调底 + 深色文字,适合 nav/sidebar 选中 */
.tab-pill-soft-active {
    color: #1E5FE5 !important;
    font-weight: 500;
    background: linear-gradient(135deg, #DBEAFE 0%, #DCFCE7 100%) !important;
}

/* 主按钮:三段渐变 + 顶部高光,模仿 suiyiba 的水感按钮 */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #fff;
    font-weight: 500;
    border-radius: 10px;
    padding: 8px 18px;
    background: linear-gradient(135deg, #3D7DFE 0%, #00BCE5 60%, #5DD5E5 100%);
    box-shadow:
        0 1px 2px rgba(15, 78, 230, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
    transition: all 0.2s ease;
    border: 0;
    cursor: pointer;
    line-height: 1.4;
    position: relative;
    overflow: hidden;
}
.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #2B7CFE 0%, #0EA5E9 60%, #2DD4DC 100%);
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 0;
}
.btn-primary > * {
    position: relative;
    z-index: 1;
}
.btn-primary:hover {
    box-shadow:
        0 4px 14px rgba(15, 78, 230, 0.20),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.btn-primary:hover::before {
    opacity: 1;
}
.btn-primary:active {
    box-shadow:
        0 1px 2px rgba(15, 78, 230, 0.10),
        inset 0 1px 2px rgba(15, 78, 230, 0.12);
}
.btn-primary:disabled {
    background: linear-gradient(135deg, #C7DFFE 0%, #CFF1F9 100%);
    cursor: not-allowed;
    box-shadow: none;
}
.btn-primary:disabled::before {
    display: none;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #fff;
    border: 1px solid #E5E9F2;
    color: #0F172A;
    font-weight: 500;
    border-radius: 10px;
    padding: 8px 18px;
    transition: border-color 0.18s ease, color 0.18s ease;
    cursor: pointer;
    line-height: 1.4;
}
.btn-secondary:hover {
    border-color: #2B7CFE;
    color: #2B7CFE;
}

.chip-soft {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border-radius: 9999px;
    background-color: #E8F1FE;
    padding: 2px 10px;
    font-size: 11px;
    font-weight: 400;
    color: #2B7CFE;
}

.glass-header {
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    border-bottom: 1px solid rgba(229, 233, 242, 0.6);
    background-color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.content-card {
    background-color: #fff;
    border: 1px solid rgba(229, 233, 242, 0.6);
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(15, 78, 230, 0.05);
    transition: all 0.3s ease;
}
.content-card:hover {
    box-shadow: 0 8px 28px rgba(15, 78, 230, 0.1);
}

.nav-link {
    position: relative;
    font-size: 15px;
    letter-spacing: 0.02em;
    transition: color 0.2s ease;
    height: 64px;
    display: flex;
    align-items: center;
    padding: 0 4px;
}
.nav-link-active {
    color: #2B7CFE;
    font-weight: 500;
}
.desktop-nav .nav-link-active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    border-radius: 9999px;
    background-color: #2B7CFE;
}
.nav-link-inactive {
    color: #64748B;
    font-weight: 400;
}
.nav-link-inactive:hover {
    color: #2B7CFE;
}

.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
