:root {
    --color-primary: #fc8308;
    --color-primary-hover: #FD9C39;
    --color-primary-press: #E38007;
    --color-red: #F91212;
    --color-red-gradient: linear-gradient(270deg, #FA3333 0%, #FE7A0E 100%);
    --color-orange: #FF952B;
    --color-green: #5AD9AA;
    --color-purple: #783B95;
    --color-blue: #386FFC;
    --color-background: #F5F5F5;
    --color-white: #FFF;
    --color-font-black: #353535;
    --color-font-black-minor: #888;
    --color-font-black-disabled: #bbb;
    --color-font-black-important: #222;
    --color-divider: #EDEDED;
    --basePadding: 16px;
    --baseRadius: 8px;
    --font-regular: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    --font-bold: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

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

html,
body {
    font-family: var(--font-regular);
    background-color: var(--color-background);
    color: var(--color-font-black);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background-color: #ffffff;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
}

.logo img {
    height: 48px;
    width: auto;
}

.logocard {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    /* align-self: flex-start; */
}

.explain {
    font-size: 15px;
    color: var(--color-font-black-minor);
    /* margin-bottom: 4px; */
    margin-top: auto;
}

.nav {
    display: flex;
    gap: 48px;
}

.nav-item {
    text-decoration: none;
    color: var(--color-font-black);
    font-size: 16px;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.nav-item:hover {
    color: var(--color-primary);
}

.nav-item.active {
    color: var(--color-primary);
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--color-red-gradient);
    border-radius: 2px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn {
    border: none;
    border-radius: 23px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-pro {
    background-color: var(--color-primary);
    color: white;
    padding: 8px 20px;
}

.btn-pro:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(252, 131, 8, 0.3);
}

.btn-search {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.search-icon {
    width: 24px;
    height: 24px;
    fill: none;
}

.btn-login {
    background: var(--color-red-gradient);
    color: white;
    padding: 8px 24px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 18, 18, 0.3);
}

.hero {
    position: relative;
    height: 600px;
    overflow: hidden;
    margin-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.hero-bg-1 {
    background-image: url('assets/img/Show1.jpeg');
    opacity: 1;
}

.hero-bg-2 {
    background-image: url('assets/img/Show2.jpeg');
}

.hero-bg-3 {
    background-image: url('assets/img/Show3.jpeg');
}

.hero-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-logos {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 30px;
}

.logo-separator {
    color: rgba(255, 255, 255, 0.8);
    font-size: 24px;
    font-weight: 300;
}

.hero-partner-logo {
    height: 34px;
    width: auto;
}

.hero-title {
    text-align: center;
    margin-bottom: 40px;
}

.title-line-1 {
    display: block;
    font-size: 48px;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    margin-bottom: 10px;
}

.title-line-2 {
    display: block;
    font-size: 36px;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.btn-hero {
    width: 200px;
    height: 56px;
    border-radius: 100px;
    background: linear-gradient(180deg, #ffd700 0%, #ff8c00 100%);
    color: white;
    font-size: 20px;
    font-weight: bold;
    box-shadow: 0 8px 20px rgba(255, 140, 0, 0.4);
    padding: 0;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, background 0.3s ease;
}

.btn-hero:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(255, 140, 0, 0.5);
    background: linear-gradient(180deg, #ffe047 0%, #ffa726 100%);
}

.post-detail {
  padding: 20px 30px;
  color: #273849;
  -webkit-font-smoothing: antialiased;
  line-height: 1.8;
  letter-spacing: 0;
  margin: 30px 20px;
  overflow-x: hidden;
  background-color: #fff;
  border-radius: 15px;
  box-shadow: 0 0 50px #ccc;
  font-family: -apple-system, BlinkMacSystemFont, PingFang SC, Segoe UI, Microsoft YaHei, Hiragino Sans GB, Helvetica Neue, Helvetica, Arial, sans-serif;
  position: relative;
}

.time-show {
  padding: 20px 30px;
  color: #273849;
  -webkit-font-smoothing: antialiased;
  line-height: 1.8;
  letter-spacing: 0;
  margin: 30px 20px;
  overflow-x: hidden;
  background-color: #fff;
  border-radius: 15px;
  box-shadow: 0 0 50px #ccc;
  font-family: -apple-system, BlinkMacSystemFont, PingFang SC, Segoe UI, Microsoft YaHei, Hiragino Sans GB, Helvetica Neue, Helvetica, Arial, sans-serif;
  position: relative;
}

.countdown-display {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.time-unit {
    border: 3px solid #2a2ac2;
    padding: 20px;
    min-width: 100px;
    background: rgba(248, 248, 248, 0.5);
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(56, 56, 242, 0.3);
}

.time-unit span {
    display: block;
    font-size: 40px;
    font-weight: bold;
    color: #3838f2;
    text-shadow: 0 0 5px rgba(56, 56, 242, 0.5);
}

.time-unit label {
    font-size: 16px;
    color: #2a2ac2;
    text-transform: uppercase;
}

/* 悬浮框相关 */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  
  /* 隐藏/显示的过渡动画 */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-content {
  background-color: #fff;
  color: #273849;
  padding: 40px 50px;
  border-radius: 8px;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.2);
  max-width: 600px;
  width: 90%;
  position: relative;
  
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 24px;
  cursor: pointer;
  color: #999;
  transition: color 0.2s;
}
.modal-close:hover {
  color: #273849;
}

/* 1. 上方宣传图：全宽展示，顶部圆角 */
.modal-banner {
  width: 100%;
  height: 180px;             /* 可根据实际图片比例调整高度 */
  object-fit: cover;         /* 保证图片不变形，居中裁剪填满 */
  border-radius: 8px 8px 0 0; /* 与外部容器的圆角对齐 */
  margin-bottom: 25px;       /* 与下方内容留出呼吸空间 */
}

/* 2. 下方内容区：使用 Flex 布局实现左右分布 */
.modal-body {
  display: flex;
  gap: 30px;                 /* 左右两列之间的间距 */
  align-items: flex-start;   /* 顶部对齐，防止左右高度不一致时拉伸 */
}

/* 3. 左侧信息区 */
.modal-left {
  display: flex;
  flex-direction: column;    /* 头像、名称、数据垂直排列 */
  align-items: center;       /* 整体居中 */
  min-width: 100px;          /* 防止内容被过度压缩 */
  gap: 10px;                 /* 内部元素垂直间距 */
}

/* 主办方头像：圆形 */
.organizer-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;        /* 核心：实现正圆形 */
  object-fit: cover;
  border: 2px solid #f0f0f0; /* 增加一点边框，让头像更精致 */
}

/* 主办方名称 */
.organizer-name {
  font-size: 14px;
  font-weight: 600;
  color: #273849;
  text-align: center;
}

/* 数据统计行（参与人数、Star数） */
.activity-stats {
  display: flex;
  gap: 15px;                 /* 两个数据项之间的间距 */
  font-size: 12px;
  color: #666;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 4px;                  /* 图标与文字之间的间距 */
}

/* 4. 右侧介绍与链接区 */
.modal-right {
  flex: 1;                   /* 占据剩余的所有横向空间 */
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* 活动介绍 */
.activity-desctitle {
  font-size: 20px;
  line-height: 1.6;
  color: #4a5568;            /* 介绍文字颜色稍浅，区分层级 */
  margin: 0;                 /* 清除 p 标签默认边距 */
}

/* 活动介绍 */
.activity-desc {
  font-size: 14px;
  line-height: 1.6;
  color: #4a5568;            /* 介绍文字颜色稍浅，区分层级 */
  margin: 0;                 /* 清除 p 标签默认边距 */
}

/* 活动链接入口：按钮样式 */
.activitybuttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-self: flex-start;
}

.activity-link {
  display: inline-block;
  padding: 10px 20px;
  background-color: #273849; /* 使用你之前的主题色 */
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.activity-link:hover {
  opacity: 0.85;             /* 悬停时稍微变暗 */
}

.activity-linkqq {
  display: inline-block;
  padding: 10px 20px;
  background-color: #fff;
  color: #273849;
  border: 1px solid #273849;
  text-decoration: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.activity-linkqq:hover {
  opacity: 0.85;             /* 悬停时稍微变暗 */
}

/* 5. 响应式适配：在小屏幕（如手机）下，左右变为上下布局 */
@media (max-width: 500px) {
  .modal-body {
    flex-direction: column;  /* 变为垂直布局 */
    align-items: stretch;    /* 拉伸填满宽度 */
  }
  .modal-left {
    flex-direction: row;     /* 头像和信息变为水平排列 */
    justify-content: flex-start;
  }
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 40px;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 1;
}

.carousel-arrow.prev {
    left: 40px;
}

.carousel-arrow.next {
    right: 40px;
}

.carousel-arrow:hover {
    color: white;
}

.carousel-dots {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: white;
    width: 24px;
    border-radius: 4px;
}

.featured,
.activity,
.recommended,
.new-potential {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0 12px;
}

.section-title {
    font-size: 20px;
    font-weight: bold;
    color: var(--color-font-black-important);
    position: relative;
    padding-left: 12px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 16px;
    background: linear-gradient(180deg, #F91212 0%, rgba(249, 18, 18, 0) 100%);
    border-radius: 21px;
}

.section-tags {
    display: flex;
    gap: 12px;
}

.tag {
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    background-color: white;
    color: rgba(0, 0, 0, 0.6);
    transition: all 0.2s ease;
    margin-left: 12px;
}

.tag:first-child {
    margin-left: 0;
}

.tag.active {
    background: var(--color-red-gradient);
    color: white;
}

.tag:hover:not(.active) {
    background: var(--color-red-gradient);
    color: white;
}

.grid-container {
    display: flex;
    flex-wrap: wrap;
    width: calc(100% + 16px);
}

.grid-item {
    width: calc(100% / 6 - 16px);
    flex-shrink: 0;
    background-color: white;
    border-radius: var(--baseRadius);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
    margin-right: 16px;
    margin-bottom: 16px;
}

.grid-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.grid-item.activity-item {
    width: calc(200% / 6 - 16px);
}

.grid-item.featured-item {
    width: calc(200% / 6 - 16px);
}

.item-cover {
    position: relative;
    width: 100%;
    padding-top: 100%;
    overflow: hidden;
}

.grid-item.featured-item .item-cover {
    padding-top: 50%;
}
.grid-item.activity-item .item-cover {
    padding-top: 50%;
}

.item-cover img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.grid-item:hover .item-cover img {
    transform: scale(1.1);
}

.item-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    color: white;
    background-color: var(--color-primary);
}

.item-badge.hot {
    background: var(--color-red-gradient);
}

.item-badge.best {
    background: linear-gradient(90deg, #FFD700 0%, #FFA500 100%);
}

.item-badge.excellent {
    background: linear-gradient(90deg, #00BFFF 0%, #0080FF 100%);
}

.item-info {
    padding: 12px;
}

.item-title {
    font-size: 16px;
    font-weight: bold;
    color: var(--color-font-black-important);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.grid-item.featured-item .item-title {
    font-size: 18px;
}
.grid-item.activity-item .item-title {
    font-size: 18px;
}

.item-author {
    font-size: 12px;
    color: var(--color-font-black-minor);
    margin-bottom: 8px;
}

.item-stats {
    display: flex;
    gap: 16px;
    align-items: center;
}

.stat {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: var(--color-font-black-minor);
    gap: 4px;
}

.play-icon {
    width: 14px;
    height: 14px;
}

.new-potential {
    padding-bottom: 80px;
}

.empty-state {
    text-align: center;
    padding: 60px 0;
}

.empty-state p {
    font-size: 16px;
    color: rgba(0, 0, 0, 0.6);
    margin-bottom: 24px;
}

.btn-create {
    background: var(--color-red-gradient);
    color: white;
    padding: 12px 48px;
    font-size: 16px;
    border-radius: 25px;
    font-weight: bold;
}

.btn-create:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(249, 18, 18, 0.3);
}

.footer {
    background-color: white;
    padding: 40px 24px;
    border-top: 1px solid var(--color-divider);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    margin-bottom: 32px;
}

.footer-brand {
    flex: 1;
}

.footer-brand img {
    height: 48px;
    margin-bottom: 8px;
}

.brand-slogan {
    font-size: 14px;
    color: var(--color-font-black-minor);
}

.footer-links {
    display: flex;
    gap: 60px;
}

.link-group h4 {
    font-size: 16px;
    font-weight: bold;
    color: var(--color-font-black-important);
    margin-bottom: 12px;
}

.link-group p {
    font-size: 14px;
    color: var(--color-font-black-minor);
    line-height: 1.6;
}

.link-group ul {
    list-style: none;
}

.link-group ul li {
    margin-bottom: 8px;
}

.link-group ul li a {
    text-decoration: none;
    font-size: 14px;
    color: var(--color-font-black-minor);
    transition: color 0.3s ease;
}

.link-group ul li a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 24px;
    border-top: 1px solid var(--color-divider);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.copyright p {
    font-size: 12px;
    color: var(--color-font-black-minor);
    margin-bottom: 4px;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--color-primary);
    transform: translateY(-2px);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.official-group {
    font-size: 14px;
    color: var(--color-font-black-minor);
}

@media screen and (max-width: 1024px) {
    .grid-item {
        width: calc(25% - 16px);
    }

    .grid-item.featured-item {
        width: calc(50% - 16px);
    }

    .grid-item.activity-item {
        width: calc(50% - 16px);
    }
}

@media screen and (max-width: 768px) {
    .header {
        height: 60px;
    }

    .nav {
        display: none;
    }

    .logo img {
        height: 36px;
    }

    .btn-pro,
    .btn-login {
        font-size: 14px;
        padding: 6px 12px;
    }

    .hero {
        height: 400px;
        margin-top: 60px;
    }

    .title-line-1 {
        font-size: 36px;
    }

    .title-line-2 {
        font-size: 32px;
    }

    .btn-hero {
        height: 48px;
        font-size: 16px;
    }

    .grid-item {
        width: calc(33.33% - 16px);
    }

    .grid-item.featured-item {
        width: calc(100% - 16px);
    }

    .grid-item.activity-item {
        width: calc(100% - 16px);
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .footer-content {
        flex-direction: column;
        gap: 24px;
    }

    .footer-links {
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media screen and (max-width: 500px) {
    .grid-item {
        width: calc(50% - 16px);
    }

    .grid-item.featured-item {
        width: calc(100% - 16px);
    }

    .grid-item.activity-item {
        width: calc(100% - 16px);
    }

    .hero {
        height: 300px;
    }

    .title-line-1 {
        font-size: 28px;
    }

    .title-line-2 {
        font-size: 24px;
    }

    .btn-hero {
        height: 44px;
        font-size: 14px;
    }

    .activity,
    .featured,
    .recommended,
    .new-potential {
        padding: 24px 16px;
    }

    .carousel-arrow {
        font-size: 24px;
    }

    .carousel-arrow.prev {
        left: 16px;
    }

    .carousel-arrow.next {
        right: 16px;
    }

    .section-title {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .section-header {
        padding: 24px 0 12px;
    }
}