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

:root {
    --primary-color: #4a6fa5;
    --secondary-color: #6b8cbc;
    --accent-color: #ff6b6b;
    --dark-color: #2c3e50;
    --light-color: #f8f9fa;
    --text-color: #333;
    --text-light: #666;
    --border-color: #e0e0e0;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
}

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

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: 'Montserrat', sans-serif;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
}

/* 导航栏 */
.header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

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

.logo a {
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 26px; /* 从24px增加到26px */
    font-weight: 700;
    color: var(--primary-color);
}

.logo-tagline {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 2px;
}

.nav-menu {
    display: flex;
    list-style: none;
}

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

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 16px;
    transition: var(--transition);
    font-family: 'Montserrat', sans-serif;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-color);
    transition: var(--transition);
}

/* 首页横幅 */
.hero {
    padding: 150px 0 80px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    margin-top: 80px;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.hero-content {
    flex: 1;
}

.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 500;
}

.hero-description {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.8;
}

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

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

/* 通用部分样式 */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-light);
}

/* 关于我们 */
.about {
    padding: 80px 0;
    background-color: var(--light-color);
}

.about-content {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

.about-text {
    flex: 2;
}

.about-text h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.about-text p {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.8;
}

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

.advantage-item {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.advantage-item:hover {
    transform: translateY(-5px);
}

.advantage-item i {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.advantage-item h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.about-stats {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.stat-item {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.stat-number {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 服务 */
.services {
    padding: 80px 0;
}

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

.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

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

.service-icon {
    font-size: 50px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.service-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* 合作伙伴 */
.partners {
    padding: 80px 0;
    background-color: var(--light-color);
}

.partners-logos {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 60px;
}

.partner-logo {
    width: 180px;
    height: 120px;
    background: white;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    padding: 25px;
    transition: var(--transition);
}

.partner-logo:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.brand-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    height: 100%;
}

.brand-logo i {
    font-size: 40px;
    margin-bottom: 15px;
    transition: var(--transition);
}

.brand-logo span {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 18px;
    color: var(--dark-color);
}

/* DeepSeek 品牌样式 */
.deepseek-logo i {
    color: #4a6fa5;
}

.deepseek-logo:hover i {
    color: #3a5f95;
    transform: scale(1.2);
}

/* 千问品牌样式 */
.qwen-logo i {
    color: #ff6b6b;
}

.qwen-logo:hover i {
    color: #ff5252;
    transform: scale(1.2);
}

/* Grok品牌样式 */
.grok-logo i {
    color: #000000;
}

.grok-logo:hover i {
    color: #333333;
    transform: scale(1.2);
}

/* 智谱品牌样式 */
.zhipu-logo i {
    color: #4CAF50;
}

.zhipu-logo:hover i {
    color: #388E3C;
    transform: scale(1.2);
}

/* Gemini品牌样式 */
.gemini-logo i {
    color: #4285F4;
}

.gemini-logo:hover i {
    color: #3367D6;
    transform: scale(1.2);
}

/* 响应式调整 */
@media (max-width: 992px) {
    .partners-logos {
        gap: 30px;
    }
    
    .partner-logo {
        width: 160px;
        height: 110px;
    }
}

@media (max-width: 768px) {
    .partners-logos {
        gap: 20px;
    }
    
    .partner-logo {
        width: 140px;
        height: 100px;
        padding: 20px;
    }
    
    .brand-logo i {
        font-size: 32px;
        margin-bottom: 10px;
    }
    
    .brand-logo span {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .partners-logos {
        gap: 15px;
    }
    
    .partner-logo {
        width: 120px;
        height: 90px;
        padding: 15px;
    }
    
    .brand-logo i {
        font-size: 28px;
        margin-bottom: 8px;
    }
    
    .brand-logo span {
        font-size: 14px;
    }
}

.testimonials {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.testimonial {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    position: relative;
}

.testimonial p {
    font-size: 18px;
    font-style: italic;
    color: var(--text-color);
    margin-bottom: 20px;
    line-height: 1.8;
}

.testimonial-author {
    text-align: center;
}

.testimonial-author strong {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.testimonial-author span {
    color: var(--text-light);
    font-size: 14px;
}

/* 联系我们 */
.contact {
    padding: 80px 0;
}

.contact-content {
    display: flex;
    gap: 50px;
}

.contact-info {
    flex: 1;
}

.contact-info h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.contact-info p {
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.8;
}

.contact-details {
    margin-top: 30px;
}

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

.contact-item i {
    font-size: 24px;
    color: var(--primary-color);
    margin-right: 15px;
    margin-top: 5px;
}

.contact-item h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    margin-bottom: 5px;
    color: var(--dark-color);
}

/* 内联微信二维码样式 */
.wechat-qr-item {
    margin-top: 10px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.wechat-qr-item i {
    color: #07c160 !important; /* 微信绿色 */
}

.wechat-qr-inline {
    margin-top: 15px;
    max-width: 300px;
}

.qr-code-image {
    width: 150px;
    height: 150px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wechat-qr-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 5px;
}

/* 移除旧的占位符样式，因为现在使用真实图片 */
.qr-placeholder {
    display: none;
}

/* .qr-note 类已移除，因为文字描述被去掉了 */

/* 响应式调整 */
@media (max-width: 768px) {
    .wechat-qr-inline {
        max-width: 250px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .qr-code-image {
        width: 120px;
        height: 120px;
    }
    
    .qr-placeholder i {
        font-size: 40px;
    }
}

.contact-map {
    flex: 1;
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.contact-map h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.amap-container {
    width: 100%;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    position: relative;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.map-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    z-index: 10;
}

.map-loading i {
    font-size: 60px;
    color: var(--primary-color);
    margin-bottom: 20px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.map-loading p {
    color: var(--text-light);
    font-size: 18px;
}

.map-info {
    margin-top: 20px;
}

.map-info h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.map-info p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.map-instructions {
    text-align: left;
    margin-top: 20px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.map-instructions p {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.map-instructions ul {
    list-style-type: none;
    padding-left: 0;
}

.map-instructions li {
    padding: 8px 0;
    color: var(--text-light);
    border-bottom: 1px solid var(--border-color);
}

.map-instructions li:last-child {
    border-bottom: none;
}

.map-instructions li:before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

/* 高德地图自定义样式 */
.amap-marker-label {
    border: none !important;
    background: var(--primary-color) !important;
    color: white !important;
    padding: 8px 12px !important;
    border-radius: 20px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2) !important;
}

.amap-info-content {
    border-radius: 10px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
    border: none !important;
    padding: 15px !important;
}

.amap-info-sharp {
    border-top-color: white !important;
}

.info-window-content {
    font-family: 'Open Sans', sans-serif;
}

.info-window-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.info-window-address {
    color: var(--text-light);
    margin-bottom: 10px;
    font-size: 14px;
}

.info-window-contact {
    font-size: 14px;
    color: var(--text-color);
}

.info-window-contact i {
    color: var(--primary-color);
    margin-right: 8px;
    width: 16px;
}

/* 地图控制按钮样式 */
.amap-controls {
    margin-top: 10px;
}

.amap-controls button {
    background: white !important;
    border: none !important;
    border-radius: 5px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    color: var(--text-color) !important;
    font-size: 18px !important;
    width: 36px !important;
    height: 36px !important;
    margin: 5px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.amap-controls button:hover {
    background: var(--primary-color) !important;
    color: white !important;
    transform: scale(1.1) !important;
}

/* 微信二维码 */
.wechat-qrcode {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    transition: all 0.3s ease;
}

.wechat-qrcode-toggle {
    width: 60px;
    height: 60px;
    background-color: #07c160;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.wechat-qrcode-toggle:hover {
    background-color: #06ad56;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.wechat-qrcode-panel {
    position: absolute;
    bottom: 70px;
    right: 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    padding: 20px;
    width: 280px;
    display: none;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wechat-qrcode-panel.active {
    display: block;
}

.wechat-qrcode-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.wechat-qrcode-header h4 {
    margin: 0;
    color: var(--dark-color);
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
}

.wechat-qrcode-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.wechat-qrcode-close:hover {
    background-color: #f5f5f5;
}

.wechat-qrcode-content {
    text-align: center;
}

.qrcode-image {
    width: 200px;
    height: 200px;
    background: #f5f5f5;
    border-radius: 10px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 14px;
    border: 2px dashed #ddd;
}

.qrcode-image img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 5px;
}

.wechat-qrcode-content p {
    color: var(--text-light);
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}

.wechat-qrcode-content strong {
    color: var(--dark-color);
    display: block;
    margin-bottom: 5px;
}

/* 页脚 */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    margin-bottom: 10px;
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links h4,
.footer-social h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
}

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

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    font-size: 18px;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

.footer-bottom p {
    margin-bottom: 10px;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-bottom a:hover {
    color: white;
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 20px;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .contact-content {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 15px 0;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .partners-logos {
        gap: 20px;
    }
    
    .partner-logo {
        width: 120px;
        height: 80px;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .social-icons {
        justify-content: center;
    }
}