/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

a {
    text-decoration: none;
    color: #333;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #3498db;
    color: #fff;
    border: 1px solid #3498db;
}

.btn-primary:hover {
    background-color: #2980b9;
    border-color: #2980b9;
}

.btn-outline {
    background-color: transparent;
    color: #3498db;
    border: 2px solid #3498db;
}

.btn-outline:hover {
    background-color: #3498db;
    color: #fff;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo-img {
    height: auto;
    width: 200px;
    background-color: transparent;
}

.nav-menu ul {
    display: flex;
}

.nav-menu ul li {
    margin-left: 30px;
    position: relative;
}

.nav-menu ul li a {
    color: #333;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.nav-menu ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #3498db;
    transition: width 0.3s ease;
}

.nav-menu ul li a:hover,
.nav-menu ul li a.active {
    color: #3498db;
}

.nav-menu ul li a:hover::after,
.nav-menu ul li a.active::after {
    width: 100%;
}

/* 下拉菜单样式 */
.dropdown-toggle {
    display: flex;
    align-items: center;
}

.dropdown-toggle i {
    margin-left: 5px;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    min-width: 200px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
    width: 100%;
    display: block;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 15px;
    color: #333;
    font-weight: 400;
    border-bottom: 1px solid #f5f5f5;
    transition: background-color 0.3s ease;
}

.dropdown-menu li:last-child a {
    border-bottom: none;
}

.dropdown-menu li a:hover {
    background-color: #f8f9fa;
    color: #3498db;
}

.dropdown-menu li a::after {
    display: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* 首页横幅样式 */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://picsum.photos/seed/technology/1920/1080.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    text-align: center;
    color: #fff;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* 通用区块样式 */
.section {
    padding: 80px 0;
}

.section-bg {
    background-color: #f8f9fa;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #333;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #3498db;
}

.section-header p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 20px auto 0;
    color: #666;
}

/* 关于我们样式 */
.subsection {
    margin-bottom: 50px;
}

.subsection-header {
    margin-bottom: 30px;
}

.subsection-header h3 {
    font-size: 1.8rem;
    color: #3498db;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.subsection-header h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: #3498db;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 40px;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.05rem;
    color: #555;
}

.about-image {
    flex: 1;
}

.about-image img {
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.stats {
    display: flex;
    margin-top: 40px;
    gap: 30px;
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: #3498db;
    margin-bottom: 10px;
}

.stat-item p {
    font-size: 1rem;
    color: #666;
}

/* 组织架构图样式 */
.organization-chart {
    margin-top: 40px;
    text-align: center;
}

.organization-chart h4 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.organization-chart h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #3498db;
}

.chart-container {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    padding: 20px;
    overflow: auto;
}

.org-chart-img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

/* 服务样式 */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.service-icon i {
    font-size: 4rem;
    color: #3498db;
    margin-right: 15px;
}

.service-icon span {
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
    text-align: left;
}

.service-card p {
    color: #666;
    font-size: 1rem;
    margin-top: 15px;
}

/* 解决方案样式 */
.solutions-tabs {
    max-width: 1100px;
    margin: 0 auto;
}

.tab-nav {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.tab-btn {
    background: none;
    border: none;
    padding: 15px 20px;
    font-size: 1rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
}

.tab-btn.active {
    color: #3498db;
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #3498db;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.tab-btn.active::after {
    transform: scaleX(1);
}

.tab-content {
    padding: 20px 0;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.solution-content {
    display: flex;
    gap: 40px;
    align-items: center;
}

.solution-text {
    flex: 1;
}

.solution-text h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #333;
}

.solution-text p {
    margin-bottom: 20px;
    color: #555;
    font-size: 1.05rem;
}

.solution-text ul {
    margin-left: 20px;
}

.solution-text ul li {
    margin-bottom: 8px;
    color: #555;
    position: relative;
    padding-left: 20px;
}

.solution-text ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #3498db;
    font-weight: bold;
}

.solution-image {
    flex: 1.5;
}

.solution-image img {
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 720px;
    height: auto;
}

/* 联系我们样式 */
.contact-content {
    display: flex;
    gap: 50px;
}

.contact-info {
    flex: 1;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: #3498db;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    font-size: 1.2rem;
}

.contact-details h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: #333;
}

.contact-details p {
    color: #666;
}

.contact-form {
    flex: 1;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
}

/* 页脚样式 */
.footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
}

.footer-logo-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.footer-logo-icon {
    width: 45px !important;
    height: 45px !important;
    max-width: 45px !important;
    max-height: 45px !important;
    min-width: 45px;
    min-height: 45px;
    object-fit: contain;
    flex-shrink: 0;
}

.footer-logo h2 {
    color: #3498db;
    font-size: 1.8rem;
    margin: 0;
}

.footer-logo p {
    color: #bdc3c7;
    margin-bottom: 20px;
}

.footer-links h3,
.footer-contact h3,
.footer-social h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3::after,
.footer-contact h3::after,
.footer-social h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #3498db;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #bdc3c7;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: #3498db;
}

.footer-contact p {
    margin-bottom: 10px;
    color: #bdc3c7;
}

.footer-contact p i {
    margin-right: 10px;
    color: #3498db;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background-color: #34495e;
    color: #ecf0f1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.social-icons a:hover {
    background-color: #3498db;
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    color: #95a5a6;
}

.footer-bottom .icp-info {
    margin-top: 10px;
}

.footer-bottom .icp-info a {
    color: #95a5a6;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom .icp-info a:hover {
    color: #3498db;
}

.footer-bottom .visitor-stats {
    margin-top: 10px;
    font-size: 14px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-bottom .visitor-stats span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.footer-bottom .visitor-stats i {
    font-size: 12px;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .about-content,
    .solution-content,
    .contact-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .stats {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: #fff;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 30px;
        transition: left 0.3s ease;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu ul {
        flex-direction: column;
        align-items: center;
        width: 100%;
        padding: 0 20px;
    }
    
    .nav-menu > ul > li {
        margin: 0;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #eee;
    }
    
    .nav-menu > ul > li > a {
        display: block;
        padding: 15px 0;
    }
    
    .nav-menu > ul > li > a::after {
        display: none;
    }
    
    /* 手机版下拉菜单 - 默认隐藏 */
    .dropdown-menu {
        position: static;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        transform: none;
        box-shadow: none;
        background-color: #f8f9fa;
        margin: 0;
        border-radius: 0;
        transition: max-height 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    }
    
    /* 手机版下拉菜单展开状态 */
    .dropdown.open .dropdown-menu {
        max-height: 300px;
        opacity: 1;
        visibility: visible;
    }
    
    .dropdown.open .dropdown-toggle i {
        transform: rotate(180deg);
    }
    
    .dropdown-menu li a {
        padding: 12px 20px;
    }
    
    .dropdown-toggle {
        justify-content: center;
    }
    
    .dropdown-toggle i {
        display: inline-block;
    }
    
    .hamburger {
        display: flex;
    }
    
    /* 汉堡菜单动画 */
    .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);
    }
    
    .hero h1 {
        font-size: 2rem;
        padding: 0 15px;
    }
    
    .hero p {
        font-size: 0.95rem;
        padding: 0 15px;
    }
    
    /* 页头按钮统一宽度 */
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        padding: 0 20px;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 250px;
        text-align: center;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 10px;
    }
    
    .service-icon {
        flex-direction: column;
        gap: 10px;
    }
    
    .service-icon i {
        margin-right: 0;
        font-size: 3rem;
    }
    
    .service-icon span {
        text-align: center;
    }
    
    .tab-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
    }
    
    .tab-btn {
        padding: 10px 12px;
        font-size: 0.85rem;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    /* 页脚响应式优化 */
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
    }
    
    .footer-logo-header {
        justify-content: center;
    }
    
    .footer-logo h2 {
        font-size: 1.4rem;
        white-space: nowrap;
    }
    
    .footer-logo p {
        font-size: 0.9rem;
    }
    
    .footer-links h3,
    .footer-contact h3,
    .footer-social h3 {
        font-size: 1.1rem;
    }
    
    .footer-links h3::after,
    .footer-contact h3::after,
    .footer-social h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-contact p {
        font-size: 0.9rem;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .footer-bottom {
        font-size: 0.85rem;
    }
    
    .footer-bottom .visitor-stats {
        font-size: 0.8rem;
        gap: 15px;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 1.6rem;
    }
    
    .hero p {
        font-size: 0.9rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .section-header p {
        font-size: 0.95rem;
    }
    
    .stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .chart-container {
        padding: 10px;
        overflow-x: auto;
    }
    
    .org-chart-img {
        min-width: 300px;
    }
    
    .contact-form {
        padding: 20px;
    }
    
    /* 页脚小屏优化 */
    .footer-logo-icon {
        width: 36px !important;
        height: 36px !important;
        max-width: 36px !important;
        max-height: 36px !important;
        min-width: 36px;
        min-height: 36px;
    }
    
    .footer-logo h2 {
        font-size: 1.2rem;
    }
}

/* 横屏模式优化 */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        height: auto;
        min-height: 100vh;
        padding: 100px 0 60px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: row;
        gap: 15px;
    }
    
    .hero-buttons .btn {
        min-width: auto;
    }
}

/* 桌面版在手机浏览器中查看时的优化 */
@media (min-width: 769px) {
    .footer-logo h2 {
        white-space: nowrap;
    }
}