/* ========================================
   尧图网站设计 - 全局样式表
   数码科技风：银灰 + 深黑 + 浅蓝
   ======================================== */

/* CSS Reset & 基础设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', 'Microsoft YaHei', 'PingFang SC', sans-serif;
    background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #16213e 100%);
    color: #e0e0e0;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a2e;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #4a9eff, #0a84ff);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #5aafff, #1a94ff);
}

/* ========================================
   右侧垂直导航栏
   ======================================== */
.sidebar-nav {
    position: fixed;
    right: 0;
    top: 0;
    width: 80px;
    height: 100vh;
    background: linear-gradient(180deg, rgba(10, 10, 15, 0.95) 0%, rgba(26, 26, 46, 0.95) 100%);
    backdrop-filter: blur(10px);
    border-left: 1px solid rgba(74, 158, 255, 0.2);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    transition: all 0.3s ease;
}

.sidebar-nav:hover {
    width: 200px;
    background: linear-gradient(180deg, rgba(10, 10, 15, 0.98) 0%, rgba(26, 26, 46, 0.98) 100%);
}

.nav-logo {
    width: 50px;
    height: 50px;
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.1);
}

.nav-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav-menu {
    flex: 1;
    overflow-y: auto;
    width: 100%;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    margin: 5px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
}

.nav-item:hover,
.nav-item.active {
    background: linear-gradient(90deg, rgba(74, 158, 255, 0.2), transparent);
    border-left: 3px solid #4a9eff;
}

.nav-icon {
    font-size: 20px;
    min-width: 50px;
    text-align: center;
    color: #4a9eff;
}

.nav-text {
    margin-left: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.sidebar-nav:hover .nav-text {
    opacity: 1;
}

.nav-footer {
    padding: 20px 0;
    border-top: 1px solid rgba(74, 158, 255, 0.2);
    width: 100%;
    text-align: center;
}

.nav-social {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.social-icon {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(74, 158, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4a9eff;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: #4a9eff;
    color: #fff;
    transform: translateY(-3px);
}

/* 移动端汉堡菜单 */
.hamburger {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #4a9eff, #0a84ff);
    border-radius: 12px;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 4px 15px rgba(74, 158, 255, 0.4);
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #fff;
    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-content {
    margin-right: 80px;
    min-height: 100vh;
    padding: 40px;
    transition: margin-right 0.3s ease;
}

/* ========================================
   通用组件样式
   ======================================== */

/* 卡片样式 */
.card {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.8), rgba(22, 33, 62, 0.8));
    border: 1px solid rgba(74, 158, 255, 0.15);
    border-radius: 16px;
    padding: 25px;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    overflow: hidden;
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4a9eff, #00d4ff, #4a9eff);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(74, 158, 255, 0.15);
    border-color: rgba(74, 158, 255, 0.4);
}

.card:hover::before {
    opacity: 1;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #4a9eff, #0a84ff);
    color: #fff;
    box-shadow: 0 4px 15px rgba(74, 158, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(74, 158, 255, 0.5);
}

.btn-outline {
    background: transparent;
    border: 2px solid #4a9eff;
    color: #4a9eff;
}

.btn-outline:hover {
    background: #4a9eff;
    color: #fff;
}

/* 标题样式 */
.section-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #4a9eff, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.section-subtitle {
    font-size: 16px;
    color: #8892b0;
    margin-bottom: 40px;
    max-width: 600px;
}

/* ========================================
   首页 Banner
   ======================================== */
.hero-banner {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 60px 40px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/banner-bg.jpg') center/cover no-repeat;
    opacity: 0.15;
    z-index: -1;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    z-index: 1;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 25px;
    line-height: 1.2;
    background: linear-gradient(135deg, #fff 0%, #4a9eff 50%, #00d4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease;
}

.hero-description {
    font-size: 20px;
    color: #a0aec0;
    margin-bottom: 40px;
    line-height: 1.8;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    animation: fadeInUp 1s ease 0.4s both;
}

/* ========================================
   动画效果
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.scroll-animate.show {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   网格布局
   ======================================== */
.grid-container {
    display: grid;
    gap: 30px;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* ========================================
   页脚样式
   ======================================== */
.site-footer {
    background: linear-gradient(180deg, rgba(10, 10, 15, 0.9), rgba(26, 26, 46, 0.9));
    border-top: 1px solid rgba(74, 158, 255, 0.2);
    padding: 60px 40px 30px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-section h4 {
    font-size: 18px;
    color: #4a9eff;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-section p,
.footer-section a {
    color: #8892b0;
    font-size: 14px;
    line-height: 2;
    display: block;
}

.footer-section a:hover {
    color: #4a9eff;
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    margin-top: 40px;
    border-top: 1px solid rgba(74, 158, 255, 0.1);
    color: #5a6a8a;
    font-size: 14px;
}

/* ========================================
   响应式设计
   ======================================== */
@media (max-width: 1200px) {
    .grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-title {
        font-size: 42px;
    }
}

@media (max-width: 768px) {
    .sidebar-nav {
        transform: translateX(100%);
    }
    
    .sidebar-nav.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-right: 0;
        padding: 20px;
        padding-top: 80px;
    }
    
    .hamburger {
        display: flex;
    }
    
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 28px;
    }
}

/* ========================================
   资讯列表样式
   ======================================== */
.news-section {
    padding: 60px 0;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.news-card {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.8), rgba(22, 33, 62, 0.8));
    border: 1px solid rgba(74, 158, 255, 0.15);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(74, 158, 255, 0.15);
    border-color: rgba(74, 158, 255, 0.4);
}

.news-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-content {
    padding: 25px;
}

.news-title {
    font-size: 18px;
    font-weight: 600;
    color: #e0e0e0;
    margin-bottom: 12px;
    line-height: 1.4;
}

.news-title a:hover {
    color: #4a9eff;
}

.news-excerpt {
    font-size: 14px;
    color: #8892b0;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #5a6a8a;
}

.news-date {
    display: flex;
    align-items: center;
    gap: 8px;
}

.news-category {
    background: rgba(74, 158, 255, 0.1);
    color: #4a9eff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
}

/* 资讯分类标签 */
.news-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.news-tab {
    padding: 10px 25px;
    border-radius: 25px;
    background: rgba(26, 26, 46, 0.8);
    border: 1px solid rgba(74, 158, 255, 0.2);
    color: #8892b0;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.news-tab:hover,
.news-tab.active {
    background: linear-gradient(135deg, #4a9eff, #0a84ff);
    color: #fff;
    border-color: transparent;
}

/* 资讯详情页面 */
.article-detail {
    max-width: 900px;
    margin: 0 auto;
}

.article-header {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(74, 158, 255, 0.2);
}

.article-title {
    font-size: 36px;
    font-weight: 700;
    color: #e0e0e0;
    margin-bottom: 20px;
    line-height: 1.3;
}

.article-meta {
    display: flex;
    gap: 30px;
    color: #8892b0;
    font-size: 14px;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-cover {
    width: 100%;
    height: 450px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 40px;
}

.article-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-body {
    font-size: 16px;
    line-height: 1.8;
    color: #c0c0c0;
}

.article-body p {
    margin-bottom: 20px;
}

.article-body img {
    max-width: 100%;
    border-radius: 12px;
    margin: 20px 0;
}

.article-body h2 {
    font-size: 24px;
    color: #4a9eff;
    margin: 30px 0 15px;
}

.article-body h3 {
    font-size: 20px;
    color: #5aafff;
    margin: 25px 0 12px;
}

.article-body ul,
.article-body ol {
    margin: 15px 0;
    padding-left: 25px;
}

.article-body li {
    margin-bottom: 10px;
}

/* 相关文章 */
.related-articles {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(74, 158, 255, 0.2);
}

.related-title {
    font-size: 24px;
    color: #e0e0e0;
    margin-bottom: 30px;
}

/* ========================================
   服务卡片样式
   ======================================== */
.service-card {
    text-align: center;
    padding: 40px 30px;
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, rgba(74, 158, 255, 0.1), rgba(0, 212, 255, 0.1));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #4a9eff;
    transition: all 0.4s ease;
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, #4a9eff, #0a84ff);
    color: #fff;
    transform: rotateY(360deg);
}

.service-title {
    font-size: 20px;
    font-weight: 600;
    color: #e0e0e0;
    margin-bottom: 15px;
}

.service-desc {
    font-size: 14px;
    color: #8892b0;
    line-height: 1.6;
}

/* ========================================
   案例展示样式
   ======================================== */
.case-card {
    overflow: hidden;
    padding: 0;
}

.case-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
    position: relative;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.case-card:hover .case-image img {
    transform: scale(1.15);
}

.case-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(transparent, rgba(10, 10, 15, 0.95));
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.case-card:hover .case-overlay {
    transform: translateY(0);
}

.case-category {
    font-size: 12px;
    color: #4a9eff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.case-title {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 10px;
}

.case-client {
    font-size: 14px;
    color: #a0aec0;
}

/* ========================================
   关于我们页面
   ======================================== */
.about-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.about-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(74, 158, 255, 0.2);
}

.about-content h2 {
    font-size: 42px;
    margin-bottom: 25px;
    background: linear-gradient(135deg, #4a9eff, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-content p {
    font-size: 16px;
    color: #a0aec0;
    line-height: 1.8;
    margin-bottom: 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.stat-card {
    text-align: center;
    padding: 30px;
    background: rgba(26, 26, 46, 0.5);
    border-radius: 16px;
    border: 1px solid rgba(74, 158, 255, 0.1);
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, #4a9eff, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 14px;
    color: #8892b0;
}

/* ========================================
   联系表单
   ======================================== */
.contact-form {
    max-width: 700px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: #e0e0e0;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 15px 20px;
    background: rgba(26, 26, 46, 0.8);
    border: 1px solid rgba(74, 158, 255, 0.2);
    border-radius: 10px;
    color: #e0e0e0;
    font-size: 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #4a9eff;
    box-shadow: 0 0 0 3px rgba(74, 158, 255, 0.1);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* ========================================
   面包屑导航
   ======================================== */
.breadcrumb {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 30px;
    font-size: 14px;
    color: #8892b0;
}

.breadcrumb a {
    color: #4a9eff;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #00d4ff;
}

.breadcrumb span {
    color: #5a6a8a;
}
