/* index.html 特化样式 */

body {
    background-color: #212121; /* 强制背景一致 */
}

.container {
    width: 100%;
    max-width: 800px;
    padding: 40px 20px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.card {
    background-color: #383838;
    padding: 24px 28px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.card h1, .card h3 {
    color: #ffffff;
    margin-top: 0;
}

.card p {
    color: #e4e4e7;
    line-height: 1.6;
}

.card a {
    color: #00e676;
    text-decoration: none;
}

.card a:hover {
    text-decoration: underline;
}

.card-image {
    display: block;
    margin: 12px auto;
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    background-color: #303030;
}

/* footer */
.footer {
    text-align: center;
    margin: 60px 0 20px 0;
    font-size: 14px;
    color: #888;
}

.footer a {
    color: #888;
    text-decoration: none;
}

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

/* 顶栏 Topbar */
.topbar {
    background-color: #1c1c1c;
    height: 52px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 28px;
    box-sizing: border-box;
    position: sticky; /* 可保持顶部悬浮，也可改为fixed */
    top: 0;
    z-index: 1000;
}

/* 左侧标题 */
.topbar-title {
    color: #e4e4e7;
    font-size: 20px;
    font-weight: bold;
}

/* 右侧导航栏 */
.topbar-nav a {
    color: #e4e4e7;
    text-decoration: none;
    margin-left: 24px;
    font-size: 15px;
    transition: color 0.2s ease;
}

.topbar-nav a:hover {
    color: #00e676;
}
