/* ========================================
   微点科技官网 - 首页特定样式
   ======================================== */

/* Hero Section - Home Specific */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 8%;
    text-align: center;
    background: 
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0, 102, 255, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(0, 80, 203, 0.06) 0%, transparent 40%),
        radial-gradient(ellipse 50% 50% at 20% 80%, rgba(99, 102, 241, 0.05) 0%, transparent 40%),
        #ffffff;
    position: relative;
    overflow: hidden;
}

/* Dot Grid Canvas Background */
.dot-grid-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Extra glow orb - subtle version for dot grid */
.hero::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 163, 255, 0.06) 0%, rgba(0, 102, 255, 0.02) 30%, transparent 60%);
    pointer-events: none;
    animation: pulseGlow 8s ease-in-out infinite;
    z-index: 1;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 1; transform: translateX(-50%) scale(1); }
    50% { opacity: 0.7; transform: translateX(-50%) scale(1.1); }
}

.hero-content {
    max-width: 720px;
    position: relative;
    z-index: 10;
}

/* Floating decorations - explicitly reset all 4 directions to override common.css conflicts */
.hero-decoration:nth-of-type(1) { top: 18%; bottom: auto; left: 8%;  right: auto; animation-delay: 0s; }
.hero-decoration:nth-of-type(2) { top: 15%; bottom: auto; left: auto; right: 10%; animation-delay: 1.5s; }
.hero-decoration:nth-of-type(3) { top: auto; bottom: 30%; left: 5%;  right: auto; animation-delay: 3s; }
.hero-decoration:nth-of-type(4) { top: auto; bottom: 25%; left: auto; right: 8%;  animation-delay: 4.5s; }

.hero-decoration svg {
    width: 64px;
    height: 64px;
    filter: drop-shadow(0 4px 12px rgba(0, 80, 203, 0.15));
}

/* Enhanced Hero Badge - Glassmorphism */
.hero .hero-badge {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 80, 203, 0.12);
    box-shadow: 
        0 4px 16px rgba(0, 80, 203, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    padding: 0.625rem 1.25rem;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: clamp(2.75rem, 6vw, 4rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1.75rem;
}

.hero h1 span {
    display: inline-block;
    position: relative;
}

/* Underline glow effect for highlighted text */
.hero h1 span::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: -2%;
    right: -2%;
    height: 8px;
    background: radial-gradient(ellipse 50% 100% at 50% 50%, rgba(0, 163, 255, 0.45) 0%, transparent 70%);
    filter: blur(8px);
    opacity: 0.9;
}

.hero h1 span::before {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(0, 102, 255, 0.5) 10%, 
        rgba(0, 163, 255, 0.7) 50%, 
        rgba(0, 102, 255, 0.5) 90%, 
        transparent 100%);
    border-radius: 1px;
}

.hero p {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    color: var(--on-surface-variant);
}

.hero .slogan {
    font-size: 0.9375rem;
    color: var(--primary);
    font-style: italic;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.hero-buttons .btn-primary {
    padding: 1rem 2.25rem;
    box-shadow: 
        0 4px 16px rgba(0, 80, 203, 0.25),
        0 2px 4px rgba(0, 80, 203, 0.1);
}

.hero-buttons .btn-secondary {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 80, 203, 0.1);
}

/* ========================================
   Trust Strip Section (Inside Hero)
   ======================================== */
.trust-strip {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(0, 102, 255, 0.08);
    padding: 1.25rem 0;
    z-index: 20;
}

.trust-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 8%;
}

.trust-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--on-surface-variant);
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.trust-icon {
    width: 20px;
    height: 20px;
    color: var(--primary);
}

.trust-divider {
    display: none; /* Removed dividers in favor of grid layout */
}

/* ========================================
   Features Section - 4D
   ======================================== */
.features-section {
    background: var(--surface-container-low);
    padding: 100px 8% 120px;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-label {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Segoe UI', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--primary);
    margin-bottom: 1rem;
    display: inline-block;
    padding: 4px 12px;
    background: rgba(0, 102, 255, 0.08);
    border-radius: 100px;
}

.section-header h2 {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Segoe UI', sans-serif;
    font-size: 2.25rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.section-desc {
    color: var(--on-surface-muted);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 1rem auto 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--surface-container-lowest);
    border: 1px solid var(--outline-variant);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.02);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 80, 203, 0.08);
    border-color: rgba(0, 102, 255, 0.1);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(0, 102, 255, 0.06);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Segoe UI', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--on-surface);
}

.feature-focus {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1rem;
    background: rgba(0, 102, 255, 0.08);
    padding: 2px 8px;
    border-radius: 4px;
}

.feature-card p {
    font-size: 0.9375rem;
    color: var(--on-surface-variant);
    line-height: 1.6;
}

/* Feature Card Background Pattern */
.card-bg-pattern {
    position: absolute;
    top: -5%;
    right: -5%;
    width: 85%;
    height: 85%;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(circle at 100% 0%, rgba(0, 102, 255, 0.08) 0%, transparent 50%);
    -webkit-mask-image: radial-gradient(circle at 100% 0%, black 15%, transparent 55%);
    mask-image: radial-gradient(circle at 100% 0%, black 15%, transparent 55%);
    opacity: 0.85;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-card:hover .card-bg-pattern {
    opacity: 0.95;
    transform: scale(1.05);
    background: radial-gradient(circle at 100% 0%, rgba(0, 102, 255, 0.12) 0%, transparent 50%);
}

.card-bg-pattern img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: top right;
    mix-blend-mode: multiply;
}

/* Ensure text layer stays above pattern */
.feature-card h3,
.feature-card .feature-focus,
.feature-card p,
.feature-card .feature-icon {
    position: relative;
    z-index: 1;
}

/* ========================================
   Digital Supervisor Section
   ======================================== */
.digital-supervisor-section {
    background: var(--surface);
    padding: 100px 8% 120px;
}

.digital-supervisor-section .section-header h2 .highlight {
    background: linear-gradient(135deg, #0050cb 0%, #0066ff 50%, #00a3ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.supervisor-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.supervisor-card {
    background: var(--surface-container-lowest);
    border: 1px solid var(--outline-variant);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.02);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.supervisor-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-container) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.supervisor-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0, 80, 203, 0.08);
    border-color: rgba(0, 102, 255, 0.1);
}

.supervisor-card:hover::before {
    opacity: 1;
}

.supervisor-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(0, 80, 203, 0.08) 0%, rgba(0, 102, 255, 0.12) 100%);
    color: var(--primary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.75rem;
}

.supervisor-card h3 {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Segoe UI', sans-serif;
    font-size: 1.375rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--on-surface);
}

.supervisor-card > p {
    font-size: 0.9375rem;
    color: var(--on-surface-variant);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.supervisor-card > p strong {
    color: var(--primary);
    font-weight: 600;
}

.case-highlight {
    background: linear-gradient(135deg, rgba(0, 80, 203, 0.04) 0%, rgba(0, 102, 255, 0.06) 100%);
    border: 1px solid rgba(0, 102, 255, 0.08);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    position: relative;
}

.case-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-container) 100%);
    color: var(--on-primary);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 100px;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.case-highlight p {
    font-size: 0.875rem;
    color: var(--on-surface-variant);
    line-height: 1.6;
}

/* ========================================
   Tech Section
   ======================================== */
.tech-section {
    background: var(--surface);
    padding: 80px 8% 120px;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.tech-card {
    background: var(--surface-container-lowest);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: var(--shadow-ambient);
    transition: all 0.3s ease;
}

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

.tech-card .icon {
    width: 48px;
    height: 48px;
    background: rgba(0, 80, 203, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: var(--primary);
}

.tech-card h3 {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Segoe UI', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.tech-card p {
    font-size: 0.9375rem;
    color: var(--on-surface-variant);
    line-height: 1.6;
}

.tech-card .tag {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.375rem 0.75rem;
    background: var(--surface-container-low);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* CTA Buttons */
.tech-cta, .partners-cta {
    text-align: center;
    margin-top: 3.5rem;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--outline);
    color: var(--on-surface);
    padding: 0.875rem 2.5rem;
    border-radius: 100px;
    font-size: 0.9375rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-outline:hover {
    background: var(--surface-container-low);
    border-color: var(--primary);
    color: var(--primary);
}

/* ========================================
   Partners Section
   ======================================== */
.partners-section {
    background: var(--surface-container-low);
    padding: 80px 8% 100px;
}

.partners-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
}

.partners-text h2 {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Segoe UI', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.partners-text p {
    color: var(--on-surface-variant);
    margin-bottom: 1.5rem;
}

.industry-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.industry-tag {
    padding: 0.5rem 1rem;
    background: var(--surface-container-lowest);
    border-radius: 100px;
    font-size: 0.8125rem;
    color: var(--on-surface-variant);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.partner-logo {
    background: var(--surface-container-lowest);
    border-radius: 12px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
}

.partner-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* ========================================
   Parallax Scene
   ======================================== */
.parallax-scene {
    position: relative;
    height: 70vh;
    min-height: 500px;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.parallax-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 20, 30, 0.8) 0%, rgba(10, 20, 30, 0.6) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 8%;
}

.parallax-overlay h2 {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Segoe UI', sans-serif;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.parallax-overlay p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
}

/* ========================================
   Responsive - Home Specific
   ======================================== */
@media (max-width: 1024px) {
    .supervisor-grid {
        grid-template-columns: 1fr;
    }

    .partners-content {
        grid-template-columns: 1fr;
    }
    
    .tech-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .trust-content {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    .trust-item {
        font-size: 0.8125rem;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero,
    .features-section,
    .tech-section,
    .partners-section {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .hero {
        min-height: 100vh; /* Restore 100vh to ensure trust-strip is at bottom of screen */
        padding-top: 120px;
        padding-bottom: 100px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero h1 br {
        display: none;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .trust-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
        padding: 0 1.5rem;
    }
    
    .trust-item {
        justify-content: center;
        text-align: center;
    }
    
    .trust-divider {
        display: none;
    }
}

@media (max-width: 340px) {
    .trust-content {
        grid-template-columns: 1fr;
    }
}
