/* ====================================================
   Talay 新UI基础样式 - 全局覆盖
   设计风格：Glassmorphism + 紫蓝渐变
   ==================================================== */

/* ====== Google Font ====== */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;600;700;900&display=swap');

/* ====== CSS变量 ====== */
:root {
    --c1: #6366f1;
    --c1-light: #a5b4fc;
    --c1-dark: #4338ca;
    --c2: #06b6d4;
    --c2-light: #67e8f9;
    --c3: #f59e0b;
    --c3-light: #fcd34d;
    --c4: #10b981;
    --text: #1e293b;
    --text2: #64748b;
    --text3: #94a3b8;
    --glass: rgba(255,255,255,0.65);
    --glass-border: rgba(255,255,255,0.3);
    --glass-dark: rgba(255,255,255,0.12);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    --shadow-sm: 0 4px 20px rgba(99,102,241,0.08);
    --shadow-md: 0 8px 30px rgba(99,102,241,0.12);
    --shadow-lg: 0 20px 60px rgba(99,102,241,0.15);
    --transition: 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ====== 全局重置 & 基础 ====== */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans SC', system-ui, -apple-system, sans-serif !important;
    color: var(--text) !important;
    line-height: 1.6 !important;
    overflow-x: hidden;
    background: #f0f2ff !important;
    min-width: 320px !important;
    width: 100% !important;
    margin: 0 !important;
    padding-top: 0 !important;
    background-image: none !important;
}

/* ====== 动态渐变背景 ====== */
.bg-mesh {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}
.bg-mesh .orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.25;
    animation: orbFloat 20s ease-in-out infinite;
}
.bg-mesh .orb:nth-child(1) {
    width: 600px; height: 600px;
    background: var(--c1);
    top: -10%; left: -10%;
}
.bg-mesh .orb:nth-child(2) {
    width: 500px; height: 500px;
    background: var(--c2);
    top: 30%; right: -15%;
    animation-delay: -7s;
}
.bg-mesh .orb:nth-child(3) {
    width: 450px; height: 450px;
    background: var(--c3);
    bottom: -5%; left: 20%;
    animation-delay: -14s;
}
@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(60px, -40px) scale(1.1); }
    50% { transform: translate(-30px, 60px) scale(0.95); }
    75% { transform: translate(40px, 30px) scale(1.05); }
}

/* ====== 通用容器 ====== */
.wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ====== 通用按钮 ====== */
.btn-talay {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    line-height: 1.4;
}
.btn-talay.btn-g {
    background: linear-gradient(135deg, var(--c1), var(--c2));
    color: #fff;
    box-shadow: 0 4px 20px rgba(99,102,241,0.3);
}
.btn-talay.btn-g:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99,102,241,0.4);
    color: #fff;
}
.btn-talay.btn-o {
    background: transparent;
    color: var(--c1);
    border: 2px solid var(--c1);
}
.btn-talay.btn-o:hover {
    background: var(--c1);
    color: #fff;
}
.btn-talay.btn-w {
    background: #fff;
    color: var(--c1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.btn-talay.btn-w:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

/* ====== 毛玻璃卡片 ====== */
.glass-card {
    background: var(--glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}
.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

/* ====== Section通用 ====== */
.talay-sec {
    padding: 80px 0;
}
.talay-sec .sec-head {
    text-align: center;
    margin-bottom: 52px;
}
.talay-sec .sec-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 14px;
}
.talay-sec .sec-tag.t1 {
    background: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(6,182,212,0.1));
    color: var(--c1);
}
.talay-sec .sec-tag.t2 {
    background: linear-gradient(135deg, rgba(6,182,212,0.1), rgba(16,185,129,0.1));
    color: var(--c2);
}
.talay-sec .sec-tag.t3 {
    background: linear-gradient(135deg, rgba(245,158,11,0.1), rgba(239,68,68,0.1));
    color: var(--c3);
}
.talay-sec .sec-title {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 10px;
    color: var(--text);
}
.talay-sec .sec-desc {
    font-size: 15px;
    color: var(--text2);
    max-width: 520px;
    margin: 0 auto;
}

/* ====== 滚动渐入动画 ====== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ====== 渐入动画 ====== */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ====== 覆盖旧样式 ====== */
.topbar, #headerApp {
    border-radius: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* ====== 悬浮按钮 ====== */
.talay-fab {
    position: fixed;
    right: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 99;
}
.talay-fab a {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    font-size: 22px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    transition: 0.3s;
}
.talay-fab a:hover {
    transform: scale(1.1);
}
.talay-fab .f-phone {
    background: linear-gradient(135deg, var(--c4), #34d399);
}
.talay-fab .f-chat {
    background: linear-gradient(135deg, var(--c1), var(--c2));
}
.talay-fab .f-top {
    background: rgba(100,116,139,0.8);
    backdrop-filter: blur(10px);
}

/* ====== 响应式基础 ====== */
@media (max-width: 1024px) {
    .talay-sec { padding: 60px 0; }
    .talay-sec .sec-title { font-size: 28px; }
}
@media (max-width: 768px) {
    .talay-sec { padding: 40px 0; }
    .talay-sec .sec-title { font-size: 24px; }
    .talay-sec .sec-head { margin-bottom: 32px; }
}
