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

:root {
    --primary: #1a1f2e;
    --accent: #c9a96e;
    --accent-light: #e8d5b5;
    --bg: #f8f9fa;
    --card-bg: #ffffff;
    --text: #2d3142;
    --text-light: #6b7280;
    --border: #e5e7eb;
}

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

nav {
    background: var(--primary);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 1px;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent);
}

.hero {
    background: linear-gradient(135deg, var(--primary) 0%, #2d3748 100%);
    padding: 5rem 2rem 4rem;
    color: white;
}

.hero-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 4rem;
}

.profile-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 4px solid var(--accent);
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    flex-shrink: 0;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.hero-content .subtitle {
    color: var(--accent);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.hero-content .bio {
    color: rgba(255,255,255,0.85);
    font-size: 1rem;
    line-height: 1.8;
    max-width: 600px;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
}

.stat-label {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    margin-top: 0.25rem;
}

.sections {
    max-width: 1200px;
    margin: -2rem auto 0;
    padding: 0 2rem;
    position: relative;
    z-index: 10;
}

.section-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.section-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.section-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
    border-color: var(--accent);
}

.section-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), #4a5568);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.section-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.section-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

.section-card .count {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 600;
}

.strategy-section {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-header h2 {
    font-size: 1.5rem;
    color: var(--primary);
}

.update-time {
    font-size: 0.85rem;
    color: var(--text-light);
}

.chart-container {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border: 1px solid var(--border);
}

#returnsChart {
    width: 100%;
    height: 400px;
}

.metrics-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.metric-box {
    background: var(--bg);
    border-radius: 12px;
    padding: 1.2rem;
    text-align: center;
    border: 1px solid var(--border);
}

.metric-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.metric-value.positive { color: #059669; }
.metric-value.negative { color: #dc2626; }

.metric-label {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

.latest-posts {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.post-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border);
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.post-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    border-color: var(--accent);
}

.post-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(201, 169, 110, 0.15);
    color: var(--accent);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.post-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.post-date {
    font-size: 0.85rem;
    color: var(--text-light);
}

.page-header {
    max-width: 1200px;
    margin: 3rem auto 2rem;
    padding: 0 2rem;
}

.page-header h1 {
    font-size: 2rem;
    color: var(--primary);
}

.page-header p {
    color: var(--text-light);
    margin-top: 0.5rem;
}

.posts-list {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.post-item {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.post-item:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    border-color: var(--accent);
}

.post-item h2 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.post-item h2 a {
    color: var(--primary);
    text-decoration: none;
}

.post-item h2 a:hover {
    color: var(--accent);
}

.post-item .meta {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.post-item .excerpt {
    color: var(--text-light);
    line-height: 1.6;
}

/* ========== 文章正文排版（核心优化）========== */
.post-content {
    max-width: 800px;
    margin: 3rem auto;
    padding: 3rem;
    background: white;
    border-radius: 16px;
    border: 1px solid var(--border);
}

.post-content h1 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--primary);
    text-align: center;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--accent);
}

.post-content .meta {
    color: var(--text-light);
    margin-bottom: 3rem;
    text-align: center;
    font-size: 0.9rem;
}

/* 所有段落首行缩进，包括标题后的第一段 */
.post-content p {
    margin-bottom: 1.5rem;
    line-height: 2;
    font-size: 1.05rem;
    text-indent: 2em;
    text-align: justify;
}

.post-content h2 {
    font-size: 1.5rem;
    margin: 2.5rem 0 1.5rem;
    color: var(--primary);
    border-left: 4px solid var(--accent);
    padding-left: 1rem;
}

.post-content h3 {
    font-size: 1.2rem;
    margin: 2rem 0 1rem;
    color: var(--primary);
}

.post-content ul, .post-content ol {
    margin-left: 2em;
    margin-bottom: 1.5rem;
    line-height: 2;
}

.post-content li {
    margin-bottom: 0.5rem;
}

.post-content blockquote {
    border-left: 4px solid var(--accent);
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background: var(--bg);
    color: var(--text-light);
    font-style: italic;
    border-radius: 0 8px 8px 0;
}

.post-content hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 2.5rem 0;
}

.post-content strong {
    color: var(--primary);
    font-weight: 600;
}

/* 文章底部签名区域 */
.post-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.8;
}

.post-footer p {
    text-indent: 0 !important;
    margin-bottom: 0.5rem;
}

.post-footer a {
    color: var(--accent);
    text-decoration: none;
}

.post-footer a:hover {
    text-decoration: underline;
}

footer {
    background: var(--primary);
    color: rgba(255,255,255,0.6);
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
    font-size: 0.9rem;
}

footer a {
    color: var(--accent);
    text-decoration: none;
}

@media (max-width: 768px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    .hero-content h1 { font-size: 2rem; }
    .hero-stats { justify-content: center; }
    .nav-links { display: none; }
    .section-grid { grid-template-columns: 1fr; }
    .post-content { padding: 1.5rem; }
    .post-content p { text-indent: 1.5em; }
}
