/* ========================================
   北京尧图科技网络科技有限公司 - 高端企业官网样式
   金融复古风：金棕 + 深蓝 + 浅灰
   对角线非对称布局
======================================== */

/* CSS Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Georgia", "Times New Roman", serif;
    line-height: 1.8;
    color: #2c3e50;
    background-color: #f8f9fa;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Color Variables */
:root {
    --gold-brown: #8B6F47;
    --deep-blue: #1A2840;
    --light-gray: #F5F5F5;
    --cream: #FDF8F3;
    --dark-text: #2C2C2C;
    --border-color: #D4C4B0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: "Playfair Display", Georgia, serif;
    font-weight: 700;
    line-height: 1.3;
    color: var(--deep-blue);
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.8rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }

p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ========================================
   Navigation - 顶部固定导航
======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    transition: all 0.4s ease;
    padding: 25px 0;
}

.navbar.scrolled {
    background: rgba(26, 40, 64, 0.98);
    padding: 15px 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    height: 50px;
    width: auto;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--cream);
    letter-spacing: 2px;
}

.nav-menu {
    display: flex;
    gap: 35px;
}

.nav-link {
    color: var(--cream);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 1px;
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold-brown);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--gold-brown);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--cream);
    transition: all 0.3s ease;
}

/* Mobile Menu */
@media (max-width: 992px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: var(--deep-blue);
        flex-direction: column;
        padding: 100px 40px;
        transition: right 0.4s ease;
        box-shadow: -5px 0 20px rgba(0,0,0,0.2);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        font-size: 1.1rem;
    }
}

/* ========================================
   Hero Section - 对角线布局
======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, var(--deep-blue) 0%, var(--deep-blue) 50%, var(--cream) 50%, var(--cream) 100%);
    padding-top: 80px;
    overflow: hidden;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-content {
    padding: 60px;
    animation: fadeInLeft 1s ease;
}

.hero-title {
    font-size: 3.5rem;
    color: var(--cream);
    margin-bottom: 25px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: rgba(253, 248, 243, 0.9);
    margin-bottom: 35px;
    font-weight: 300;
}

.hero-btn {
    display: inline-block;
    padding: 18px 45px;
    background: var(--gold-brown);
    color: var(--cream);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
    border: 2px solid var(--gold-brown);
    transition: all 0.3s ease;
}

.hero-btn:hover {
    background: transparent;
    color: var(--gold-brown);
}

.hero-image {
    position: relative;
    animation: fadeInRight 1s ease;
}

.hero-image img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    border-radius: 5px;
    box-shadow: 20px 20px 60px rgba(0,0,0,0.3);
}

/* Diagonal分割线 */
.diagonal-line {
    position: absolute;
    top: 0;
    left: 50%;
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, var(--gold-brown), var(--deep-blue));
    transform: skewX(-15deg);
}

/* Animations */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ========================================
   Section Styles
======================================== */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 70px;
}

.section-title {
    font-size: 2.8rem;
    color: var(--deep-blue);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--gold-brown);
}

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

/* ========================================
   Services Grid - 对角线错位
======================================== */
.services-section {
    background: var(--cream);
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.service-card {
    background: #fff;
    padding: 50px 35px;
    border: 1px solid var(--border-color);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card:nth-child(odd) {
    transform: translateY(-30px);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    border-color: var(--gold-brown);
}

.service-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 25px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--deep-blue);
}

.service-card p {
    color: #666;
    font-size: 1rem;
    line-height: 1.7;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--gold-brown);
    font-weight: 600;
    margin-top: 20px;
}

.service-link:hover {
    gap: 15px;
}

/* ========================================
   About Section
======================================== */
.about-section {
    background: var(--deep-blue);
    color: var(--cream);
}

.about-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-content h2 {
    color: var(--cream);
    margin-bottom: 30px;
}

.about-content p {
    color: rgba(253, 248, 243, 0.9);
    margin-bottom: 25px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
    padding: 30px;
    background: rgba(139, 111, 71, 0.2);
    border: 1px solid var(--gold-brown);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--gold-brown);
    display: block;
}

.stat-label {
    font-size: 1rem;
    color: var(--cream);
    margin-top: 10px;
}

.about-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border: 3px solid var(--gold-brown);
}

/* ========================================
   Cases Section
======================================== */
.cases-section {
    background: var(--light-gray);
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.case-card {
    background: #fff;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.4s ease;
}

.case-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.case-image {
    height: 280px;
    overflow: hidden;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.case-card:hover .case-image img {
    transform: scale(1.1);
}

.case-content {
    padding: 30px;
}

.case-content h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.case-content p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.case-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.case-tag {
    padding: 5px 15px;
    background: var(--light-gray);
    color: var(--deep-blue);
    font-size: 0.85rem;
    border-radius: 3px;
}

/* ========================================
   News Section
======================================== */
.news-section {
    background: #fff;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.news-card {
    background: var(--light-gray);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.news-image {
    height: 200px;
    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.08);
}

.news-content {
    padding: 25px;
}

.news-date {
    font-size: 0.85rem;
    color: var(--gold-brown);
    margin-bottom: 10px;
    display: block;
}

.news-content h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
    line-height: 1.5;
}

.news-excerpt {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========================================
   Footer
======================================== */
.footer {
    background: var(--deep-blue);
    color: var(--cream);
    padding: 80px 0 40px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo {
    margin-bottom: 25px;
}

.footer-logo img {
    height: 50px;
    margin-bottom: 20px;
}

.footer-about p {
    color: rgba(253, 248, 243, 0.8);
    line-height: 1.8;
    font-size: 0.95rem;
}

.footer-title {
    color: var(--gold-brown);
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--gold-brown);
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: rgba(253, 248, 243, 0.8);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--gold-brown);
    padding-left: 8px;
}

.footer-contact p {
    color: rgba(253, 248, 243, 0.8);
    font-size: 0.95rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-bottom {
    border-top: 1px solid rgba(253, 248, 243, 0.1);
    padding-top: 30px;
    text-align: center;
}

.footer-copyright {
    color: rgba(253, 248, 243, 0.6);
    font-size: 0.9rem;
}

/* ========================================
   Page Header (Internal Pages)
======================================== */
.page-header {
    background: linear-gradient(135deg, var(--deep-blue) 0%, #2c3e50 100%);
    padding: 180px 0 100px;
    text-align: center;
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/bg-pattern.png') repeat;
    opacity: 0.05;
}

.page-title {
    font-size: 3.5rem;
    color: var(--cream);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.page-subtitle {
    font-size: 1.3rem;
    color: rgba(253, 248, 243, 0.8);
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
    position: relative;
    z-index: 1;
}

.breadcrumb a {
    color: rgba(253, 248, 243, 0.7);
    font-size: 0.95rem;
}

.breadcrumb a:hover {
    color: var(--gold-brown);
}

.breadcrumb span {
    color: rgba(253, 248, 243, 0.5);
}

/* ========================================
   Content Sections (Internal Pages)
======================================== */
.content-section {
    padding: 80px 0;
}

.content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 60px;
}

.content-grid.reverse {
    direction: rtl;
}

.content-grid.reverse > * {
    direction: ltr;
}

.content-text h2 {
    font-size: 2.2rem;
    margin-bottom: 25px;
}

.content-text p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 20px;
}

.content-image img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border: 2px solid var(--border-color);
    box-shadow: 15px 15px 40px rgba(0,0,0,0.1);
}

/* ========================================
   List Pages (News, Cases, etc.)
======================================== */
.list-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.list-card {
    background: #fff;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s ease;
}

.list-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.list-image {
    height: 240px;
    overflow: hidden;
}

.list-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.list-card:hover .list-image img {
    transform: scale(1.1);
}

.list-content {
    padding: 30px;
}

.list-content h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.list-content p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.list-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.list-date {
    color: var(--gold-brown);
    font-size: 0.9rem;
}

.list-more {
    color: var(--deep-blue);
    font-weight: 600;
    font-size: 0.9rem;
}

/* ========================================
   Detail Page
======================================== */
.detail-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 40px;
}

.detail-header {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 40px;
    border-bottom: 2px solid var(--border-color);
}

.detail-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--deep-blue);
}

.detail-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    color: #666;
    font-size: 0.95rem;
}

.detail-image {
    width: 100%;
    height: 500px;
    margin-bottom: 40px;
    overflow: hidden;
}

.detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-content {
    font-size: 1.1rem;
    line-height: 2;
    color: #333;
}

.detail-content p {
    margin-bottom: 25px;
}

.detail-content img {
    margin: 30px 0;
    max-width: 100%;
}

/* Related News */
.related-news {
    margin-top: 80px;
    padding-top: 60px;
    border-top: 2px solid var(--border-color);
}

.related-title {
    font-size: 1.8rem;
    margin-bottom: 40px;
    text-align: center;
}

/* ========================================
   Responsive Design
======================================== */
@media (max-width: 1200px) {
    .services-grid,
    .cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    
    .hero-container,
    .about-container,
    .content-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero {
        background: var(--deep-blue);
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .diagonal-line {
        display: none;
    }
    
    .service-card:nth-child(odd) {
        transform: none;
    }
    
    .services-grid,
    .cases-grid,
    .news-grid,
    .list-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .container,
    .nav-container {
        padding: 0 20px;
    }
    
    .page-title {
        font-size: 2.5rem;
    }
}

/* Scroll Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
