:root {
    --iot-primary: #2563eb; /* Royal Blue */
    --iot-secondary: #1e40af; /* Dark Blue */
    --iot-accent: #60a5fa; /* Light Blue Accent */
    --iot-dark: #0f172a; /* Slate 900 */
    --iot-dark-alt: #1e293b; /* Slate 800 */
    --iot-light-bg: #f8fafc; /* Slate 50 */
    --iot-text-muted: #64748b; /* Slate 500 */
    --iot-text-dark: #0f172a;
    --iot-text-light: #ffffff;
    --card-bg-dark: rgba(255, 255, 255, 0.05);
    --card-border-dark: rgba(255, 255, 255, 0.1);
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    color: var(--iot-text-dark);
    overflow: hidden;
}

/* Page Navigation (Right Side Dots) */
#fp-nav {
    position: fixed;
    z-index: 100;
    top: 50%;
    right: 30px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#fp-nav li {
    position: relative;
    width: 14px;
    height: 14px;
    cursor: pointer;
}

#fp-nav li a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    outline: none;
}

#fp-nav li .nav-dot {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

/* Dark mode dots for dark sections */
body.dark-nav #fp-nav li .nav-dot {
    background-color: rgba(255, 255, 255, 0.3);
}

#fp-nav li.active .nav-dot {
    background: var(--iot-primary);
    transform: scale(1.2);
    border-color: #fff;
}

#fp-nav li .fp-tooltip {
    position: absolute;
    top: 50%;
    right: 25px;
    transform: translateY(-50%);
    color: #fff;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    transition: all 0.3s ease;
    background: var(--iot-primary);
    padding: 4px 8px;
    border-radius: 4px;
    pointer-events: none;
}

#fp-nav li:hover .fp-tooltip {
    opacity: 1;
    right: 30px;
}

/* Sections Common */
.fp-section {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.iot-container {
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
    position: relative;
    z-index: 2;
    margin: 0 auto;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 50px;
    text-align: center;
    color: var(--iot-text-dark);
}

.fp-section:not(.light-mode) .section-title {
    color: #fff;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--iot-primary);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* Section 1: Intro */
.fp-section#intro {
    background: linear-gradient(135deg, var(--iot-dark) 0%, var(--iot-secondary) 100%);
    color: #fff;
    text-align: center;
}

.hero-content h1 {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, #93c5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content .subtitle {
    font-size: 24px;
    color: var(--iot-text-muted);
    margin-bottom: 40px;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 50px;
}

.hero-features span {
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-features i {
    color: var(--iot-accent);
}

.btn-primary {
    display: inline-block;
    padding: 15px 40px;
    background: var(--iot-primary);
    color: #fff;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.4);
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 24px;
    animation: bounce 2s infinite;
}

/* Section 2: Tech */
.light-mode {
    background-color: #fff;
    color: var(--iot-text-dark);
}

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

.tech-card {
    background: #f8fafc;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.tech-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--iot-primary);
}

.tech-card .card-icon {
    font-size: 40px;
    color: var(--iot-primary);
    margin-bottom: 20px;
}

.tech-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--iot-text-dark);
}

.tech-card p {
    color: var(--iot-text-muted);
    font-size: 14px;
    line-height: 1.6;
}

/* Section 3: Industries */
.fp-section#industry {
    background-color: var(--iot-light-bg);
}

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

.industry-item {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.industry-item:hover {
    transform: scale(1.02);
}

.industry-icon {
    background: rgba(37, 99, 235, 0.1);
    color: var(--iot-primary);
    width: 60px;
    height: 60px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    flex-shrink: 0;
}

.industry-item h3 {
    margin-bottom: 10px;
    color: var(--iot-secondary);
}

.industry-item p {
    color: var(--iot-text-muted);
    line-height: 1.6;
}

/* Section 4: Comparison */
.comparison-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.comparison-box {
    flex: 1;
    padding: 40px;
    border-radius: 16px;
    height: 100%;
}

.comparison-box.old {
    background-color: #f1f5f9;
    border: 1px solid #e2e8f0;
}

.comparison-box.new {
    background: linear-gradient(135deg, var(--iot-secondary) 0%, var(--iot-primary) 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.comparison-box.new::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
}

.comparison-box h3 {
    font-size: 24px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.comparison-box ul li {
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    line-height: 1.6;
}

.comparison-box.old i { color: #94a3b8; margin-top: 4px; }
.comparison-box.new i { color: #60a5fa; margin-top: 4px; }

.vs-badge {
    background: var(--iot-primary);
    color: #fff;
    font-weight: 800;
    font-size: 24px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.8);
    z-index: 2;
}

/* Section 5: Problems */
.fp-section#problems {
    background-color: var(--iot-dark-alt);
    color: #fff;
}

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

.problem-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

.problem-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(10px);
}

.problem-number {
    font-size: 60px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.05);
    position: absolute;
    top: 10px;
    right: 20px;
    line-height: 1;
}

.problem-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--iot-accent);
}

.problem-card p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* Section 6: Advantages */
.advantage-cards {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.adv-card {
    flex: 1;
    text-align: center;
    padding: 30px 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.3s;
    border-top: 4px solid transparent;
}

.adv-card:hover {
    transform: translateY(-10px);
    border-top-color: var(--iot-primary);
}

.adv-icon {
    width: 80px;
    height: 80px;
    background: #eff6ff;
    color: var(--iot-primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
    margin: 0 auto 20px;
    transition: all 0.3s;
}

.adv-card:hover .adv-icon {
    background: var(--iot-primary);
    color: #fff;
}

.adv-card h3 {
    margin-bottom: 15px;
    color: var(--iot-text-dark);
}

.adv-card p {
    color: var(--iot-text-muted);
    font-size: 14px;
    line-height: 1.6;
}

/* Section 7: Architecture */
.fp-section#architecture {
    background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
}

.arch-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.arch-layer {
    width: 100%;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border: 1px solid #cbd5e1;
}

.arch-layer.top { border-top: 4px solid var(--iot-primary); }
.arch-layer.middle { border-top: 4px solid var(--iot-secondary); }
.arch-layer.bottom { border-top: 4px solid var(--iot-accent); }

.layer-title {
    background: #f1f5f9;
    padding: 10px 20px;
    font-weight: 700;
    color: var(--iot-text-dark);
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
}

.layer-content {
    padding: 20px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.layer-content span {
    background: #f8fafc;
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    font-size: 14px;
    color: #475569;
    transition: all 0.2s;
}

.layer-content span:hover {
    background: var(--iot-primary);
    color: #fff;
    border-color: var(--iot-primary);
}

.arch-arrow {
    color: #94a3b8;
    font-size: 20px;
    animation: bounce 2s infinite;
}

/* Footer & Animations - Shared Logic with other pages */
#contact.fp-section {
    height: auto !important;
    min-height: auto !important;
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    overflow: visible !important;
}

#contact.fp-section .fp-tableCell {
    display: block !important;
    height: auto !important;
    width: 100% !important;
}

/* Animations */
.animate-up, .animate-in, .animate-left, .animate-right {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-in { transform: scale(0.9); }
.animate-left { transform: translateX(-50px); }
.animate-right { transform: translateX(50px); }

.active .animate-up { opacity: 1; transform: translateY(0); }
.active .animate-in { opacity: 1; transform: scale(1); }
.active .animate-left { opacity: 1; transform: translateX(0); }
.active .animate-right { opacity: 1; transform: translateX(0); }

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* Responsive */
@media (max-width: 1024px) {
    body { overflow: auto; }
    #fullpage { height: auto; }
    .fp-section { height: auto; min-height: 100vh; padding: 60px 0; }
    #contact.fp-section { height: auto; min-height: auto; }
}

@media (max-width: 768px) {
    .hero-content h1 { font-size: 32px; }
    .tech-grid, .industry-grid, .advantage-cards, .problem-grid {
        grid-template-columns: 1fr;
    }
    .comparison-container {
        flex-direction: column;
        padding: 20px;
    }
    .vs-badge {
        transform: rotate(90deg);
        margin: 20px 0;
    }
    #fp-nav { display: none; }
}
