/* ===== 小奈的个人主页样式 ===== */

/* 基础变量 */
:root {
    --primary: #ff6b9d;
    --primary-light: #ffc2d1;
    --secondary: #667eea;
    --secondary-dark: #764ba2;
    --bg: #fff5f7;
    --text: #333;
    --text-light: #666;
    --card-bg: #fff;
    --shadow: 0 4px 20px rgba(0,0,0,0.1);
    --radius: 16px;
}

/* 重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.8;
}

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

/* ===== 导航栏 ===== */
.navbar {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
}

.nav-links {
    display: flex;
    gap: 24px;
}

.nav-links a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    padding: 8px 12px;
    border-radius: 8px;
}

.nav-links a:hover,
.nav-links a.active {
    color: white;
    background: rgba(255,255,255,0.2);
}

/* ===== Hero 区域 ===== */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.avatar {
    font-size: 80px;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 16px;
}

.tagline {
    font-size: 1.3rem;
    opacity: 0.9;
    margin-bottom: 20px;
}

.hero-desc {
    font-size: 1.1rem;
    opacity: 0.85;
    max-width: 500px;
    margin: 0 auto 32px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 32px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

.btn-primary {
    background: white;
    color: var(--primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.btn-secondary {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary);
}

.hero-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.deco {
    position: absolute;
    font-size: 2rem;
    opacity: 0.3;
    animation: float 4s ease-in-out infinite;
}

.deco:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.deco:nth-child(2) { top: 60%; right: 15%; animation-delay: 1s; }
.deco:nth-child(3) { top: 30%; right: 20%; animation-delay: 2s; }
.deco:nth-child(4) { bottom: 20%; left: 20%; animation-delay: 3s; }

/* ===== 统计区域 ===== */
.stats-section {
    padding: 60px 20px;
    background: white;
}

.stats-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: var(--text);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stat-card {
    text-align: center;
    padding: 32px 20px;
    background: var(--bg);
    border-radius: var(--radius);
    transition: all 0.3s;
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: var(--text-light);
    margin-top: 8px;
}

/* ===== 项目展示 ===== */
.featured-projects {
    padding: 60px 20px;
}

.featured-projects h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
}

.project-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.project-card {
    background: var(--card-bg);
    padding: 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: all 0.3s;
    text-align: center;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.project-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.project-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.project-card p {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.project-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.project-link:hover {
    text-decoration: underline;
}

/* ===== 性格展示 ===== */
.personality-preview {
    padding: 60px 20px;
    background: white;
}

.personality-preview h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
}

.traits {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.trait {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: var(--bg);
    border-radius: var(--radius);
    transition: all 0.3s;
}

.trait:hover {
    background: linear-gradient(135deg, var(--primary-light), white);
}

.trait-icon {
    font-size: 2rem;
}

.trait-name {
    font-weight: 600;
    font-size: 1.1rem;
    min-width: 60px;
}

.trait-desc {
    color: var(--text-light);
    font-size: 0.95rem;
}

.text-center {
    text-align: center;
}

/* ===== 最新文字 ===== */
.latest-writings {
    padding: 60px 20px;
}

.latest-writings h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
}

.writing-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.writing-item {
    background: var(--card-bg);
    padding: 28px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.writing-item:hover {
    transform: translateX(8px);
}

.writing-meta {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.writing-item h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.writing-item p {
    color: var(--text-light);
    margin-bottom: 12px;
}

.writing-item a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

/* ===== Footer ===== */
footer {
    background: linear-gradient(135deg, var(--secondary-dark), var(--secondary));
    color: white;
    padding: 40px 20px;
    text-align: center;
}

.footer-quote {
    opacity: 0.8;
    margin-top: 12px;
    font-style: italic;
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .project-cards {
        grid-template-columns: 1fr;
    }
    
    .traits {
        grid-template-columns: 1fr;
    }
    
    .nav-links {
        display: none;
    }
}

/* ===== 页面通用样式 ===== */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.page-header p {
    opacity: 0.9;
    font-size: 1.1rem;
}

.content-section {
    padding: 40px 20px;
}

.content-section h2 {
    font-size: 1.8rem;
    margin-bottom: 24px;
    color: var(--text);
}

.content-section p {
    margin-bottom: 16px;
    color: var(--text-light);
}

/* ===== 关于页面 ===== */
.about-section {
    background: var(--card-bg);
    padding: 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}

.about-section h3 {
    font-size: 1.4rem;
    margin-bottom: 16px;
    color: var(--primary);
}

.quote-box {
    background: linear-gradient(135deg, var(--primary-light), var(--bg));
    padding: 24px;
    border-radius: var(--radius);
    border-left: 4px solid var(--primary);
    margin: 20px 0;
    font-style: italic;
}

/* ===== 时间线 ===== */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    padding-bottom: 32px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -34px;
    top: 8px;
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 3px var(--primary-light);
}

.timeline-date {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.timeline-content {
    background: var(--card-bg);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.timeline-content h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.timeline-content p {
    color: var(--text-light);
    margin: 0;
}
