﻿/* =========================================
   Desktop Styles (≥1200px) - Elderly Premium
   File: css/desktop/research/elderly.css
   ========================================= */

/* --- Hero Section - Warm Tech Style --- */
.research-hero {
    position: relative;
    height: calc(600px * var(--hero-ratio, 1));
    min-height: calc(500px * var(--hero-ratio, 1));
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #334155 100%);
    color: white;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: calc(80px * var(--hero-ratio, 1));
    box-sizing: border-box;
    margin-bottom: 0;
}

/* Neural Network Overlay */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    z-index: 1;
}

.hero-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d4af37' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tag */
.hero-tag {
    display: inline-block;
    padding: 8px 24px;
    color: #f3e5ab;
    /* Soft Gold */
    font-family: 'Noto Serif SC', serif;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.85rem;
    margin-bottom: 30px;
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 30px;
    position: relative;
    backdrop-filter: blur(10px);
}

.research-hero h1 {
    font-family: 'Noto Serif SC', serif;
    font-size: 4.2rem;
    line-height: 1.1;
    margin-bottom: 30px;
    background: linear-gradient(to bottom, #ffffff 0%, #fffbf0 40%, #fbbf24 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.6));
}

/* --- English Layout Overrides --- */
/* Scope to English version to avoid affecting Chinese layout which uses <br> */
html[lang="en"] .research-hero h1 {
    font-size: 3.2rem !important;
    /* Override common.css 4.2rem */
    line-height: 1.1 !important;
    /* Reduced line-height slightly */
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    gap: 5px;
    /* Reduced gap from 15px */
    margin-bottom: 25px;
    /* Reduced margin-bottom from 30px default */
}

/* Reduce surrounding margins for tighter layout */
html[lang="en"] .hero-tag {
    margin-bottom: 20px !important;
    /* Reduced from 30px */
}

html[lang="en"] .hero-desc {
    margin-bottom: 35px !important;
    /* Reduced from 50px */
}

.hero-title-main {
    display: block;
}

.hero-subtitle {
    display: block;
    font-size: 2rem;
    font-family: 'Noto Serif SC', serif;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    background: none;
    -webkit-text-fill-color: initial;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
}

.hero-desc {
    font-size: 1.2rem;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 50px;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
    font-family: 'Noto Sans SC', sans-serif;
}

.hero-cta {
    margin-top: 20px;
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    padding: 16px 48px;
    background: linear-gradient(135deg, #d4af37 0%, #b45309 100%);
    color: white;
    font-weight: 700;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.4s ease;
    box-shadow: 0 8px 24px rgba(180, 83, 9, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(180, 83, 9, 0.45);
}

.btn-secondary {
    display: inline-block;
    padding: 15px 40px;
    background: transparent;
    color: white;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    transition: all 0.4s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* --- Section Headers --- */
.section-header {
    margin-bottom: 60px;
    text-align: center;
    position: relative;
}

.section-header h2 {
    font-family: 'Noto Serif SC', serif;
    font-size: 2.4rem;
    color: #0f172a;
    margin-bottom: 20px;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
    border-radius: 2px;
}

.section-header p.subtitle {
    font-family: 'Noto Sans SC', sans-serif;
    color: #64748b;
    font-size: 1.05rem;
    margin-top: 30px;
    font-weight: 300;
}

/* --- Academic Section --- */
.academic-section {
    background: linear-gradient(to bottom, #ffffff 0%, #fefce8 50%, #ffffff 100%);
    padding: 80px 0;
}

.academic-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.academic-card {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 12px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.4s ease;
    text-align: left;
    height: 100%;
    position: relative;
}

.academic-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(15, 23, 42, 0.08);
    border-color: rgba(212, 175, 55, 0.3);
}

.academic-card.highlight {
    background: linear-gradient(135deg, #fffbeb 0%, #ffffff 100%);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.card-number {
    font-family: 'Noto Serif SC', serif;
    font-size: 3.5rem;
    color: #cbd5e1;
    margin-bottom: 20px;
    font-weight: 700;
}

.academic-card h3 {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.35rem;
    color: #0f172a;
    margin-bottom: 15px;
    font-weight: 600;
}

.academic-card p {
    color: #475569;
    line-height: 1.8;
    font-size: 1rem;
}

/* --- Tech Section (New) --- */
.tech-section {
    background: #f8fafc;
    padding: 80px 0;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.tech-item {
    background: white;
    padding: 35px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease;
}

.tech-item:hover {
    transform: translateY(-5px);
}

.tech-icon {
    font-size: 3rem;
    margin-bottom: 25px;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.tech-item h4 {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.5rem;
    color: #0f172a;
    margin-bottom: 15px;
}

.tech-item p {
    color: #64748b;
    line-height: 1.7;
    font-size: 1rem;
}

/* --- Solution Section (Ecosystem) --- */
.solution-section {
    background: #ffffff;
    padding: 100px 0;
}

.solution-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    margin-bottom: 60px;
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
}

.solution-text {
    padding: 60px 50px;
}

.solution-visual {
    width: 100%;
    height: 100%;
    min-height: 400px;
    position: relative;
}

.solution-row.reverse .solution-text {
    order: 2;
}

.solution-row.reverse .solution-visual {
    order: 1;
}

.solution-tag {
    display: inline-block;
    font-size: 0.75rem;
    color: #b45309;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    margin-bottom: 20px;
    padding: 8px 20px;
    border: 1px solid rgba(180, 83, 9, 0.3);
    border-radius: 25px;
    background: rgba(180, 83, 9, 0.06);
}

.solution-text h3 {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.8rem;
    color: #451a03;
    margin-bottom: 25px;
}

.solution-text p {
    font-size: 1rem;
    color: #57534e;
    line-height: 1.8;
}

/* Visual Backgrounds - Warm & Calming */
.visual-warm {
    background: linear-gradient(135deg, #fef3c7 0%, #fbbf24 100%);
}

.visual-app {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 50%, #94a3b8 100%);
}

.visual-memory {
    background: linear-gradient(135deg, #bfdbfe 0%, #60a5fa 100%);
}

.visual-content {
    position: absolute;
    bottom: 50px;
    left: 50px;
    font-family: 'Noto Serif SC', serif;
    font-weight: 700;
    font-size: 2rem;
    color: #0f172a;
    /* Darker text for readability on light BG */
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.4);
}

/* --- New Coop/Future Section --- */
.new-coop-section {
    padding: 80px 0;
}

.new-coop-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: 80px 60px;
    border-radius: 24px;
}

.new-coop-content h2 {
    font-family: 'Noto Serif SC', serif;
    font-size: 2.4rem;
    margin-bottom: 35px;
}

.new-coop-content p {
    font-size: 1.1rem;
    line-height: 1.9;
    margin-bottom: 50px;
}

.new-coop-actions {
    display: flex;
    justify-content: center;
    gap: 30px;
    align-items: center;
}