/* ==========================================================================
   wechat_echarts_v2.css
   White tech-style redesign referencing Apple Design Library tokens
   ========================================================================== */

/* --- Reset & Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: #f5f5f7;
    color: #1d1d1f;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-width: 1024px;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    outline: none;
    border: none;
}

/* --- Navigation --- */
.tech-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    height: 48px;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.tech-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
}

.tech-nav-brand img {
    display: block;
    height: 28px;
    width: auto;
}

.tech-nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
}

.tech-nav-links a {
    font-size: 13px;
    font-weight: 400;
    color: #6e6e73;
    padding: 6px 14px;
    border-radius: 999px;
    transition: color 0.2s ease, background-color 0.2s ease;
    white-space: nowrap;
}

.tech-nav-links a:hover {
    color: #1d1d1f;
    background: rgba(0, 0, 0, 0.04);
}

.nav-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #007aff;
    margin-left: 2px;
    vertical-align: middle;
}

/* --- Main Layout --- */
.tech-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 24px 60px;
}

.tech-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* --- Profile Hero --- */
.profile-hero {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

.profile-hero-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 28px 32px 24px;
}

.profile-avatar {
    flex-shrink: 0;
}

.profile-avatar img {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.profile-info {
    flex: 1;
    min-width: 0;
}

.profile-name {
    font-size: 24px;
    font-weight: 700;
    color: #1d1d1f;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 4px;
}

.profile-summary {
    font-size: 14px;
    color: #6e6e73;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.profile-qr {
    flex-shrink: 0;
}

.profile-qr img {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

/* --- Stats Bar --- */
.stats-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 20px 32px;
    background: linear-gradient(135deg, #f9fafb 0%, #f2f2f7 100%);
    border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.stat-item {
    flex: 1;
    text-align: center;
    padding: 4px 16px;
}

.stat-value {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: #1d1d1f;
    letter-spacing: -0.01em;
    font-variant-numeric: tabular-nums;
}

.stat-label {
    display: block;
    font-size: 11px;
    font-weight: 500;
    color: #8e8e93;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 4px;
}

.stat-divider {
    width: 1px;
    height: 32px;
    background: rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}

/* --- Meta Grid --- */
.meta-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.meta-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 16px 18px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.meta-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.meta-card-wide {
    grid-column: span 4;
}

.meta-card-label {
    font-size: 10px;
    font-weight: 600;
    color: #8e8e93;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}

.meta-card-value {
    font-size: 14px;
    font-weight: 500;
    color: #1d1d1f;
    line-height: 1.4;
    word-break: break-all;
}

/* --- Dual Row Layout --- */
.dual-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* --- Tech Card --- */
.tech-card {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.tech-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.04);
}

.tech-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 20px 12px;
    font-size: 15px;
    font-weight: 600;
    color: #1d1d1f;
    letter-spacing: -0.01em;
}

.tech-card-icon {
    font-size: 16px;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e8f2ff 0%, #f2f2f7 100%);
    border-radius: 8px;
    flex-shrink: 0;
}

.tech-card-body {
    padding: 0 20px 20px;
}

/* --- Chart Full Width --- */
.chart-full .tech-card {
    /* full width, no special sizing needed */
}

/* --- Timeline --- */
.tech-timeline {
    position: relative;
    padding-left: 24px;
}

.tech-timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 4px;
    bottom: 4px;
    width: 2px;
    background: linear-gradient(180deg, #007aff 0%, #cfe5ff 100%);
    border-radius: 1px;
}

.timeline-item {
    position: relative;
    padding-bottom: 14px;
    padding-left: 16px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -20px;
    top: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #007aff;
    z-index: 1;
}

.timeline-first .timeline-dot {
    background: #007aff;
    border-color: #007aff;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.15);
}

.timeline-last .timeline-dot {
    background: #007aff;
    border-color: #007aff;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.15);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.15); }
    50% { box-shadow: 0 0 0 6px rgba(0, 122, 255, 0.08); }
}

.timeline-text {
    font-size: 13px;
    font-weight: 500;
    color: #3c3c43;
    line-height: 1.45;
}

/* --- Auth List --- */
.auth-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auth-item {
    font-size: 13px;
    color: #3c3c43;
    line-height: 1.5;
    padding: 8px 12px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    font-weight: 500;
}

/* --- Footer --- */
.tech-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding: 20px 24px;
    text-align: center;
}

.tech-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    font-size: 12px;
    color: #8e8e93;
}

/* --- Responsive tweaks --- */
@media (max-width: 1024px) {
    .meta-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .meta-card-wide {
        grid-column: span 2;
    }
    .dual-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .profile-hero-inner {
        flex-wrap: wrap;
        padding: 20px;
    }
    .profile-qr {
        display: none;
    }
    .stats-bar {
        flex-wrap: wrap;
        padding: 16px 20px;
        gap: 8px;
    }
    .stat-divider {
        display: none;
    }
    .stat-item {
        min-width: 30%;
    }
    .meta-grid {
        grid-template-columns: 1fr;
    }
    .meta-card-wide {
        grid-column: span 1;
    }
    .tech-nav-links {
        display: none;
    }
}

/* --- Scrollbar styling (WebKit) --- */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #c7c7cc;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #aeaeb2;
}

/* --- Selection --- */
::selection {
    background: rgba(0, 122, 255, 0.2);
}
