/* ========== AI遗产 全站公共样式 v3.0 浅色系 ========== */

/* ========== 根变量 ========== */
:root {
    --bg-page: #f8fafc;
    --bg-card: rgba(255, 255, 255, 0.88);
    --bg-card-solid: #ffffff;
    --border-subtle: rgba(0, 0, 0, 0.06);
    --border-card: rgba(0, 0, 0, 0.08);
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --text-heading: #0f172a;
    --accent: #3b82f6;
    --accent-strong: #2563eb;
    --accent-purple: #8b5cf6;
    --accent-gold: #f59e0b;
    --accent-green: #10b981;
    --accent-teal: #14b8a6;
    --radius-lg: 1.25rem;
    --radius-xl: 1.75rem;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== 基础重置 ========== */
* {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    letter-spacing: 0.015em;
}

html, html body {
    background: var(--bg-page) !important;
    background-color: var(--bg-page) !important;
}

body {
    background: var(--bg-page) !important;
    background-color: var(--bg-page) !important;
    color: var(--text-primary);
    line-height: 1.8;
    margin: 0;
    overflow-x: hidden;
}

/* 浅色主题背景微光 */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% -20%, rgba(59, 130, 246, 0.04) 0%, transparent 70%),
        radial-gradient(ellipse 60% 50% at 85% 80%, rgba(139, 92, 246, 0.03) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 15% 30%, rgba(20, 184, 166, 0.03) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

/* ========== 卡片 ========== */
.glass {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-xl);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.03);
}

.glass-glow {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: var(--radius-xl);
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.06), 0 2px 8px rgba(0, 0, 0, 0.04);
}

.card-hover {
    transition: all var(--transition);
}

.card-hover:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(59, 130, 246, 0.15);
}

/* 推荐卡片高亮 */
.card-featured {
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.08), 0 4px 16px rgba(0, 0, 0, 0.04);
}

/* ========== 渐变文字 ========== */
.gradient-text {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-soft {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========== 渐变背景 ========== */
.gradient-bg {
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 50%, #8b5cf6 100%);
}

.gradient-bg-subtle {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(99, 102, 241, 0.08) 50%, rgba(139, 92, 246, 0.08) 100%);
}

/* ========== 导航栏 ========== */
#navbar {
    padding-top: 24px;
    padding-bottom: 24px;
    background: rgba(248, 250, 252, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
    padding-top: 12px;
    padding-bottom: 12px;
}

.nav-link {
    position: relative;
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-secondary);
    transition: color var(--transition);
    letter-spacing: 0.04em;
    text-decoration: none;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 18px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-purple));
    border-radius: 1px;
    transition: transform var(--transition);
}

.nav-link:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.nav-link.active {
    color: var(--text-primary);
}

.nav-link.active::after {
    transform: translateX(-50%) scaleX(1);
}

/* ========== 按钮 ========== */
.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 50%, #8b5cf6 100%);
    color: #ffffff;
    font-weight: 500;
    border: none;
    border-radius: 0.75rem;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    letter-spacing: 0.03em;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, transparent 60%);
    opacity: 0;
    transition: opacity var(--transition);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.35);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    font-weight: 500;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 0.75rem;
    transition: all var(--transition);
    cursor: pointer;
    letter-spacing: 0.03em;
}

.btn-outline:hover {
    border-color: var(--accent);
    background: rgba(59, 130, 246, 0.06);
    color: var(--accent);
    transform: translateY(-2px);
}

/* ========== 区块间距 ========== */
.section-padding {
    padding: 100px 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 64px 0;
    }
}

/* ========== 页面标题区 ========== */
.page-hero {
    padding-top: 160px;
    padding-bottom: 80px;
    position: relative;
}

.page-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.06), transparent);
}

/* ========== 动画 ========== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(59, 130, 246, 0.15); }
    50% { box-shadow: 0 0 40px rgba(59, 130, 246, 0.3); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-fade-in {
    animation: fadeIn 0.8s ease forwards;
}

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ========== 悬浮咨询按钮 ========== */
.float-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 100;
}

.float-btn-main {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 50%, #8b5cf6 100%);
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 24px rgba(59, 130, 246, 0.4);
    transition: all var(--transition);
    animation: pulse-glow 3s ease infinite;
}

.float-btn-main:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 36px rgba(59, 130, 246, 0.55);
}

.float-panel {
    position: absolute;
    bottom: 72px;
    right: 0;
    width: 280px;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    opacity: 0;
    transform: translateY(12px) scale(0.96);
    pointer-events: none;
    transition: all var(--transition);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.float-panel.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.float-panel h4 {
    letter-spacing: 0.04em;
    color: var(--text-primary);
}

.float-panel a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    color: var(--text-secondary);
    transition: all var(--transition);
    text-decoration: none;
    font-size: 0.95rem;
}

.float-panel a:hover {
    background: rgba(59, 130, 246, 0.06);
    color: var(--accent);
}

/* ========== 页脚 ========== */
.site-footer {
    background: #ffffff;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding: 64px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 48px;
}

.footer-brand h3 {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.7;
}

.footer-col h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.footer-col a {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-decoration: none;
    margin-bottom: 10px;
    transition: color var(--transition);
}

.footer-col a:hover {
    color: var(--accent);
}

.footer-bottom {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-bottom a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition);
}

.footer-bottom a:hover {
    color: var(--text-secondary);
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* ========== 表单 ========== */
.form-input {
    width: 100%;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 0.75rem;
    padding: 0.85rem 1.25rem;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all var(--transition);
    outline: none;
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: #ffffff;
}

.form-select {
    width: 100%;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 0.75rem;
    padding: 0.85rem 1.25rem;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all var(--transition);
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.25rem center;
}

.form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-select option {
    background: #ffffff;
    color: var(--text-primary);
}

/* ========== 分隔线 ========== */
.divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-purple));
    border-radius: 2px;
    margin: 0 auto;
}

/* ========== 科技粒子背景 ========== */
.tech-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.tech-particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(59, 130, 246, 0.2);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

/* ========== 通用工具 ========== */
.text-balance {
    text-wrap: balance;
}

.relative-z {
    position: relative;
    z-index: 1;
}

/* 品牌小圆点 */
.badge-dot {
    background: linear-gradient(135deg, var(--accent), var(--accent-purple));
}

/* 表格表头渐变 */
.th-gradient-green {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.06), rgba(139, 92, 246, 0.06));
}

/* 特色内容块渐变 */
.block-gradient-green {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.06), rgba(20, 184, 166, 0.06));
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.block-gradient-purple {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.06), rgba(59, 130, 246, 0.06));
    border: 1px solid rgba(139, 92, 246, 0.1);
}

/* Hero 标题紧凑间距 */
.hero-title {
    letter-spacing: -0.02em;
}

/* ========== 浅色主题 Tailwind 文本颜色重映射 ========== */
/* 将原暗色主题的浅色文本映射为适合白色背景的深色 */
.text-gray-300 { color: #334155 !important; }
.text-gray-400 { color: #475569 !important; }
.text-gray-500 { color: #64748b !important; }
.text-gray-600 { color: #64748b !important; }
.bg-white\/5 { background: rgba(0, 0, 0, 0.04) !important; }
.bg-white\/10 { background: rgba(0, 0, 0, 0.06) !important; }
.border-white\/5 { border-color: rgba(0, 0, 0, 0.06) !important; }
.hover\:text-white:hover { color: #0f172a !important; }
