﻿/* 全局变量 */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --dark-bg: #2c3e50;
    --border-color: #e9ecef;
    --transition: all 0.3s ease;
}

/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 顶部信息栏 */
.top-bar {
    background: #f8f9fa;
    padding: 8px 0;
    font-size: 14px;
    border-bottom: 1px solid #eee;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left span {
    margin-right: 20px;
    color: #666;
}

.top-bar-left i {
    margin-right: 5px;
    color: #007bff;
}

.top-bar-right a {
    color: #666;
    text-decoration: none;
    margin-left: 15px;
    transition: color 0.3s;
}

.top-bar-right a:hover {
    color: #007bff;
}

/* 主导航 */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

/* Logo区域 */
.logo-area {
    flex: 0 0 200px;
}

.logo h1 {
    font-size: 24px;
    margin: 0;
    color: #333;
}

/* 导航菜单 */
.nav {
    flex: 1;
    text-align: center;
}

.nav-list {
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-link {
    display: block;
    padding: 10px 20px;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: #007bff;
}

/* 搜索区域 */
.search-area {
    flex: 0 0 250px;
    margin-left: 20px;
}

.search-form {
    display: flex;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.search-btn {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    padding: 0 15px;
    background: #007bff;
    border: none;
    border-radius: 0 4px 4px 0;
    color: #fff;
    cursor: pointer;
    transition: background 0.3s;
}

.search-btn:hover {
    background: #0056b3;
}

/* 移动端菜单按钮 */
.mobile-menu {
    display: none;
    font-size: 24px;
    color: #333;
    cursor: pointer;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .search-area {
        display: none;
    }
    
    .nav {
        display: none;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .header-wrapper {
        padding: 10px 0;
    }
}

@media (max-width: 768px) {
    .top-bar {
        display: none;
    }
    
    .logo-area {
        flex: 0 0 150px;
    }
    
    .logo h1 {
        font-size: 20px;
    }
}

/* 移动端导航 */
.mobile-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    height: 100vh;
    background: #fff;
    z-index: 1001;
    transition: left 0.3s;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.mobile-nav.active {
    left: 0;
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    display: none;
}

.mobile-nav.active .mobile-nav-overlay {
    display: block;
}

.mobile-nav-list {
    list-style: none;
    padding: 20px;
    margin: 0;
}

.mobile-nav-link {
    display: block;
    padding: 15px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #eee;
    font-size: 16px;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: #007bff;
    background: #f8f9fa;
}

/* 遮罩层 */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Hero区域样式 */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-text {
    max-width: 600px;
}

.hero-text h1 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-item i {
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: var(--secondary-color);
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.btn-secondary:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
}

.hero-image {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
    aspect-ratio: 16/9;
}

.hero-image:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 15px;
    transition: transform 0.5s ease;
}

.hero-image:hover .hero-img {
    transform: scale(1.05);
}

/* 服务特点 */
.services {
    padding: 100px 0;
    background: var(--light-bg);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-color);
    font-size: 1.1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--light-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.service-icon i {
    font-size: 1.8rem;
    color: var(--secondary-color);
}

.service-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-card p {
    margin-bottom: 1rem;
    flex-grow: 1;
}

.service-features {
    list-style: none;
    margin-top: 1rem;
    text-align: left;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-size: 0.95rem;
}

.service-features i {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

/* 解决方案 */
.solutions {
    padding: 100px 0;
    background: white;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.solution-card {
    background: var(--light-bg);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
}

.solution-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.solution-content {
    padding: 2rem;
}

.solution-content h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.solution-content p {
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.solution-features {
    list-style: none;
}

.solution-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
    color: var(--text-color);
}

.solution-features i {
    color: var(--secondary-color);
}

/* 关于我们 */
.about {
    padding: 80px 0;
    background: var(--light-bg);
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
}

/* 公司简介 */
.about-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.intro-text {
    padding: 40px;
}

.intro-text h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 24px;
}

.intro-text p {
    color: var(--text-color);
    line-height: 1.8;
}

.intro-image {
    position: relative;
    overflow: hidden;
}

.intro-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.intro-image:hover img {
    transform: scale(1.05);
}

/* 服务框架 */
.about-framework {
    display: grid;
    gap: 40px;
    margin-bottom: 60px;
}

.framework-section {
    background: #fff;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.section-title {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
}

.section-title i {
    font-size: 24px;
    color: var(--primary-color);
    margin-right: 15px;
}

.section-title h3 {
    color: var(--primary-color);
    font-size: 24px;
    margin: 0;
}

.framework-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.framework-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.framework-item:hover {
    transform: translateY(-5px);
}

.item-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.item-icon i {
    font-size: 24px;
    color: #fff;
}

.item-info h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 18px;
}

.item-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.item-info ul li {
    color: var(--text-color);
    margin-bottom: 5px;
    font-size: 14px;
    position: relative;
    padding-left: 15px;
}

.item-info ul li:before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

/* 服务保障 */
.about-guarantee {
    background: #fff;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-top: 40px;
}

.about-guarantee h3 {
    color: var(--primary-color);
    margin-bottom: 30px;
    font-size: 24px;
    text-align: center;
}

.guarantee-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.guarantee-section {
    background: var(--bg-light);
    border-radius: 10px;
    padding: 25px;
    transition: transform 0.3s ease;
}

.guarantee-section:hover {
    transform: translateY(-5px);
}

.guarantee-section h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.guarantee-section h4 i {
    font-size: 20px;
}

.guarantee-section p {
    color: var(--text-color);
    line-height: 1.8;
    font-size: 14px;
}

/* 联系我们 */
.contact {
    padding: 100px 0;
    background: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    display: grid;
    gap: 2rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.info-text h4 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.contact-form {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 10px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

/* 页脚 */
.footer {
    background: var(--dark-bg);
    color: white;
    padding: 80px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: white;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a {
    color: #a0a0a0;
    text-decoration: none;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: white;
}

.footer-col ul li i {
    margin-right: 0.5rem;
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* 页脚社交链接 */
.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

.social-link i {
    font-size: 1.2rem;
}

/* 响应式设计优化 */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
        padding: 0 20px;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-content {
        gap: 30px;
    }

    .framework-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .solutions-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 540px;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu {
        display: flex;
    }

    .mobile-nav {
        display: block;
    }

    .header {
        padding: 10px 0;
    }

    .logo {
        font-size: 1.2rem;
    }

    .logo i {
        font-size: 1.4rem;
    }

    .mobile-nav {
        width: 100%;
        max-width: none;
    }

    .mobile-nav-link {
        font-size: 1rem;
        padding: 0.9rem 0;
    }

    .mobile-menu span {
        width: 24px;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text {
        max-width: 100%;
    }

    .hero-features {
        justify-content: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        max-width: 600px;
        margin: 0 auto;
        aspect-ratio: 16/9;
    }

    .services-grid,
    .solutions-grid {
        grid-template-columns: 1fr;
    }

    .about-intro {
        grid-template-columns: 1fr;
    }

    .intro-image {
        height: 300px;
    }

    .framework-content {
        grid-template-columns: 1fr;
    }

    .guarantee-content {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }

    .header {
        padding: 8px 0;
    }

    .logo {
        font-size: 1.1rem;
    }

    .logo i {
        font-size: 1.3rem;
        margin-right: 5px;
    }

    .mobile-nav {
        width: 100%;
        max-width: none;
    }

    .mobile-nav-link {
        font-size: 1rem;
        padding: 0.9rem 0;
    }

    .mobile-menu span {
        width: 22px;
    }

    .hero {
        padding: 80px 0 40px;
    }

    .hero-text h1 {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-features {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .btn {
        width: 100%;
    }

    .hero-image {
        max-width: 100%;
        aspect-ratio: 16/9;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .service-card,
    .solution-card {
        padding: 1.5rem;
    }

    .framework-section,
    .guarantee-section {
        padding: 20px;
    }

    .footer {
        padding: 40px 0 20px;
    }

    .footer-social {
        justify-content: center;
    }
}

/* 触摸设备优化 */
@media (hover: none) {
    .nav-link::after {
        display: none;
    }

    .nav-link:active {
        color: var(--secondary-color);
    }

    .hero-image:hover {
        transform: none;
    }

    .btn:active {
        transform: scale(0.98);
    }

    .service-card:hover,
    .solution-card:hover,
    .framework-item:hover,
    .guarantee-section:hover {
        transform: none;
    }

    .mobile-nav-link:hover {
        padding-left: 0;
    }

    .mobile-nav-link:active {
        background: var(--light-bg);
    }

    .mobile-nav-link:active i {
        transform: translateX(5px);
    }
}

/* 高分辨率屏幕支持 */
@media (min-width: 1920px) {
    .container {
        max-width: 1600px;
    }

    .hero-text h1 {
        font-size: 3.5rem;
    }

    .hero-subtitle {
        font-size: 1.4rem;
    }

    .section-header h2 {
        font-size: 3rem;
    }

    .service-card,
    .solution-card {
        padding: 3rem;
    }
}

/* 打印样式优化 */
@media print {
    .header,
    .hero-buttons,
    .contact-form,
    .footer {
        display: none;
    }

    .container {
        max-width: 100%;
        padding: 0;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
    }

    a {
        text-decoration: none;
        color: #000;
    }
} 