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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 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);
    border-bottom: 1px solid rgba(0, 123, 255, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    color: #007BFF;
}

.nav-logo img {
    width: 40px;
    height: 40px;
}

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

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #007BFF;
}

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

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

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

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

/* 首页样式 */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    animation: slideInLeft 1s ease-out;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
    line-height: 1.6;
}

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

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
}

.btn-primary {
    background: #007BFF;
    color: white;
}

.btn-primary:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 123, 255, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #007BFF;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: #007BFF;
    border: 2px solid #007BFF;
}

.btn-outline:hover {
    background: #007BFF;
    color: white;
    transform: translateY(-2px);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: slideInRight 1s ease-out;
}

.hero-graphic {
    position: relative;
    width: 400px;
    height: 400px;
}

.floating-icon {
    position: absolute;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: float 3s ease-in-out infinite;
}

.icon-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.icon-2 {
    top: 10%;
    right: 20%;
    animation-delay: 0.5s;
}

.icon-3 {
    bottom: 30%;
    left: 20%;
    animation-delay: 1s;
}

.icon-4 {
    bottom: 20%;
    right: 10%;
    animation-delay: 1.5s;
}

/* 通用区块样式 */
.section {
    padding: 100px 0;
}

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

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.section-header p {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.bg-light {
    background: #f8f9fa;
}

.bg-dark {
    background: #333;
    color: white;
}

.bg-dark .section-header h2,
.bg-dark .section-header p {
    color: white;
}

/* 关于我们样式 */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.about-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.about-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #007BFF, #0056b3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: white;
}

.about-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.about-card p {
    color: #666;
    line-height: 1.6;
}

/* 产品样式 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 40px;
}

.product-category {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.product-category h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 30px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 15px;
}

.product-category h3 i {
    color: #007BFF;
    font-size: 1.5rem;
}

.product-items {
    display: grid;
    gap: 25px;
}

.product-item {
    padding: 25px;
    background: #f8f9fa;
    border-radius: 15px;
    border-left: 4px solid #007BFF;
}

.product-item h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.product-item p {
    color: #666;
    margin-bottom: 15px;
}

.product-item ul {
    list-style: none;
    padding-left: 0;
}

.product-item li {
    color: #666;
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.product-item li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #007BFF;
    font-weight: bold;
}

/* WFEdge-X-G1 定制展示 */
.product-item--g1 {
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

.product-item--g1 .product-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.product-item--g1 .product-tag {
    display: inline-block;
    font-size: 12px;
    color: #0b5ed7;
    background: rgba(13, 110, 253, 0.1);
    border: 1px solid rgba(13, 110, 253, 0.2);
    padding: 4px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

.product-media {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px 0 18px;
}

.product-image {
    width: 100%;
    max-width: 480px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.product-specs {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.product-specs .spec {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 10px;
    background: #f3f6fb;
    padding: 10px 12px;
    border-radius: 10px;
}

.spec-label {
    color: #4b5563;
    font-weight: 600;
}

.spec-value {
    color: #374151;
}

/* WFEdge-X-G2 定制展示（与 G1 复用布局，略调色）*/
.product-item--g2 {
    background: linear-gradient(180deg, #f7f7ff 0%, #ffffff 100%);
    border-left-color: #6f42c1;
}

.product-item--g2 .product-tag {
    color: #6f42c1;
    background: rgba(111, 66, 193, 0.1);
    border-color: rgba(111, 66, 193, 0.2);
}

/* WFEdge-X-G3 定制展示（原 GS 配色） */
.product-item--g3 {
    background: linear-gradient(180deg, #f0fbff 0%, #ffffff 100%);
    border-left-color: #0aa2c0;
}

.product-item--g3 .product-tag {
    color: #0aa2c0;
    background: rgba(10, 162, 192, 0.12);
    border-color: rgba(10, 162, 192, 0.25);
}

/* 服务样式 */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.service-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #28a745, #20c997);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    font-size: 2rem;
    color: white;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 25px;
    color: #333;
}

.service-items {
    display: grid;
    gap: 20px;
}

.service-item {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.service-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.service-item p {
    color: #666;
    font-size: 0.95rem;
}

/* 服务内媒体展示 */
.service-media {
    margin-top: 18px;
}

.service-media img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.media-caption {
    margin-top: 8px;
    color: #64748b;
    font-size: 0.9rem;
    text-align: center;
}

/* 客户案例小型画廊 */
.case-gallery {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 10px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    background: #fff;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

.gallery-item:hover img {
    transform: scale(1.04);
}

/* 简易灯箱 */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-overlay img {
    max-width: 92vw;
    max-height: 88vh;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

/* 客户案例样式 */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 340px));
    gap: 30px;
    justify-content: center;
}

.case-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.case-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #ffc107, #fd7e14);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    color: white;
}

.case-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.case-card p {
    color: #666;
    line-height: 1.6;
}

/* 云平台样式 */
.cloud-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

.cloud-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.cloud-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #6f42c1, #e83e8c);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    font-size: 2rem;
    color: white;
}

.cloud-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.cloud-card p {
    color: #666;
    margin-bottom: 20px;
}

.cloud-card ul {
    list-style: none;
    margin-bottom: 25px;
}

.cloud-card li {
    color: #666;
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.cloud-card li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #007BFF;
    font-weight: bold;
}

/* 联系我们样式 */
.contact-info {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: #007BFF;
}

/* 页脚样式 */
.footer {
    background: #222;
    color: white;
    padding: 40px 0;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: #007BFF;
}

.footer-logo img {
    width: 30px;
    height: 30px;
}

/* 动画效果 */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .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: 20px 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .hero-graphic {
        width: 300px;
        height: 300px;
    }
    
    .floating-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .product-category {
        padding: 30px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .cases-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .cloud-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .about-card,
    .product-category,
    .service-card,
    .case-card,
    .cloud-card {
        padding: 25px;
    }
}
