/* ============================================================
   金风易通 — 高级设计增强系统 design-enhance.css
   提供玻璃拟态、渐变文字、网格背景、层次阴影、浮动装饰等
   高级视觉工具类，提升整体设计感
   ============================================================ */

/* ===== 1. 渐变文字 ===== */
.gradient-text {
    background: linear-gradient(135deg, #1677FF 0%, #4096FF 50%, #00B4D8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.gradient-text-dark {
    background: linear-gradient(135deg, #0958D9 0%, #1677FF 50%, #2563EB 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.gradient-text-light {
    background: linear-gradient(135deg, #93C5FD 0%, #BFDBFE 50%, #DBEAFE 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* ===== 2. 玻璃拟态卡片 ===== */
.glass-card {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow:
        0 4px 24px -4px rgba(22, 119, 255, 0.08),
        0 1px 3px rgba(0, 0, 0, 0.04),
        inset 0 1px 1px rgba(255, 255, 255, 0.6);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(22, 119, 255, 0.2);
    box-shadow:
        0 20px 48px -12px rgba(22, 119, 255, 0.15),
        0 4px 12px rgba(0, 0, 0, 0.04),
        inset 0 1px 1px rgba(255, 255, 255, 0.8);
    transform: translateY(-6px);
}

.glass-card-dark {
    background: rgba(30, 58, 95, 0.72);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(96, 165, 250, 0.15);
    box-shadow:
        0 4px 24px -4px rgba(0, 0, 0, 0.2),
        inset 0 1px 1px rgba(96, 165, 250, 0.1);
}

/* ===== 3. 渐变边框卡片 ===== */
.gradient-border-card {
    position: relative;
    background: #fff;
    border-radius: 16px;
    z-index: 0;
}

.gradient-border-card::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1.5px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(22, 119, 255, 0.3), rgba(22, 119, 255, 0.05) 40%, rgba(0, 180, 216, 0.2));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: -1;
    transition: opacity 0.4s;
    opacity: 0.6;
}

.gradient-border-card:hover::before {
    opacity: 1;
    background: linear-gradient(135deg, rgba(22, 119, 255, 0.5), rgba(22, 119, 255, 0.1) 40%, rgba(0, 180, 216, 0.35));
}

/* ===== 4. 网格背景图案 ===== */
.grid-pattern-bg {
    position: relative;
}

.grid-pattern-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(22, 119, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(22, 119, 255, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.grid-pattern-bg-dense::before {
    background-size: 32px 32px;
}

/* 点阵背景 */
.dot-pattern-bg {
    position: relative;
}

.dot-pattern-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(22, 119, 255, 0.08) 1px, transparent 1.5px);
    background-size: 24px 24px;
    -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 65%);
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

/* ===== 5. 浮动光斑装饰 ===== */
.glow-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}

.glow-blob-blue {
    background: rgba(22, 119, 255, 0.15);
}

.glow-blob-cyan {
    background: rgba(0, 180, 216, 0.12);
}

.glow-blob-purple {
    background: rgba(99, 102, 241, 0.10);
}

/* ===== 6. 层次阴影系统 ===== */
.shadow-layered {
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.03),
        0 8px 16px -4px rgba(0, 0, 0, 0.05),
        0 16px 40px -8px rgba(22, 119, 255, 0.08);
}

.shadow-layered-hover {
    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.04),
        0 12px 28px -6px rgba(0, 0, 0, 0.08),
        0 24px 56px -12px rgba(22, 119, 255, 0.15);
}

.shadow-blue-glow {
    box-shadow:
        0 4px 20px rgba(22, 119, 255, 0.15),
        0 0 40px rgba(22, 119, 255, 0.08);
}

.shadow-blue-glow-hover {
    box-shadow:
        0 8px 32px rgba(22, 119, 255, 0.25),
        0 0 60px rgba(22, 119, 255, 0.12);
}

/* ===== 7. 渐变图标容器 ===== */
.icon-gradient-box {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #EFF6FF 0%, rgba(22, 119, 255, 0.12) 100%);
    color: #1677FF;
    font-size: 24px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.icon-gradient-box::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(135deg, transparent 30%, rgba(255, 255, 255, 0.4) 50%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
}

.icon-gradient-box:hover {
    background: linear-gradient(135deg, rgba(22, 119, 255, 0.12) 0%, rgba(22, 119, 255, 0.2) 100%);
    transform: scale(1.08) rotate(-2deg);
    box-shadow: 0 8px 24px -4px rgba(22, 119, 255, 0.2);
}

.icon-gradient-box:hover::after {
    opacity: 1;
}

/* 渐变实心图标容器 */
.icon-gradient-solid {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1677FF 0%, #4096FF 100%);
    color: #fff;
    font-size: 24px;
    box-shadow: 0 8px 20px -4px rgba(22, 119, 255, 0.35);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.icon-gradient-solid:hover {
    transform: scale(1.08) rotate(-2deg);
    box-shadow: 0 12px 28px -4px rgba(22, 119, 255, 0.45);
}

/* ===== 8. Section 渐变标签 ===== */
.section-label-gradient {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    background: linear-gradient(135deg, rgba(22, 119, 255, 0.08), rgba(0, 180, 216, 0.06));
    color: #1677FF;
    border: 1px solid rgba(22, 119, 255, 0.12);
    position: relative;
}

.section-label-gradient::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #1677FF;
    box-shadow: 0 0 8px rgba(22, 119, 255, 0.5);
}

/* ===== 9. 渐变按钮增强 ===== */
.btn-gradient {
    background: linear-gradient(135deg, #1677FF 0%, #4096FF 50%, #1677FF 100%);
    background-size: 200% 100%;
    color: #fff;
    border: none;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 16px rgba(22, 119, 255, 0.25);
}

.btn-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.btn-gradient:hover {
    background-position: 100% 0;
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(22, 119, 255, 0.35);
}

.btn-gradient:hover::before {
    left: 100%;
}

/* ===== 10. 渐变分割线 ===== */
.divider-gradient {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(22, 119, 255, 0.2), transparent);
    border: none;
    margin: 0;
}

/* ===== 11. Mesh 渐变背景 ===== */
.mesh-gradient-bg {
    background:
        radial-gradient(ellipse at 15% 20%, rgba(22, 119, 255, 0.08) 0%, transparent 40%),
        radial-gradient(ellipse at 85% 15%, rgba(0, 180, 216, 0.06) 0%, transparent 35%),
        radial-gradient(ellipse at 50% 80%, rgba(99, 102, 241, 0.05) 0%, transparent 45%),
        linear-gradient(135deg, #FBFCFF 0%, #F0F5FF 50%, #F5F3FF 100%);
}

.mesh-gradient-bg-dark {
    background:
        radial-gradient(ellipse at 15% 20%, rgba(22, 119, 255, 0.12) 0%, transparent 40%),
        radial-gradient(ellipse at 85% 15%, rgba(0, 180, 216, 0.10) 0%, transparent 35%),
        radial-gradient(ellipse at 50% 80%, rgba(99, 102, 241, 0.08) 0%, transparent 45%),
        linear-gradient(135deg, #0F1B2D 0%, #1E3A5F 50%, #163258 100%);
}

/* ===== 12. 卡片顶部渐变线 ===== */
.card-top-line {
    position: relative;
    overflow: hidden;
}

.card-top-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #1677FF, #4096FF, #00B4D8, transparent);
    opacity: 0;
    transition: opacity 0.4s;
}

.card-top-line:hover::after {
    opacity: 1;
}

/* ===== 13. 高级数字展示 ===== */
.stat-number-gradient {
    background: linear-gradient(135deg, #60A5FA 0%, #93C5FD 50%, #BFDBFE 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    text-shadow: 0 0 40px rgba(96, 165, 250, 0.3);
}

/* ===== 14. 悬浮微动效 ===== */
.float-anim {
    animation: float-y 4s ease-in-out infinite;
}

@keyframes float-y {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.float-anim-delay-1 { animation-delay: 0.5s; }
.float-anim-delay-2 { animation-delay: 1s; }
.float-anim-delay-3 { animation-delay: 1.5s; }

/* 脉冲呼吸动效 */
.pulse-anim {
    animation: pulse-soft 3s ease-in-out infinite;
}

@keyframes pulse-soft {
    0%, 100% { box-shadow: 0 0 0 0 rgba(22, 119, 255, 0.1); }
    50% { box-shadow: 0 0 0 12px rgba(22, 119, 255, 0); }
}

/* ===== 15. Section 过渡装饰 ===== */
.section-wave-top {
    position: relative;
}

.section-wave-top::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 60px;
    background: inherit;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 60' preserveAspectRatio='none'><path d='M0,30 C300,60 600,0 900,30 C1050,45 1150,20 1200,30 L1200,0 L0,0 Z' fill='black'/></svg>") no-repeat center top;
    mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 60' preserveAspectRatio='none'><path d='M0,30 C300,60 600,0 900,30 C1050,45 1150,20 1200,30 L1200,0 L0,0 Z' fill='black'/></svg>") no-repeat center top;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
}

/* ===== 16. 暗色 section 增强 ===== */
.dark-section-glow {
    position: relative;
    overflow: hidden;
}

.dark-section-glow::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(14, 165, 233, 0.10) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.dark-section-glow::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(96, 165, 250, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(96, 165, 250, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
    pointer-events: none;
}

/* ===== 17. 渐变进度条/装饰线 ===== */
.progress-bar-gradient {
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(90deg, #1677FF, #4096FF, #00B4D8);
    position: relative;
    overflow: hidden;
}

.progress-bar-gradient::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ===== 18. 连接线装饰 ===== */
.connection-line {
    position: relative;
}

.connection-line::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 100%;
    width: 1px;
    height: 32px;
    background: linear-gradient(180deg, rgba(22, 119, 255, 0.3), transparent);
    transform: translateX(-50%);
}

/* ===== 19. 旋转光环 ===== */
.rotate-ring {
    position: relative;
}

.rotate-ring::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: inherit;
    border: 1.5px dashed rgba(22, 119, 255, 0.2);
    animation: rotate-slow 20s linear infinite;
}

@keyframes rotate-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ===== 20. 渐变遮罩层 ===== */
.gradient-overlay {
    position: relative;
}

.gradient-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(255, 255, 255, 0.9) 100%);
    pointer-events: none;
    border-radius: inherit;
}

/* ===== 21. 3D 卡片倾斜效果 ===== */
.tilt-card {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform-style: preserve-3d;
}

.tilt-card:hover {
    transform: perspective(1000px) rotateX(2deg) rotateY(-2deg) translateY(-6px);
    box-shadow:
        0 20px 40px -10px rgba(22, 119, 255, 0.15),
        0 8px 16px -4px rgba(0, 0, 0, 0.06);
}

/* ===== 22. 文字渐入动画 ===== */
.text-reveal {
    overflow: hidden;
    display: inline-block;
}

.text-reveal span {
    display: inline-block;
    transform: translateY(100%);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.text-reveal.visible span {
    transform: translateY(0);
}

/* ===== 23. 深色区域卡片 ===== */
.dark-card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.dark-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(96, 165, 250, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.3);
}

/* ===== 24. 高级表格样式 ===== */
.table-premium {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.table-premium thead tr {
    background: linear-gradient(135deg, #1677FF, #4096FF);
}

.table-premium thead th {
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    padding: 14px 20px;
    text-align: left;
    border: none;
}

.table-premium tbody tr {
    background: #fff;
    transition: all 0.3s;
    border: none;
}

.table-premium tbody tr:nth-child(even) {
    background: #F8FAFF;
}

.table-premium tbody tr:hover {
    background: #EFF6FF;
}

.table-premium tbody td {
    padding: 14px 20px;
    font-size: 14px;
    color: #555;
    border-bottom: 1px solid #F0F4FF;
}

.table-premium tbody tr:last-child td {
    border-bottom: none;
}
