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

:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --accent-color: #3b82f6;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --white: #ffffff;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

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

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-dark);
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-2);
    border-radius: 2px;
}

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

.btn-primary {
    background: var(--gradient-2);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

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

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

.btn-block {
    width: 100%;
}

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

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.nav-brand i {
    font-size: 2rem;
}

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

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

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

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

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

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: url('../images/hero-bg.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-color: #1e3a8a;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.9) 0%, rgba(37, 99, 235, 0.8) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
    padding: 2rem;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    animation: fadeInUp 1s ease 0.2s backwards;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    animation: fadeInUp 1s ease 0.4s backwards;
}

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

/* About Section */
.about {
    padding: 6rem 0;
    background: var(--bg-light);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
    line-height: 1.8;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-top: 2rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.2rem 1.5rem;
    background: var(--white);
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 4px solid transparent;
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 4px 0 0 4px;
    transition: all 0.35s ease;
}

.stat-item:nth-child(1) {
    border-left-color: #667eea;
}
.stat-item:nth-child(1)::before {
    background: linear-gradient(180deg, #667eea, #764ba2);
}
.stat-item:nth-child(2) {
    border-left-color: #10b981;
}
.stat-item:nth-child(2)::before {
    background: linear-gradient(180deg, #10b981, #059669);
}
.stat-item:nth-child(3) {
    border-left-color: #f59e0b;
}
.stat-item:nth-child(3)::before {
    background: linear-gradient(180deg, #f59e0b, #d97706);
}

.stat-item:hover {
    transform: translateX(8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.stat-item .stat-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.6rem;
    color: #fff;
    transition: transform 0.3s ease;
}

.stat-item:hover .stat-icon-wrap {
    transform: scale(1.08) rotate(-3deg);
}

.stat-item:nth-child(1) .stat-icon-wrap {
    background: linear-gradient(135deg, #667eea, #764ba2);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}
.stat-item:nth-child(2) .stat-icon-wrap {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}
.stat-item:nth-child(3) .stat-icon-wrap {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.stat-item .stat-content {
    flex: 1;
    min-width: 0;
}

.stat-item .stat-content h4 {
    font-size: 1.15rem;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
    font-weight: 700;
}

.stat-item .stat-content p {
    color: var(--text-light);
    font-size: 0.88rem;
    margin: 0;
    line-height: 1.5;
}

.stat-item .stat-arrow {
    color: #d1d5db;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.stat-item:hover .stat-arrow {
    color: var(--primary-color);
    transform: translateX(4px);
}

.about-image {
    width: 100%;
}

/* 软件界面预览卡片 */
.software-preview {
    width: 100%;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 48px rgba(37, 99, 235, 0.18), 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8ecf1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.software-preview:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 56px rgba(37, 99, 235, 0.22), 0 6px 20px rgba(0, 0, 0, 0.1);
}

.software-preview-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.sp-dots {
    display: flex;
    gap: 7px;
    flex-shrink: 0;
}

.sp-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.sp-dot.red   { background: #ff5f57; }
.sp-dot.yellow { background: #febc2e; }
.sp-dot.green  { background: #28c840; }

.sp-title {
    color: rgba(255,255,255,0.75);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.software-preview-body {
    display: flex;
    height: 340px;
    background: #f0f2f5;
}

/* 左侧图标导航 */
.sp-sidebar {
    width: 48px;
    background: #1a1a2e;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
    gap: 6px;
    flex-shrink: 0;
}

.sp-sidebar-item {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #636e72;
    font-size: 0.9rem;
    transition: all 0.25s ease;
    cursor: default;
}

.sp-sidebar-item:hover,
.sp-sidebar-item.active {
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
}

/* 主区域 */
.sp-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sp-map-area {
    flex: 1;
    position: relative;
    margin: 10px;
    border-radius: 10px;
    overflow: hidden;
    background: linear-gradient(180deg, #e8f0fe 0%, #dbeafe 30%, #d1fae5 60%, #fef3c7 85%, #e8f0fe 100%);
}

.sp-map-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.12) 1px, transparent 1px);
    background-size: 25px 25px;
}

.sp-footprint {
    position: absolute;
    border: 2px dashed;
    border-radius: 6px;
    background: rgba(52, 152, 219, 0.15);
    border-color: #3498db;
    display: flex;
    align-items: flex-end;
    padding: 4px 6px;
    transition: all 0.3s ease;
}

.sp-footprint.highlight {
    border-style: solid;
    border-color: #2ecc71;
    background: rgba(46, 204, 113, 0.18);
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.2);
    z-index: 2;
}

.sp-footprint span {
    font-size: 0.65rem;
    font-weight: 700;
    color: inherit;
    background: rgba(255,255,255,0.8);
    padding: 1px 5px;
    border-radius: 3px;
}

.sp-footprint:nth-child(2) span { color: #3498db; }
.sp-footprint:nth-child(3) span { color: #2ecc71; }
.sp-footprint:nth-child(4) span { color: #9b59b6; }
.sp-footprint:nth-child(5) span { color: #e74c3c; }

/* 底部信息栏 */
.sp-info-bar {
    background: #fff;
    padding: 8px 14px;
    margin: 0 10px 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.72rem;
    color: #64748b;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.sp-info-bar i {
    color: #10b981;
    font-size: 0.7rem;
}

.sp-info-bar strong {
    color: #1f2937;
    font-weight: 600;
}

.sp-divider {
    color: #e2e8f0;
}

/* Advantages Section */
.advantages {
    padding: 6rem 0;
    background: var(--white);
}

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

.advantage-card {
    padding: 2.5rem 2rem;
    text-align: center;
    border-radius: 16px;
    background: var(--bg-light);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.advantage-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.15);
}

.advantage-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.advantage-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

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

/* Products Section */
.products {
    padding: 6rem 0;
    background: var(--bg-light);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.product-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.2);
    border-color: var(--accent-color);
}

.product-card.featured {
    position: relative;
}

.product-header {
    background: var(--gradient-2);
    padding: 2.5rem 2rem;
    text-align: center;
    color: var(--white);
}

.product-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.product-header h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.product-name-en {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 500;
}

.product-body {
    padding: 2rem;
}

.product-desc {
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.product-features {
    list-style: none;
    margin-bottom: 2rem;
}

.product-features li {
    padding: 0.7rem 0;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.product-features i {
    color: #10b981;
    font-size: 1.1rem;
}

.btn-product {
    display: block;
    text-align: center;
    background: var(--gradient-2);
    color: var(--white);
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-product:hover {
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
    transform: translateY(-2px);
}

/* Solutions Section */
.solutions {
    padding: 6rem 0;
    background: var(--white);
}

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

.solution-card {
    padding: 2.5rem 2rem;
    border-radius: 16px;
    background: var(--bg-light);
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.solution-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.15);
}

.solution-icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.solution-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

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

/* Partners Section */
.partners {
    padding: 6rem 0;
    background: var(--bg-light);
}

.partners-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.partners-logos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.partner-logo {
    padding: 2rem;
    background: var(--white);
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.partner-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.15);
}

.partner-logo i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.partner-logo p {
    color: var(--text-dark);
    font-weight: 500;
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.info-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.info-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.info-item i {
    font-size: 2rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.info-item h4 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.info-item p {
    color: var(--text-light);
    margin: 0.3rem 0;
}

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

.social-links a {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-2);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-5px) rotate(360deg);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.contact-form {
    padding: 2.5rem;
    background: var(--bg-light);
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.contact-form h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
    resize: vertical;
}

/* 微信二维码区域 */
.contact-qrcode {
    padding: 2.5rem;
    background: var(--bg-light);
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.contact-qrcode h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.qrcode-wrapper {
    position: relative;
    width: 220px;
    height: 220px;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.qrcode-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.qrcode-desc {
    color: var(--text-dark);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.qrcode-sub {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 4rem 0 2rem;
}

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

.footer-section h4 {
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.footer-section p {
    color: #9ca3af;
    line-height: 1.8;
}

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

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

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

.footer-section ul li a:hover {
    color: var(--accent-color);
}

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

/* 响应式设计 */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--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;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-stats {
        flex-direction: column;
    }

    .software-preview-body {
        height: 280px;
    }

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

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

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .container {
        padding: 0 15px;
    }

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

    .software-preview-body {
        height: 240px;
    }

    .stat-item {
        padding: 1rem 1.2rem;
    }

    .stat-item .stat-icon-wrap {
        width: 44px;
        height: 44px;
        font-size: 1.3rem;
        border-radius: 10px;
    }
}
