/* ========================================
   增强版主样式 - 基于 UI/UX Pro Max 设计理念
   优化：视觉层次、微交互、动效系统
   ======================================== */

/* 增强的设计令牌 */
:root {
    --bg-primary: #08090a;
    --bg-secondary: #0f1012;
    --bg-tertiary: #16181c;
    --bg-elevated: #1c1f26;
    --border: #23252b;
    --border-hover: #2d3139;
    --text-primary: #e8e9eb;
    --text-secondary: #8b8f98;
    --text-tertiary: #6b6f78;
    --accent: #5e6ad2;
    --accent-hover: #6e7ae2;
    --accent-glow: rgba(94, 106, 210, 0.4);
    --success: #4ade80;
    --warning: #fbbf24;
    --gradient-primary: linear-gradient(135deg, #5e6ad2 0%, #8b5cf6 100%);
    --gradient-accent: linear-gradient(135deg, #06b6d4 0%, #5e6ad2 100%);
    
    /* 新增：动效变量 */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(94, 106, 210, 0.3);
}

/* ========================================
   全局增强
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* 平滑滚动 */
::selection {
    background: var(--accent);
    color: white;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
    transition: background var(--transition-fast);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-tertiary);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}


/* ========================================
   导航栏增强
   ======================================== */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(8, 9, 10, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    padding: 16px 0;
    transition: all var(--transition-base);
}

.navbar.scrolled {
    background: rgba(8, 9, 10, 0.95);
    box-shadow: var(--shadow-md);
    padding: 12px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    position: relative;
    transition: all var(--transition-fast);
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-base);
}

.logo:hover::after {
    width: 100%;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color var(--transition-fast);
    position: relative;
    padding: 4px 0;
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-base);
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

/* 移动端菜单按钮 */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px;
    font-size: 1.5rem;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-primary);
        border-top: 1px solid var(--border);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        display: none;
    }
    
    .nav-links.active {
        display: flex;
    }
}


/* ========================================
   Hero区域增强
   ======================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 20px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* 多层光效背景 */
.hero::before {
    content: '';
    position: absolute;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(94, 106, 210, 0.15) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    animation: float 8s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    bottom: -200px;
    left: -200px;
    animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1) translate(0, 0);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.1) translate(20px, -20px);
    }
}

.hero-content {
    max-width: 720px;
    position: relative;
    z-index: 2;
}

/* 渐入动画 */
.hero-content {
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.hero h1 span {
    background: linear-gradient(135deg, #5e6ad2 0%, #8b5cf6 50%, #5e6ad2 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient 3s ease infinite;
}

@keyframes gradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero .subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 560px;
    line-height: 1.8;
}

/* 按钮组增强 */
.cta-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn::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 var(--transition-slow);
}

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

.btn-primary {
    background: var(--accent);
    color: white;
    box-shadow: 0 0 20px rgba(94, 106, 210, 0.3);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(94, 106, 210, 0.5);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-elevated);
    border-color: var(--accent);
    transform: translateY(-2px);
}


/* ========================================
   产品卡片增强
   ======================================== */

.products {
    padding: 120px 0;
    background: var(--bg-secondary);
    position: relative;
    z-index: 1;
}

.section-header {
    margin-bottom: 64px;
    text-align: center;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.product-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

/* 卡片顶部光条 */
.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
}

/* 卡片光晕效果 */
.product-card::after {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(94, 106, 210, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    left: var(--mouse-x, 50%);
    top: var(--mouse-y, 50%);
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity var(--transition-base);
    pointer-events: none;
}

.product-card:hover {
    border-color: var(--accent);
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.product-card:hover::before {
    transform: scaleX(1);
}

.product-card:hover::after {
    opacity: 1;
}

.product-icon {
    width: 56px;
    height: 56px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 24px;
    box-shadow: 0 8px 16px rgba(94, 106, 210, 0.3);
    transition: transform var(--transition-base);
}

.product-card:hover .product-icon {
    transform: scale(1.1) rotate(5deg);
}

.product-card h3 {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.product-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background: var(--bg-primary);
    color: var(--text-secondary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid var(--border);
    transition: all var(--transition-fast);
}

.tag:hover {
    background: rgba(94, 106, 210, 0.15);
    border-color: var(--accent);
    color: var(--text-primary);
}


/* ========================================
   案例卡片增强
   ======================================== */

.cases {
    padding: 120px 0;
    position: relative;
    z-index: 1;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
}

.case-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all var(--transition-base);
    position: relative;
}

.case-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(94, 106, 210, 0.05) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.case-card:hover {
    border-color: var(--accent);
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

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

.case-header {
    padding: 28px;
    border-bottom: 1px solid var(--border);
    position: relative;
}

.case-industry {
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.case-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
}

.case-body {
    padding: 28px;
}

.case-body p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 24px;
}

.case-stats {
    display: flex;
    gap: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--success);
    display: block;
    margin-bottom: 4px;
}

.stat-label {
    color: var(--text-tertiary);
    font-size: 0.85rem;
    font-weight: 500;
}

/* ========================================
   联系区域增强
   ======================================== */

.contact {
    padding: 120px 0;
    background: var(--bg-secondary);
    position: relative;
    z-index: 1;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.contact-info h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.contact-info > p {
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-size: 1.05rem;
    line-height: 1.8;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 28px;
    padding: 20px;
    background: var(--bg-tertiary);
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all var(--transition-base);
}

.info-item:hover {
    border-color: var(--accent);
    transform: translateX(8px);
}

.info-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.info-content h4 {
    font-size: 0.9rem;
    color: var(--text-tertiary);
    margin-bottom: 6px;
    font-weight: 500;
}

.info-content p {
    font-size: 1.05rem;
    color: var(--text-primary);
    font-weight: 600;
}


/* ========================================
   页脚增强
   ======================================== */

footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border);
    padding: 48px 0;
    position: relative;
    z-index: 1;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color var(--transition-fast);
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width var(--transition-base);
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-links a:hover::after {
    width: 100%;
}

.footer-copyright {
    color: var(--text-tertiary);
    font-size: 0.85rem;
}

/* ========================================
   响应式增强
   ======================================== */

@media (max-width: 1024px) {
    .hero h1 {
        font-size: 3rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding-top: 60px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero .subtitle {
        font-size: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .products, .cases, .contact {
        padding: 80px 0;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .case-stats {
        flex-direction: column;
        gap: 16px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .products-grid, .cases-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   特效系统
   ======================================== */

/* 滚动显示动画 */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 脉冲动画 */
@keyframes pulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.05);
    }
}

/* 加载动画 */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.loading {
    background: linear-gradient(90deg, var(--bg-tertiary) 0%, var(--bg-elevated) 50%, var(--bg-tertiary) 100%);
    background-size: 2000px 100%;
    animation: shimmer 2s infinite;
}

/* 聚焦状态 */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* 禁用状态 */
.disabled, [disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}



/* Hero区域修复 - 确保首屏可见 */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px !important;
    position: relative;
    overflow: hidden;
    z-index: 1;
    margin-top: 0;
}

.hero-content {
    max-width: 720px;
    position: relative;
    z-index: 2;
    margin-top: -20px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

.hero .subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 560px;
    line-height: 1.8;
}

/* 全局光晕跟随效果 - 所有卡片 */
.product-card,
.case-card,
.info-item,
.news-card {
    position: relative;
    overflow: hidden;
}

.product-card::after,
.case-card::after,
.info-item::after,
.news-card::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(94, 106, 210, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    left: var(--mouse-x, 50%);
    top: var(--mouse-y, 50%);
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 0;
}

.product-card:hover::after,
.case-card:hover::after,
.info-item:hover::after,
.news-card:hover::after {
    opacity: 1;
}

/* 确保内容在光晕之上 */
.product-card > *,
.case-card > *,
.info-item > *,
.news-card > * {
    position: relative;
    z-index: 1;
}

/* ========== 文章底部调用块样式 ========== */
.article-cta {
  background: linear-gradient(135deg, rgba(0, 82, 147, 0.05), rgba(255, 159, 0, 0.05));
  border: 1px solid rgba(0, 82, 147, 0.1);
  border-radius: 16px;
  padding: 2rem;
  margin: 2rem 0;
  text-align: center;
  transition: all 0.3s ease;
}

.article-cta:hover {
  border-color: rgba(255, 159, 0, 0.3);
  box-shadow: 0 8px 32px rgba(255, 159, 0, 0.1);
}

.cta-content h3 {
  color: #005293;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.cta-content p {
  color: #666;
  margin-bottom: 1rem;
}

.cta-contact {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 1rem 0;
}

.cta-phone, .cta-wechat {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.cta-phone {
  background: #005293;
  color: white;
}

.cta-phone:hover {
  background: #003a6b;
  transform: translateY(-2px);
}

.cta-wechat {
  background: #07c160;
  color: white;
}

.cta-wechat:hover {
  background: #06ad56;
  transform: translateY(-2px);
}

.cta-regions {
  color: #999;
  font-size: 0.9rem;
  margin-top: 1rem;
}

/* 微信号复制按钮样式 */
.cta-wechat-copy {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  background: #07c160;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
}

.cta-wechat-copy:hover {
  background: #06ad56;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(7, 193, 96, 0.3);
}

.cta-wechat-copy:active {
  transform: translateY(0);
}
