/* 珑瑕的个人主页 — 干净、清透、呼吸感 */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg: #fafafc;
    --card: #ffffff;
    --text: #4a4a4a;
    --text-light: #9ba6c5;
    --text-dark: #2c3e50;
    --accent: #7ec8e3;
    --accent-soft: rgba(126, 200, 227, 0.1);
    --accent-glow: rgba(126, 200, 227, 0.3);
    --border: #f0f4f8;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    --shadow-hover: 0 10px 30px rgba(168, 216, 255, 0.15);
    --radius: 16px;
    --radius-sm: 12px;
    --radius-xs: 8px;
}

body {
    font-family: "Noto Sans SC", "PingFang SC", -apple-system, BlinkMacSystemFont, "Microsoft YaHei", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    min-height: 100vh;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Profile Card */
.profile {
    display: flex;
    align-items: center;
    gap: 30px;
    background: var(--card);
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-hover);
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
}

.profile::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(168, 216, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 5px 15px var(--accent-glow);
    flex-shrink: 0;
    z-index: 1;
}

.info { z-index: 1; }

.info h1 {
    font-size: 26px;
    color: var(--text-dark);
    margin-bottom: 8px;
    letter-spacing: 1px;
    font-weight: 600;
}

.info h1 span {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 400;
    margin-left: 10px;
}

.info p {
    font-size: 15px;
    color: #7f8c8d;
    margin-bottom: 15px;
    max-width: 500px;
}

.tags { display: flex; flex-wrap: wrap; gap: 6px; }

.tags span {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    color: var(--accent);
    background: var(--accent-soft);
    transition: all 0.2s;
}

.tags span:hover {
    background: var(--accent);
    color: #fff;
}

/* Navigation */
.nav {
    display: flex;
    gap: 24px;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--border);
    padding-bottom: 10px;
}

.nav a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    font-size: 16px;
    padding-bottom: 10px;
    position: relative;
    transition: color 0.3s;
}

.nav a:hover { color: var(--text-dark); }

.nav a.active {
    color: #3a5b8c;
}

.nav a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

/* Timeline */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.post {
    background: var(--card);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
    border: 1px solid #f9f9f9;
    transition: transform 0.2s, box-shadow 0.2s;
}

.post:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.post-date {
    font-size: 13px;
    color: #bdc3c7;
    margin-bottom: 12px;
    display: block;
}

.post-title {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 12px;
    font-weight: 500;
}

.post-content {
    font-size: 15px;
    color: #34495e;
    white-space: pre-wrap;
    margin-bottom: 16px;
    line-height: 1.8;
}

.post-img {
    max-width: 100%;
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.empty-state {
    text-align: center;
    color: var(--text-light);
    padding: 60px 20px;
}

.empty-state p { font-size: 18px; margin-bottom: 8px; }
.empty-state .sub { font-size: 14px; opacity: 0.7; }

/* Gallery */
h1 {
    margin-bottom: 10px;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 22px;
}

.stats {
    color: var(--text-light);
    margin-bottom: 30px;
    font-size: 14px;
}

.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tab {
    padding: 8px 20px;
    background: var(--card);
    border: 1px solid #eee;
    border-radius: 20px;
    color: #7f8c8d;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    font-family: inherit;
}

.tab:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.tab.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    box-shadow: 0 4px 10px rgba(126, 200, 227, 0.4);
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.card {
    background: var(--card);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    border: 1px solid var(--border);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
    background: #f9f9f9;
}

.card .name {
    padding: 12px;
    text-align: center;
    font-size: 13px;
    color: #34495e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.96);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    backdrop-filter: blur(10px);
}

.lightbox.active { display: flex; }

.lightbox img {
    max-width: 90%;
    max-height: 80vh;
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.lightbox .close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 40px;
    color: var(--text-dark);
    cursor: pointer;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.lightbox .close:hover { background: rgba(0, 0, 0, 0.05); }

/* About Page */
.about-page h1 {
    font-size: 28px;
    margin-bottom: 30px;
    font-weight: 500;
}

.about-hero {
    margin-bottom: 30px;
    border-radius: var(--radius);
    overflow: hidden;
}

.about-hero img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: var(--radius);
}

.about-section {
    background: var(--card);
    border-radius: var(--radius);
    padding: 30px;
    margin-bottom: 24px;
    border: 1px solid var(--border);
}

.about-section h2 {
    font-size: 20px;
    color: var(--text-dark);
    margin-bottom: 16px;
    font-weight: 500;
}

.about-body {
    font-size: 15px;
    color: #34495e;
    line-height: 2;
}

.about-body p { margin-bottom: 16px; }
.about-body p:last-child { margin-bottom: 0; }

.about-footer {
    text-align: center;
    margin-top: 40px;
    color: var(--text-light);
    font-size: 14px;
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 50px;
    font-size: 13px;
    color: #bdc3c7;
    padding: 20px 0;
}

/* Responsive */
@media (max-width: 600px) {
    .container { padding: 20px 16px; }
    .profile { flex-direction: column; text-align: center; }
    .info h1 span { display: block; margin: 5px 0; }
    .info p { max-width: 100%; }
    .tags { justify-content: center; }
    .nav { gap: 16px; }
    .post { padding: 20px; }
    .gallery { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}
