/* About Page Specific Styles */

/* 1. Page Header */
.page-header {
    background: url("./images/家庭文化.png") center center no-repeat;
    background-size: cover;
    position: relative;
    display: flex;
    align-items: center;
    height: 60vh;
    min-height: 400px;
    margin-top: 0; 
    border-radius: 0 0 30px 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.page-header::before {
    content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.4));
    z-index: 1; border-radius: 0 0 30px 30px;
}
.page-header .container { position: relative; z-index: 2; }
.page-title { color: #fff; margin-bottom: 1rem; font-weight: 700; font-size: 3.5rem; text-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.page-subtitle { color: rgba(255,255,255,0.9); font-size: 1.25rem; max-width: 600px; font-weight: 300; }

/* 2. Overview & Bento */
.overview-grid-modern { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; margin-top: 2rem; }
.lead-text { font-size: 1.1rem; line-height: 1.8; color: var(--text-sub); margin-bottom: 1.5rem; text-align: justify; }
.highlight-text { color: var(--primary-color); font-weight: 600; background: rgba(51, 128, 200, 0.1); padding: 2px 6px; border-radius: 4px; }
.cert-badges { display: flex; gap: 15px; margin-top: 2rem; }
.badge-item { display: flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, 0.6); padding: 8px 16px; border-radius: 50px; border: 1px solid rgba(255,255,255,0.6); font-size: 0.9rem; font-weight: 600; color: var(--text-main); box-shadow: 0 4px 10px rgba(0,0,0,0.03); transition: transform 0.3s; }
.badge-item:hover { transform: translateY(-2px); }
.badge-icon { width: 20px; height: 20px; color: var(--primary-color); }
.overview-stats-bento { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; gap: 1.5rem; }
.bento-card { background: rgba(255, 255, 255, 0.5); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.6); padding: 2rem; border-radius: 20px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.bento-card:hover { transform: translateY(-5px); background: rgba(255, 255, 255, 0.85); box-shadow: 0 15px 30px rgba(51, 128, 200, 0.15); }
.bento-card.large { grid-column: span 2; background: linear-gradient(135deg, rgba(51, 128, 200, 0.08), rgba(255,255,255,0.6)); border-color: rgba(51, 128, 200, 0.2); }
.stat-number { font-size: 2.2rem; font-weight: 800; color: var(--primary-color); font-family: 'JetBrains Mono', monospace; display: block; margin-bottom: 0.2rem; }
.bento-card.highlight .stat-number { color: #00c853; }
.stat-desc { font-size: 0.9rem; color: var(--text-light); font-weight: 500; }

/* 3. Timeline */
.timeline-modern { position: relative; max-width: 1000px; margin: 3rem auto; padding: 1rem 0; }
.timeline-modern::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background-image: linear-gradient(to bottom, rgba(51, 128, 200, 0), rgba(51, 128, 200, 0.3) 10%, rgba(51, 128, 200, 0.3) 90%, rgba(51, 128, 200, 0)); transform: translateX(-1px); }
.timeline-row { display: flex; justify-content: center; align-items: center; margin-bottom: 4rem; position: relative; width: 100%; }
.timeline-row:last-child { margin-bottom: 0; }
.timeline-time { width: 45%; text-align: right; padding-right: 3rem; font-family: 'JetBrains Mono'; font-size: 1.5rem; font-weight: 700; color: rgba(51, 128, 200, 0.4); transition: all 0.4s ease; }
.timeline-marker { position: absolute; left: 50%; transform: translateX(-50%); width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; z-index: 2; }
.marker-dot { width: 12px; height: 12px; background: white; border: 3px solid var(--primary-color); border-radius: 50%; z-index: 2; transition: all 0.3s ease; }
.marker-pulse { position: absolute; width: 100%; height: 100%; border-radius: 50%; background: rgba(51, 128, 200, 0.2); transform: scale(0); transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.timeline-card { width: 45%; background: rgba(255, 255, 255, 0.5); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.6); border-radius: 16px; padding: 1.5rem; display: flex; gap: 1rem; align-items: flex-start; transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); opacity: 0.9; }
.timeline-row:nth-child(even) { flex-direction: row-reverse; }
.timeline-row:nth-child(even) .timeline-time { text-align: left; padding-left: 3rem; padding-right: 0; }
.card-icon-wrapper { flex-shrink: 0; width: 48px; height: 48px; background: white; border-radius: 12px; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 10px rgba(0,0,0,0.05); color: var(--text-light); transition: all 0.4s ease; }
.t-icon { width: 24px; height: 24px; }
.card-text h3 { margin: 0 0 0.5rem 0; font-size: 1.15rem; color: var(--text-main); }
.card-text p { margin: 0; font-size: 0.9rem; line-height: 1.6; color: var(--text-sub); }
/* Timeline Hover */
.timeline-row:hover .timeline-time { color: var(--primary-color); transform: scale(1.1); text-shadow: 0 0 20px rgba(51, 128, 200, 0.3); }
.timeline-row:hover .marker-dot { background: var(--primary-color); border-color: white; box-shadow: 0 0 0 3px rgba(51, 128, 200, 0.2); }
.timeline-row:hover .marker-pulse { transform: scale(1.5); background: rgba(51, 128, 200, 0.15); }
.timeline-row:hover .timeline-card { background: rgba(255, 255, 255, 0.9); transform: translateY(-5px); box-shadow: 0 15px 35px rgba(51, 128, 200, 0.12); border-color: rgba(51, 128, 200, 0.3); }
.timeline-row:hover .card-icon-wrapper { background: var(--primary-color); color: white; transform: rotate(-10deg) scale(1.1); }


/* 4. Organizational Structure (Modern Groups) */
.org-hint { text-align: center; color: var(--text-light); font-size: 0.9rem; margin-top: -10px; margin-bottom: 2rem; }
.org-chart-wrapper { display: flex; flex-direction: column; align-items: center; }
.org-level { display: flex; justify-content: center; gap: 2rem; width: 100%; flex-wrap: wrap; }

.org-node {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 16px; padding: 1.2rem;
    text-align: center; cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    min-width: 140px; width: 160px;
    display: flex; flex-direction: column; align-items: center;
    position: relative; /* For z-index stacking */
}
.org-node:hover {
    background: white; transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(51, 128, 200, 0.15);
    border-color: rgba(51, 128, 200, 0.4);
    z-index: 10;
}

/* Vector Icons */
.node-icon {
    width: 48px; height: 48px;
    background: linear-gradient(135deg, #f0f7ff, #ffffff);
    border-radius: 12px; margin-bottom: 10px;
    display: flex; align-items: center; justify-content: center;
    color: var(--primary-color);
    box-shadow: 0 4px 8px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
}
.node-icon svg { width: 24px; height: 24px; stroke-width: 1.8; }
.org-node:hover .node-icon {
    background: var(--primary-color); color: white;
    transform: scale(1.1);
}

.main-node { background: var(--primary-color); color: white; border: none; min-width: 180px; }
.main-node .node-icon { background: rgba(255,255,255,0.2); color: white; }
.main-node h4 { color: white; margin: 0; }
.main-node:hover { background: var(--primary-dark); }
.sub-main-node { border-top: 4px solid var(--primary-color); }
.org-node h4 { margin: 0; font-size: 1.05rem; color: var(--text-main); font-weight: 600; }

/* Connectors */
.org-connector-v { width: 2px; height: 30px; background: #cbd5e0; margin: 10px 0; }
.org-connector-v-short { width: 2px; height: 20px; background: #cbd5e0; margin: 10px 0; }

/* Group Boxes */
.org-groups-container { display: flex; gap: 2rem; justify-content: center; align-items: stretch; flex-wrap: wrap; margin-top: 20px; width: 100%; max-width: 1000px; }
.org-group-box {
    flex: 1; min-width: 300px;
    border-radius: 20px; padding: 2.5rem 1.5rem 1.5rem;
    display: flex; flex-direction: column; align-items: center;
    position: relative; transition: all 0.3s;
    border: 1px dashed rgba(51, 128, 200, 0.2);
}
.group-production { background: linear-gradient(to bottom, rgba(51, 128, 200, 0.02), rgba(51, 128, 200, 0.05)); }
.group-tech { background: linear-gradient(to bottom, rgba(0, 200, 83, 0.02), rgba(0, 200, 83, 0.05)); }
.org-group-box:hover { background: white; border-style: solid; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }

.group-label {
    position: absolute; top: -14px; background: #fff;
    padding: 4px 16px; border-radius: 20px; font-size: 0.95rem; font-weight: 700;
    color: var(--primary-color); box-shadow: 0 4px 10px rgba(0,0,0,0.08); border: 1px solid rgba(51, 128, 200, 0.2);
}
.group-tech .group-label { color: #008a3e; border-color: rgba(0, 200, 83, 0.3); }
.group-nodes { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }


/* =========================================
   FLOATING HOVER CARD STYLES
   ========================================= */
.hover-card-tooltip {
    position: fixed; /* Fixed relative to viewport, positioned by JS */
    top: 0; left: 0;
    width: 280px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 20px 40px rgba(30, 41, 59, 0.15);
    border-radius: 16px;
    padding: 1.5rem;
    z-index: 9999;
    pointer-events: none; /* Let clicks pass through */
    
    /* Animation Initial State: Hidden */
    opacity: 0;
    transform: translateY(15px) scale(0.95);
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Active State (Shown) */
.hover-card-tooltip.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.hover-card-tooltip h4 {
    margin: 0 0 0.8rem 0;
    font-size: 1.1rem;
    color: var(--primary-color);
    border-bottom: 2px solid rgba(51, 128, 200, 0.1);
    padding-bottom: 0.5rem;
}

.hover-card-tooltip p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-sub);
    line-height: 1.6;
}


/* 5. Core Values & Footer (Same as before) */
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin-bottom: 3rem; padding: 1rem; }
.value-card.spotlight-card { position: relative; overflow: hidden; background: rgba(255, 255, 255, 0.75); border: 1px solid rgba(200, 200, 200, 0.3); border-radius: 20px; z-index: 1; padding: 3rem 2rem; text-align: center; transition: transform 0.3s, box-shadow 0.3s; }
.spotlight-bg { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: radial-gradient(600px circle at var(--x, 50%) var(--y, 50%), rgba(51, 128, 200, 0.15), transparent 40%); opacity: 0; transition: opacity 0.3s ease; pointer-events: none; z-index: -1; }
.value-card.spotlight-card:hover .spotlight-bg { opacity: 1; }
.value-card.spotlight-card:hover { border-color: rgba(51, 128, 200, 0.4); transform: translateY(-8px); box-shadow: 0 20px 40px rgba(51, 128, 200, 0.1); }
.value-icon-box { width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 1.5rem; background: linear-gradient(135deg, #f0f9ff, #fff); box-shadow: 0 8px 20px rgba(0,0,0,0.05); display: flex; align-items: center; justify-content: center; }
.value-icon-box svg { width: 40px; height: 40px; color: var(--primary-color); }

.philosophy-section { background: url("./images/家庭文化2.png") center center no-repeat; background-size: cover; background-attachment: fixed; position: relative; padding: 80px 40px; border-radius: 24px; overflow: hidden; display: flex; flex-direction: column; align-items: center; text-align: center; box-shadow: 0 20px 50px -10px rgba(0,0,0,0.2); }
.philosophy-section::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.6); z-index: 1; }
.philosophy-section h3, .philosophy-section p { position: relative; z-index: 2; color: white; }
.philosophy-section h3 { font-size: 2rem; margin-bottom: 1rem; }
.philosophy-section p { font-size: 1.5rem; opacity: 0.9; font-weight: 300; letter-spacing: 1px; }

.ripple { position: absolute; border-radius: 50%; transform: scale(0); animation: ripple 0.6s linear; background-color: rgba(255, 255, 255, 0.4); pointer-events: none; }
@keyframes ripple { to { transform: scale(4); opacity: 0; } }

/* Mobile */
@media (max-width: 768px) {
    .page-header { height: 400px; border-radius: 0 0 20px 20px; }
    .page-title { font-size: 2.2rem; }
    .overview-grid-modern { grid-template-columns: 1fr; gap: 2rem; }
    .overview-stats-bento { grid-template-columns: 1fr; }
    .bento-card.large { grid-column: span 1; }
    .timeline-modern::before { left: 20px; }
    .timeline-row { flex-direction: column !important; align-items: flex-start; margin-left: 20px; width: auto; padding-left: 20px; border-left: 2px solid transparent; }
    .timeline-marker { left: 0; transform: translateX(-50%); top: 0; }
    .timeline-time { width: 100%; text-align: left; padding: 0 0 0.5rem 1rem; font-size: 1.2rem; }
    .timeline-card { width: 100%; margin-left: 1rem; background: rgba(255,255,255,0.7); }
    .org-level { flex-wrap: wrap; }
    .org-groups-container { flex-direction: column; align-items: center; }
    .org-group-box { width: 100%; max-width: 320px; }
    
    /* Mobile tooltip positioning adjustment */
    .hover-card-tooltip { width: 260px; left: 50% !important; transform: translateX(-50%) translateY(10px) scale(0.9); top: auto !important; bottom: 20px; }
    .hover-card-tooltip.active { transform: translateX(-50%) translateY(0) scale(1); }
}