/* ==================== 全局样式 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2E5BFF;
    --secondary-color: #1A1A1A;
    --accent-color: #7B68EE;
    --background-color: #F5F7FA;
    --text-color: #333;
    --light-text: #666;
    --white: #FFFFFF;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Source Han Sans CN', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ==================== 导航栏 ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    cursor: pointer;
}

.logo-icon {
    font-size: 32px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.nav-menu {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    padding: 12px 5px;
    font-weight: 500;
    font-size: 16px;
    color: var(--text-color);
    position: relative;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-menu > li > a .arrow {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.nav-menu > li > a:hover .arrow,
.dropdown:hover > a .arrow {
    transform: rotate(180deg);
}

/* 悬停下划线动画 */
.nav-menu > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transition: width 0.3s ease;
}

.nav-menu > li > a:hover::after,
.nav-menu > li > a.active::after {
    width: 100%;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

/* 下拉菜单 - 网格布局 */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--white);
    min-width: 480px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
    margin-top: 10px;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: var(--background-color);
    transform: translateX(5px);
}

.dropdown-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.dropdown-content {
    flex: 1;
}

.dropdown-title {
    font-weight: 600;
    font-size: 15px;
    color: var(--secondary-color);
    margin-bottom: 4px;
}

.dropdown-desc {
    font-size: 12px;
    color: var(--light-text);
}

/* 导航按钮 */
.nav-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.phone-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--background-color);
    border-radius: 25px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
}

.phone-icon {
    font-size: 18px;
}

.phone-number {
    letter-spacing: 0.5px;
}

.phone-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 91, 255, 0.3);
}

.consult-btn {
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    border-radius: 25px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
}

.consult-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(46, 91, 255, 0.4);
}

/* 汉堡菜单 */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.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 {
    margin-top: 70px;
    height: 600px;
    position: relative;
    overflow: hidden;
}

.slider {
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
}

.slide.active {
    opacity: 1;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--white);
}

.slide-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.slide-content p {
    font-size: 24px;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease 0.2s backwards;
}

.cta-btn {
    display: inline-block;
    padding: 15px 40px;
    background: var(--white);
    color: var(--primary-color);
    border-radius: 30px;
    font-weight: bold;
    font-size: 18px;
    animation: fadeInUp 1s ease 0.4s backwards;
}

.cta-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.05);
}

.slider-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.slider-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.slider-btn.active {
    background: var(--white);
    width: 30px;
    border-radius: 6px;
}

/* ==================== 通用板块样式 ==================== */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 42px;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.section-header p {
    font-size: 18px;
    color: var(--light-text);
}

/* ==================== 核心业务 ==================== */
.services {
    background: var(--background-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.service-card p {
    color: var(--light-text);
    margin-bottom: 20px;
    line-height: 1.8;
}

.service-link {
    color: var(--primary-color);
    font-weight: 500;
    display: inline-block;
}

.service-link:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

/* ==================== 解决方案 ==================== */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.solution-card {
    background: var(--white);
    padding: 30px 20px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 4px solid var(--primary-color);
}

.solution-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.solution-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.solution-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.solution-card ul li {
    padding: 8px 0;
    color: var(--light-text);
    font-size: 14px;
}

.solution-card ul li::before {
    content: "✓";
    color: var(--primary-color);
    margin-right: 8px;
}

/* ==================== 成功案例 ==================== */
.cases {
    background: var(--background-color);
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.case-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.case-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.case-image {
    height: 200px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.case-overlay {
    position: absolute;
    bottom: 15px;
    left: 15px;
}

.case-category {
    background: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.case-info {
    padding: 25px;
}

.case-info h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.case-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.tag {
    background: var(--background-color);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    color: var(--primary-color);
}

.case-info p {
    color: var(--light-text);
    font-size: 14px;
    line-height: 1.8;
}

/* ==================== 技术优势 ==================== */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.advantage-card {
    text-align: center;
    padding: 40px 20px;
}

.advantage-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.advantage-number {
    font-size: 48px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.advantage-number span {
    font-size: 24px;
}

.advantage-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.advantage-card p {
    color: var(--light-text);
    font-size: 14px;
}

/* ==================== 关于我们 ==================== */
.about {
    background: var(--background-color);
}

.about-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 50px;
}

.about-text h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.about-text p {
    margin-bottom: 20px;
    line-height: 2;
    color: var(--light-text);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.stat-card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
}

.stat-number {
    font-size: 42px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-number span {
    font-size: 24px;
}

.stat-label {
    color: var(--light-text);
}

/* ==================== 联系我们 ==================== */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: var(--background-color);
    border-radius: 12px;
    transition: var(--transition);
}

.contact-item:hover {
    background: var(--white);
    box-shadow: var(--shadow);
}

.contact-icon {
    font-size: 40px;
}

.contact-details h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--secondary-color);
}

.contact-details a,
.contact-details p {
    color: var(--light-text);
    font-size: 16px;
}

.contact-details a:hover {
    color: var(--primary-color);
}

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--background-color);
    border-radius: 8px;
    font-size: 16px;
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ==================== 底部 ==================== */
.footer {
    background: var(--secondary-color);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-brand {
    padding-right: 50px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    margin-bottom: 15px;
}

.footer-brand p {
    margin-bottom: 10px;
    opacity: 0.8;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.footer-column h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column a {
    opacity: 0.7;
    transition: var(--transition);
}

.footer-column a:hover {
    opacity: 1;
    color: var(--primary-color);
}

.footer-column ul li:not(a) {
    opacity: 0.7;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
}

/* ==================== 返回顶部按钮 ==================== */
.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
}

/* ==================== 在线咨询悬浮窗 ==================== */
.consult-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    padding: 15px 25px;
    border-radius: 50px;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    transition: var(--transition);
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 10px;
}

.consult-float:hover {
    transform: scale(1.1);
}

.consult-icon {
    font-size: 24px;
}

.consult-text {
    font-weight: 500;
}

/* ==================== 咨询对话框 ==================== */
.consult-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    display: none;
    justify-content: center;
    align-items: center;
}

.consult-modal.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    width: 90%;
    max-width: 500px;
    border-radius: 15px;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: var(--primary-color);
    color: var(--white);
}

.modal-header h3 {
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    color: var(--white);
    font-size: 30px;
    cursor: pointer;
    line-height: 1;
}

.modal-body {
    padding: 30px;
    text-align: center;
}

.modal-body p {
    margin-bottom: 15px;
    color: var(--light-text);
}

.phone-link {
    display: block;
    font-size: 28px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.modal-body form {
    margin-top: 20px;
}

.modal-body input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 2px solid var(--background-color);
    border-radius: 8px;
    font-size: 16px;
}

.modal-body input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.modal-body button {
    width: 100%;
    padding: 15px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
}

.modal-body button:hover {
    background: var(--accent-color);
}

/* ==================== 动画 ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 1024px) {
    .nav-menu {
        gap: 25px;
    }
    
    .nav-actions {
        gap: 10px;
    }
    
    .phone-number {
        display: none;
    }
    
    .phone-btn {
        padding: 10px 12px;
    }
    
    .solutions-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 30px;
        gap: 0;
        transition: all 0.3s ease;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu > li {
        width: 100%;
        border-bottom: 1px solid var(--background-color);
    }
    
    .nav-menu > li > a {
        padding: 20px 0;
        justify-content: space-between;
        font-size: 18px;
    }
    
    .nav-menu > li > a .arrow {
        font-size: 12px;
        transition: transform 0.3s ease;
    }
    
    .nav-menu > li.active > a .arrow {
        transform: rotate(180deg);
    }
    
    .dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        min-width: 100%;
        margin-top: 0;
        padding: 15px 0;
        box-shadow: none;
        background: transparent;
        max-height: 0;
        overflow: hidden;
        transition: all 0.3s ease;
    }
    
    .nav-menu > li.active .dropdown-menu {
        max-height: 1000px;
        padding: 15px 0;
    }
    
    .dropdown-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .dropdown-item {
        padding: 12px;
        background: var(--background-color);
        margin-bottom: 8px;
    }
    
    .dropdown-icon {
        font-size: 28px;
    }
    
    .nav-actions {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero {
        height: 500px;
    }
    
    .slide-content h1 {
        font-size: 32px;
    }
    
    .slide-content p {
        font-size: 18px;
    }
    
    .services-grid,
    .cases-grid {
        grid-template-columns: 1fr;
    }
    
    .solutions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .consult-float {
        padding: 12px 20px;
    }
    
    .consult-text {
        display: none;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 20px;
    }
    
    .section-header h2 {
        font-size: 32px;
    }
    
    .solutions-grid {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
}
