/* ============================================
   内网云首页 - 现代化设计样式
   ============================================ */

/* CSS 变量 */
:root {
    --primary: #2563EB;
    --primary-light: #3B82F6;
    --primary-dark: #1D4ED8;
    --secondary: #10B981;
    --accent: #F59E0B;
    --dark: #0F172A;
    --dark-light: #1E293B;
    --gray-50: #F8FAFC;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --gray-400: #94A3B8;
    --gray-500: #64748B;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1E293B;
    --gray-900: #0F172A;
    --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

/* 全局样式 */
body {
    font-family: var(--font-sans);
    color: var(--gray-800);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--gray-900);
}

/* ============================================
   导航栏
   ============================================ */
.navbar-modern {
    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.05);
    padding: 0.75rem 0;
    transition: all 0.3s ease;
    z-index: 1040;
    position: sticky;
    top: 0;
}

.navbar-modern.scrolled {
    box-shadow: var(--shadow-md);
}

/* 移动端汉堡按钮：默认边框透明、图标颜色随主题失效，需显式保证可见性 */
.navbar-modern .navbar-toggler {
    border: 1.5px solid var(--gray-300);
    border-radius: 0.5rem;
    padding: 0.35rem 0.6rem;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.navbar-modern .navbar-toggler:hover {
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.05);
}

.navbar-modern .navbar-toggler:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
}

/* 此 Bootstrap 版本的基础 .navbar-toggler-icon 无背景图（图在 navbar-light/dark 变体里），需自行补上 */
.navbar-modern .navbar-toggler .navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba(15, 23, 42, 0.7)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.navbar-brand-modern {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--gray-900) !important;
}

.navbar-brand-modern img {
    width: 32px;
    height: 32px;
}

.nav-link-modern {
    color: var(--gray-600) !important;
    font-weight: 500;
    padding: 0.5rem 0.75rem !important;
    transition: color 0.2s ease;
}

/* 导航栏「产品」下拉菜单 */
.navbar-modern .nav-link-modern.dropdown-toggle::after {
    margin-left: 0.35rem;
    vertical-align: 0.15em;
    border-top-color: currentColor;
}

.navbar-modern .nav-dropdown {
    min-width: 200px;
    border: 1px solid var(--gray-200);
    border-radius: 0.75rem;
    box-shadow: var(--shadow-lg);
    padding: 0.5rem 0;
    margin-top: 0.5rem;
}

.navbar-modern .nav-dropdown .dropdown-item {
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
    color: var(--gray-700);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.navbar-modern .nav-dropdown .dropdown-item i {
    width: 16px;
    text-align: center;
    color: var(--gray-500);
    font-size: 0.85rem;
}

.navbar-modern .nav-dropdown .dropdown-item:hover,
.navbar-modern .nav-dropdown .dropdown-item:focus {
    background: var(--gray-100);
    color: var(--primary);
}

.navbar-modern .nav-dropdown .dropdown-item:hover i,
.navbar-modern .nav-dropdown .dropdown-item:focus i {
    color: var(--primary);
}

[data-theme="dark"] .navbar-modern .nav-dropdown {
    background: var(--gray-50);
    border-color: var(--gray-300);
}

[data-theme="dark"] .navbar-modern .nav-dropdown .dropdown-item {
    color: var(--gray-700);
}

[data-theme="dark"] .navbar-modern .nav-dropdown .dropdown-item:hover {
    background: var(--gray-100);
}

/* 用户头像按钮 + 下拉菜单 */
.user-menu {
    margin-left: 0.5rem;
}

.user-menu-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    max-width: 200px;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    background: var(--gray-100);
    border: 1px solid var(--gray-300);
    color: var(--gray-600);
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    outline: none;
    transition: all 0.25s ease;
}

.user-menu-btn .user-menu-btn-email {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-menu-btn .user-menu-btn-caret {
    flex: none;
    font-size: 0.8rem;
    color: var(--gray-500);
    transition: transform 0.25s ease;
}

.user-menu-btn:hover,
.user-menu-btn:focus {
    background: var(--gray-200);
    color: var(--gray-800);
}

.user-menu-btn:hover .user-menu-btn-caret,
.user-menu-btn:focus .user-menu-btn-caret {
    color: var(--gray-800);
}

/* 菜单展开时箭头翻转 */
.user-menu.show .user-menu-btn-caret {
    transform: rotate(180deg);
}

[data-theme="dark"] .user-menu-btn {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
}

[data-theme="dark"] .user-menu-btn:hover,
[data-theme="dark"] .user-menu-btn:focus {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

[data-theme="dark"] .user-menu-btn .user-menu-btn-caret {
    color: rgba(255, 255, 255, 0.7);
}

.user-menu .dropdown-menu {
    min-width: 220px;
    border: 1px solid var(--gray-200);
    border-radius: 0.75rem;
    box-shadow: var(--shadow-lg);
    padding: 0.5rem 0;
    margin-top: 0.5rem;
}

.user-menu .user-menu-email {
    padding: 0.5rem 1.25rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-100);
    margin-bottom: 0.35rem;
    word-break: break-all;
    line-height: 1.4;
}

.user-menu .dropdown-item {
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
    color: var(--gray-700);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.user-menu .dropdown-item i {
    width: 16px;
    text-align: center;
    color: var(--gray-500);
    font-size: 0.85rem;
}

.user-menu .dropdown-item:hover {
    background: var(--gray-100);
    color: var(--primary);
}

.user-menu .dropdown-item:hover i {
    color: var(--primary);
}

.user-menu .dropdown-item.text-danger i {
    color: #EF4444;
}

[data-theme="dark"] .user-menu .dropdown-menu {
    background: var(--gray-50);
    border-color: var(--gray-300);
}

[data-theme="dark"] .user-menu .user-menu-email {
    color: var(--gray-700);
    border-bottom-color: var(--gray-200);
}

[data-theme="dark"] .user-menu .dropdown-item {
    color: var(--gray-700);
}

[data-theme="dark"] .user-menu .dropdown-item:hover {
    background: var(--gray-100);
}

/* ============================================
   导航右上角操作按钮组
   （下载 / 主题 / 用户菜单：横向排成一组，高度统一 36px，
     彼此靠近但不贴连——点、点、横向椭圆）
   ============================================ */
.nav-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* 组内统一 36px 高度；清掉主题按钮与用户菜单原有的零散内外边距，间距统一交给 gap */
.navbar-modern .nav-actions .nav-icon-btn,
.navbar-modern .nav-actions .theme-toggle {
    margin: 0;
    width: 36px;
    height: 36px;
}

.navbar-modern .nav-actions .user-menu {
    margin-left: 0;
}

.navbar-modern .nav-actions .user-menu-btn {
    height: 36px;
    padding: 0 1rem;
}

.nav-link-modern:hover {
    color: var(--primary) !important;
}

.navbar-nav {
    align-items: center;
}

.btn-nav {
    padding: 0.5rem 1.25rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-nav-outline {
    border: 1.5px solid var(--gray-300);
    color: var(--gray-700);
    background: transparent;
}

.btn-nav-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(37, 99, 235, 0.05);
}

.btn-nav-primary {
    background: var(--primary);
    color: white;
    border: 1.5px solid var(--primary);
}

.btn-nav-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

/* ============================================
   顶部通知横幅
   ============================================ */
.top-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.5rem 0;
    position: relative;
    z-index: 1;
}

.top-banner .container {
    position: relative;
}

.banner-icon {
    font-size: 0.9rem;
    margin-right: 0.6rem;
    opacity: 0.9;
}

.banner-text {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.banner-link {
    color: rgba(255, 255, 255, 0.95) !important;
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.banner-link:hover {
    color: white !important;
    text-decoration: none;
}

.banner-divider {
    margin: 0 0.5rem;
    opacity: 0.5;
}

.banner-close {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    transition: all 0.2s ease;
}

.banner-close:hover {
    color: white;
}

/* ============================================
   Hero 区域
   ============================================ */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
    padding: 5rem 0;
    min-height: 0;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    z-index: 1;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: 10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 2rem;
    padding: 0.5rem 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.hero-badge i {
    color: var(--accent);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-title .highlight {
    background: linear-gradient(135deg, #60A5FA, #34D399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

/* 终端卡片 */
.terminal-card {
    background: var(--dark-light);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    max-width: 600px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.25rem;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-dot.red { background: #FF5F57; }
.terminal-dot.yellow { background: #FFBD2E; }
.terminal-dot.green { background: #28CA41; }

.terminal-title {
    flex: 1;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    font-family: 'SF Mono', 'Monaco', 'Menlo', monospace;
}

.terminal-body {
    padding: 1.5rem;
    font-family: 'SF Mono', 'Monaco', 'Menlo', 'Consolas', monospace;
    font-size: 0.95rem;
    line-height: 1.8;
    position: relative;
}

.terminal-line {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.terminal-prompt {
    color: var(--secondary);
    user-select: none;
}

.terminal-command {
    color: #E2E8F0;
}

.terminal-command .comment {
    color: var(--gray-400);
}

.terminal-command .flag {
    color: #60A5FA;
}

.terminal-command .value {
    color: #FCD34D;
}

.terminal-command .at {
    color: var(--gray-400);
}

.terminal-command .host {
    color: #34D399;
}

.copy-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.6);
    width: 26px;
    height: 26px;
    border-radius: 0.25rem;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.copy-btn.copied {
    background: var(--secondary);
    border-color: var(--secondary);
    color: white;
}

/* Hero 按钮组 */
.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-hero {
    padding: 0.875rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-hero-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.5);
    color: white;
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    color: white;
}

/* ============================================
   产品/解决方案页 Hero（紫色渐变）与通用 Section
   （原先内联在 product.html，迁出供多页共用）
   ============================================ */
.product-hero-section {
    background: linear-gradient(135deg, #7C3AED 0%, #5B21B6 50%, #6D28D9 100%);
    position: relative;
    overflow: hidden;
    padding: 5rem 0;
    min-height: 0;
    display: flex;
    align-items: center;
}
.product-hero-section::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -15%;
    width: 450px;
    height: 450px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    z-index: 1;
}
.product-hero-section::after {
    content: '';
    position: absolute;
    bottom: -25%;
    left: 8%;
    width: 280px;
    height: 280px;
    background: rgba(255,255,255,0.07);
    border-radius: 50%;
    z-index: 1;
}
.product-hero-section .hero-badge,
.product-hero-section .hero-title,
.product-hero-section .hero-subtitle,
.product-hero-section .hero-buttons {
    position: relative;
    z-index: 2;
}
[data-theme="dark"] .product-hero-section {
    background: linear-gradient(135deg, #3B0764 0%, #2E1065 50%, #3B0764 100%) !important;
}

.product-section {
    padding: 6rem 0;
    background: white;
}
.product-section-alt {
    background: var(--gray-50);
}
[data-theme="dark"] .product-section {
    background: var(--gray-50);
}
[data-theme="dark"] .product-section-alt {
    background: var(--gray-100);
}
@media (max-width: 991.98px) {
    .product-hero-section {
        padding: 3.5rem 0;
    }
}

/* ============================================
   核心优势
   ============================================ */
.advantages-section {
    padding: 6rem 0;
    background: var(--gray-50);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(16, 185, 129, 0.1));
    color: var(--primary);
    padding: 0.375rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.section-desc {
    font-size: 1.125rem;
    color: var(--gray-500);
    max-width: 600px;
    margin: 0 auto;
}

.advantage-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid var(--gray-100);
    position: relative;
    overflow: hidden;
}

.advantage-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.advantage-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.advantage-card:hover::before {
    opacity: 1;
}

.advantage-icon {
    width: 64px;
    height: 64px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.advantage-icon.blue {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(59, 130, 246, 0.2));
    color: var(--primary);
}

.advantage-icon.green {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(52, 211, 153, 0.2));
    color: var(--secondary);
}

.advantage-icon.yellow {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(252, 211, 77, 0.2));
    color: var(--accent);
}

.advantage-icon.purple {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(167, 139, 250, 0.2));
    color: #8b5cf6;
}

.advantage-icon.cyan {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(34, 211, 238, 0.2));
    color: #0891b2;
}

/* 企业级能力（高可用负载均衡）区块：衔接上方灰底优势区与下方白底场景区 */
.lb-capabilities-section {
    padding: 6rem 0;
    background: linear-gradient(180deg, var(--gray-50) 0%, #ffffff 100%);
}

.advantage-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 600;
    color: var(--primary);
    transition: gap 0.2s ease;
}

.advantage-link:hover {
    color: var(--primary-dark);
    gap: 0.6rem;
}

.advantage-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
}

.advantage-desc {
    color: var(--gray-500);
    line-height: 1.7;
}

/* ============================================
   适用场景
   ============================================ */
.scenarios-section {
    padding: 6rem 0;
    background: white;
}

.scenario-card {
    background: var(--gray-50);
    border-radius: 1rem;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid var(--gray-100);
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.scenario-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    background: white;
}

.scenario-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
}

.scenario-content h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.scenario-content p {
    color: var(--gray-500);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

/* ============================================
   实测案例
   ============================================ */
.cases-section {
    padding: 6rem 0;
    background: white;
}

.case-card {
    background: var(--gray-50);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--gray-100);
    height: 100%;
}

.case-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.case-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.case-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.3));
}

.case-content {
    padding: 1.5rem;
}

.case-tag {
    display: inline-block;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.case-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
}

.case-desc {
    color: var(--gray-500);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.case-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    transition: gap 0.2s ease;
}

.case-link:hover {
    gap: 0.625rem;
    color: var(--primary-dark);
}

/* ============================================
   功能特性
   ============================================ */
.features-section {
    padding: 6rem 0;
    background: white;
}

.feature-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid var(--gray-100);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1.25rem;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(59, 130, 246, 0.2));
    color: var(--primary);
}

.feature-card:nth-child(2) .feature-icon {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(52, 211, 153, 0.2));
    color: var(--secondary);
}

.feature-card:nth-child(3) .feature-icon {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(252, 211, 77, 0.2));
    color: var(--accent);
}

.feature-card:nth-child(4) .feature-icon {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(167, 139, 250, 0.2));
    color: #8B5CF6;
}

.feature-card:nth-child(5) .feature-icon {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.1), rgba(244, 114, 182, 0.2));
    color: #EC4899;
}

.feature-card:nth-child(6) .feature-icon {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(34, 211, 238, 0.2));
    color: #06B6D4;
}

.feature-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.feature-desc {
    color: var(--gray-500);
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   用户评价
   ============================================ */
.testimonials-section {
    padding: 6rem 0;
    background: var(--gray-50);
}

.testimonial-card {
    background: var(--gray-50);
    border-radius: 1rem;
    padding: 2rem;
    height: 100%;
    min-height: 280px;
    transition: all 0.3s ease;
    border: 1px solid var(--gray-100);
    position: relative;
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 4rem;
    color: var(--gray-200);
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-stars {
    color: #FCD34D;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.testimonial-text {
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    flex: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
    box-shadow: var(--shadow-sm);
}

.testimonial-info h5 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 0.125rem;
}

.testimonial-info span {
    font-size: 0.8rem;
    color: var(--gray-400);
}

/* ============================================
   用户评价轮播
   ============================================ */
#testimonialCarousel .carousel-inner {
    min-height: 320px;
}

#testimonialCarousel .carousel-item {
    transition: transform 0.6s ease-in-out;
}

#testimonialCarousel .testimonial-card {
    height: 100%;
    min-height: 280px;
}

.testimonial-indicators {
    position: relative;
    bottom: 0;
    margin-top: 1.5rem;
    margin-bottom: 0;
}

.testimonial-indicators li {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--gray-300);
    border: none;
    margin: 0 4px;
    transition: all 0.3s ease;
}

.testimonial-indicators li.active {
    background-color: var(--primary);
    width: 24px;
    border-radius: 5px;
}

/* ============================================
   CTA 区域
   ============================================ */
.cta-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
}

.cta-desc {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2.5rem;
}

.btn-cta {
    padding: 1rem 3rem;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 1.125rem;
    background: white;
    color: var(--primary);
    border: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    color: var(--primary-dark);
}
.btn-cta-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.6);
}
.btn-cta-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: white;
    color: white;
}

/* ============================================
   页脚
   ============================================ */
.footer-modern {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 4rem 0 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.footer-brand img {
    width: 36px;
    height: 36px;
}

.footer-brand h4 {
    color: white;
    font-weight: 700;
    margin: 0;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.2s ease;
}

.footer-social a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.footer-links h5 {
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: white;
}

/* 技术支持 / 页脚社交图标 - 悬停弹出二维码 */
.footer-links .qr-item,
.footer-social .qr-item {
    position: relative;
}

.footer-links .qr-pop,
.footer-social .qr-pop {
    position: absolute;
    left: 0;
    bottom: calc(100% + 12px);
    width: 296px;
    padding: 6px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 30;
    pointer-events: none;
}

.footer-links .qr-item:hover .qr-pop,
.footer-social .qr-item:hover .qr-pop {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.footer-links .qr-pop::after,
.footer-social .qr-pop::after {
    content: "";
    position: absolute;
    left: 22px;
    top: 100%;
    border: 7px solid transparent;
    border-top-color: #ffffff;
}

.footer-links .qr-pop img,
.footer-social .qr-pop img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 6px;
}

.footer-links .qr-pop-title,
.footer-social .qr-pop-title {
    display: block;
    text-align: center;
    font-size: 0.72rem;
    color: #333333;
    margin-top: 4px;
    white-space: nowrap;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    margin-top: 3rem;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
}

.footer-copyright a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
}

.footer-copyright a:hover {
    color: white;
}

.footer-beian {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.footer-beian img {
    height: 16px;
}

/* ============================================
   响应式设计
   ============================================ */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        padding: 3.5rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .terminal-body {
        font-size: 0.8rem;
        padding: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .scenario-card {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .footer-bottom .row {
        flex-direction: column-reverse;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-beian {
        justify-content: center;
    }
}

@media (max-width: 575.98px) {
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn-hero {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   动画
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-fadeIn {
    animation: fadeIn 0.6s ease forwards;
}

.delay-1 { animation-delay: 0.1s; opacity: 0; }
.delay-2 { animation-delay: 0.2s; opacity: 0; }
.delay-3 { animation-delay: 0.3s; opacity: 0; }
.delay-4 { animation-delay: 0.4s; opacity: 0; }
.delay-5 { animation-delay: 0.5s; opacity: 0; }

/* 滚动动画 */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].animated {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   亮暗主题切换
   ============================================ */
/* 主题切换按钮 */
/* 导航小圆图标按钮（客户端下载），与主题切换按钮同款 */
.nav-icon-btn {
    background: var(--gray-100);
    border: 1px solid var(--gray-300);
    color: var(--gray-600);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    outline: none;
}

.nav-icon-btn:hover {
    background: var(--gray-200);
    color: var(--gray-800);
    transform: translateY(-1px);
}

[data-theme="dark"] .nav-icon-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
}

[data-theme="dark"] .nav-icon-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.theme-toggle {
    background: var(--gray-100);
    border: 1px solid var(--gray-300);
    color: var(--gray-600);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    margin-left: 0.5rem;
    margin-right: 0.75rem;
    outline: none;
}

.theme-toggle:hover {
    background: var(--gray-200);
    color: var(--gray-800);
    transform: rotate(30deg);
}

[data-theme="dark"] .theme-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
}

[data-theme="dark"] .theme-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* 暗色模式 */
[data-theme="dark"] {
    --primary: #60A5FA;
    --primary-light: #93C5FD;
    --primary-dark: #3B82F6;
    --secondary: #34D399;
    --accent: #FBBF24;
    --dark: #0F172A;
    --dark-light: #1E293B;
    --gray-50: #0F172A;
    --gray-100: #151f33;
    --gray-200: #1a2332;
    --gray-300: #1E293B;
    --gray-400: #334155;
    --gray-500: #64748B;
    --gray-600: #94A3B8;
    --gray-700: #CBD5E1;
    --gray-800: #E2E8F0;
    --gray-900: #F1F5F9;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.4), 0 1px 2px -1px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -4px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] body {
    background: var(--gray-50);
}

[data-theme="dark"] .navbar-modern {
    background: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .navbar-modern .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.25);
}

[data-theme="dark"] .navbar-modern .navbar-toggler:hover {
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.15);
}

/* 深色主题下默认图标是半透明黑色，需换成亮色线条 */
[data-theme="dark"] .navbar-modern .navbar-toggler .navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba(255, 255, 255, 0.85)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

[data-theme="dark"] .navbar-brand-modern {
    color: var(--gray-900) !important;
}

[data-theme="dark"] .btn-nav-outline {
    border-color: var(--gray-400);
    color: var(--gray-700);
}

[data-theme="dark"] .btn-nav-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

[data-theme="dark"] .advantages-section {
    background: var(--gray-100);
}

[data-theme="dark"] .advantage-card {
    background: var(--gray-50);
    border-color: var(--gray-300);
}

[data-theme="dark"] .lb-capabilities-section {
    background: var(--gray-100);
}

[data-theme="dark"] .scenarios-section {
    background: var(--gray-50);
}

[data-theme="dark"] .scenario-card {
    background: var(--gray-100);
    border-color: var(--gray-300);
}

[data-theme="dark"] .scenario-card:hover {
    background: var(--gray-50);
}

[data-theme="dark"] .cases-section {
    background: #1a1a2e;
}

[data-theme="dark"] .case-card {
    background: var(--gray-100);
    border-color: var(--gray-300);
}

[data-theme="dark"] .features-section {
    background: var(--gray-50);
}

[data-theme="dark"] .feature-card {
    background: var(--gray-50);
    border-color: var(--gray-300);
}

[data-theme="dark"] .testimonials-section {
    background: var(--gray-100);
}

[data-theme="dark"] .testimonial-card {
    background: var(--gray-100);
    border-color: var(--gray-300);
}

[data-theme="dark"] .testimonial-card::before {
    color: var(--gray-400);
}

[data-theme="dark"] .testimonial-avatar {
    border-color: var(--gray-300);
}

[data-theme="dark"] .testimonial-indicators li {
    background-color: var(--gray-400);
}

[data-theme="dark"] .testimonial-indicators li.active {
    background-color: var(--primary);
}

[data-theme="dark"] .footer-modern {
    background: var(--gray-100);
    border-top: 1px solid var(--gray-300);
}

[data-theme="dark"] .top-banner {
    background: linear-gradient(135deg, #1E3A5F 0%, #1E293B 100%) !important;
}

[data-theme="dark"] .hero-section {
    background: linear-gradient(135deg, #1E3A5F 0%, #1E293B 100%) !important;
}

[data-theme="dark"] .cta-section {
    background: linear-gradient(135deg, #1E3A5F 0%, #1E293B 100%) !important;
}

/* ============================================
   登录/注册页面 - 暗色模式
   ============================================ */
[data-theme="dark"] .login-page,
[data-theme="dark"] .register-page {
    background: linear-gradient(135deg, #1E3A5F 0%, #1E293B 100%) !important;
}

[data-theme="dark"] .login-form-area,
[data-theme="dark"] .register-form-area {
    background: var(--gray-50);
}

[data-theme="dark"] .login-form-area .form-header h3,
[data-theme="dark"] .register-form-area .form-header h3 {
    color: var(--gray-900);
}

[data-theme="dark"] .login-form-area .form-header p,
[data-theme="dark"] .register-form-area .form-header p {
    color: var(--gray-500);
}

[data-theme="dark"] .login-form .input-with-icon .form-control,
[data-theme="dark"] .register-form .input-with-icon .form-control {
    background: var(--gray-100);
    border-color: var(--gray-300);
    color: var(--gray-800);
}

[data-theme="dark"] .login-form .input-with-icon .form-control:focus,
[data-theme="dark"] .register-form .input-with-icon .form-control:focus {
    background: var(--gray-50);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.15);
}

[data-theme="dark"] .login-form .input-with-icon .form-control::placeholder,
[data-theme="dark"] .register-form .input-with-icon .form-control::placeholder {
    color: var(--gray-400);
}

[data-theme="dark"] .login-form .input-with-icon .input-icon,
[data-theme="dark"] .register-form .input-with-icon .input-icon {
    color: var(--gray-400);
}

[data-theme="dark"] .captcha-row .captcha-image {
    border-color: var(--gray-300);
}

[data-theme="dark"] .captcha-row .captcha-image:hover {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.15);
}

[data-theme="dark"] .login-form .form-footer,
[data-theme="dark"] .register-form .form-footer {
    border-top-color: var(--gray-200);
}

[data-theme="dark"] .login-form .form-footer a,
[data-theme="dark"] .register-form .form-footer a {
    color: var(--gray-500);
}

/* 协议选择器暗色模式 */
[data-theme="dark"] .protocol-btn {
    border-color: var(--gray-400) !important;
    background: var(--gray-100) !important;
    color: var(--gray-600) !important;
}

[data-theme="dark"] .protocol-option input[value="http"]:checked ~ .protocol-btn,
[data-theme="dark"] .protocol-option input[value="https"]:checked ~ .protocol-btn {
    background: var(--primary) !important;
    color: #fff !important;
    border-color: var(--primary) !important;
}

/* ============================================
   浮动通知 Toast 组件
   ============================================ */
#toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    pointer-events: none;
    max-width: 400px;
    width: 100%;
}

.toast-item {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    padding: 0.875rem 1rem;
    border-radius: 0.75rem;
    background: white;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
    border-left: 4px solid;
    animation: toastSlideIn 0.35s ease forwards;
    transition: all 0.3s ease;
    cursor: default;
    word-break: break-word;
    line-height: 1.5;
    font-size: 0.9rem;
}

.toast-item.toast-exit {
    animation: toastSlideOut 0.25s ease forwards;
}

.toast-item .toast-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    margin-top: 2px;
}

.toast-item .toast-text {
    flex: 1;
    min-width: 0;
}

.toast-item .toast-close {
    flex-shrink: 0;
    background: none;
    border: none;
    padding: 2px 4px;
    cursor: pointer;
    font-size: 0.8rem;
    opacity: 0.4;
    transition: opacity 0.2s ease;
    line-height: 1;
    color: inherit;
}

.toast-item .toast-close:hover {
    opacity: 0.8;
}

/* 类型 */
.toast-item.toast-success {
    border-left-color: #10B981;
    background: #F0FDF4;
    color: #065F46;
}

.toast-item.toast-warning {
    border-left-color: #F59E0B;
    background: #FFFBEB;
    color: #92400E;
}

.toast-item.toast-error {
    border-left-color: #EF4444;
    background: #FEF2F2;
    color: #991B1B;
}

.toast-item.toast-info {
    border-left-color: #3B82F6;
    background: #EFF6FF;
    color: #1E40AF;
}

.toast-item .toast-icon .fa-check-circle { color: #10B981; }
.toast-item .toast-icon .fa-exclamation-circle { color: #F59E0B; }
.toast-item .toast-icon .fa-times-circle { color: #EF4444; }
.toast-item .toast-icon .fa-info-circle { color: #3B82F6; }

/* 动画 */
@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes toastSlideOut {
    from {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateX(100%) scale(0.95);
    }
}

/* 暗色模式 toast */
[data-theme="dark"] .toast-item {
    background: var(--gray-50);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3), 0 2px 8px rgba(0,0,0,0.2);
}

[data-theme="dark"] .toast-item.toast-success {
    background: #022C22;
    color: #6EE7B7;
}

[data-theme="dark"] .toast-item.toast-warning {
    background: #2D1B00;
    color: #FCD34D;
}

[data-theme="dark"] .toast-item.toast-error {
    background: #2D0000;
    color: #FCA5A5;
}

[data-theme="dark"] .toast-item.toast-info {
    background: #00223D;
    color: #93C5FD;
}

[data-theme="dark"] .toast-item .toast-icon .fa-check-circle { color: #34D399; }
[data-theme="dark"] .toast-item .toast-icon .fa-exclamation-circle { color: #FBBF24; }
[data-theme="dark"] .toast-item .toast-icon .fa-times-circle { color: #F87171; }
[data-theme="dark"] .toast-item .toast-icon .fa-info-circle { color: #60A5FA; }

/* ============================================
   首页新增区块样式
   ============================================ */

/* 工作原理简版 */
.how-it-works-section {
    background: white;
    padding: 5rem 0;
}
.step-card {
    background: white;
    border-radius: 1rem;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
}
.step-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}
.step-number {
    position: absolute;
    top: -1rem;
    left: -0.5rem;
    width: 2.5rem;
    height: 2.5rem;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}
.step-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}
.step-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: var(--gray-900);
}
.step-card p {
    color: var(--gray-600);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}
.step-card code {
    display: inline-block;
    background: var(--gray-100);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    color: var(--primary);
    word-break: break-all;
}
.step-tags {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}
.step-tag {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.85rem;
    font-weight: 500;
}
[data-theme="dark"] .how-it-works-section {
    background: var(--gray-50);
}
[data-theme="dark"] .step-card {
    background: var(--gray-100);
}
[data-theme="dark"] .step-card code {
    background: var(--gray-200);
}

/* 产品对比简表 */
.compare-section {
    padding: 5rem 0;
}
.compare-table-wrapper {
    overflow-x: auto;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
}
.compare-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}
.compare-table th,
.compare-table td {
    padding: 1rem 1.5rem;
    text-align: center;
    border-bottom: 1px solid var(--gray-200);
}
.compare-table th {
    background: var(--gray-50);
    font-weight: 600;
    color: var(--gray-700);
}
.compare-table th:first-child,
.compare-table td:first-child {
    text-align: left;
    font-weight: 500;
}
.compare-highlight {
    background: rgba(37, 99, 235, 0.05) !important;
}
.compare-table th.compare-highlight {
    background: var(--primary) !important;
    color: white;
}
.compare-table td.compare-highlight {
    font-weight: 600;
    color: var(--primary);
}
.text-success { color: #10B981; }
.text-danger { color: #EF4444; }
.text-warning { color: #F59E0B; }
[data-theme="dark"] .compare-table {
    background: var(--gray-50);
}
[data-theme="dark"] .compare-table th {
    background: var(--gray-100);
    color: var(--gray-700);
}
[data-theme="dark"] .compare-table td {
    border-color: var(--gray-200);
}

/* FAQ */
.faq-section {
    background: var(--gray-50);
    padding: 5rem 0;
}
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.faq-item {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}
.faq-item:hover {
    box-shadow: var(--shadow-md);
}
.faq-question {
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    color: var(--gray-800);
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}
.faq-question:hover {
    color: var(--primary);
}
.faq-answer {
    padding: 0 1.5rem 1.25rem;
    color: var(--gray-600);
    line-height: 1.8;
    font-size: 0.95rem;
}
[data-theme="dark"] .faq-section {
    background: var(--gray-50);
}
[data-theme="dark"] .faq-item {
    background: var(--gray-100);
}
[data-theme="dark"] .faq-question {
    color: var(--gray-800);
}
[data-theme="dark"] .faq-answer {
    color: var(--gray-600);
}

/* 响应式 */
@media (max-width: 767.98px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .stat-number {
        font-size: 2.5rem;
    }
    .step-card {
        padding: 2rem 1.5rem;
    }
    .compare-table th,
    .compare-table td {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

/* ============================================
   现代加宽容器
   替代 Bootstrap 4 的 .container 固定 1140px 上限，
   让首页 / 产品介绍 / 解决方案 / 技术架构 等营销页在大屏上更宽，
   观感更接近现代官网（不影响 dashboard / manage / ops 等后台，它们不加载本文件）
   ============================================ */
@media (min-width: 1200px) {
    .container {
        max-width: 1320px;
    }
}
@media (min-width: 1440px) {
    .container {
        max-width: 1440px;
    }
}
@media (min-width: 1920px) {
    .container {
        max-width: 1600px;
    }
}
