:root {
    --iot-primary: #d62828; /* Red for Official/Authoritative */
    --iot-secondary: #003049; /* Deep Blue for Professionalism */
    --iot-accent: #f77f00; /* Gold/Orange accent */
    --iot-dark: #001d3d;
    --iot-dark-alt: #003566;
    --iot-light-bg: #fdf0d5; /* Warm light bg */
    --iot-text-muted: #669bbc;
    --iot-text-dark: #333333;
    --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; /* Prevent default scroll for fullpage */
}

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

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

#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-color: rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

/* 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-color: var(--iot-primary);
    transform: scale(1.2);
    border-color: #fff;
}

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

#fp-nav li:hover .fp-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

/* 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;
}

.section-content {
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 50px;
    text-align: center;
}

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

/* Section 1: Hero */
.hero-section {
    background: linear-gradient(135deg, var(--iot-dark) 0%, var(--iot-dark-alt) 100%);
    color: var(--iot-text-light);
    text-align: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/smart-doc-bg.jpg') no-repeat center center/cover;
    opacity: 0.1;
}

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

.hero-content .subtitle {
    font-size: 24px;
    color: var(--iot-text-muted);
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.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-primary);
}

.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;
    cursor: pointer;
    z-index: 10;
}

/* Section 2: Tech */
.tech-section {
    background-color: #fff;
}

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

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

.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: #666;
    line-height: 1.6;
    font-size: 14px;
}

/* Section 3: Industry */
.industry-section {
    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(214, 40, 40, 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: #666;
    line-height: 1.6;
}

/* Section 4: Comparison */
.comparison-section {
    background-color: #fff;
}

.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-dark-alt) 0%, var(--iot-dark) 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(214,40,40,0.2) 0%, transparent 70%);
}

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

.comparison-box ul {
    list-style: none;
    padding: 0;
}

.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: #4ade80; 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 */
.problem-section {
    background-color: var(--iot-secondary);
    color: #fff;
}

.problem-section .section-title {
    color: #fff;
}

.problem-section .section-title::after {
    background: #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-primary); /* Red highlight */
}

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

/* Section 6: Advantages */
.advantage-section {
    background-color: #fff;
}

.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: #fff5f5;
    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: #666;
    font-size: 14px;
    line-height: 1.6;
}

/* Section 7: Architecture */
.architecture-section {
    background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 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 #dee2e6;
}

.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: #f1f3f5;
    padding: 10px 20px;
    font-weight: 700;
    color: var(--iot-text-dark);
    text-align: center;
    border-bottom: 1px solid #eee;
}

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

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

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

.arch-arrow {
    color: #adb5bd;
    font-size: 20px;
}

/* Section 8: Footer */
/* Footer styles are handled globally by style.css and LayoutManager */


/* 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) {
    /* Enable native scroll on mobile/tablet */
    body { overflow: auto; }
    #fullpage { height: auto; }
    .section { height: auto; min-height: 100vh; padding: 60px 0; }
    .footer-section { height: auto; min-height: 50vh; }
    
    /* Disable JS Fullpage via CSS logic overrides if needed, 
       but mostly handled by JS matchMedia check */
}

@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; }
    
    .tech-card, .industry-item, .problem-card, .adv-card {
        margin-bottom: 20px;
    }
}
