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

:root {
    --bg-color: #ffffff;
    --text-color: #333333;
    --text-gray: #666666;
    --text-light: #bbbbbb;
    --border-color: #f0f0f0;
    --top-bar-bg: #3d4557;
    --top-bar-text: #ffffff;
    --body-bg: #f4f5f6;
    --card-bg: #ffffff;
    --hover-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
}

body {
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.5;
    font-weight: bold;
    font-style: italic;
}

.top-bar {
    height: 36px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--top-bar-bg);
    padding: 0 8px;
}

.top-bar-content {
    width: 100%;
    max-width: 1300px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: var(--font-size-xs);
    color: var(--top-bar-text);
}

.top-bar a {
    color: var(--top-bar-text);
    text-decoration: none;
}

.header {
    height: 140px;
    width: 100%;
    padding: 0 8px;
    margin: 0 auto;
}

.header-content {
    height: 100px;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
}

.header-left {
    display: flex;
    height: 100%;
    align-items: center;
    gap: 16px;
}

.logo-img {
    height: 64px;
    width: 64px;
    border-radius: 8px;
}

.header-divider {
    width: 1px;
    height: 32px;
    background-color: var(--border-color);
    opacity: 0.5;
}

.header-desc {
    display: none;
}

@media (min-width: 1024px) {
    .header-desc {
        display: block;
        font-size: var(--font-size-xs);
        color: var(--text-light);
    }
    .header-desc p {
        margin: 2px 0;
    }
}

.header-right {
    display: flex;
    height: 100%;
    width: 277px;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    text-decoration: none;
}

.nav-link img {
    height: 32px;
}

.nav-link p {
    font-size: var(--font-size-xs);
    color: var(--text-color);
    margin: 0;
}

.quick-nav {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
    overflow-x: auto;
    height: 40px;
}

.quick-item {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    text-decoration: none;
}

.quick-item img {
    width: 20px;
    height: 20px;
}

.quick-item p {
    font-size: 13px;
    color: var(--text-color);
    margin: 0;
}

.main-content {
    background-color: var(--body-bg);
    padding: 10px 8px;
}

.content-wrap {
    max-width: 1300px;
    margin: 0 auto;
    padding-bottom: 32px;
}

.hongbao-banner {
    display: flex;
    height: 80px;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 0 4px;
}

@media (min-width: 1024px) {
    .hongbao-banner {
        display: none;
    }
}

.hongbao-item {
    flex: 1;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--card-bg);
}

.hongbao-item img {
    height: 100%;
}

.category-section {
    margin-top: 8px;
}

.category-header {
    height: 24px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: var(--font-size-sm);
    color: var(--text-color);
    margin: 8px 0;
}

.category-desc {
    font-size: var(--font-size-xs);
    color: var(--text-gray);
}

.category-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

@media (min-width: 768px) {
    .category-links {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .category-links {
        grid-template-columns: repeat(7, minmax(0, 1fr));
    }
}

@media (min-width: 1280px) {
    .category-links {
        grid-template-columns: repeat(8, minmax(0, 1fr));
    }
}

.link-card {
    display: flex;
    height: 36px;
    align-items: center;
    gap: 8px;
    border-radius: 6px;
    background-color: var(--card-bg);
    padding: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: box-shadow 0.3s ease;
}

.link-card:hover {
    box-shadow: var(--hover-shadow);
}

.link-card img {
    width: 20px;
    height: 20px;
}

.link-card p {
    font-size: 15px;
    color: var(--text-color);
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: bold;
    font-style: italic;
}

.footer {
    text-align: center;
    padding: 16px;
    font-size: var(--font-size-xs);
    color: var(--text-light);
}