/* ── About page styles ── */

.about-hero {
    text-align: center;
    padding: 4rem 1rem 2rem;   /* 桌面四页 hero 统一节奏 */
    max-width: 700px;
    margin: 0 auto;
}
.about-avatars {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}
.about-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: white;
}
.about-avatar.bling { background: linear-gradient(135deg, var(--accent-pink), #ffd1d1); }
.about-avatar.jim   { background: linear-gradient(135deg, var(--accent-blue), #b8f0dc); }

.about-hero h1 { font-size: 2.2rem; margin-bottom: 0.8rem; }
.about-hero p  { color: var(--text-light); font-size: 1rem; }

.about-card {
    background:
        var(--liquid-bg);
    backdrop-filter: var(--liquid-filter); -webkit-backdrop-filter: var(--liquid-filter);
    border-radius: 22px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--liquid-shadow);
}
.about-card:nth-child(1) {
    background:
        radial-gradient(circle at 10% 12%, rgba(255,183,178,0.08), transparent 36%),
        var(--liquid-bg);
}
.about-card:nth-child(2) {
    background:
        radial-gradient(circle at 92% 10%, rgba(168,230,207,0.09), transparent 38%),
        var(--liquid-bg);
}
.about-card:nth-child(3) {
    background:
        radial-gradient(circle at 12% 18%, rgba(214,234,248,0.10), transparent 40%),
        radial-gradient(circle at 88% 18%, rgba(255,183,178,0.06), transparent 36%),
        var(--liquid-bg);
}
.about-card:nth-child(4) {
    background:
        radial-gradient(circle at 85% 12%, rgba(255,224,178,0.10), transparent 38%),
        var(--liquid-bg);
}
.about-card h2 { font-size: 1.3rem; margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; }
.about-card p  { color: #666; font-size: 0.95rem; margin-bottom: 0.8rem; }
.about-card ul { list-style: none; padding: 0; }
.about-card ul li { padding: 0.4rem 0; font-size: 0.92rem; color: #666; border-bottom: 1px dashed #f0f0f0; }
.about-card ul li:last-child { border: none; }
.about-card ul li::before { content: '→ '; color: var(--accent-pink); font-weight: bold; }

/* Skill tags */
.skill-tags { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.5rem; }
.skill-tag { padding: 0.3rem 1rem; border-radius: 20px; font-size: 0.82rem; font-weight: 500; }
.skill-tag.s1 { background: #ffe0e0; color: #e74c3c; }
.skill-tag.s2 { background: #d4edda; color: #27ae60; }
.skill-tag.s3 { background: #d6eaf8; color: #2980b9; }
.skill-tag.s4 { background: #fdebd0; color: #e67e22; }
.skill-tag.s5 { background: #e8daef; color: #8e44ad; }
.skill-tag.s6 { background: #d5f5e3; color: #1abc9c; }

/* Journey timeline */
.journey-timeline { position: relative; padding-left: 2.5rem; }
.journey-timeline::before {
    content: ''; position: absolute;
    left: 10px; top: 0; bottom: 0; width: 2px;
    background: #f0e0de;
}
.journey-item { position: relative; margin-bottom: 1.8rem; }
.journey-item::before {
    content: ''; position: absolute;
    left: calc(-2.5rem + 2px); top: 0.4rem;
    width: 12px; height: 12px;
    background: var(--accent-pink);
    border: 3px solid white;
    box-shadow: 0 0 0 2px var(--accent-pink);
    border-radius: 50%; z-index: 1;
}
.journey-item:nth-child(even)::before {
    background: var(--accent-blue);
    box-shadow: 0 0 0 2px var(--accent-blue);
}
.journey-item:first-child::before {
    animation: timelineDotPulse 2.4s ease-out infinite;
}
.journey-item:first-child:nth-child(even)::before {
    animation: timelineDotPulseGreen 2.4s ease-out infinite;
}
@keyframes timelineDotPulseGreen {
    0%   { box-shadow: 0 0 0 2px var(--accent-blue), 0 0 0 4px rgba(168, 230, 207, 0.40); }
    70%  { box-shadow: 0 0 0 2px var(--accent-blue), 0 0 0 14px rgba(168, 230, 207, 0); }
    100% { box-shadow: 0 0 0 2px var(--accent-blue), 0 0 0 4px rgba(168, 230, 207, 0); }
}
.journey-item .year { font-weight: 500; font-size: 0.85rem; color: var(--accent-pink); margin-bottom: 0.2rem; }
.journey-item:nth-child(even) .year { color: #52c7a0; }
.journey-item h4 { font-size: 0.95rem; margin-bottom: 0.3rem; }
.journey-item p  { font-size: 0.85rem; color: var(--text-light); }

/* Fun facts grid */
.fun-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-top: 1rem; }
.fun-item {
    text-align: center;
    padding: 1.2rem;
    background:
        radial-gradient(circle at 86% 8%, rgba(255,183,178,0.08), transparent 42%),
        var(--liquid-bg-soft);
    border-radius: 14px;
    box-shadow: var(--liquid-shadow);
    backdrop-filter: var(--liquid-filter-soft);
    -webkit-backdrop-filter: var(--liquid-filter-soft);
}
.fun-item:nth-child(2n) {
    background:
        radial-gradient(circle at 88% 10%, rgba(168,230,207,0.09), transparent 42%),
        var(--liquid-bg-soft);
}
.fun-item:nth-child(3n) {
    background:
        radial-gradient(circle at 88% 10%, rgba(214,234,248,0.10), transparent 42%),
        var(--liquid-bg-soft);
}
.fun-item:nth-child(4n) {
    background:
        radial-gradient(circle at 86% 8%, rgba(255,224,178,0.10), transparent 42%),
        var(--liquid-bg-soft);
}
.fun-item .fun-number { font-size: 2rem; font-weight: 500; color: var(--text-main); }
.fun-item .fun-label  { font-size: 0.8rem; color: var(--text-light); margin-top: 0.3rem; }

/* ── World map（去过的国家）── */
.world-map-wrap { position: relative; margin: 0.4rem 0 1.2rem; }
.world-map-svg { width: 100%; line-height: 0; }
.world-map-svg svg { display: block; width: 100%; height: auto; }
/* 陆地默认柔灰，命中国家上粉色；不同来源的 SVG path 都吃这套 fill（!important 压掉内联 fill） */
.world-map-svg svg path {
    fill: #e7ded9;
    stroke: rgba(255, 255, 255, 0.75);
    stroke-width: 0.4;
    transition: fill 0.25s ease;
}
/* 命中国家：.visited 可能落在单个 <path>（如台湾/瑞士）或 <g> 国家组（如中国/英国/意大利，
   含大陆+岛屿多个 path）——两种都要上色，故同时命中 .visited 与 .visited 里的子 path */
.world-map-svg svg .visited,
.world-map-svg svg .visited path {
    fill: var(--accent-pink) !important;
    cursor: default;
}
.world-map-svg svg .visited:hover,
.world-map-svg svg .visited:hover path { fill: #e8847c !important; }

.world-map-tooltip {
    position: absolute;
    transform: translate(-50%, calc(-100% - 12px));
    background: var(--liquid-bg);
    backdrop-filter: var(--liquid-filter-soft); -webkit-backdrop-filter: var(--liquid-filter-soft);
    box-shadow: var(--liquid-shadow);
    border-radius: 12px;
    padding: 0.4rem 0.7rem;
    font-size: 0.8rem;
    color: var(--text-main);
    pointer-events: none;
    white-space: nowrap;
    z-index: 5;
}
.world-map-tooltip strong { font-weight: 600; }
.world-map-tooltip span { display: block; font-size: 0.72rem; color: var(--text-light); margin-top: 0.1rem; }

/* 文字图例（地图降级 / SVG 加载前占位）——胶囊风格对齐 skill-tag */
.country-legend { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 0.4rem; }
.country-chip {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.32rem 0.85rem;
    border-radius: 20px;
    font-size: 0.84rem; font-weight: 500;
    color: var(--text-main);
    background:
        radial-gradient(circle at 14% 18%, rgba(255,183,178,0.12), transparent 60%),
        var(--liquid-bg-soft);
    box-shadow: var(--liquid-shadow);
    backdrop-filter: var(--liquid-filter-soft); -webkit-backdrop-filter: var(--liquid-filter-soft);
}
.country-chip .country-flag { font-size: 1.05rem; line-height: 1; }
.country-chip .country-note { font-size: 0.74rem; color: var(--text-light); margin-left: 0.15rem; }

/* Contact links */
.contact-links { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-top: 1rem; }
.contact-btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.6rem 1.5rem; background: white;
    border: 2px solid #eee; border-radius: 30px;
    text-decoration: none; color: var(--text-main);
    font-weight: 500; font-size: 0.88rem;
    transition: all 0.3s;
}
.contact-btn:hover { border-color: var(--accent-pink); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); }
@media (hover: none) { .contact-btn:hover { transform: none; } }   /* 触屏不粘滞 hover */
