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

:root {
    --primary-color: #0891b2;
    --primary-dark: #0e7490;
    --primary-light: #22d3ee;
    --secondary-color: #06b6d4;
    --accent-color: #f59e0b;
    --text-dark: #1e293b;
    --text-medium: #475569;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background: var(--bg-white);
}

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

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 1.25rem;
}

.logo-img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
}

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

.nav-link {
    display: block;
    padding: 8px 16px;
    color: var(--text-medium);
    text-decoration: none;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-color);
    background: rgba(8, 145, 178, 0.05);
}

.nav-link.btn-primary {
    background: var(--primary-color);
    color: white;
}

.nav-link.btn-primary:hover {
    background: var(--primary-dark);
}

/* 按钮 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

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

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

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

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

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn-full {
    width: 100%;
}

/* Hero区域 */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #ecfeff 0%, #cffafe 50%, #a5f3fc 100%);
    position: relative;
    overflow: hidden;
}

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

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

.hero-title .highlight {
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-medium);
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 60px;
}

.hero-stats {
    display: flex;
    gap: 48px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* IoT展示 */
.iot-showcase {
    width: 400px;
    height: 400px;
    position: relative;
    margin: 0 auto;
}

.iot-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.center-hub {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 10px 40px rgba(8, 145, 178, 0.4);
    animation: pulse-hub 2s ease-in-out infinite;
}

@keyframes pulse-hub {
    0%, 100% { box-shadow: 0 10px 40px rgba(8, 145, 178, 0.4); }
    50% { box-shadow: 0 10px 60px rgba(8, 145, 178, 0.6); }
}

.hub-icon {
    font-size: 2.5rem;
}

.hub-text {
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 4px;
}

.iot-devices {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.device-item {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(var(--angle)) translateX(140px) rotate(calc(-1 * var(--angle)));
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    animation: float-device 3s ease-in-out infinite;
    animation-delay: calc(var(--angle) / 360 * 1s);
}

@keyframes float-device {
    0%, 100% { transform: translate(-50%, -50%) rotate(var(--angle)) translateX(140px) rotate(calc(-1 * var(--angle))) translateY(0); }
    50% { transform: translate(-50%, -50%) rotate(var(--angle)) translateX(140px) rotate(calc(-1 * var(--angle))) translateY(-10px); }
}

.device-icon {
    font-size: 1.75rem;
}

.device-name {
    font-size: 0.75rem;
    color: var(--text-medium);
    margin-top: 4px;
}

.connection-lines {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.line {
    position: absolute;
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    top: 0;
    left: 60px;
    transform-origin: left center;
    transform: rotate(var(--line-angle));
    opacity: 0.5;
    animation: line-pulse 2s ease-in-out infinite;
}

@keyframes line-pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

/* 通用Section */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(8, 145, 178, 0.1);
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 16px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-medium);
}

/* 产品服务 */
.products {
    background: var(--bg-white);
}

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

.product-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.product-card.featured {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
}

.product-card.featured h3,
.product-card.featured p,
.product-card.featured .feature-list li {
    color: white;
}

.product-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.product-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.product-card p {
    color: var(--text-medium);
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

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

.feature-list li {
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
    color: var(--text-medium);
    font-size: 0.85rem;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
}

.product-card.featured .feature-list li::before {
    color: rgba(255, 255, 255, 0.8);
}

.link-arrow {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition);
    margin-top: 16px;
}

.link-arrow:hover {
    gap: 8px;
}

.product-card .link-arrow {
    color: var(--primary-color);
}

.product-card.featured .link-arrow {
    color: white;
}

.solution-content .link-arrow {
    margin-top: 16px;
}

/* 解决方案 */
.solutions {
    background: var(--bg-light);
}

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

.solution-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    display: block;
}

.solution-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.solution-image {
    height: 200px;
    position: relative;
}

.solution-image.energy {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    position: relative;
    overflow: hidden;
}

.solution-image.energy::before {
    content: '⚡';
    position: absolute;
    font-size: 6rem;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.3;
}

.solution-image.energy::after {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    border: 4px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
    0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.5; }
    100% { transform: translate(-50%, -50%) scale(1.2); opacity: 0; }
}

.solution-image.data-center {
    background: linear-gradient(135deg, #1e3a5f, #3b82f6);
    position: relative;
    overflow: hidden;
}

.solution-image.data-center::before {
    content: '🖥️';
    position: absolute;
    font-size: 5rem;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.solution-image.data-center::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 4px;
    background: linear-gradient(90deg, transparent, #60a5fa, transparent);
    top: 70%;
    left: 50%;
    transform: translateX(-50%);
    animation: scan-line 2s ease-in-out infinite;
}

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

.solution-image.factory {
    background: linear-gradient(135deg, #059669, #10b981);
    position: relative;
    overflow: hidden;
}

.solution-image.factory::before {
    content: '🏭';
    position: absolute;
    font-size: 5rem;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.solution-image.factory::after {
    content: '';
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 180px;
    height: 60px;
    background: repeating-linear-gradient(
        90deg,
        rgba(255,255,255,0.2),
        rgba(255,255,255,0.2) 20px,
        transparent 20px,
        transparent 40px
    );
    animation: conveyor 3s linear infinite;
}

@keyframes conveyor {
    0% { background-position: 0 0; }
    100% { background-position: 40px 0; }
}

.solution-image.warehouse {
    background: linear-gradient(135deg, #7c3aed, #a78bfa);
    position: relative;
    overflow: hidden;
}

.solution-image.warehouse::before {
    content: '📦';
    position: absolute;
    font-size: 5rem;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.solution-image.warehouse::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.2);
    border-radius: 8px;
    top: 30px;
    left: 30px;
    box-shadow: 
        80px 0 0 rgba(255,255,255,0.15),
        0 80px 0 rgba(255,255,255,0.15),
        80px 80px 0 rgba(255,255,255,0.1);
}

.solution-content {
    padding: 24px;
}

.solution-content h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.solution-content p {
    color: var(--text-medium);
    font-size: 0.9rem;
    margin-bottom: 16px;
    line-height: 1.6;
}

.solution-content ul {
    list-style: none;
}

.solution-content li {
    padding: 4px 0;
    padding-left: 20px;
    position: relative;
    color: var(--text-light);
    font-size: 0.85rem;
}

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

/* 客户案例 */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.case-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: var(--transition);
}

.case-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.case-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.case-industry {
    padding: 6px 12px;
    background: rgba(8, 145, 178, 0.1);
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 4px;
}

.case-result {
    font-size: 1.5rem;
    font-weight: 700;
    color: #10b981;
}

.case-card h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.case-card > p {
    color: var(--text-medium);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.case-metrics {
    display: flex;
    gap: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.metric {
    display: flex;
    flex-direction: column;
}

.metric-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.metric-label {
    font-size: 0.75rem;
    color: var(--text-light);
}

/* 关于我们 */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.about-text > p {
    color: var(--text-medium);
    line-height: 1.8;
    margin-bottom: 40px;
}

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

.advantage-item {
    display: flex;
    gap: 16px;
}

.advantage-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.advantage-item h4 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.advantage-item p {
    font-size: 0.9rem;
    color: var(--text-light);
}

.about-visual {
    height: 400px;
    background: linear-gradient(135deg, #ecfeff, #cffafe);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.platform-preview {
    width: 100%;
    max-width: 360px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.preview-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 16px 20px;
    font-weight: 600;
}

.preview-body {
    padding: 24px;
}

.preview-stats {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
}

.p-stat {
    flex: 1;
    text-align: center;
}

.p-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.p-label {
    font-size: 0.8rem;
    color: var(--text-light);
}

.preview-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 100px;
    gap: 8px;
}

.p-bar {
    flex: 1;
    background: linear-gradient(to top, var(--primary-color), var(--primary-light));
    border-radius: 4px 4px 0 0;
    min-height: 20%;
}

.p-bar.active {
    background: linear-gradient(to top, var(--primary-dark), var(--primary-color));
}

/* 联系我们 */
.contact {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 100px 0;
}

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

.contact-info h2 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 16px;
}

.contact-info > p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 16px;
}

.method-icon {
    font-size: 2rem;
}

.method-label {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

.method-value {
    display: block;
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
}

.contact-form-wrapper {
    background: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    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);
    box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.1);
}

/* 页脚 */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 60px 0 24px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand .logo {
    color: white;
    margin-bottom: 16px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.footer-column h4 {
    font-size: 1rem;
    margin-bottom: 16px;
    color: white;
}

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

.footer-column li {
    margin-bottom: 8px;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* 响应式 */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .iot-showcase {
        width: 300px;
        height: 300px;
    }
    
    .device-item {
        transform: translate(-50%, -50%) rotate(var(--angle)) translateX(100px) rotate(calc(-1 * var(--angle)));
    }
    
    .products-grid,
    .cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .solutions-grid,
    .about-content,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .products-grid,
    .cases-grid,
    .solutions-grid,
    .advantages {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}
