/* 全局样式 */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --text-color: #333;
    --light-gray: #f4f4f4;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
.navbar {
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

/* Logo样式 */
.logo {
    display: flex;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.logo-img {
    width: 40px; /* 根据实际logo大小调整 */
    height: 40px;
    margin-right: 10px;
    object-fit: contain;
}

.logo h1 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin: 0;
    white-space: nowrap;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .logo-img {
        width: 32px;
        height: 32px;
        margin-right: 8px;
    }

    .logo h1 {
        font-size: 1.2rem;
    }
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    padding: 0.5rem 1rem;
    margin: 0 0.5rem;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--secondary-color);
}

/* 首页横幅样式 */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
    margin-top: 60px;
    overflow: hidden;
}

#heroCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: linear-gradient(45deg, #0a192f, #0c1445);
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 15px rgba(0, 255, 255, 0.3);
    background: linear-gradient(45deg, #fff, #7fdbff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    text-shadow: 0 2px 15px rgba(0, 255, 255, 0.3);
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--secondary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
    position: relative;
    overflow: hidden;
}

.cta-button:hover {
    background: #2980b9;
}

.cta-button:after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(45deg);
    transition: all 0.3s;
    opacity: 0;
}

.cta-button:hover:after {
    opacity: 1;
    transform: rotate(45deg) translate(-50%, -50%);
}

/* 服务部分样式 */
.services {
    padding: 5rem 0;
    background: var(--light-gray);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--primary-color);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 2rem;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 5px 20px rgba(52, 152, 219, 0.3);
}

.service-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* 案例展示样式优化 */
.cases {
    padding: 5rem 0;
    background: var(--light-gray);
}

.case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.case-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.case-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.case-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(52, 152, 219, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.case-link {
    color: white;
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    border: 2px solid white;
    border-radius: 5px;
    font-weight: bold;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.case-card:hover {
    transform: translateY(-10px);
}

.case-card:hover .case-image img {
    transform: scale(1.1);
}

.case-card:hover .case-overlay {
    opacity: 1;
}

.case-card:hover .case-link {
    transform: translateY(0);
}

.case-content {
    background: white;
    padding: 0.6rem 1.2rem;
    border-radius: 10px;
    margin-top: 1rem;
    position: relative;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.case-content h3 {
    color: var(--primary-color);
    font-size: 1rem;
    margin-bottom: 0.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.case-type {
    color: var(--secondary-color);
    font-size: 0.85rem;
    margin-bottom: 0.2rem;
}

.case-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.case-features li {
    position: relative;
    padding-left: 0.8rem;
    color: #666;
    font-size: 0.8rem;
    line-height: 1.2;
    white-space: nowrap;
}

.case-features li:before {
    content: "•";
    color: var(--secondary-color);
    position: absolute;
    left: 0;
}

.cases-more {
    text-align: center;
    margin-top: 3rem;
}

.more-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: transparent;
    color: var(--secondary-color);
    text-decoration: none;
    border: 2px solid var(--secondary-color);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.more-button:hover {
    background: var(--secondary-color);
    color: white;
}

/* 关于我们部分样式 */
.about {
    padding: 5rem 0;
    background: var(--light-gray);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-content h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.learn-more {
    display: inline-block;
    margin-top: 1rem;
    color: var(--secondary-color);
    text-decoration: none;
}

/* 页脚样式 */
.footer {
    background: var(--primary-color);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
}

.footer-section a {
    color: white;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-section p {
    word-break: break-all;
    margin-bottom: 0.5rem;
}

.footer-section i {
    margin-right: 0.5rem;
}

/* ICP备案链接样式 */
.icp-link {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.icp-link:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    margin-bottom: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

/* 页面标题样式 */
.page-header {
    background: var(--primary-color);
    color: white;
    padding: 100px 0 50px;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* 公司介绍样式 */
.company-intro {
    padding: 5rem 0;
    background: white;
}

.intro-content {
    max-width: 800px;
    margin: 0 auto;
}

.intro-content h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.intro-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* 企业文化样式 */
.culture {
    padding: 5rem 0;
    background: var(--light-gray);
}

.culture-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.culture-card {
    background: white;
    padding: 2rem;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.culture-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.culture-card h3 {
    margin-bottom: 1rem;
}

/* 团队样式 */
.team {
    padding: 5rem 0;
    background: white;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.team-card {
    text-align: center;
}

.team-card img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin-bottom: 1rem;
    object-fit: cover;
}

.team-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.team-card p {
    color: #666;
}

/* 服务详情页样式 */
.services-detail {
    padding: 5rem 0;
}

.service-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 5rem;
    align-items: center;
}

.service-item.reverse {
    direction: rtl;
}

.service-item.reverse .service-content {
    direction: ltr;
}

.service-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
}

.service-content h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.service-content ul {
    list-style: none;
    margin: 1rem 0;
}

.service-content ul li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.service-content ul li:before {
    content: "•";
    color: var(--secondary-color);
    position: absolute;
    left: 0;
}

/* 优势部分样式 */
.advantages {
    padding: 5rem 0;
    background: var(--light-gray);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.advantage-card {
    background: white;
    padding: 2rem;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.advantage-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* 联系页面样式 */
.contact-section {
    padding: 5rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 3rem;
}

.contact-form h2,
.contact-info h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.submit-btn {
    background: var(--secondary-color);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: #2980b9;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-right: 1rem;
    margin-top: 0.3rem;
}

.info-item h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.info-item p {
    word-break: break-all;
    line-height: 1.4;
}

.map-section {
    padding: 0 0 5rem;
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
}

/* 数据统计样式 */
.statistics {
    padding: 4rem 0;
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 2rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: transform 0.3s;
}

.stat-item:hover {
    transform: translateY(-10px);
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #fff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-item p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* 表单错误提示样式 */
.error-message {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 0.3rem;
    display: none;
}

/* 加载动画 */
.loading-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
}

.submit-btn.loading .btn-text {
    opacity: 0.7;
}

.submit-btn.loading .loading-spinner {
    display: inline-block;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    position: relative;
    width: 90%;
    max-width: 400px;
    text-align: center;
}

.close-btn {
    position: absolute;
    right: 1rem;
    top: 0.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.modal-body {
    margin-top: 1rem;
}

.modal-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.modal-icon.success {
    color: #2ecc71;
}

.modal-icon.error {
    color: #e74c3c;
}

.modal-message {
    font-size: 1.1rem;
    color: #333;
}

/* 案例轮播图样式 */
.case-slider {
    position: relative;
    max-width: 1000px;
    margin: 3rem auto 0;
    overflow: hidden;
}

.case-wrapper {
    display: flex;
    transition: transform 0.5s ease;
}

.case-slide {
    min-width: 100%;
    padding: 0 1rem 2rem;
}

.case-image {
    position: relative;
    height: 300px;
    border-radius: 10px;
    overflow: hidden;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-controls {
    margin-top: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.prev-btn,
.next-btn {
    background: var(--secondary-color);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.prev-btn:hover,
.next-btn:hover {
    background: var(--primary-color);
    transform: scale(1.1);
}

.slider-dots {
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--secondary-color);
    transform: scale(1.2);
}

/* 案例图片轮播样式 */
.case-image-slider {
    position: relative;
    height: 500px;
    border-radius: 10px;
    overflow: hidden;
}

.case-image-wrapper {
    display: flex;
    height: 100%;
    transition: transform 0.4s ease;
}

.case-image-wrapper img {
    min-width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-prev,
.image-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
}

.image-prev {
    left: 10px;
}

.image-next {
    right: 10px;
}

.image-prev:hover,
.image-next:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: translateY(-50%) scale(1.1);
}

.image-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.image-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.image-dot.active {
    background: white;
    transform: scale(1.2);
} 