/*
 * stars.css — 先贤星空页面个性层
 * 骨架层和角色层样式见 components.css
 * 本文件仅保留 stars.html 页面独有样式
 * 依据：ZichunWorld_Index_Landing_Page_Design.md 第五章 5.3
 */

:root {
    --page-width: 1180px;
    --radius-xl: 28px;
    --radius-lg: 22px;
    --surface-strong: var(--bg-secondary);
    --line-soft: var(--border-light);
    --page-shadow: var(--shadow-lg);
    --card-shadow: var(--shadow-md);
    --text-main: var(--text-primary);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(var(--accent-rgb), 0.16), transparent 34%),
        radial-gradient(circle at top right, rgba(var(--accent-rgb), 0.1), transparent 28%),
        linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    color: var(--text-main);
    line-height: 1.8;
    overflow-x: hidden;
}

a {
    color: inherit;
}

.stars-page {
    min-height: 100vh;
}

/* --- 内容区 --- */
.content {
    padding: 34px 0 72px;
}

.section {
    padding: 0 16px;
    margin-bottom: 28px;
}

/* --- 先贤网格 --- */
.stars-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
}

/* --- 先贤卡片 --- */
.star-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: inherit;
    padding: 40px 32px;
    border-radius: var(--radius-xl);
    background: var(--bg-secondary);
    border: 1px solid var(--border-medium);
    box-shadow: 0 10px 24px var(--shadow-sm);
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.star-card:hover {
    background: var(--bg-tertiary);
    border-color: var(--accent);
    box-shadow: 0 16px 40px var(--shadow-md);
    transform: translateY(-2px);
}

/* --- 先贤肖像 --- */
.star-portrait-frame {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--border-light);
    box-shadow: 0 8px 24px var(--shadow-md);
    margin-bottom: 24px;
}

.star-portrait {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- 先贤信息 --- */
.star-info {
    display: grid;
    gap: 8px;
    justify-items: center;
}

.star-info h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.04em;
}

.star-quote {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-style: italic;
}

.star-era {
    margin: 0;
    font-size: 0.86rem;
    color: var(--text-secondary);
    letter-spacing: 0.04em;
}

/* --- stars 页面响应式 --- */
@media (max-width: 768px) {
    .stars-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .star-card {
        padding: 32px 24px;
    }
}

@media (max-width: 560px) {
    .section {
        padding: 0 12px;
        margin-bottom: 18px;
    }

    .star-portrait-frame {
        width: 120px;
        height: 120px;
    }

    .star-info h2 {
        font-size: 1.3rem;
    }
}
