/* ========================================
   微点科技官网 - 关于我们特定样式
   ======================================== */

/* Hero Section - About Specific */
.hero-decoration:nth-child(1) { top: 15%; left: 8%; }
.hero-decoration:nth-child(2) { top: 20%; right: 10%; }
.hero-decoration:nth-child(3) { bottom: 25%; left: 12%; }
.hero-decoration:nth-child(4) { bottom: 20%; right: 8%; }

.hero h1 {
    margin-bottom: 1rem;
}

.hero p {
    margin: 0 auto 2rem;
}

.hero-stats {
    margin-top: 1rem;
}

/* ========================================
   Unified Profile & Culture Section
   ======================================== */
.profile-culture-section {
    background: var(--surface-container-low);
    padding: 100px 8% 80px;
}

.pc-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 5rem;
    align-items: center;
}

.pc-profile .section-label {
    text-transform: uppercase;
    font-size: 0.8125rem;
    letter-spacing: 0.1em;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.pc-profile h2 {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Segoe UI', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--on-surface);
}

.pc-subtitle {
    font-size: 1.125rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 2rem;
    line-height: 1.5;
    padding-left: 1rem;
    border-left: 3px solid var(--primary);
}

.pc-profile p {
    color: var(--on-surface-variant);
    margin-bottom: 1.25rem;
    line-height: 1.8;
    font-size: 1.0625rem;
}

.profile-badges {
    display: flex;
    gap: 1rem;
    margin-top: 2.5rem;
}

.badge {
    padding: 1rem 1.5rem;
    background: var(--surface-container-lowest);
    border-radius: 12px;
    box-shadow: var(--shadow-ambient);
}

.badge-label {
    font-size: 0.75rem;
    color: var(--on-surface-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

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

.pc-culture {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.culture-card {
    background: var(--surface-container-lowest);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    box-shadow: var(--shadow-ambient);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 80, 203, 0.05);
}

.culture-card:hover {
    transform: translateX(-4px);
    box-shadow: var(--shadow-elevated);
    border-color: rgba(0, 80, 203, 0.15);
}

.c-icon {
    width: 48px;
    height: 48px;
    background: rgba(0, 80, 203, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

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

.c-content p {
    color: var(--on-surface-variant);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin: 0;
}

/* ========================================
   Horizontal Timeline Section
   ======================================== */
.timeline-section-h {
    background: var(--surface);
    padding: 80px 8% 100px;
}

.timeline-h-container {
    max-width: 1200px;
    margin: 4rem auto 0;
    position: relative;
}

.timeline-h-line {
    position: absolute;
    top: 20px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: linear-gradient(90deg, rgba(0, 80, 203, 0.1) 0%, var(--primary) 50%, rgba(0, 80, 203, 0.1) 100%);
    border-radius: 3px;
}

.timeline-h-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
}

.timeline-h-item {
    position: relative;
    padding-top: 60px;
    text-align: center;
}

.timeline-h-dot {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: var(--surface-container-lowest);
    border: 3px solid var(--primary);
    border-radius: 50%;
    z-index: 2;
    transition: all 0.3s ease;
}

.timeline-h-item.active .timeline-h-dot,
.timeline-h-item:hover .timeline-h-dot {
    background: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 80, 203, 0.2);
}

.timeline-h-card {
    background: var(--surface-container-lowest);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow-ambient);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 80, 203, 0.05);
}

.timeline-h-item:hover .timeline-h-card {
    transform: translateY(-4px);
    box-shadow: var(--shadow-elevated);
    border-color: rgba(0, 80, 203, 0.15);
}

.timeline-year {
    display: inline-block;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Segoe UI', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    background: rgba(0, 80, 203, 0.08);
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    margin-bottom: 1rem;
}

.timeline-h-card h4 {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Segoe UI', sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--on-surface);
    white-space: nowrap;
}

.timeline-h-card p {
    font-size: 0.875rem;
    color: var(--on-surface-variant);
    line-height: 1.6;
    margin: 0;
}

/* ========================================
   Unified Enterprise Strength (4 Pillars)
   ======================================== */
.strength-section {
    background: var(--surface-container-low);
    padding: 80px 8% 120px;
}

.strength-pillars {
    max-width: 1200px;
    margin: 3rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* 大标签卡片：左右布局 */
.pillar-card-large {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    background: var(--surface-container-lowest);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: var(--shadow-ambient);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 80, 203, 0.05);
}

.pillar-card-large:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-elevated);
    border-color: rgba(0, 80, 203, 0.15);
}

.pillar-content {
    display: flex;
    flex-direction: column;
}

.pillar-icon {
    width: 56px;
    height: 56px;
    background: rgba(0, 80, 203, 0.08);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

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

.pillar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pillar-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.9375rem;
    color: var(--on-surface-variant);
    line-height: 1.5;
}

.pillar-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0.6;
}

.pillar-list li strong {
    color: var(--on-surface);
    font-weight: 600;
}

/* 图片区域 */
.pillar-media {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
}

/* 通用占位图样式 */
.media-placeholder {
    width: 100%;
    height: 280px;
    background: var(--surface-container-low);
    border-radius: 16px;
    border: 2px dashed rgba(0, 80, 203, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: var(--on-surface-muted);
    transition: all 0.3s ease;
}

.media-placeholder:hover {
    border-color: rgba(0, 80, 203, 0.3);
    background: rgba(0, 80, 203, 0.02);
}

.media-placeholder span {
    font-size: 0.875rem;
    font-weight: 500;
}

/* 证书图片展示 */
.media-image-wrapper {
    width: 100%;
    height: 280px;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-container-low);
}

.pillar-cert-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.media-image-wrapper:hover .pillar-cert-image {
    transform: scale(1.05);
}

/* 证书堆叠效果 */
.cert-stack {
    position: relative;
    width: 100%;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cert-card {
    position: absolute;
    width: 200px;
    height: 260px;
    background: var(--surface-container-lowest);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 80, 203, 0.08);
    transition: all 0.5s ease;
    overflow: hidden;
}

.cert-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cert-card-1 {
    transform: rotate(-6deg) translateX(-30px) translateY(10px);
    z-index: 1;
    opacity: 0.7;
}

.cert-card-2 {
    transform: rotate(-3deg) translateX(-15px) translateY(5px);
    z-index: 2;
    opacity: 0.85;
}

.cert-card-3 {
    transform: rotate(3deg) translateX(15px) translateY(5px);
    z-index: 3;
    opacity: 0.85;
}

.cert-card-4 {
    transform: rotate(0deg) translateX(0) translateY(0);
    z-index: 4;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* 证书轮播动画 */
@keyframes certCycle {
    0%, 20% { transform: rotate(0deg) translateX(0) translateY(0); z-index: 4; opacity: 1; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12); }
    25% { transform: rotate(6deg) translateX(30px) translateY(10px); z-index: 1; opacity: 0.7; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); }
    45%, 70% { transform: rotate(6deg) translateX(30px) translateY(10px); z-index: 1; opacity: 0.7; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); }
    75% { transform: rotate(0deg) translateX(0) translateY(0); z-index: 4; opacity: 1; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12); }
    100% { transform: rotate(0deg) translateX(0) translateY(0); z-index: 4; opacity: 1; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12); }
}

@keyframes certCycle2 {
    0%, 20% { transform: rotate(3deg) translateX(15px) translateY(5px); z-index: 3; opacity: 0.85; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); }
    25%, 45% { transform: rotate(0deg) translateX(0) translateY(0); z-index: 4; opacity: 1; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12); }
    50% { transform: rotate(-3deg) translateX(-15px) translateY(5px); z-index: 2; opacity: 0.85; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); }
    70%, 100% { transform: rotate(-3deg) translateX(-15px) translateY(5px); z-index: 2; opacity: 0.85; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); }
}

@keyframes certCycle3 {
    0% { transform: rotate(-3deg) translateX(-15px) translateY(5px); z-index: 2; opacity: 0.85; }
    20%, 45% { transform: rotate(-3deg) translateX(-15px) translateY(5px); z-index: 2; opacity: 0.85; }
    50% { transform: rotate(0deg) translateX(0) translateY(0); z-index: 4; opacity: 1; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12); }
    70%, 95% { transform: rotate(3deg) translateX(15px) translateY(5px); z-index: 3; opacity: 0.85; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); }
    100% { transform: rotate(-3deg) translateX(-15px) translateY(5px); z-index: 2; opacity: 0.85; }
}

@keyframes certCycle4 {
    0% { transform: rotate(-6deg) translateX(-30px) translateY(10px); z-index: 1; opacity: 0.7; }
    20%, 70% { transform: rotate(-6deg) translateX(-30px) translateY(10px); z-index: 1; opacity: 0.7; }
    75% { transform: rotate(0deg) translateX(0) translateY(0); z-index: 4; opacity: 1; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12); }
    95%, 100% { transform: rotate(-6deg) translateX(-30px) translateY(10px); z-index: 1; opacity: 0.7; }
}

.cert-stack:hover .cert-card-1 {
    animation: certCycle 8s infinite;
}

.cert-stack:hover .cert-card-2 {
    animation: certCycle2 8s infinite;
}

.cert-stack:hover .cert-card-3 {
    animation: certCycle3 8s infinite;
}

.cert-stack:hover .cert-card-4 {
    animation: certCycle4 8s infinite;
}

.cert-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: var(--on-surface-muted);
    background: var(--surface-container-low);
}

.cert-placeholder span {
    font-size: 0.8125rem;
    font-weight: 500;
}

/* 产业生态轮播 */
.eco-carousel {
    position: relative;
    width: 100%;
    height: 280px;
    border-radius: 16px;
    overflow: hidden;
    background: var(--surface-container-low);
}

.eco-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* 放大并偏移，将右下角水印推出可视区域 */
    object-position: 30% 30%;
    transform: scale(1.15);
    opacity: 0;
    animation: ecoFade 8s infinite;
}

.eco-slide-2 {
    animation-delay: 4s;
}

@keyframes ecoFade {
    0%, 45% { opacity: 1; }
    50%, 95% { opacity: 0; }
    100% { opacity: 1; }
}

/* 资质与学术背书 - 悬停展开效果 */
.pillar-card-expandable {
    position: relative;
    overflow: visible;
}

.cert-media-expandable {
    position: relative;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    min-height: 320px;
}

.cert-expand-hint {
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.9rem;
    background: var(--surface-container-lowest);
    border: 1px solid rgba(0, 80, 203, 0.12);
    border-radius: 100px;
    font-size: 0.75rem;
    color: var(--on-surface-muted);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    opacity: 1;
    transition: all 0.4s ease;
    z-index: 10;
    white-space: nowrap;
}

.cert-expand-hint svg {
    color: var(--primary);
    opacity: 0.7;
}

/* 悬停时：卡片整体放大 + 图片区域展开 */
.pillar-card-expandable:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 80, 203, 0.12), var(--shadow-elevated);
    border-color: rgba(0, 80, 203, 0.2);
    z-index: 10;
}

.pillar-card-expandable:hover .cert-media-expandable {
    min-height: 400px;
}

.pillar-card-expandable:hover .cert-expand-hint {
    opacity: 0;
    transform: translateX(-50%) translateY(8px);
    pointer-events: none;
}

/* 悬停时证书堆叠展开 */
.pillar-card-expandable:hover .cert-stack {
    transform: scale(1.15);
}

.pillar-card-expandable:hover .cert-card {
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pillar-card-expandable:hover .cert-card-1 {
    transform: rotate(-12deg) translateX(-90px) translateY(20px);
}

.pillar-card-expandable:hover .cert-card-2 {
    transform: rotate(-5deg) translateX(-35px) translateY(5px);
}

.pillar-card-expandable:hover .cert-card-3 {
    transform: rotate(5deg) translateX(35px) translateY(5px);
}

.pillar-card-expandable:hover .cert-card-4 {
    transform: rotate(12deg) translateX(90px) translateY(20px);
}

/* 悬停时证书轮播动画 */
.pillar-card-expandable:hover .cert-card-1 {
    animation: certCycle 6s infinite;
}

.pillar-card-expandable:hover .cert-card-2 {
    animation: certCycle2 6s infinite;
}

.pillar-card-expandable:hover .cert-card-3 {
    animation: certCycle3 6s infinite;
}

.pillar-card-expandable:hover .cert-card-4 {
    animation: certCycle4 6s infinite;
}

/* ========================================
   Responsive - About Specific
   ======================================== */
@media (max-width: 1024px) {
    .pc-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .timeline-h-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem 2rem;
    }

    .timeline-h-line {
        display: none; /* Hide horizontal line above 768px in tablet range */
    }

    .pillar-card-large {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
    }

    .pillar-media {
        min-height: 240px;
        order: -1;
    }

    .media-placeholder,
    .cert-stack,
    .media-image-wrapper,
    .eco-carousel {
        height: 240px;
    }

    .cert-card {
        width: 160px;
        height: 210px;
    }

    .cert-media-expandable {
        min-height: 260px;
    }

    .pillar-card-expandable:hover .cert-media-expandable {
        min-height: 300px;
    }

    .pillar-card-expandable:hover .cert-card-1 {
        transform: rotate(-10deg) translateX(-50px) translateY(15px);
    }

    .pillar-card-expandable:hover .cert-card-2 {
        transform: rotate(-4deg) translateX(-20px) translateY(5px);
    }

    .pillar-card-expandable:hover .cert-card-3 {
        transform: rotate(4deg) translateX(20px) translateY(5px);
    }

    .pillar-card-expandable:hover .cert-card-4 {
        transform: rotate(10deg) translateX(50px) translateY(15px);
    }
}

@media (max-width: 768px) {
    .hero,
    .profile-culture-section,
    .timeline-section-h,
    .strength-section {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .timeline-section-h {
        padding-top: 40px !important;
        padding-bottom: 60px !important;
    }
    
    /* Vertical Timeline for Mobile - Rock Solid Alignment */
    .timeline-h-container {
        margin-top: 2rem !important;
        padding-left: 0 !important;
        position: relative !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .timeline-h-line {
        display: block !important;
        position: absolute !important;
        top: 0 !important;
        bottom: 0 !important;
        left: 20px !important;
        right: auto !important;
        width: 3px !important;
        height: 100% !important;
        background: linear-gradient(180deg, rgba(0, 80, 203, 0.1) 0%, var(--primary) 50%, rgba(0, 80, 203, 0.1) 100%) !important;
        border-radius: 4px !important;
        z-index: 1 !important;
        transform: translateX(-50%) !important; /* Center the line perfectly on the 20px mark */
    }

    .timeline-h-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 1.5rem !important;
        position: relative !important;
        z-index: 2 !important;
    }

    .timeline-h-item {
        position: relative !important;
        padding-top: 0 !important;
        padding-bottom: 0.5rem !important;
        padding-left: 50px !important; /* Space for line and dot */
        text-align: left !important;
        width: 100% !important;
    }

    .timeline-h-dot {
        position: absolute !important;
        top: 22px !important; /* Align with the center of the first line of the card or year badge */
        left: 20px !important; /* Must match .timeline-h-line left */
        transform: translate(-50%, -50%) !important;
        z-index: 5 !important;
        margin: 0 !important;
    }

    .timeline-h-card {
        padding: 1rem !important;
        width: 100% !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03) !important;
    }
    
    .timeline-year {
        font-size: 0.8125rem !important;
        padding: 0.2rem 0.6rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .timeline-h-card h4 {
        font-size: 1rem !important;
        margin-bottom: 0.25rem !important;
    }

    .pillar-card-large {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .pillar-media {
        min-height: 200px;
        order: -1;
    }

    .media-placeholder,
    .cert-stack,
    .media-image-wrapper,
    .eco-carousel {
        height: 200px;
    }

    .cert-card {
        width: 130px;
        height: 170px;
    }

    .pillar-card-large h3 {
        font-size: 1.25rem;
    }

    .cert-media-expandable {
        min-height: 220px;
    }

    .pillar-card-expandable:hover .cert-media-expandable {
        min-height: 260px;
    }

    .pillar-card-expandable:hover .cert-card-1 {
        transform: rotate(-8deg) translateX(-35px) translateY(10px);
    }

    .pillar-card-expandable:hover .cert-card-2 {
        transform: rotate(-3deg) translateX(-12px) translateY(3px);
    }

    .pillar-card-expandable:hover .cert-card-3 {
        transform: rotate(3deg) translateX(12px) translateY(3px);
    }

    .pillar-card-expandable:hover .cert-card-4 {
        transform: rotate(8deg) translateX(35px) translateY(10px);
    }

    .cert-expand-hint {
        display: none;
    }
}
