/* ========================================
   北京尧图网络科技有限公司 - 全局样式
   数码复古风 | 银灰 + 深黑 + 浅棕
   ======================================== */

/* CSS Reset & 基础设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    background-color: #1a1a1a;
    color: #c9c9c9;
    line-height: 1.6;
    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;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #2a2a2a;
}

::-webkit-scrollbar-thumb {
    background: #8b7355;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a0826d;
}

/* ========================================
   顶部导航栏
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #3a3a3a;
    transition: all 0.4s ease;
}

.header.scrolled {
    background: rgba(10, 10, 10, 0.98);
    border-bottom-color: #8b7355;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    height: 50px;
    width: auto;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: #e0e0e0;
    letter-spacing: 2px;
}

.logo-text span {
    color: #8b7355;
}

.nav-menu {
    display: flex;
    gap: 35px;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    font-size: 15px;
    font-weight: 500;
    color: #c9c9c9;
    padding: 10px 0;
    position: relative;
    letter-spacing: 1px;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #8b7355;
    transition: width 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #e0e0e0;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #c9c9c9;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ========================================
   页脚
   ======================================== */
.footer {
    background: #0f0f0f;
    border-top: 2px solid #8b7355;
    padding: 60px 0 30px;
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 50px;
}

.footer-section h3 {
    font-size: 18px;
    color: #e0e0e0;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: #8b7355;
}

.footer-section p {
    font-size: 14px;
    color: #999;
    line-height: 1.8;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    font-size: 14px;
    color: #999;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #8b7355;
    padding-left: 8px;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #999;
}

.contact-icon {
    width: 35px;
    height: 35px;
    background: #2a2a2a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8b7355;
    font-size: 16px;
}

.footer-bottom {
    border-top: 1px solid #2a2a2a;
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    font-size: 13px;
    color: #666;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: #2a2a2a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 18px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #8b7355;
    color: #fff;
    transform: translateY(-3px);
}

/* ========================================
   通用组件
   ======================================== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    color: #e0e0e0;
    margin-bottom: 15px;
    letter-spacing: 3px;
}

.section-subtitle {
    font-size: 16px;
    color: #8b7355;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.section-desc {
    font-size: 15px;
    color: #999;
    max-width: 600px;
    margin: 20px auto 0;
    line-height: 1.8;
}

.btn {
    display: inline-block;
    padding: 14px 35px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 3px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: #8b7355;
    color: #fff;
    border: 2px solid #8b7355;
}

.btn-primary:hover {
    background: transparent;
    color: #8b7355;
}

.btn-outline {
    background: transparent;
    color: #8b7355;
    border: 2px solid #8b7355;
}

.btn-outline:hover {
    background: #8b7355;
    color: #fff;
}

/* ========================================
   动画效果
   ======================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ========================================
   响应式设计
   ======================================== */
@media (max-width: 1200px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .header-inner {
        padding: 0 25px;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: #1a1a1a;
        flex-direction: column;
        padding: 40px;
        gap: 20px;
        transition: left 0.4s ease;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .container,
    .footer-inner {
        padding: 0 25px;
    }
    
    .section-title {
        font-size: 36px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .section-subtitle {
        font-size: 14px;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 14px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .logo-text {
        font-size: 18px;
    }
    
    .logo img {
        height: 40px;
    }
    
    .section-title {
        font-size: 24px;
    }
}
