/* ===== 重置 ===== */
*,
*::before,
*::after {
box-sizing: border-box;
}
html {
font-size: 14px;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
body {
margin: 0;
min-height: 100vh;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", Helvetica, Arial, sans-serif;
background: #f5f5f7;
color: #222;
}
*:focus {
outline: none;
}
*:focus-visible {
outline: 2px solid rgba(58, 88, 199, 0.4);
outline-offset: 2px;
}
/* ===== 主题色 ===== */
:root {
--c-primary: #3a58c7;
--c-primary-soft: rgba(58, 88, 199, 0.09);
--c-accent: #d6336c;
--c-accent-soft: rgba(214, 51, 108, 0.1);
--c-bg-header: #1c2b4a;
--c-bg-header-text: #f7f9ff;
--radius: 14px;
--radius-sm: 10px;
--shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.09);
--shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
--ease-out: cubic-bezier(0.2, 0.9, 0.3, 1);
}
/* ===== 顶栏 ===== */
.header {
position: sticky;
top: 0;
z-index: 100;
background: var(--c-bg-header);
color: var(--c-bg-header-text);
}
.header__bar {
display: flex;
align-items: center;
justify-content: space-between;
max-width: 1080px;
margin: 0 auto;
padding: 13px 20px;
}
.header__title {
font-weight: 600;
letter-spacing: 0.04em;
font-size: 15px;
text-transform: uppercase;
}
.header__actions {
display: flex;
align-items: center;
gap: 6px;
}
/* ===== 关于按钮 ===== */
.header__about {
margin: 0;
padding: 6px;
border-radius: 999px;
border: none;
background: rgba(255, 255, 255, 0.06);
color: var(--c-bg-header-text);
cursor: pointer;
}
.header__about .icon {
width: 18px;
height: 18px;
}
.header__about:hover {
background: rgba(255, 255, 255, 0.13);
}
/* ===== Tab ===== */
.tabs {
position: relative;
display: flex;
max-width: 1080px;
margin: 0 auto;
border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.tabs__item {
flex: 1;
display: flex;
align-items: center;
justify-content: center;
gap: 6px;
padding: 11px 8px 9px;
border: none;
background: transparent;
color: rgba(247, 249, 255, 0.6);
font-size: 13px;
cursor: pointer;
position: relative;
transition: color 0.2s ease;
}
.tabs__item .icon {
width: 16px;
height: 16px;
opacity: 0.8;
}
.tabs__item.active {
color: #fff;
}
.tabs__item.active .icon {
opacity: 1;
}
.tabs__item:hover {
color: rgba(255, 255, 255, 0.9);
}
.tabs__indicator {
position: absolute;
bottom: 0;
left: 0;
height: 2.5px;
background: var(--c-accent);
border-radius: 999px;
transition: left 0.25s var(--ease-out), width 0.25s var(--ease-out);
}
/* ===== 容器 ===== */
.container {
max-width: 1080px;
margin: 0 auto;
padding: 24px 20px 48px;
}
.pane {
display: none;
animation: paneEnter 0.22s ease;
}
.pane.active {
display: block;
}
@keyframes paneEnter {
from {
opacity: 0;
transform: translateY(6px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
/* ===== 卡片网格 ===== */
.grid {
display: grid;
gap: 22px;
grid-template-columns: 1fr;
}
@media (min-width: 540px) {
.grid {
grid-template-columns: repeat(2, 1fr);
}
}
@media (min-width: 860px) {
.grid {
grid-template-columns: repeat(3, 1fr);
}
}
/* ===== 卡片 ===== */
.card {
background: #fff;
border-radius: var(--radius);
box-shadow: var(--shadow-soft);
overflow: hidden;
display: flex;
flex-direction: column;
}
.card--center {
max-width: 560px;
margin: 0 auto;
}
.card__header {
padding: 14px 16px 0;
}
.card__title {
font-weight: 700;
font-size: 15px;
line-height: 1.25;
margin: 0 0 2px;
}
.card__subtitle {
font-size: 12px;
color: #64748b;
margin: 0;
}
.card__body {
padding: 8px 16px 0;
font-size: 13px;
color: #334155;
line-height: 1.6;
}
.card__body p {
margin: 0 0 8px;
}
.card__body p:last-child {
margin-bottom: 0;
}
.card__actions {
margin-top: auto;
padding: 12px 16px;
border-top: 1px solid #f1f5f9;
display: flex;
gap: 8px;
}
/* ===== 按钮 ===== */
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 6px;
border-radius: 999px;
border: none;
font-size: 13px;
padding: 9px 20px;
cursor: pointer;
text-decoration: none;
transition: transform 0.12s ease, box-shadow 0.18s ease, filter 0.18s ease;
}
.btn--primary {
background: var(--c-primary);
color: #fff;
box-shadow: 0 8px 22px rgba(58, 88, 199, 0.22);
}
.btn--primary:hover {
transform: translateY(-1px);
box-shadow: 0 10px 28px rgba(58, 88, 199, 0.28);
filter: brightness(1.04);
}
.btn--accent {
background: var(--c-accent);
color: #fff;
box-shadow: 0 8px 22px rgba(214, 51, 108, 0.22);
}
.btn--accent:hover {
transform: translateY(-1px);
box-shadow: 0 10px 28px rgba(214, 51, 108, 0.28);
filter: brightness(1.04);
}
/* ===== 空状态 ===== */
.empty-hint {
text-align: center;
padding: 64px 16px;
color: #94a3b8;
}
.empty-hint__icon {
width: 48px;
height: 48px;
margin-bottom: 12px;
opacity: 0.5;
}
.empty-hint p {
margin: 0 0 12px;
font-size: 14px;
}
/* ===== 图标通用 ===== */
.icon {
display: inline-block;
vertical-align: middle;
width: 20px;
height: 20px;
stroke-linecap: round;
stroke-linejoin: round;
}
/* ===== Hero 区 ===== */
.hero {
max-width: 640px;
margin: 0 auto;
text-align: center;
padding: 32px 0 8px;
}
.hero h1 {
font-size: 26px;
font-weight: 800;
margin: 0 0 8px;
color: var(--c-bg-header);
}
.hero p {
font-size: 14px;
color: #64748b;
margin: 0 0 24px;
line-height: 1.6;
}
.hero .btn {
font-size: 14px;
padding: 11px 28px;
}
/* ===== 说明列表 ===== */
.steps {
list-style: none;
padding: 0;
margin: 0;
counter-reset: step;
}
.steps li {
position: relative;
padding: 10px 0 10px 36px;
font-size: 13px;
color: #334155;
line-height: 1.6;
border-bottom: 1px solid #f1f5f9;
}
.steps li:last-child {
border-bottom: none;
}
.steps li::before {
counter-increment: step;
content: counter(step);
position: absolute;
left: 0;
top: 10px;
width: 24px;
height: 24px;
border-radius: 999px;
background: var(--c-primary-soft);
color: var(--c-primary);
font-size: 12px;
font-weight: 700;
display: grid;
place-items: center;
}
/* ===== 用户信息 ===== */
.user-info
{
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
}
.user-info__avatar
{
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: var(--c-primary-soft);
    color: var(--c-primary);
    display: grid;
    place-items: center;
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
}
.user-info__detail
{
    flex: 1;
    min-width: 0;
}
.user-info__name
{
    font-weight: 700;
    font-size: 15px;
    margin: 0;
}
.user-info__desc
{
    font-size: 12px;
    color: #64748b;
    margin: 2px 0 0;
}