/* ========================================
   尧图网络科技 - 全局样式
   深色科技风 + 霓虹蓝绿渐变 + 玻璃拟态
   ======================================== */

:root {
    --bg-dark: #0a0e1a;
    --bg-card: rgba(20, 30, 50, 0.6);
    --neon-blue: #00f0ff;
    --neon-green: #00ff88;
    --gradient-primary: linear-gradient(135deg, #00f0ff 0%, #00ff88 100%);
    --gradient-secondary: linear-gradient(135deg, #0088ff 0%, #00ffcc 100%);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.4);
    --border-glass: rgba(255, 255, 255, 0.1);
    --shadow-glow: 0 0 30px rgba(0, 240, 255, 0.3);
    --shadow-card: 0 10px 40px rgba(0, 0, 0, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* 背景装饰 */
.bg-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.bg-decoration::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.1) 0%, transparent 70%);
    animation: float 15s ease-in-out infinite;
}

.bg-decoration::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.08) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(30px, -30px) rotate(5deg); }
    50% { transform: translate(-20px, 20px) rotate(-5deg); }
    75% { transform: translate(20px, 10px) rotate(3deg); }
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.navbar.scrolled {
    background: rgba(10, 14, 26, 0.95);
    padding: 15px 50px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid var(--border-glass);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.navbar-logo {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 24px;
    color: var(--bg-dark);
    box-shadow: var(--shadow-glow);
}

.navbar-title {
    font-size: 20px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 35px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    position: relative;
    padding: 8px 0;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--neon-blue);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* 主容器 */
.main-container {
    padding-top: 100px;
    min-height: calc(100vh - 200px);
}

/* 浮动卡片布局 */
.floating-section {
    padding: 80px 50px;
    position: relative;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 35px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.glass-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-glow), var(--shadow-card);
    border-color: rgba(0, 240, 255, 0.3);
}

.glass-card:hover::before {
    transform: scaleX(1);
}

.card-icon {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 25px;
    box-shadow: var(--shadow-glow);
}

.card-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.card-desc {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.8;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 50px 80px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 900px;
    text-align: center;
    z-index: 10;
}

.hero-badge {
    display: inline-block;
    padding: 10px 25px;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid var(--neon-blue);
    border-radius: 50px;
    font-size: 14px;
    color: var(--neon-blue);
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease;
}

.hero-title {
    font-size: clamp(40px, 5vw, 72px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 25px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-subtitle {
    font-size: clamp(18px, 2vw, 24px);
    color: var(--text-secondary);
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.btn {
    padding: 16px 40px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--bg-dark);
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(0, 240, 255, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-glass);
}

.btn-outline:hover {
    border-color: var(--neon-blue);
    background: rgba(0, 240, 255, 0.1);
}

/* 页脚 */
.footer {
    background: rgba(10, 14, 26, 0.8);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-glass);
    padding: 60px 50px 30px;
    margin-top: 100px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer-brand .navbar-logo {
    margin-bottom: 20px;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.8;
}

.footer-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 25px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--neon-blue);
}

.footer-contact p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 30px;
    border-top: 1px solid var(--border-glass);
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

/* 动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 响应式 */
@media (max-width: 992px) {
    .navbar {
        padding: 15px 30px;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: rgba(10, 14, 26, 0.98);
        flex-direction: column;
        padding: 30px;
        gap: 20px;
        transform: translateY(-150%);
        opacity: 0;
        transition: all 0.4s ease;
        border-bottom: 1px solid var(--border-glass);
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
    }
    
    .hamburger {
        display: flex;
    }
    
    .floating-section {
        padding: 60px 30px;
    }
    
    .hero-section {
        padding: 100px 30px 60px;
    }
}

@media (max-width: 768px) {
    .card-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

/* 页面特定样式 */
.page-header {
    padding: 150px 50px 80px;
    text-align: center;
    position: relative;
}

.page-title {
    font-size: clamp(36px, 4vw, 56px);
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.page-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

/* 新闻列表样式 */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.news-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-glow);
    border-color: rgba(0, 240, 255, 0.3);
}

.news-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.news-content {
    padding: 25px;
}

.news-date {
    font-size: 13px;
    color: var(--neon-blue);
    margin-bottom: 10px;
}

.news-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.4;
}

.news-excerpt {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--neon-green);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    margin-top: 15px;
    transition: gap 0.3s ease;
}

.news-link:hover {
    gap: 15px;
}

/* 新闻详情样式 */
.article-header {
    padding: 150px 50px 50px;
    max-width: 900px;
    margin: 0 auto;
}

.article-title {
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 20px;
    line-height: 1.3;
}

.article-meta {
    display: flex;
    gap: 30px;
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 40px;
}

.article-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
    margin-bottom: 40px;
}

.article-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 50px 80px;
    font-size: 17px;
    line-height: 1.9;
    color: var(--text-secondary);
}

.article-content img {
    max-width: 100%;
    border-radius: 15px;
    margin: 30px 0;
}

.related-news {
    padding: 80px 50px;
    background: rgba(20, 30, 50, 0.3);
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 特色服务区块 */
.feature-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-item {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 40px;
    display: flex;
    gap: 25px;
    align-items: flex-start;
    transition: all 0.4s ease;
}

.feature-item:hover {
    transform: translateX(10px);
    border-color: rgba(0, 240, 255, 0.3);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}

.feature-text h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-text p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .feature-section {
        grid-template-columns: 1fr;
    }
    
    .feature-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}
