/* CSS变量定义 */
:root {
    --d: 0.3s;
    --e: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --bp-md: 768px;
    --bp-lg: 1024px;
}

/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

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

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

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: #2563eb;
}

.nav-logo img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-right: 0.5rem;
}

.company-name {
    font-size: 2rem;
    font-weight: bold;
    color: #000;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: #000;
    font-weight: bold;
    transition: color 0.3s ease;
    position: relative;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #2563eb;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* 下拉菜单样式 */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1001;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.dropdown-link {
    display: block;
    padding: 0.75rem 1.5rem;
    color: #333;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.dropdown-link:last-child {
    border-bottom: none;
}

.dropdown-link:hover {
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
    padding-left: 2rem;
}

/* 为有下拉菜单的导航项添加指示器 */
.nav-item .nav-link::before {
    content: '▾';
    margin-left: 0.3rem;
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}

.nav-item:hover .nav-link::before {
    transform: rotate(180deg);
}

.nav-link:hover {
    color: #2563eb;
}

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

.bar {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* 首页轮播横幅 */
.hero-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
    background: #000;
}

.hero-slider {
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
    display: flex;
    align-items: center;
}

.slide.active {
    opacity: 1;
}

.slide-content {
    position: absolute;
    left: 50%;
    top: calc(50% + 190px);
    transform: translate(-50%, -50%);
    z-index: 2;
    color: white;
    max-width: 600px;
    text-align: center;
}

.slide-content h1 {
    font-size: 48px;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.slide-image {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
}

/* 视频轮播样式 */
.slide-video {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slide-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
}

.video-slide .slide-content {
    z-index: 3;
}

.cta-button {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* 轮播控制 */
.slider-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    z-index: 3;
}

.prev-btn, .next-btn {
    position: absolute;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.5rem;
    padding: 1rem;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.prev-btn {
    left: 2rem;
}

.next-btn {
    right: 2rem;
}

.prev-btn:hover, .next-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.slider-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 3;
}

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

.dot.active {
    background: white;
    transform: scale(1.2);
}

/* 产品分类区块 */
.products-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2d3748;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(45deg, #2563eb, #3b82f6);
    border-radius: 2px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.product-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all var(--d) var(--e);
    position: relative;
    overflow: hidden;
    will-change: transform;
    height: 520px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    z-index: 1;
    transform: translateY(0) scale(1);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--bg-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 1;
    transition: all var(--d) var(--e);
    z-index: 0;
}

.product-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
    z-index: 1;
}





.product-card:hover {
    transform: translateY(-10px) scale(1.2);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    z-index: 10;
}

.product-card:hover::after {
    opacity: 1;
    transform: scale(1);
}

.product-card:hover::before {
    opacity: 0.7;
    transform: scale(1.2);
}

.product-card:hover h3 {
    color: #2563eb;
    transform: translateY(-2px);
    transition: all var(--d) var(--e);
}



.product-card h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    margin-bottom: 0.5rem;
    color: white;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    position: relative;
    z-index: 1;
}

.product-card p {
    color: white;
    margin-bottom: 2rem;
    line-height: 1.6;
    font-size: 1.2rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}

/* 产品详情样式 */
.product-details {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(
        to bottom,
        hsla(0, 0%, 0%, 0) 0%,
        hsla(0, 0%, 0%, 0.1) 20%,
        hsla(0, 0%, 0%, 0.3) 40%,
        hsla(0, 0%, 0%, 0.6) 60%,
        hsla(0, 0%, 0%, 0.8) 80%,
        hsla(0, 0%, 0%, 0.9) 100%
    );
    color: white;
    padding: 2.5rem 2rem;
    border-radius: 0 0 20px 20px;
    transform: translateY(100%);
    transition: transform calc(var(--d) * 1.5) var(--e);
    backdrop-filter: blur(5px);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.2);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    z-index: 2;
}

.product-card:hover .product-details {
    transform: translateY(0);
}

.detail-item {
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(15px);
    transition: all var(--d) var(--e);
    transition-delay: calc(var(--d) * 0.1);
}

.product-card:hover .detail-item {
    opacity: 1;
    transform: translateY(0);
}

.detail-item:nth-child(1) { transition-delay: calc(var(--d) * 0.1); }
.detail-item:nth-child(2) { transition-delay: calc(var(--d) * 0.2); }
.detail-item:nth-child(3) { transition-delay: calc(var(--d) * 0.3); }
.detail-item:nth-child(4) { transition-delay: calc(var(--d) * 0.4); }

.detail-text {
    font-size: 0.95rem;
    font-weight: 600;
    display: block;
    text-align: center;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: all var(--d) var(--e);
    min-width: 100px;
    max-width: 140px;
    margin: 0 auto;
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.5px;
}

.detail-text:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.product-btn {
    padding: 0.8rem 1.5rem;
    background: linear-gradient(45deg, #2563eb, #3b82f6);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all var(--d) var(--e);
    font-weight: 500;
    opacity: 0;
    transform: translateY(20px);
    transition-delay: calc(var(--d) * 0.5);
}

.product-card:hover .product-btn {
    opacity: 1;
    transform: translateY(0);
}

.product-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.4);
}

/* 详细信息中的按钮样式 */
.detail-btn {
    margin-top: 2rem;
    background: linear-gradient(45deg, #2563eb, #3b82f6);
    transition-delay: calc(var(--d) * 0.6);
    padding: 1rem 2rem;
    font-size: 0.9rem;
    min-width: 150px;
    max-width: 170px;
    border-radius: 30px;
    font-weight: 700;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.detail-btn:hover {
    background: linear-gradient(45deg, #3b82f6, #2563eb);
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.5);
    border-color: rgba(255, 255, 255, 0.4);
}

/* 响应式设计 */
@media (max-width: var(--bp-md)) {
    .product-details {
        padding: 1.5rem;
    }
    
    .detail-text {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
    
    .product-btn {
        padding: 0.7rem 1.3rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .product-details {
        padding: 1rem;
    }
    
    .detail-item {
        margin-bottom: 0.6rem;
    }
    
    .detail-text {
        font-size: 0.85rem;
    }
}

@media (min-width: var(--bp-lg)) {
    .product-card:hover {
        transform: translateY(-15px) scale(1.2);
    }
    
    .product-details {
        padding: 2.5rem;
    }
    
    .detail-text {
        font-size: 1rem;
        padding: 0.6rem 1.2rem;
    }
}

/* 解决方案展示 */
.solutions-section {
    padding: 5rem 0;
    background: white;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 1024px) {
    .solutions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .solutions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .solutions-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.solution-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.solution-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.solution-image {
    height: 200px;
    overflow: hidden;
}

.solution-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.solution-card:hover .solution-image img {
    transform: scale(1.1);
}

.solution-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.solution-content h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #2d3748;
}

.solution-content p {
    color: #718096;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.solution-btn {
    padding: 0.8rem 1.5rem;
    background: linear-gradient(45deg, #2563eb, #3b82f6);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    margin: 0 auto;
    display: block;
    margin-top: auto;
}

.solution-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.4);
}

/* 核心技术 */
.technology-section {
    padding: 5rem 0;
    background: #f8fafc;
}

.technology-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    position: relative;
}

.technology-header .section-title {
    margin: 0;
    flex: 1;
    text-align: center;
}

.tech-more-btn {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    padding: 11.5px 23px; /* Increased by 15% from 10px 20px */
    border-radius: 34.5px; /* Increased by 15% from 30px */
    border: 2px solid #9ca3af;
    background: #f8fafc;
    color: #1f2937;
    font-size: 19.55px; /* Increased by 15% from 17px */
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    white-space: nowrap;
}

.tech-more-btn:hover {
    border-color: #2563eb;
    background: #2563eb;
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.technology-scroll-container {
    overflow: hidden;
    position: relative;
}

.technology-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.technology-scroll::-webkit-scrollbar {
    display: none;
}

/* 滑动控制按钮 */
.scroll-controls {
    position: relative;
    display: flex;
    gap: 100px;
    justify-content: center;
    margin-top: 5rem;
    z-index: 10;
}

.scroll-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.65); /* Increased transparency by 35% */
    border: 1px solid #DDD;
    color: #3d3636;
    font-size: 35px;
    font-family: monospace;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.scroll-btn:hover {
    background: #b1adad;
    color: white;
    border-color: #afafaf;
    transform: scale(1.05);
}

.scroll-btn:active {
    transform: scale(0.95);
}

.scroll-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.scroll-btn.disabled:hover {
    background: white;
    color: #999;
    border-color: #DDD;
    transform: none;
}

.tech-card {
    flex: 0 0 390px; /* Increased by 30% from 300px */
    height: 494px; /* Increased by 30% from 380px */
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.tech-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.tech-image {
    width: 390px; /* Increased by 30% from 300px */
    height: 260px; /* Increased by 30% from 200px */
    overflow: hidden;
    position: relative;
}

.tech-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: #e5e7eb;
}

.tech-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.tech-card:hover .tech-image img {
    transform: scale(1.05);
}

.tech-content {
    padding: 20px;
    height: 234px; /* Increased by 30% from 180px */
    display: flex;
    flex-direction: column;
    position: relative;
}

.tech-content h3 {
    font-family: "SimHei", "黑体", sans-serif;
    font-weight: bold;
    font-size: 1.8rem; /* Same as solution-card h3 */
    line-height: 1.4;
    color: #1f2937;
    margin: 0 0 10px 0;
    max-height: 2.8em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.tech-content p {
    color: #6b7280;
    font-size: 1rem; /* Same as solution-card p (default size) */
    line-height: 1.5;
    margin: 0;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
}

.tech-plus-icon {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 37.44px; 
    height: 37.44px; 
    border-radius: 50%;
    background: #f3f4f6;
    color: #4b5563;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24.96px; 
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tech-plus-icon:hover {
    transform: scale(1.2);
    background: #e5e7eb;
    color: #374151;
}

/* 服务与支持 */
.support-section {
    padding: 5rem 0;
    background: #f7fafc;
}

.support-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.support-info h3, .support-form h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #2d3748;
}

.support-info p {
    margin-bottom: 1rem;
    color: #718096;
    display: flex;
    align-items: center;
}

.support-info i {
    margin-right: 0.5rem;
    color: #2563eb;
    width: 20px;
}

.support-form form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.support-form input,
.support-form textarea {
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.support-form input:focus,
.support-form textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.submit-btn {
    padding: 1rem 2rem;
    background: linear-gradient(45deg, #2563eb, #3b82f6);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.4);
}

/* 关于我们 */
.about-section {
    padding: 5rem 0;
    background: white;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
    align-items: center;
}

.about-text p {
    font-size: 1.1rem;
    color: #4a5568;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.company-stats {
    display: grid;
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #f7fafc, #edf2f7);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.stat-item h3 {
    font-size: 2.5rem;
    color: #2563eb;
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: #718096;
    font-weight: 500;
}

/* 页脚 */
.footer {
    background: #1a202c;
    color: white;
    padding: 3rem 0 1rem;
}

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

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #fbbf24;
}

.footer-section p {
    margin-bottom: 0.5rem;
    color: #a0aec0;
    line-height: 1.6;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #a0aec0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #fbbf24;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: #2d3748;
    color: white;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #2563eb;
    transform: translateY(-2px);
}

/* 二维码弹窗样式 */
.social-link {
    position: relative;
}

.qr-popup {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    margin-bottom: 10px;
    min-width: 150px;
}

.qr-popup::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: white;
}

.qr-content {
    text-align: center;
}

.qr-content h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 14px;
    font-weight: bold;
}

.qr-content img {
    width: 120px;
    height: 120px;
    display: block;
    margin: 0 auto;
}

.social-link:hover .qr-popup {
    opacity: 1;
    visibility: visible;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #2d3748;
    color: #a0aec0;
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

.icp-info {
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.icp-info a {
    color: #a0aec0;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    position: relative;
}

.icp-info a:hover {
    color: #2563eb;
    background: rgba(37, 99, 235, 0.1);
    transform: translateY(-1px);
}

.icp-info a::before {
    content: '🔗';
    margin-right: 0.3rem;
    font-size: 0.8rem;
    opacity: 0.8;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        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: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .slide-content h1 {
        font-size: 2rem;
    }

    .slide-content {
        left: 50%;
        right: auto;
        text-align: center;
        transform: translate(-50%, -50%);
    }

    .slide-image {
        width: 100%;
        opacity: 1;
    }

    .products-grid,
    .solutions-grid,
    .technology-grid {
        grid-template-columns: 1fr;
    }

    .support-content,
    .about-content {
        grid-template-columns: 1fr;
    }

    .prev-btn,
    .next-btn {
        display: none;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .slide-content h1 {
        font-size: 2rem;
    }

    .slide-content p {
        font-size: 1rem;
    }

    .product-card,
    .solution-card {
        padding: 1.5rem;
    }

    .nav-container {
        padding: 1rem;
    }
    
    .icp-info {
        font-size: 0.8rem;
    }
    
    .icp-info a {
        padding: 0.15rem 0.4rem;
    }
}
