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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* 懒加载图片样式 */
.lazy-load {
    opacity: 0;
    transition: opacity 0.3s ease;
    background-color: #f5f5f5;
    min-height: 200px;
    display: block;
}

.lazy-load.loaded {
    opacity: 1;
}

.lazy-load:not(.loaded) {
    background: linear-gradient(90deg, #f5f5f5 25%, #e0e0e0 50%, #f5f5f5 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    position: relative;
}

.lazy-load:not(.loaded)::before {
    content: "图片加载中...";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #999;
    font-size: 14px;
    font-weight: 400;
}

.service-image.lazy-load:not(.loaded) {
    min-height: 300px;
}

.process-image.lazy-load:not(.loaded) {
    min-height: 400px;
}

.calc-image .lazy-load:not(.loaded) {
    min-height: 200px;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

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

/* 顶部栏样式 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.top-bar {
    background: #f8f9fa;
    padding: 8px 0;
    font-size: 12px;
    border-bottom: 1px solid #e9ecef;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.company-info span {
    color: #666;
}

.contact-info a {
    color: #666;
    text-decoration: none;
    margin-right: 15px;
}

.contact-info a:hover {
    color: #007bff;
}

/* 主导航样式 */
.main-nav {
    background: white;
    padding: 0 0;
}

.main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 24px;
    font-weight: bold;
    color: #007bff;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #007bff;
}

.user-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-box input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 200px;
}

.btn-promotion {
    background: linear-gradient(45deg, #ff6b6b, #ff8e53);
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 12px;
    animation: pulse 2s infinite;
}

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

.btn-login, .btn-register {
    color: #007bff;
    text-decoration: none;
    padding: 8px 16px;
    border: 1px solid #007bff;
    border-radius: 4px;
    transition: all 0.3s;
}

.btn-login:hover, .btn-register:hover {
    background: #007bff;
    color: white;
}

/* 首页样式 */
.home-section {
    margin-top: 120px;
}

.hero-banner {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.carousel {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slides {
    display: flex;
    width: 200%;
    height: 100%;
    transition: transform 0.5s ease;
}

.slides img {
    width: 50%;
    height: 100%;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.5);
    border: none;
    color: #333;
    font-size: 24px;
    padding: 10px;
    cursor: pointer;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.8);
}

.carousel-btn.prev {
    left: 20px;
}

.carousel-btn.next {
    right: 20px;
}

.indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s;
}

.indicator.active {
    background: rgba(255, 255, 255, 0.8);
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 28px;
    margin-bottom: 40px;
    opacity: 1;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
    font-weight: 600;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 40px;
}

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

.stat-number {
    display: block;
    font-size: 36px;
    font-weight: bold;
    color: #ffd700;
}

.stat-label {
    font-size: 14px;
    opacity: 0.8;
}

/* 服务概览样式 */
.services-overview {
    padding: 80px 0;
    background: #f8f9fa;
}

.services-overview h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 10px;
    color: #333;
}

.section-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 50px;
    font-size: 18px;
}

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

.service-card {
    background: white;
    padding: 50px;
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.15);
    text-align: center;
    transition: transform 0.3s;
}

.service-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 30px;
}

.service-card:hover {
    transform: translateY(-8px);
}

.service-card h3 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #222;
    font-weight: 700;
}

.service-card p {
    color: #555;
    margin-bottom: 30px;
    line-height: 1.7;
    font-size: 32px;
    font-weight: 500;
}

.btn-service {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    padding: 15px 32px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    font-size: 18px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0,123,255,0.3);
}

.btn-service:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,123,255,0.4);
}

/* 服务流程样式 */
.service-process {
    padding: 80px 0;
    background: #f8f9fa;
}

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

.service-process h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
    color: #333;
}

.process-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.process-image {
    flex: none;
    max-width: 800px;
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.process-content p {
    flex: none;
    font-size: 18px;
    line-height: 1.6;
    color: #666;
    text-align: center;
    max-width: 600px;
}

/* 活动推广样式 */
.promotion-section {
    padding: 80px 0;
    background: white;
}

.promotion-section h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: #333;
}

.promotion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.promotion-card {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    color: white;
    transition: transform 0.3s;
}

.promotion-card:hover {
    transform: scale(1.05);
}

.promotion-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

/* 模拟计算部分样式 */
.simulation-section {
    padding: 120px 0 10px 0;
    background: #f8f9fa;
}

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

.section-header h2 {
    font-size: 36px;
    margin-bottom: 15px;
    color: #333;
}

.section-header p {
    font-size: 18px;
    color: #666;
}

/* Tab导航样式 */
.tab-navigation {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    background: white;
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    gap: 4px;
}

.tab-btn {
    background: transparent;
    border: none;
    padding: 15px 25px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tab-btn:hover {
    background: #f8f9fa;
    color: #333;
}

.tab-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Tab内容样式 */
.tab-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow: hidden;
}

.tab-pane {
    display: none;
    padding: 40px;
    animation: fadeInUp 0.5s ease-out;
}

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

.tab-intro {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
}

.tab-intro h3 {
    font-size: 28px;
    margin-bottom: 15px;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tab-intro p {
    font-size: 16px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* 计算项目网格 */
.calculation-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.calc-item {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.calc-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    border-color: #667eea;
}

.calc-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.calc-image img {
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
}

.calc-item:hover .calc-image img {
    transform: scale(1.05);
}

.calc-info {
    padding: 25px;
}

.calc-info h4 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
    font-weight: 600;
}

.calc-info p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 14px;
}

.calc-actions {
    display: flex;
    gap: 12px;
}

.calc-actions .btn-detail,
.calc-actions .btn-appointment {
    flex: 1;
    padding: 10px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.calc-actions .btn-detail {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.calc-actions .btn-detail:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-1px);
}

.calc-actions .btn-appointment {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
}

.calc-actions .btn-appointment:hover {
    background: #667eea;
    color: white;
    transform: translateY(-1px);
}

/* 咨询部分样式 */
.consultation-section {
    margin-bottom: 60px;
    text-align: center;
}

.consultation-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    border-radius: 12px;
    display: inline-block;
}

.consultation-card h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.qr-code-placeholder {
    background: white;
    color: #333;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    font-style: italic;
}

.achievements {
    text-align: center;
    font-style: italic;
    color: #666;
    font-size: 16px;
}

/* 关于我们部分样式 */
.about-section {
    padding: 120px 0 10px 0;
    background: white;
}

.company-intro {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 60px;
}

.about-image {
    margin-bottom: 40px;
}

.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.company-intro p {
    font-size: 20px;
    line-height: 1.8;
    margin-bottom: 30px;
    color: #222;
    font-weight: 500;
}

.achievements-stats {
    margin-bottom: 60px;
}

.achievements-stats h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

.achievements-stats p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 40px;
    color: #555;
    text-align: center;
}

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

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card .stat-number {
    display: block;
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 10px;
}

.stat-card .stat-label {
    font-size: 16px;
    opacity: 0.9;
}

/* 企业文化样式 */
.company-culture {
    margin-bottom: 60px;
    text-align: center;
}

.company-culture h3 {
    font-size: 28px;
    margin-bottom: 30px;
    color: #333;
}

.culture-values {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.value-item {
    background: #007bff;
    color: white;
    padding: 20px 30px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 500;
    transition: transform 0.3s;
}

.value-item:hover {
    transform: scale(1.1);
}

/* 企业愿景样式 */
.company-vision {
    margin-bottom: 60px;
}

.company-vision h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

.company-vision p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #555;
}

/* 合作伙伴样式 */
.partners-section {
    text-align: center;
    background: #f8f9fa;
    padding: 40px;
    border-radius: 12px;
}

.partners-section h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
}

.partners-section p {
    color: #666;
    margin-bottom: 20px;
}

.contact-info p {
    font-weight: 500;
    color: #007bff;
}

/* 页脚样式 */
.footer {
    background: #333;
    color: white;
    padding: 60px 0 20px;
}

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

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #fff;
}

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

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

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #007bff;
}

.social-links {
    text-align: center;
}

.wechat-qr {
    text-align: left;
}

.wechat-qr img {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    margin-bottom: 10px;
    border: 2px solid #555;
}

.wechat-qr p {
    color: #ccc;
    font-size: 14px;
    margin: 0;
}

.footer-bottom {
    border-top: 1px solid #555;
    padding-top: 20px;
    text-align: center;
    color: #ccc;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .main-nav .container {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .user-actions {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-content h1 {
        font-size: 32px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 30px;
    }
    
    .services-grid, .promotion-grid, .stats-grid, .calculation-grid {
        grid-template-columns: 1fr;
    }
    
    .culture-values {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    /* Tab导航响应式 */
    .tab-navigation {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        padding: 12px;
    }
    
    .tab-btn {
        flex: 1;
        min-width: 120px;
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .tab-pane {
        padding: 20px;
    }
    
    .calculation-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .calc-item {
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .search-box input {
        width: 150px;
    }
    
    .hero-content h1 {
        font-size: 24px;
    }
    
    .service-card, .calc-item {
        padding: 20px;
    }
    
    .calc-info {
        padding: 20px;
    }
    
    .calc-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .tab-btn {
        min-width: 100px;
        font-size: 13px;
        padding: 10px 12px;
    }
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 加载动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card, .solution-card, .stat-card {
    animation: fadeInUp 0.6s ease-out;
}

/* 鼠标悬停效果 */
.nav-link, .btn-service, .btn-detail, .btn-appointment {
    position: relative;
    overflow: hidden;
}

.nav-link:before, .btn-service:before, .btn-detail:before, .btn-appointment:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.nav-link:hover:before, .btn-service:hover:before, .btn-detail:hover:before, .btn-appointment:hover:before {
    left: 100%;
}

/* 活动导航样式 */
.nav-link.active {
    color: #007bff;
    font-weight: 600;
    border-bottom: 2px solid #007bff;
}

/* 模态框样式 */
.modal-overlay {
    backdrop-filter: blur(5px);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.modal-header h3 {
    margin: 0;
    color: #333;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    transition: color 0.3s;
}

.modal-close:hover {
    color: #333;
}

.modal-body p {
    line-height: 1.6;
    color: #555;
    margin-bottom: 25px;
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* 回到顶部按钮悬停效果 */
.back-to-top:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

/* 额外的动画效果 */
@keyframes slideIn {
    from {
        transform: translateX(-30px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.calc-category {
    animation: slideIn 0.6s ease-out;
}

.calc-category:nth-child(2) {
    animation-delay: 0.2s;
}

.calc-category:nth-child(3) {
    animation-delay: 0.4s;
}
