/**
 * 黔前智算 - GPTBots风格增强样式
 * 叠加在main.css之上使用
 */

/* ==================== CSS变量覆盖 - GPTBots风格 ==================== */
:root {
    /* 主色调 — 与 Logo 薄荷绿一致 */
    --primary: #20D492;
    --primary-dark: #14A873;
    --primary-light: #6EF5C4;
    --primary-rgb: 32, 212, 146;
    
    /* 强调色 */
    --accent-green: #20D492;
    --accent-orange: #F59E0B;
    --accent-red: #EF4444;
    --secondary: #177A59;
    
    /* 背景色 */
    --bg-secondary: #F4FBF8;
    --bg-tertiary: #E8F8F1;
    
    /* 文字颜色 */
    --text-primary: #12181B;
    --text-secondary: #4B5854;
    --text-muted: #8A9690;
    
    /* 阴影增强 */
    --shadow-sm: 0 1px 3px rgba(18, 24, 27, 0.04), 0 1px 2px rgba(18, 24, 27, 0.03);
    --shadow-md: 0 4px 12px rgba(18, 24, 27, 0.06), 0 2px 4px rgba(18, 24, 27, 0.04);
    --shadow-lg: 0 12px 32px rgba(18, 24, 27, 0.1), 0 4px 8px rgba(18, 24, 27, 0.06);
    --shadow-xl: 0 24px 48px rgba(18, 24, 27, 0.12), 0 8px 16px rgba(18, 24, 27, 0.08);
    --shadow-glow: 0 0 40px rgba(var(--primary-rgb), 0.3);
}

/* ==================== 导航栏增强 ==================== */
.navbar {
    width: 100%;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #F4FBF8 0%, #ffffff 100%);
    border-bottom: 1px solid rgba(var(--primary-rgb), 0.12);
}

.navbar.scrolled {
    background: linear-gradient(135deg, #E8F8F1 0%, #F4FBF8 100%);
    box-shadow: 0 2px 12px rgba(var(--primary-rgb), 0.08);
}

/* 语言切换器 */
.lang-switcher {
    position: relative;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: transparent;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.lang-btn:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.lang-btn i:first-child {
    font-size: 16px;
}

.lang-btn i:last-child {
    font-size: 10px;
    transition: transform 0.3s;
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 120px;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1200;
}

.lang-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown a {
    display: block;
    padding: 10px 16px;
    font-size: 14px;
    color: var(--text-secondary);
    transition: var(--transition);
}

.lang-dropdown a:hover,
.lang-dropdown a.active {
    background: var(--bg-secondary);
    color: var(--primary);
}

/* 导航链接激活状态 */
.nav-link.active {
    color: var(--primary);
    font-weight: 600;
}

/* 去掉"了解产品"按钮的边框 */
.nav-link.nav-mega-trigger,
.nav-link.nav-mega-trigger:focus,
.nav-link.nav-mega-trigger:hover,
.nav-link.nav-mega-trigger:active {
    border: none;
    outline: none;
    box-shadow: none;
}

button.nav-link.nav-mega-trigger {
    appearance: none;
    -webkit-appearance: none;
    border: 0 !important;
    background: transparent !important;
    padding: 0 !important;
    font: inherit;
}

/* ==================== 按钮增强 ==================== */
.btn-glow {
    position: relative;
    overflow: hidden;
}

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

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

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    box-shadow: 0 4px 16px rgba(var(--primary-rgb), 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 24px rgba(var(--primary-rgb), 0.4);
}

/* ==================== Hero区域增强 ==================== */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1), rgba(23, 122, 89, 0.08));
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 24px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0.2);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(var(--primary-rgb), 0);
    }
}

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

/* 数据统计增强 */
.stat-value {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==================== 卡片增强 ==================== */
.card {
    position: relative;
    overflow: hidden;
}

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

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

.card-icon {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1), rgba(23, 122, 89, 0.08));
    color: var(--primary);
}

/* 标签样式 */
.tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tag-hot {
    background: linear-gradient(135deg, #FEE2E2, #FECACA);
    color: var(--accent-red);
}

.tag-new {
    background: linear-gradient(135deg, #DCFCE7, #BBF7D0);
    color: var(--accent-green);
}

.tag-popular {
    background: linear-gradient(135deg, #FEF3C7, #FDE68A);
    color: var(--accent-orange);
}

/* ==================== 页脚增强 ==================== */
.footer-brand {
    display: flex;
    flex-direction: column;
}

/* 社交链接 */
.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.footer-col a:hover {
    transform: translateX(3px);
}

/* ==================== 模态框增强 ==================== */
.modal-content {
    position: relative;
}

.modal-header {
    text-align: center;
    margin-bottom: 24px;
}

.modal-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1), rgba(23, 122, 89, 0.08));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 24px;
    color: var(--primary);
}

.modal-icon.highlight {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.modal h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.modal-header p {
    color: var(--text-secondary);
    margin-bottom: 0;
}

.highlight-text {
    color: var(--accent-orange);
    font-weight: 700;
}

/* 表单选项 */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-secondary);
}

.checkbox-label input {
    margin-top: 3px;
}

.checkbox-label a {
    color: var(--primary);
}

.checkbox-label a:hover {
    text-decoration: underline;
}

.forgot-link {
    color: var(--primary);
    font-size: 14px;
}

.forgot-link:hover {
    text-decoration: underline;
}

/* 模态框底部 */
.modal-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
}

.modal-footer p {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0;
}

.modal-footer a {
    color: var(--primary);
    font-weight: 600;
}

.modal-footer a:hover {
    text-decoration: underline;
}

/* ==================== Section标签增强 ==================== */
.section-tag {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1), rgba(23, 122, 89, 0.08));
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    color: var(--primary);
}

/* ==================== 响应式调整 ==================== */
@media (max-width: 1024px) {
    .lang-switcher {
        display: none;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .stat-value {
        font-size: 36px;
    }
}

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

.card {
    animation: slideIn 0.5s ease-out;
}

/* 滚动显示动画 */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==================== GPU卡片特定样式 ==================== */
.gpu-card {
    position: relative;
}

.gpu-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gpu-badge.hot {
    background: linear-gradient(135deg, #FEE2E2, #FECACA);
    color: var(--accent-red);
}

.gpu-badge.new {
    background: linear-gradient(135deg, #DCFCE7, #BBF7D0);
    color: var(--accent-green);
}

.gpu-card-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1), rgba(23, 122, 89, 0.08));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary);
}

/* ==================== 价格标签 ==================== */
.price-tag {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.price-currency {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.price-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
}

.price-unit {
    font-size: 14px;
    color: var(--text-muted);
}

/* ==================== Mega menu 扁平化（去框简洁风格） ==================== */
.mega-menu-panel.nav-dropdown {
    background: #ffffff;
    border-color: rgba(148, 163, 184, 0.18);
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.08), 0 8px 16px rgba(15, 23, 42, 0.04);
}

@media (min-width: 769px) {
    .mega-menu-panel.nav-dropdown {
        min-height: 0;
    }
}

/* 去掉卡片边框和背景 */
.mega-card {
    border: none;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    overflow: visible;
}

.mega-card:hover {
    transform: none;
    box-shadow: none;
}

.mega-card--mm {
    background: transparent;
    border-color: transparent;
}

/* 简化卡片头部 */
.mega-card-head {
    border-bottom: none;
    padding: 14px 0 6px;
    gap: 10px;
}

.mega-card-ico {
    width: 22px;
    height: 22px;
    background: transparent;
    font-size: 16px;
    border-radius: 0;
    justify-content: flex-start;
}

.mega-card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

/* 去掉 pane 背景，扁平化链接 */
.mega-pane {
    background: transparent !important;
    padding: 2px 0;
    min-width: 0;
}

.mega-pane--deep,
.mega-pane--soft {
    background: transparent !important;
}

.mega-pane-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
    letter-spacing: 0;
}

.mega-zlink {
    display: block;
    padding: 4px 0;
    margin-left: 0;
    border-radius: 0;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    transition: color 0.2s;
}

.mega-zlink:hover {
    background: transparent;
    color: var(--primary);
}

.mega-link:hover {
    background: transparent;
    color: var(--primary);
}

/* 分隔线变淡 */
.mega-cards-split-rule {
    height: 1px;
    margin: 10px 0 8px;
    background: linear-gradient(90deg, transparent, rgba(148, 163, 184, 0.25), transparent);
    border: none;
}

.mega-pane-vrule {
    background: linear-gradient(180deg, transparent, rgba(148, 163, 184, 0.25), transparent);
}

/* 面板内边距调整 */
.mega-menu-inner.mega-menu-cards {
    padding: 20px 32px 28px;
}

.mega-card-body {
    padding: 6px 0 10px;
}

.mega-card-body--split {
    gap: 8px;
}

/* badge 微调 */
.mega-zbadge {
    vertical-align: 2px;
    margin-left: 6px;
    padding: 1px 6px;
    font-size: 10px;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .mega-menu-inner.mega-menu-cards {
        padding: 14px 18px 20px;
    }
    .mega-card-head {
        padding: 10px 0 4px;
    }
    .mega-card-body--split {
        grid-template-columns: 1fr;
    }
    .mega-pane-vrule {
        display: none;
    }
}
