/* ========== 复用组件样式 ========== */

/* 通用卡片 */
.card {
    background-color: var(--color-bg-card);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.card--col {
    padding: var(--spacing-sm) var(--spacing-3xl) 0;
    display: flex;
    flex-direction: column;
}

/* 卡片头部 */
.card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-lg);
    height: 54px;
    border-bottom: 1px solid var(--color-border-light);
}

/* 节标题 */
.section-title {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

/* 节标题中的同心圆图标 */
.section-title__dot {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    position: relative;
    display: inline-flex;
    align-items: center;
}

.section-title__dot::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1px;
    width: 21px;
    height: 21px;
    border-radius: var(--radius-circle);
    border: 5px solid var(--color-primary);
    box-sizing: border-box;
}

.section-title__dot::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 15px;
    height: 15px;
    border-radius: var(--radius-circle);
    background: linear-gradient(135deg, rgba(212, 234, 255, 0.7) 0%, rgba(255, 255, 255, 0.5) 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(5px);
}

.section-title__text {
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-bold);
    color: var(--color-text-primary);
    line-height: 1.5555;
}

/* 更多链接 */
.more-link {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xxs);
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    line-height: var(--line-height-relaxed);
    transition: color var(--transition-fast);
    cursor: pointer;
}

.more-link svg {
    transition: transform var(--transition-fast);
}

.more-link:hover {
    color: var(--color-primary);
}

.more-link:hover svg {
    transform: translateX(2px);
}

/* ========== Tab 栏 ========== */
.tab-bar {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    flex: 1 1 auto;
    min-width: 0;
}

.tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 4px 16px;
    border-radius: var(--radius-pill);
    font-size: var(--font-size-base);
    color: var(--color-text-secondary);
    background-color: var(--color-bg-tab);
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.tab--active {
    background-color: var(--color-primary);
    color: var(--color-text-inverse);
    font-weight: var(--font-weight-bold);
}

.tab:hover:not(.tab--active) {
    background-color: rgba(31, 109, 232, 0.1);
    color: var(--color-primary);
}

/* ========== 新闻轮播 ========== */
.news-carousel {
    position: relative;
    width: 100%;
    aspect-ratio: 568 / 369;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background-color: #1a1a1a;
}

.news-carousel__viewport {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.news-carousel__track {
    display: flex;
    height: 100%;
    transition: transform var(--transition-normal);
}

.news-carousel__slide {
    flex: 0 0 100%;
    height: 100%;
    position: relative;
}

.news-carousel__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-carousel__slide-title {
    display: none;
}

.news-carousel__overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 60%;
    background: var(--gradient-overlay);
    pointer-events: none;
    z-index: 1;
}

.news-carousel__caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 40px 22px 20px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2xl);
}

.news-carousel__title {
    color: var(--color-text-inverse);
    font-size: var(--font-size-base);
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.news-carousel__dots {
    display: flex;
    justify-content: flex-end;
    gap: 4px;
}

.news-carousel__dot {
    width: 40px;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.36);
    border-radius: 1.5px;
    cursor: pointer;
    transition: background-color var(--transition-fast);
}

.news-carousel__dot--active {
    background-color: #ffffff;
}

.news-carousel__dot:hover:not(.news-carousel__dot--active) {
    background-color: rgba(255, 255, 255, 0.7);
}

.news-carousel__arrow {
    position: absolute;
    top: calc(50% - 30px);
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.25);
    border-radius: var(--radius-circle);
    z-index: 3;
    opacity: 0;
    transition: opacity var(--transition-fast), background-color var(--transition-fast);
}

.news-carousel:hover .news-carousel__arrow {
    opacity: 1;
}

.news-carousel__arrow:hover {
    background-color: rgba(0, 0, 0, 0.5);
}

.news-carousel__arrow--prev {
    left: 12px;
}

.news-carousel__arrow--next {
    right: 12px;
}

/* ========== 公告/资讯面板 ========== */
.notice-panel {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2xl);
    min-width: 0;
    width: 568px;
    height: 369px;
}

.notice-panel__header {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

/* ========== 通用列表 ========== */
.notice-list {
    display: flex;
    flex-direction: column;
}

.notice-list__item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: 10px 0;
    border-bottom: 1px solid var(--color-border-light);
    cursor: pointer;
    transition: padding-left var(--transition-fast);
    min-height: 60px;
}

.notice-list--compact .notice-list__item {
    min-height: 56px;
}

.notice-list__item:last-child {
    border-bottom: none;
}

.notice-list__item:hover {
    padding-left: 4px;
    border-bottom-color: var(--color-primary);
}

.notice-list__item:hover .notice-list__title,
.notice-list__item:hover .notice-list__date {
    color: var(--color-primary);
}

.notice-list__item--featured {
    border-bottom-color: var(--color-primary);
}

.notice-list__item--featured .notice-list__title,
.notice-list__item--featured .notice-list__date {
    color: var(--color-primary);
}

/* 圆点 icon - 带光晕效果 */
.notice-list__icon {
    position: relative;
    width: 16px;
    height: 10px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
}

.notice-list__icon::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 10px;
    height: 10px;
    border-radius: var(--radius-circle);
    background: var(--gradient-dot);
    z-index: 2;
}

.notice-list__icon::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 0;
    width: 10px;
    height: 10px;
    border-radius: var(--radius-circle);
    background: rgba(213, 226, 255, 0.5);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
    z-index: 1;
    backdrop-filter: blur(3px);
}

/* 标题 */
.notice-list__title {
    flex: 1 1 auto;
    min-width: 0;
    font-size: var(--font-size-sm);
    color: var(--color-text-primary);
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color var(--transition-fast);
}

/* 大事件 / 高亮 - 块状日期 (来源 xwzx.pen 70x70 px) */
.notice-list__date-block {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    border-radius: var(--radius-xs);
    background: linear-gradient(135deg, #5199ff 0%, #1f6de8 100%);
    color: var(--color-text-inverse);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 8px;
    font-family: "Roboto", "Source Han Sans CN", sans-serif;
}

.notice-list__date-block .day {
    font-size: 24px;
    font-weight: var(--font-weight-bold);
    line-height: 1.4166;
    letter-spacing: 0.5px;
}

.notice-list__date-block .month {
    font-size: var(--font-size-xs);
    font-weight: 300;
    line-height: 1.5;
    margin-top: 2px;
    opacity: 0.95;
}

.notice-list__date {
    flex-shrink: 0;
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    transition: color var(--transition-fast);
    white-space: nowrap;
}

/* 高亮项 - 第一条带块状日期 */
.notice-list__item--banner {
    align-items: center;
    padding: 16px 0;
    gap: 16px;
    min-height: 86px;
}

.notice-list__item--banner .notice-list__title {
    flex: 1 1 auto;
    font-size: var(--font-size-md);
    font-weight: 500;
    color: var(--color-text-primary);
    line-height: 1.3333;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

#topNoticeList > .notice-list__item:first-child {
    align-items: center;
    padding: 16px 0;
    gap: 16px;
    min-height: 86px;
}

#topNoticeList > .notice-list__item:first-child .notice-list__icon {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    border-radius: var(--radius-xs);
    background: linear-gradient(135deg, #5199ff 0%, #1f6de8 100%);
    color: var(--color-text-inverse);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 8px;
    font-family: "Roboto", "Source Han Sans CN", sans-serif;
}

#topNoticeList > .notice-list__item:first-child .notice-list__icon::before {
    content: attr(data-day);
    position: static;
    width: auto;
    height: auto;
    border-radius: 0;
    background: none;
    font-size: 24px;
    font-weight: var(--font-weight-bold);
    line-height: 1.4166;
    letter-spacing: 0.5px;
}

#topNoticeList > .notice-list__item:first-child .notice-list__icon::after {
    content: attr(data-month);
    position: static;
    width: auto;
    height: auto;
    border-radius: 0;
    background: none;
    box-shadow: none;
    backdrop-filter: none;
    font-size: var(--font-size-xs);
    font-weight: 300;
    line-height: 1.5;
    margin-top: 2px;
    opacity: 0.95;
}

#topNoticeList > .notice-list__item:first-child .notice-list__title {
    flex: 1 1 auto;
    font-size: var(--font-size-md);
    font-weight: 500;
    color: var(--color-text-primary);
    line-height: 1.3333;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

#topNoticeList > .notice-list__item:first-child .notice-list__date {
    display: none;
}

#topNoticeListGgtz > .notice-list__item:first-child {
    align-items: center;
    padding: 16px 0;
    gap: 16px;
    min-height: 86px;
}

#topNoticeListGgtz > .notice-list__item:first-child .notice-list__icon {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    border-radius: var(--radius-xs);
    background: linear-gradient(135deg, #5199ff 0%, #1f6de8 100%);
    color: var(--color-text-inverse);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 8px;
    font-family: "Roboto", "Source Han Sans CN", sans-serif;
}

#topNoticeListGgtz > .notice-list__item:first-child .notice-list__icon::before {
    content: attr(data-day);
    position: static;
    width: auto;
    height: auto;
    border-radius: 0;
    background: none;
    font-size: 24px;
    font-weight: var(--font-weight-bold);
    line-height: 1.4166;
    letter-spacing: 0.5px;
}

#topNoticeListGgtz > .notice-list__item:first-child .notice-list__icon::after {
    content: attr(data-month);
    position: static;
    width: auto;
    height: auto;
    border-radius: 0;
    background: none;
    box-shadow: none;
    backdrop-filter: none;
    font-size: var(--font-size-xs);
    font-weight: 300;
    line-height: 1.5;
    margin-top: 2px;
    opacity: 0.95;
}

#topNoticeListGgtz > .notice-list__item:first-child .notice-list__title {
    flex: 1 1 auto;
    font-size: var(--font-size-md);
    font-weight: 500;
    color: var(--color-text-primary);
    line-height: 1.3333;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

#topNoticeListGgtz > .notice-list__item:first-child .notice-list__date {
    display: none;
}

#topNoticeListZggg > .notice-list__item:first-child {
    align-items: center;
    padding: 16px 0;
    gap: 16px;
    min-height: 86px;
}

#topNoticeListZggg > .notice-list__item:first-child .notice-list__icon {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    border-radius: var(--radius-xs);
    background: linear-gradient(135deg, #5199ff 0%, #1f6de8 100%);
    color: var(--color-text-inverse);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 8px;
    font-family: "Roboto", "Source Han Sans CN", sans-serif;
}

#topNoticeListZggg > .notice-list__item:first-child .notice-list__icon::before {
    content: attr(data-day);
    position: static;
    width: auto;
    height: auto;
    border-radius: 0;
    background: none;
    font-size: 24px;
    font-weight: var(--font-weight-bold);
    line-height: 1.4166;
    letter-spacing: 0.5px;
}

#topNoticeListZggg > .notice-list__item:first-child .notice-list__icon::after {
    content: attr(data-month);
    position: static;
    width: auto;
    height: auto;
    border-radius: 0;
    background: none;
    box-shadow: none;
    backdrop-filter: none;
    font-size: var(--font-size-xs);
    font-weight: 300;
    line-height: 1.5;
    margin-top: 2px;
    opacity: 0.95;
}

#topNoticeListZggg > .notice-list__item:first-child .notice-list__title {
    flex: 1 1 auto;
    font-size: var(--font-size-md);
    font-weight: 500;
    color: var(--color-text-primary);
    line-height: 1.3333;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

#topNoticeListZggg > .notice-list__item:first-child .notice-list__date {
    display: none;
}

#topNoticeListGyscf > .notice-list__item:first-child {
    align-items: center;
    padding: 16px 0;
    gap: 16px;
    min-height: 86px;
}

#topNoticeListGyscf > .notice-list__item:first-child .notice-list__icon {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    border-radius: var(--radius-xs);
    background: linear-gradient(135deg, #5199ff 0%, #1f6de8 100%);
    color: var(--color-text-inverse);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 8px;
    font-family: "Roboto", "Source Han Sans CN", sans-serif;
}

#topNoticeListGyscf > .notice-list__item:first-child .notice-list__icon::before {
    content: "20";
    position: static;
    width: auto;
    height: auto;
    border-radius: 0;
    background: none;
    font-size: 24px;
    font-weight: var(--font-weight-bold);
    line-height: 1.4166;
    letter-spacing: 0.5px;
}

#topNoticeListGyscf > .notice-list__item:first-child .notice-list__icon::after {
    content: attr(data-month);
    position: static;
    width: auto;
    height: auto;
    border-radius: 0;
    background: none;
    box-shadow: none;
    backdrop-filter: none;
    font-size: var(--font-size-xs);
    font-weight: 300;
    line-height: 1.5;
    margin-top: 2px;
    opacity: 0.95;
}

#topNoticeListGyscf > .notice-list__item:first-child .notice-list__title {
    flex: 1 1 auto;
    font-size: var(--font-size-md);
    font-weight: 500;
    color: var(--color-text-primary);
    line-height: 1.3333;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

#topNoticeListGyscf > .notice-list__item:first-child .notice-list__date {
    display: none;
}

/* ========== 浮动按钮 ========== */
.floating-btn {
    position: absolute;
    top: 104px;
    right: calc(51% - 699px);
    width: 64px;
    min-height: 179px;
    background: var(--gradient-accent);
    border-radius: var(--radius-pill-lg);
    padding: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 20px rgba(95, 113, 255, 0.35);
    z-index: 50;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    overflow: hidden;
}

.floating-btn:hover {
    transform: scale(1.04);
    box-shadow: 0 12px 28px rgba(95, 113, 255, 0.45);
}

.floating-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(255, 255, 255, 0.18), transparent 70%);
    pointer-events: none;
}

.floating-btn__icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-circle);
    background-color: var(--color-bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: inset 0 -2px 4px rgba(95, 113, 255, 0.15);
}

.floating-btn__icon svg {
    width: 30px;
    height: 36px;
    display: block;
}

.floating-btn__text {
    color: var(--color-text-inverse);
    font-size: var(--font-size-base);
    line-height: 1.125;
    text-align: center;
    letter-spacing: 1px;
    writing-mode: vertical-rl;
    text-orientation: upright;
}

/* ========== 供应商查询按钮 ========== */
.supplier-btn {
    position: absolute;
    right: calc(51% - 699px);
    margin-top: 15px;
    width: 64px;
    min-height: 179px;
    background: var(--gradient-accent);
    border-radius: var(--radius-pill-lg);
    padding: 6px;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 20px rgba(95, 113, 255, 0.35);
    text-decoration: none;
    cursor: pointer;
    z-index: 50;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    overflow: hidden;
}

.supplier-btn:hover {
    transform: scale(1.04);
    box-shadow: 0 12px 28px rgba(95, 113, 255, 0.45);
}

.supplier-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(255, 255, 255, 0.18), transparent 70%);
    pointer-events: none;
}

.supplier-btn__icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-circle);
    background-color: var(--color-bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: inset 0 -2px 4px rgba(95, 113, 255, 0.15);
}

.supplier-btn__icon img {
    display: block;
    object-fit: contain;
}

.supplier-btn__text {
    color: var(--color-text-inverse);
    font-size: var(--font-size-base);
    line-height: 1.125;
    text-align: center;
    letter-spacing: 1px;
    writing-mode: vertical-rl;
    text-orientation: upright;
}
