/* ========================================
   SurfStereo 网站建设公司 - 全局样式
   民族风：藏红 + 藏蓝 + 明黄
   斜切分区固定布局
======================================== */

:root {
    --tibetan-red: #8B1538;
    --tibetan-blue: #1A3A5C;
    --bright-yellow: #FFD700;
    --cream: #FFF8E7;
    --dark-bg: #0D1B2A;
    --text-primary: #1A1A1A;
    --text-secondary: #4A4A4A;
    --white: #FFFFFF;
}

* {
    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: var(--cream);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========================================
   左侧固定导航
======================================== */
.sidebar-nav {
    position: fixed;
    left: 0;
    top: 0;
    width: 280px;
    height: 100vh;
    background: linear-gradient(135deg, var(--tibetan-blue) 0%, var(--dark-bg) 100%);
    z-index: 1000;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    clip-path: polygon(0 0, 100% 0, 85% 50%, 100% 100%, 0 100%);
}

.nav-logo {
    text-align: center;
    margin-bottom: 40px;
}

.nav-logo img {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    border-radius: 50%;
    border: 3px solid var(--bright-yellow);
}

.nav-logo h1 {
    color: var(--bright-yellow);
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 2px;
}

.nav-logo p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    margin-top: 5px;
}

.nav-menu {
    flex: 1;
}

.nav-menu li {
    margin: 15px 0;
}

.nav-menu a {
    display: block;
    color: var(--white);
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 16px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: var(--bright-yellow);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: rgba(255, 215, 0, 0.1);
    color: var(--bright-yellow);
    padding-left: 25px;
}

.nav-menu a:hover::before,
.nav-menu a.active::before {
    transform: scaleY(1);
}

.nav-contact {
    color: var(--white);
    font-size: 14px;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-contact p {
    margin: 8px 0;
}

/* 移动端汉堡菜单 */
.hamburger {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    width: 50px;
    height: 50px;
    background: var(--tibetan-blue);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--bright-yellow);
    margin: 8px auto;
    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-left: 280px;
    min-height: 100vh;
}

/* ========================================
   斜切区块通用样式
======================================== */
.skew-section {
    padding: 80px 60px;
    position: relative;
    overflow: hidden;
}

.skew-section:nth-child(odd) {
    background: var(--white);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.skew-section:nth-child(even) {
    background: linear-gradient(135deg, var(--cream) 0%, #FFE4B5 100%);
    clip-path: polygon(2% 0, 100% 0, 100% 100%, 0 100%);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 42px;
    color: var(--tibetan-blue);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--tibetan-red), var(--bright-yellow));
    border-radius: 2px;
}

.section-title p {
    color: var(--text-secondary);
    font-size: 18px;
    margin-top: 20px;
}

/* ========================================
   Hero Banner
======================================== */
.hero-banner {
    height: 100vh;
    background: linear-gradient(135deg, var(--tibetan-blue) 0%, var(--tibetan-red) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.hero-content {
    text-align: center;
    color: var(--white);
    z-index: 2;
}

.hero-content h1 {
    font-size: 64px;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.hero-content p {
    font-size: 24px;
    margin-bottom: 40px;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.3s both;
}

.hero-btn {
    display: inline-block;
    padding: 18px 50px;
    background: var(--bright-yellow);
    color: var(--tibetan-blue);
    font-size: 18px;
    font-weight: bold;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4);
    animation: fadeInUp 1s ease 0.6s both;
}

.hero-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.6);
}

/* ========================================
   卡片样式
======================================== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.service-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    position: relative;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--tibetan-red), var(--bright-yellow));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.card-content {
    padding: 25px;
}

.card-content h3 {
    color: var(--tibetan-blue);
    font-size: 22px;
    margin-bottom: 12px;
}

.card-content p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 15px;
}

.card-link {
    display: inline-block;
    color: var(--tibetan-red);
    font-weight: bold;
    font-size: 16px;
}

.card-link:hover {
    color: var(--tibetan-blue);
}

/* ========================================
   资讯列表样式
======================================== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.news-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.news-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.news-content {
    padding: 20px;
}

.news-content h4 {
    color: var(--tibetan-blue);
    font-size: 18px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-content p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #999;
}

.news-date {
    color: var(--tibetan-red);
}

/* ========================================
   页脚样式
======================================== */
.site-footer {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--tibetan-blue) 100%);
    color: var(--white);
    padding: 60px 60px 30px;
    clip-path: polygon(0 15%, 100% 0, 100% 100%, 0 100%);
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: var(--bright-yellow);
    font-size: 20px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--tibetan-red);
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
    line-height: 2;
}

.footer-section a:hover {
    color: var(--bright-yellow);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

/* ========================================
   动画效果
======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.scroll-animate {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.scroll-animate.show {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   响应式设计
======================================== */
@media (max-width: 1024px) {
    .sidebar-nav {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        clip-path: none;
        width: 300px;
    }

    .sidebar-nav.active {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .hamburger {
        display: block;
    }

    .skew-section {
        padding: 60px 30px;
    }

    .hero-content h1 {
        font-size: 42px;
    }

    .hero-content p {
        font-size: 18px;
    }

    .section-title h2 {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .skew-section {
        padding: 40px 20px;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .hero-banner {
        clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
    }

    .site-footer {
        padding: 40px 20px 20px;
        clip-path: polygon(0 10%, 100% 0, 100% 100%, 0 100%);
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 32px;
    }

    .hero-btn {
        padding: 15px 35px;
        font-size: 16px;
    }

    .section-title h2 {
        font-size: 26px;
    }

    .nav-logo h1 {
        font-size: 20px;
    }
}
