/* ========================================
   深圳网站建设 - 全局样式表
   设计风格：轻奢商务高级灰 + 哑光金点缀
   布局特点：斜切非对称分区布局
   ======================================== */

/* CSS Reset & 基础设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    line-height: 1.7;
    color: #333;
    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;
}

/* 容器 */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
}

/* ========================================
   导航栏样式
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    transition: all 0.4s ease;
    padding: 25px 0;
}

.header.scrolled {
    background: rgba(26, 28, 35, 0.98);
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 2px;
}

.logo span {
    color: #d4af37;
}

.nav-menu {
    display: flex;
    gap: 45px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-size: 15px;
    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: linear-gradient(90deg, #d4af37, #f4e4b6);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: #d4af37;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 28px;
    height: 2px;
    background: #fff;
    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);
}

/* 移动端导航 */
@media (max-width: 992px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: rgba(26, 28, 35, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transition: right 0.4s ease;
    }

    .nav-menu.active {
        right: 0;
    }

    .hamburger {
        display: flex;
        z-index: 1001;
    }
}

/* ========================================
   英雄区 - 斜切设计
   ======================================== */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #1a1c23 0%, #2d3040 50%, #1a1c23 100%);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(212,175,55,0.03)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-text {
    color: #fff;
}

.hero-badge {
    display: inline-block;
    padding: 10px 25px;
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 50px;
    color: #d4af37;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 25px;
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 25px;
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.hero-title span {
    background: linear-gradient(135deg, #d4af37, #f4e4b6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    animation: fadeInUp 0.8s ease 0.6s forwards;
    opacity: 0;
}

.btn {
    padding: 16px 40px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-primary {
    background: linear-gradient(135deg, #d4af37, #c9a227);
    color: #1a1c23;
    border: none;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    border-color: #d4af37;
    color: #d4af37;
}

.hero-visual {
    position: relative;
    animation: fadeInRight 1s ease 0.5s forwards;
    opacity: 0;
}

.hero-shape {
    width: 100%;
    height: 500px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(212, 175, 55, 0.05));
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 30px;
    position: relative;
    overflow: hidden;
}

.hero-shape::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }

    .hero-title {
        font-size: 42px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero {
        clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
    }
}

/* ========================================
   通用区块样式
   ======================================== */
.section {
    padding: 120px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 70px;
}

.section-tag {
    display: inline-block;
    padding: 8px 25px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 50px;
    color: #d4af37;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    color: #1a1c23;
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 18px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   服务板块 - 斜切卡片
   ======================================== */
.services {
    background: #fff;
    clip-path: polygon(0 5%, 100% 0, 100% 95%, 0 100%);
    margin-top: -50px;
    padding-top: 150px;
    padding-bottom: 150px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.service-card {
    background: #f8f9fa;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #d4af37, #f4e4b6);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(212, 175, 55, 0.05));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
}

.service-card h3 {
    font-size: 20px;
    color: #1a1c23;
    margin-bottom: 15px;
}

.service-card p {
    color: #666;
    font-size: 15px;
    line-height: 1.7;
}

@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .services {
        clip-path: polygon(0 2%, 100% 0, 100% 98%, 0 100%);
    }
}

/* ========================================
   关于我们 - 不对称布局
   ======================================== */
.about {
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.about-image {
    position: relative;
}

.about-img-wrapper {
    width: 100%;
    height: 500px;
    background: linear-gradient(135deg, #d4af37, #c9a227);
    border-radius: 30px;
    overflow: hidden;
    position: relative;
}

.about-img-placeholder {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
}

.about-stats {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background: #fff;
    padding: 30px 40px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 42px;
    font-weight: 700;
    color: #d4af37;
    display: block;
}

.stat-label {
    font-size: 14px;
    color: #666;
}

.about-text h2 {
    font-size: 42px;
    color: #1a1c23;
    margin-bottom: 25px;
}

.about-text .highlight {
    color: #d4af37;
}

.about-text p {
    color: #666;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 30px;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 15px;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d4af37;
    font-size: 20px;
}

.feature-text {
    font-size: 16px;
    color: #333;
    font-weight: 600;
}

@media (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .about-stats {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: 30px;
    }
}

/* ========================================
   案例展示
   ======================================== */
.cases {
    background: #1a1c23;
}

.cases .section-title,
.cases .section-subtitle {
    color: #fff;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.case-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}

.case-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2d3040, #1a1c23);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 18px;
    transition: transform 0.4s ease;
}

.case-card:hover .case-image {
    transform: scale(1.05);
}

.case-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.case-card:hover .case-overlay {
    transform: translateY(0);
}

.case-category {
    color: #d4af37;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
}

.case-title {
    color: #fff;
    font-size: 22px;
    font-weight: 600;
}

@media (max-width: 992px) {
    .cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .cases-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   新闻资讯
   ======================================== */
.news {
    background: #fff;
}

.news-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
}

.news-tab {
    padding: 12px 30px;
    background: #f8f9fa;
    border-radius: 50px;
    color: #666;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.news-tab.active,
.news-tab:hover {
    background: linear-gradient(135deg, #d4af37, #c9a227);
    color: #1a1c23;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.news-card {
    background: #f8f9fa;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.news-image {
    height: 180px;
    background: linear-gradient(135deg, #e0e0e0, #f5f5f5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

.news-content {
    padding: 25px;
}

.news-date {
    color: #d4af37;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
}

.news-title {
    color: #1a1c23;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 1200px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-tabs {
        flex-wrap: wrap;
    }
}

/* ========================================
   页脚
   ======================================== */
.footer {
    background: #1a1c23;
    padding: 80px 0 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.8;
    margin-top: 20px;
    font-size: 15px;
}

.footer-column h4 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 25px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 15px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #d4af37;
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   内页通用样式
   ======================================== */
.page-header {
    background: linear-gradient(135deg, #1a1c23 0%, #2d3040 100%);
    padding: 180px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid2" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(212,175,55,0.03)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid2)"/></svg>');
    opacity: 0.5;
}

.page-title {
    font-size: 48px;
    color: #fff;
    margin-bottom: 20px;
    position: relative;
}

.page-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
    position: relative;
}

.breadcrumb a,
.breadcrumb span {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.breadcrumb a:hover {
    color: #d4af37;
}

.breadcrumb .separator {
    color: rgba(255, 255, 255, 0.3);
}

/* 新闻列表页样式 */
.news-list-page {
    background: #f8f9fa;
}

.news-list-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 40px;
}

.news-list-item {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 40px;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
}

.news-list-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.news-list-image {
    height: 250px;
    background: linear-gradient(135deg, #e0e0e0, #f5f5f5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

.news-list-content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-list-date {
    color: #d4af37;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
}

.news-list-title {
    color: #1a1c23;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.4;
}

.news-list-excerpt {
    color: #666;
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.news-list-more {
    color: #d4af37;
    font-size: 15px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.news-list-more:hover {
    gap: 12px;
}

@media (max-width: 768px) {
    .news-list-item {
        grid-template-columns: 1fr;
    }

    .news-list-image {
        height: 200px;
    }
}

/* 新闻详情页样式 */
.news-detail-page {
    background: #fff;
}

.news-detail-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 80px 40px;
}

.news-detail-header {
    text-align: center;
    margin-bottom: 50px;
}

.news-detail-title {
    font-size: 36px;
    color: #1a1c23;
    margin-bottom: 20px;
    line-height: 1.4;
}

.news-detail-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    color: #999;
    font-size: 14px;
}

.news-detail-image {
    width: 100%;
    height: 450px;
    background: linear-gradient(135deg, #e0e0e0, #f5f5f5);
    border-radius: 20px;
    margin-bottom: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

.news-detail-content {
    color: #333;
    font-size: 17px;
    line-height: 1.9;
}

.news-detail-content p {
    margin-bottom: 25px;
}

.news-detail-content img {
    max-width: 100%;
    border-radius: 15px;
    margin: 30px 0;
}

.related-news {
    margin-top: 80px;
    padding-top: 60px;
    border-top: 1px solid #eee;
}

.related-news h3 {
    font-size: 24px;
    color: #1a1c23;
    margin-bottom: 40px;
    text-align: center;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 768px) {
    .news-detail-title {
        font-size: 28px;
    }

    .news-detail-image {
        height: 250px;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }
}

/* 滚动动画 */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
