/* 仅 home.html：顶栏（含 top-bar + main-menubar）与下方主区同宽，最大 1200 */
.site-header--home {
    max-width: 1200px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    box-shadow: none;
}

/* main-menubar 底部分隔线拉满视口宽度（内容区仍为 1200） */
.site-header--home .main-menubar {
    position: relative;
}

.site-header--home .main-menubar::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    bottom: 0;
    height: 1px;
    background: #e5e7eb;
    pointer-events: none;
}

.main-container--full {
    max-width: 1200px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.main-container--full .content-area {
    width: 100%;
    min-width: 0;
}

.home-page {
    flex: 1;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.home-dashboard {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    grid-template-rows: auto auto;
    gap: 14px;
    padding: 16px 18px 20px;
    align-items: stretch;
}

.home-banner-swiper {
    border-radius: 8px;
    overflow: hidden;
    background: #1a1a2e;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
    border: 1px solid #e5e7eb;
}

.home-banner-swiper.swiper {
    width: 100%;
}

.home-banner-swiper .swiper-slide {
    height: auto;
}

.home-banner-slide {
    position: relative;
    min-height: 280px;
    width: 100%;
}

.home-banner-slide__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.home-banner-slide__bg--1 {
    background-image: linear-gradient(125deg, #0f172a 0%, #1e3a5f 45%, #1e89f7 100%);
}

.home-banner-slide__bg--2 {
    background-image: linear-gradient(125deg, #312e81 0%, #5b21b6 50%, #7c3aed 100%);
}

.home-banner-slide__bg--3 {
    background-image: linear-gradient(125deg, #134e4a 0%, #0f766e 50%, #14b8a6 100%);
}

.home-banner-slide img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}

.home-banner-slide img[src=""],
.home-banner-slide img:not([src]) {
    display: none;
}

.home-banner-swiper .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.55);
    opacity: 1;
}

.home-banner-swiper .swiper-pagination-bullet-active {
    background: #fff;
}

.home-banner-swiper .swiper-button-prev,
.home-banner-swiper .swiper-button-next {
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.28);
}

.home-banner-swiper .swiper-button-prev::after,
.home-banner-swiper .swiper-button-next::after {
    font-size: 14px;
    font-weight: bold;
}

/* 通用白卡片 */
.home-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
    overflow: hidden;
}

.home-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-bottom: 1px solid #f0f0f0;
}

.home-card__title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: bold;
    color: #1e89f7;
}

.home-card__title::before {
    content: "";
    width: 4px;
    height: 15px;
    background: #1e89f7;
    border-radius: 2px;
}

.home-card__more {
    font-size: 13px;
    color: #94a3b8;
}

.home-card__more:hover {
    color: #1e89f7;
}

/* 用户卡（右上） */
.home-user-card .home-user-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 18px 14px 12px;
    background: linear-gradient(180deg, #eef6ff 0%, #fff 100%);
    border-bottom: 1px solid #f0f0f0;
}

.home-user-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #dde8f5;
    border: 2px solid #c8dff7;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
    color: #94a3b8;
    font-size: 28px;
}

.home-user-avatar-label {
    font-size: 11px;
    color: #94a3b8;
}

.home-user-info {
    padding: 10px 14px;
    font-size: 13px;
}

.home-user-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 6px;
    padding: 6px 0;
    border-bottom: 1px dashed #f0f0f0;
}

.home-user-row:last-of-type {
    border-bottom: none;
}

.home-user-row .u-lab {
    color: #666;
    flex-shrink: 0;
}

.home-user-row .u-val {
    color: #333;
    word-break: break-all;
}

.home-user-actions {
    display: flex;
    gap: 10px;
    padding: 12px 14px;
    border-top: 1px solid #f0f0f0;
}

.btn-home-member {
    flex: 1;
    padding: 9px 0;
    border: none;
    border-radius: 6px;
    background: #1e89f7;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    font-family: inherit;
}

.btn-home-member:hover {
    filter: brightness(1.05);
}

.btn-home-logout {
    flex: 1;
    padding: 9px 0;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    color: #555;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    font-family: inherit;
}

.btn-home-logout:hover {
    border-color: #1e89f7;
    color: #1e89f7;
}

/* 系统公告 */
.home-announce-list {
    padding: 4px 0 8px;
}

.home-announce-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-bottom: 1px solid #f5f5f5;
}

.home-announce-item:last-child {
    border-bottom: none;
}

.home-announce-item:hover {
    background: #fafbff;
}

.home-announce-item > i {
    color: #94a3b8;
    font-size: 11px;
    flex-shrink: 0;
}

.home-announce-item a {
    flex: 1;
    min-width: 0;
    font-size: 13px;
    color: #dc2626;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-announce-item a:hover {
    text-decoration: underline;
}

.home-announce-item .home-announce-date {
    flex-shrink: 0;
    font-size: 12px;
    color: #9ca3af;
}

/* 联系客服 */
.home-service-head {
    justify-content: center;
    border-bottom: 1px solid #f0f0f0;
}

.home-service-head .home-card__title {
    color: #1e89f7;
}

.home-service-list {
    padding: 8px 0 12px;
}

.home-service-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 14px;
}

.home-service-row__lab {
    font-size: 12px;
    color: #666;
    flex-shrink: 0;
    min-width: 65px;
}

.home-service-row__qq {
    font-size: 13px;
    color: #333;
    flex: 1;
    min-width: 0;
}

.btn-home-qq {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border: 1px solid #1e89f7;
    border-radius: 4px;
    background: #fff;
    color: #1e89f7;
    font-size: 12px;
    cursor: pointer;
    font-family: inherit;
}

.btn-home-qq:hover {
    background: #1e89f7;
    color: #fff;
}

.home-service-group {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 10px;
    font-size: 12px;
    color: #666;
}

.home-service-group input {
    flex: 1;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    padding: 5px 8px;
    font-size: 12px;
    font-family: inherit;
    background: #f9fafb;
    color: #333;
}

@media (max-width: 960px) {
    .home-dashboard {
        grid-template-columns: 1fr;
    }
}
