/* PXID Homepage Replica Styles */

:root {
    --pxid-blue: #0066FF;
    --pxid-dark: #1a1a1a;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --bg-light: #f8f9fa;
    --section-padding: 80px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
}

/* Header */
.header {
    box-shadow: 0 1px 0 rgba(0,0,0,0.05);
}

.logo {
    letter-spacing: -0.02em;
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--pxid-blue);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Carousel */
.hero {
    position: relative;
}

.hero-slides {
    position: absolute;
    inset: 0;
}

.hero-slide {
    will-change: opacity;
}

.hero-card {
    animation: slideUp 0.8s ease-out;
    height: 195px !important;
    max-height: 195px !important;
    clip-path: polygon(
        0 0,
        calc(100% - 42px) 0,
        100% 42px,
        100% 100%,
        0 100%
    );
}

.hero-progress-bar {
    width: 43px;
    height: 2px;
    background: #9ca3af;
    position: relative;
    overflow: hidden;
    border-radius: 1px;
}

.hero-progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background: #111827;
    transform: scaleX(0);
    transform-origin: left;
}

.hero-progress-fill {
    transition: transform 0.1s linear;
}

.hero-prev,
.hero-next {
    opacity: 0;
    transition: opacity 0.3s ease, background-color 0.3s ease;
}

.hero:hover .hero-prev,
.hero:hover .hero-next {
    opacity: 1;
}

@media (max-width: 640px) {
    .hero-prev,
    .hero-next {
        display: none;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mold Cards */
.mold-card {
    transition: transform 0.3s ease;
}

.mold-card:hover {
    transform: translateY(-4px);
}

.mold-card img {
    transition: transform 0.5s ease;
}

/* About section */
.about {
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(26,26,26,0.7) 0%, rgba(26,26,26,0.85) 100%);
    z-index: 1;
}

.about .container {
    position: relative;
    z-index: 10;
}

/* News */
.news-card {
    cursor: pointer;
}

.news-card img {
    transition: transform 0.5s ease;
}

.news-card:hover img {
    transform: scale(1.05);
}

/* Footer */
footer a {
    transition: color 0.2s ease;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    :root {
        --section-padding: 56px;
    }
    
    .hero-card {
        height: auto;
        left: 1rem;
        right: 1rem;
        max-width: none;
        bottom: 4rem;
        clip-path: none;
    }

    .hero-card > div {
        padding: 1.25rem;
    }

    .hero-card h1 {
        font-size: 1.25rem;
    }

    .hero-card-next {
        display: none;
    }

    .hero-progress-wrap {
        left: 1.25rem;
        bottom: 1rem;
    }
}

@media (min-width: 1200px) {
    .hero {
        height: 720px;
    }
}
