/* 物联云平台样式 */
:root {
    --primary-color: #10b981;
    --primary-dark: #059669;
    --primary-light: #34d399;
    --secondary-color: #3b82f6;
    --accent-color: #f59e0b;
    --text-color: #1e293b;
    --text-light: #64748b;
    --text-muted: #94a3b8;
    --bg-light: #f0fdf4;
    --bg-dark: #0f172a;
    --border-color: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #ffffff;
}

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

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    z-index: 1000;
    padding: 15px 0;
}

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

.nav-brand a {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.logo-en {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 400;
}

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

.nav-menu a {
    color: var(--text-color);
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}

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

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

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

/* 下拉菜单 */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: var(--shadow-hover);
    border-radius: 12px;
    padding: 10px 0;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    list-style: none;
}

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

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--text-color);
    font-size: 14px;
}

.dropdown-menu a:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

/* 移动端导航 */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    transition: var(--transition);
}

/* 英雄区域 */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
    color: #fff;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.1) 0%, transparent 50%);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    position: relative;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 14px;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
}

.hero-subtitle {
    font-size: 24px;
    opacity: 0.9;
    margin-bottom: 20px;
}

.hero-desc {
    font-size: 16px;
    opacity: 0.8;
    line-height: 1.8;
    margin-bottom: 40px;
}

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

/* IoT动画 */
.hero-visual {
    position: relative;
}

.iot-animation {
    position: relative;
    width: 400px;
    height: 400px;
    margin: 0 auto;
}

.iot-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.iot-center i {
    font-size: 48px;
    color: #fff;
}

.iot-device {
    position: absolute;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: float 3s ease-in-out infinite;
}

.iot-device i {
    font-size: 20px;
    color: #fff;
}

.device-1 { top: 0; left: 50%; transform: translateX(-50%); animation-delay: 0s; }
.device-2 { top: 15%; right: 5%; animation-delay: 0.5s; }
.device-3 { top: 50%; right: 0; transform: translateY(-50%); animation-delay: 1s; }
.device-4 { bottom: 15%; right: 5%; animation-delay: 1.5s; }
.device-5 { bottom: 0; left: 50%; transform: translateX(-50%); animation-delay: 2s; }
.device-6 { top: 50%; left: 0; transform: translateY(-50%); animation-delay: 2.5s; }

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

.device-1 { animation: float-1 3s ease-in-out infinite; }
.device-5 { animation: float-1 3s ease-in-out infinite 2s; }

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

.device-3 { animation: float-2 3s ease-in-out infinite 1s; }
.device-6 { animation: float-2 3s ease-in-out infinite 2.5s; }

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

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}

.btn-primary {
    background: #fff;
    color: var(--primary-color);
}

.btn-primary:hover {
    background: var(--bg-light);
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    color: #fff;
}

/* 通用区块 */
.section {
    padding: 80px 0;
}

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

.section-header h2 {
    font-size: 36px;
    color: var(--text-color);
    margin-bottom: 15px;
}

.section-header p {
    font-size: 18px;
    color: var(--text-light);
}

/* 核心能力 */
.capabilities-section {
    background: var(--bg-light);
}

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.capability-item {
    text-align: center;
    padding: 40px 20px;
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.capability-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.capability-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.capability-icon i {
    font-size: 32px;
    color: #fff;
}

.capability-item h4 {
    font-size: 20px;
    margin-bottom: 10px;
}

.capability-item p {
    color: var(--text-light);
    font-size: 14px;
}

/* 产品模块 */
.modules-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.module-card {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.module-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
}

.module-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.module-icon i {
    font-size: 28px;
    color: #fff;
}

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

.module-card > p {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 20px;
}

.module-features {
    list-style: none;
    margin-bottom: 20px;
}

.module-features li {
    padding: 6px 0;
    color: var(--text-light);
    font-size: 14px;
    position: relative;
    padding-left: 20px;
}

.module-features li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.module-link {
    font-weight: 500;
    font-size: 14px;
}

.module-link:hover {
    color: var(--primary-dark);
}

/* 行业解决方案 */
.industries-section {
    background: var(--bg-light);
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.industry-card {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 25px;
}

.industry-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.industry-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.industry-icon i {
    font-size: 36px;
    color: #fff;
}

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

.industry-card > p {
    color: var(--text-light);
    margin-bottom: 15px;
}

.industry-card ul {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.industry-card li {
    color: var(--text-light);
    font-size: 14px;
    position: relative;
    padding-left: 18px;
}

.industry-card li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* 技术支持 */
.support-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.support-item {
    text-align: center;
    padding: 40px 20px;
    background: var(--bg-light);
    border-radius: 16px;
    transition: var(--transition);
}

.support-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.support-item i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.support-item h4 {
    font-size: 20px;
    margin-bottom: 10px;
}

.support-item p {
    color: var(--text-light);
    font-size: 14px;
}

/* 页脚 */
.footer {
    background: var(--bg-dark);
    color: #fff;
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.footer-brand p {
    opacity: 0.7;
    margin-bottom: 5px;
    font-size: 14px;
}

.footer-domain {
    font-size: 14px;
    opacity: 0.5;
}

.footer-links h4,
.footer-company h4 {
    font-size: 16px;
    margin-bottom: 20px;
}

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

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.footer-links a:hover {
    color: #fff;
}

.footer-company p {
    opacity: 0.7;
    margin-bottom: 10px;
    font-size: 14px;
}

.footer-company a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-company a:hover {
    color: #fff;
}

.footer-sites {
    margin-top: 15px;
}

.footer-sites a {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    opacity: 0.5;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-visual {
        display: none;
    }

    .capabilities-grid,
    .support-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .modules-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .industries-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 20px;
        gap: 0;
        box-shadow: var(--shadow);
        display: none;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        padding: 10px 0;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        padding-left: 20px;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
    }

    .dropdown:hover .dropdown-menu {
        display: block;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero-btns {
        flex-direction: column;
    }

    .capabilities-grid,
    .modules-grid,
    .support-grid {
        grid-template-columns: 1fr;
    }

    .industry-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .industry-icon {
        margin: 0 auto;
    }

    .industry-card ul {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .section-header h2 {
        font-size: 28px;
    }
}
