/* 重置和基础样式 */
:root {
    --primary-color: #222222; /* 墨黑色 */
    --secondary-color: #FF9800; /* 橙黄色 */
    --accent-color: #FFC107; /* 亮橙色 */
    --dark-gray: #333333;
    --light-gray: #f5f5f5;
    --white: #fff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', 'Arial', sans-serif;
}

body {
    line-height: 1.6;
    color: var(--text-color);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* 导航栏样式 */
.header-fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: linear-gradient(to right, rgba(34, 34, 34, 0.95), rgba(34, 34, 34, 0.95));
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.header-fixed .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: column;
}

.logo h1 {
    color: var(--white);
    font-size: 24px;
    font-weight: 600;
    margin: 0;
}

.logo .slogan {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin-top: 4px;
}

nav ul {
    display: flex;
    gap: 30px;
    list-style: none;
}

nav ul li a {
    color: var(--white);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
    background: var(--secondary-color);
    color: var(--primary-color);
}

/* 英雄区域样式 */
.hero {
    height: 100vh;
    position: relative;
    background: url('images/hero-bg.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding-top: 80px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(34, 34, 34, 0.7), rgba(34, 34, 34, 0.8));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero h2 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn {
    padding: 15px 35px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.primary-btn {
    background: var(--secondary-color);
    color: var(--primary-color);
    font-weight: bold;
}

.primary-btn:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 152, 0, 0.3);
}

.secondary-btn {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--secondary-color);
}

.secondary-btn:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
}

/* 特色服务样式 */
.features {
    padding: 80px 0;
    background: var(--primary-color);
    color: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-item {
    text-align: center;
    padding: 40px 20px;
    background: var(--dark-gray);
    border-radius: 10px;
    transition: transform 0.3s ease;
    border-bottom: 4px solid var(--secondary-color);
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.feature-item i {
    font-size: 40px;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.feature-item h3 {
    margin-bottom: 15px;
    color: var(--white);
}

.feature-item p {
    color: var(--light-gray);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-fixed {
        padding: 10px 0;
    }

    nav ul {
        gap: 15px;
    }

    nav ul li a {
        font-size: 14px;
        padding: 6px 12px;
    }

    .hero h2 {
        font-size: 36px;
    }

    .hero p {
        font-size: 18px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* 添加动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    animation: fadeInUp 1s ease-out;
}

/* 内容区域样式 */
section {
    padding: 80px 0;
    position: relative;
}

section h2 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    font-weight: 700;
}

/* 优势展示样式 */
.advantages {
    background: var(--primary-color);
    color: var(--white);
    padding: 80px 0;
}

.advantages .section-title {
    text-align: center;
    margin-bottom: 60px;
}

.advantages .section-title h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.advantages .section-title h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 2px;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.advantage-item {
    text-align: center;
    padding: 40px 30px;
    background: var(--dark-gray);
    border-radius: 10px;
    transition: all 0.3s ease;
    border-bottom: 4px solid var(--secondary-color);
}

.advantage-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.advantage-item i {
    font-size: 50px;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.advantage-item h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--white);
}

.advantage-item p {
    color: var(--light-gray);
    font-size: 16px;
    line-height: 1.6;
}

@media (max-width: 992px) {
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .advantages-grid {
        grid-template-columns: 1fr;
    }

    .advantage-item {
        padding: 30px 20px;
    }
}

/* 服务项目样式 */
.tab-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.tab-buttons {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.tab-button {
    padding: 10px 20px;
    margin: 0 10px;
    background: var(--dark-gray);
    color: var(--white);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-button.active {
    background: var(--secondary-color);
    color: var(--primary-color);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.tab-pane img {
    max-width: 100%;
    border-radius: 10px;
    margin-bottom: 20px;
}

/* 联系表单样式 */
form {
    max-width: 600px;
    margin: 0 auto;
}

form input,
form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
}

form textarea {
    height: 150px;
    resize: vertical;
}

form button {
    background: var(--primary-color);
    color: var(--white);
    padding: 15px 40px;
    border: none;
    border-radius: 30px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s;
}

form button:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* 页脚样式 */
footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 60px 0 30px;
}

.about, .services, .contact {
    padding: 100px 0;
}

.about h2, .services h2, .contact h2 {
    color: var(--secondary-color);
}

.tab-container {
    margin-top: 50px;
}

.tab-buttons {
    margin-bottom: 30px;
}

.tab-button {
    padding: 10px 25px;
    margin: 0 5px;
    border-radius: 5px;
}

.tab-button.active {
    background-color: var(--secondary-color);
}

.tab-content {
    background-color: var(--dark-gray);
    padding: 30px;
    border-radius: 10px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.tab-pane img {
    width: 100%;
    border-radius: 5px;
}

.clients {
    padding: 80px 0;
}

.client-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 30px;
}

.client-item img {
    max-width: 100%;
    border-radius: 10px;
}

.news {
    padding: 80px 0;
}

.news-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.news-item {
    background-color: var(--dark-gray);
    border-radius: 10px;
    overflow: hidden;
}

.news-item h3 {
    padding: 20px;
    color: var(--white);
}

/* 数据展示样式 */
.highlights {
    background-color: var(--dark-gray);
    padding: 80px 0;
}

.highlight-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.highlight-item {
    text-align: center;
}

.highlight-item .number {
    font-size: 48px;
    font-weight: 700;
    color: var(--secondary-color);
}

.highlight-item .label {
    margin-top: 10px;
    color: var(--white);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-info h3 {
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.footer-info p {
    margin-bottom: 10px;
}

.footer-info i {
    color: var(--secondary-color);
    margin-right: 10px;
}

@media (max-width: 768px) {
    .features-grid,
    .advantages-grid,
    .highlight-grid {
        grid-template-columns: 1fr;
    }

    .hero h2 {
        font-size: 32px;
    }

    .footer-content {
        flex-direction: column;
    }

    .footer-info {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .features-grid,
    .advantages-grid,
    .highlight-grid {
        grid-template-columns: 1fr;
    }
}

/* 导航栏样式更新 */
.header-transparent {
    background: transparent;
    box-shadow: none;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-transparent .container {
    padding: 20px 0;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo h1 {
    font-size: 2em;
    color: var(--white);
    margin: 0;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.slogan {
    color: var(--white);
    font-size: 0.9em;
    margin-top: 5px;
    opacity: 0.9;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

nav ul li {
    margin-left: 40px;
}

nav ul li a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1em;
    padding: 8px 0;
    position: relative;
    transition: all 0.3s ease;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--white);
    transition: width 0.3s ease;
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

/* 当页面滚动时的导航栏样式 */
.header-transparent.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-transparent.scrolled .logo h1,
.header-transparent.scrolled .slogan,
.header-transparent.scrolled nav ul li a {
    color: var(--text-color);
}

.header-transparent.scrolled nav ul li a::after {
    background: var(--primary-color);
}

/* 添加页面滚动时的 JavaScript */

/* 服务项目页面样式 */
.page-header {
    background: linear-gradient(135deg, rgba(34, 34, 34, 0.85) 0%, rgba(34, 34, 34, 0.9) 100%), url('images/contact-bg.jpg') no-repeat center center/cover;
    padding: 150px 0 80px;
    text-align: center;
    color: var(--white);
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.page-header p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
}

.services-showcase {
    padding: 80px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.service-card {
    background: var(--dark-gray);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 30px;
    border-bottom: 4px solid var(--secondary-color);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.service-icon {
    background: linear-gradient(45deg, var(--primary-color), var(--dark-gray));
    padding: 30px;
    text-align: center;
}

.service-icon i {
    font-size: 50px;
    color: var(--secondary-color);
}

.service-card h3 {
    color: var(--white);
    text-align: center;
    padding: 20px;
    margin: 0;
    font-size: 24px;
}

.service-content {
    padding: 0 30px 30px;
}

.service-content ul {
    list-style: none;
    margin-bottom: 25px;
}

.service-content ul li {
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
    color: var(--light-gray);
}

.service-content ul li i {
    position: absolute;
    left: 0;
    color: var(--secondary-color);
}

.service-description {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
}

.service-description p {
    color: var(--light-gray);
    line-height: 1.6;
}

.service-btn {
    display: inline-block;
    padding: 12px 25px;
    background: var(--secondary-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
}

.service-btn:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

.service-advantages {
    padding: 80px 0;
    background: var(--primary-color);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.section-title p {
    color: var(--light-gray);
    max-width: 800px;
    margin: 0 auto;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 36px;
    }

    .page-header p {
        font-size: 18px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        max-width: 500px;
        margin: 0 auto;
    }
}

.contact-section {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.9) 0%, rgba(233, 236, 239, 0.9) 100%), url('images/contact-bg.jpg') no-repeat center center/cover;
}

.social-links a {
    color: #3498db;
    margin: 0 10px;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #2980b9;
}

.newsletter-form {
    display: flex;
}

.newsletter-form input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px 0 0 5px;
}

.newsletter-form button {
    padding: 10px 20px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: background 0.3s ease;
}

.newsletter-form button:hover {
    background: #2980b9;
}

.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #3498db;
    color: white;
    padding: 10px;
    border-radius: 50%;
    text-align: center;
    width: 40px;
    height: 40px;
    line-height: 40px;
    transition: background 0.3s ease;
}

.back-to-top:hover {
    background: #2980b9;
}

.footer-section {
    text-align: center;
    margin-bottom: 20px;
}

.footer-section h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.footer-section form {
    display: inline-block;
}

.footer-section input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px 0 0 5px;
}

.footer-section button {
    padding: 10px 20px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: background 0.3s ease;
}

.footer-section button:hover {
    background: #2980b9;
}

.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #3498db;
    color: white;
    padding: 10px;
    border-radius: 50%;
    text-align: center;
    width: 40px;
    height: 40px;
    line-height: 40px;
    transition: background 0.3s ease;
}

.back-to-top:hover {
    background: #2980b9;
}

.footer-section {
    text-align: center;
    margin-bottom: 20px;
}

.footer-section h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.footer-section .social-links {
    display: flex;
    justify-content: center;
}

.footer-section .social-links a {
    color: #3498db;
    margin: 0 10px;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.footer-section .social-links a:hover {
    color: #2980b9;
}

.footer-section .newsletter-form {
    display: flex;
}

.footer-section .newsletter-form input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px 0 0 5px;
}

.footer-section .newsletter-form button {
    padding: 10px 20px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: background 0.3s ease;
}

.footer-section .newsletter-form button:hover {
    background: #2980b9;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--light-gray);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    font-size: 1rem;
    transition: all 0.3s ease;
    color: var(--white);
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.form-group button {
    background: var(--secondary-color);
    color: var(--primary-color);
    padding: 12px 30px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.form-group button:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 152, 0, 0.3);
}

.map-container {
    margin-top: 50px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: none;
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .header-fixed {
        padding: 10px 0;
    }

    .header-fixed .container {
        flex-wrap: wrap;
    }

    .logo {
        margin-right: 20px;
    }

    .logo h1 {
        font-size: 1.5rem;
    }

    .logo .slogan {
        font-size: 0.8rem;
    }

    /* 移动端导航 */
    nav ul {
        flex-direction: column;
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        background: var(--primary-color);
        z-index: 1000;
        transition: left 0.3s ease;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
    
    nav ul.active {
        left: 0;
    }
    
    nav ul li {
        margin: 0;
        width: 100%;
    }
    
    nav ul li a {
        display: block;
        padding: 15px;
        text-align: center;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    /* 移动端菜单按钮 */
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 21px;
        cursor: pointer;
        z-index: 1001;
    }
    
    .menu-toggle span {
        height: 3px;
        width: 100%;
        background-color: var(--white);
        border-radius: 3px;
        transition: all 0.3s ease;
    }

    /* 首屏内容 */
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    /* 特点/服务区域 */
    .features {
        padding: 40px 0;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    /* 页脚 */
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-info {
        margin-bottom: 20px;
    }
} 