/* C2C 无人机竞速赛事平台 - 自定义样式 */

/* ===== 主题变量 ===== */
:root {
  --color-primary: #f5c518;
  --color-primary-dark: #d4a817;
  --color-bg-dark: #1a1a1a;
  --color-bg-darker: #0f0f0f;
  --color-bg-card: #2a2a2a;
  --color-text-light: #ffffff;
  --color-text-muted: #888888;
  --color-border: #333333;
  --color-bg-darkers: #111827;
}

/* ===== Tailwind 4.x 主题扩展 ===== */
@theme {
  --color-primary: #f5c518;
  --color-primary-dark: #d4a817;
  --color-dark: #1a1a1a;
  --color-darker: #0f0f0f;
  --color-card: #2a2a2a;
  --color-muted: #888888;
  --color-border-dark: #333333;
}

/* ===== 全局样式 ===== */
body {
  font-family:
    "PingFang SC",
    "Microsoft YaHei",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  background-color: var(--color-bg-dark);
}

/* ===== 渐变背景 ===== */
.gradient-hero {
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 50%, #1a1a1a 100%);
}

.gradient-gold {
  background: linear-gradient(135deg, #f5c518 0%, #d4a817 100%);
}

.gradient-diagonal {
  background: linear-gradient(45deg, #f5c518 0%, #f5c518 50%, transparent 50%);
}

/* ===== 斜条纹装饰 ===== */
.stripe-decoration {
  position: relative;
  overflow: hidden;
}

.stripe-decoration::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(245, 197, 24, 0.1) 10px,
    rgba(245, 197, 24, 0.1) 20px
  );
  pointer-events: none;
}

/* ===== 卡片悬停效果 ===== */
.card-hover {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(245, 197, 24, 0.2);
}

/* ===== 表格样式 ===== */
.table-striped tbody tr:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.02);
}

.table-striped tbody tr:hover {
  background-color: rgba(245, 197, 24, 0.05);
}

/* ===== 按钮样式 ===== */
.btn-primary {
  background: linear-gradient(135deg, #f5c518 0%, #d4a817 100%);
  color: #1a1a1a;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(245, 197, 24, 0.4);
}

.btn-outline {
  border: 1px solid #f5c518;
  color: #f5c518;
  background: transparent;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background: #f5c518;
  color: #1a1a1a;
}

/* ===== 导航激活状态 ===== */
.nav-link {
  position: relative;
  color: #888888;
  transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #f5c518;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #f5c518;
}

/* ===== 侧边栏样式 ===== */
.sidebar-link {
  display: block;
  padding: 12px 20px;
  color: #888888;
  border-left: 3px solid transparent;
  transition: all 0.3s ease;
}

.sidebar-link:hover,
.sidebar-link.active {
  color: #f5c518;
  background: rgba(245, 197, 24, 0.1);
  border-left-color: #f5c518;
}

/* ===== 分页样式 ===== */
.pagination-btn {
  min-width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #333333;
  color: #888888;
  transition: all 0.3s ease;
}

.pagination-btn:hover,
.pagination-btn.active {
  background: #f5c518;
  border-color: #f5c518;
  color: #1a1a1a;
}

/* ===== 筛选下拉样式 ===== */
.filter-select {
  background-color: #2a2a2a;
  border: 1px solid #333333;
  color: #ffffff;
  padding: 8px 12px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23888888' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 8px center;
  background-repeat: no-repeat;
  background-size: 16px;
  padding-right: 32px;
}

.filter-select:focus {
  outline: none;
  border-color: #f5c518;
}

/* ===== 表单输入样式 ===== */
.form-input {
  background-color: transparent;
  border: none;
  border-bottom: 1px solid #333333;
  padding: 12px 0;
  color: #ffffff;
  width: 100%;
  transition: border-color 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-bottom-color: #f5c518;
}

.form-input::placeholder {
  color: #666666;
}

/* ===== 标签样式 ===== */
.tag {
  display: inline-block;
  padding: 4px 12px;
  font-size: 12px;
  border-radius: 4px;
}

.tag-success {
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
}

.tag-warning {
  background: rgba(245, 197, 24, 0.2);
  color: #f5c518;
}

.tag-info {
  background: rgba(59, 130, 246, 0.2);
  color: #3b82f6;
}

/* ===== 动画 ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.6s ease forwards;
}

@keyframes pulse-gold {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(245, 197, 24, 0.4);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(245, 197, 24, 0);
  }
}

.animate-pulse-gold {
  animation: pulse-gold 2s infinite;
}

/* ===== 排行榜样式 ===== */
.rank-badge {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  border-radius: 50%;
}

.rank-1 {
  background: linear-gradient(135deg, #ffd700 0%, #ffb700 100%);
  color: #1a1a1a;
}

.rank-2 {
  background: linear-gradient(135deg, #c0c0c0 0%, #a0a0a0 100%);
  color: #1a1a1a;
}

.rank-3 {
  background: linear-gradient(135deg, #cd7f32 0%, #b06c2a 100%);
  color: #1a1a1a;
}

/* ===== 响应式调整 ===== */
@media (max-width: 768px) {
  .hero-text {
    font-size: 2rem;
  }
}

/* ===== LayUI 表单统一适配 ===== */
.layui-input {
  border-radius: 4px;
  height: 38px;
}
select.layui-input {
  appearance: auto;
  -webkit-appearance: auto;
}
.layui-input:focus {
  border-color: var(--color-primary) !important;
}

.bg-darkers {
  background-color: #111827;
}
.text-hs {
  --tw-text-opacity: 1;
  color: #9ca3af;
}
.text-qx {
  /* 文字颜色渐变 */
  background: linear-gradient(to bottom, #fded8b, #fece01);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-style: italic;
  margin-top: 15vh;
  margin-bottom: 30vh;
}
.text-blank {
  font-weight: 700;
  color: #010001;
}
.bg-whites {
  background-color: #f4f4f4;
}
.xinwen-box {
  width: 100%;
  position: relative;
  max-width: 100%;
  overflow: visible;
}
.xinwen-box-wrapper {
  display: flex;
  overflow-x: auto;
  overflow-y: visible;
  flex-wrap: nowrap;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.xinwen-box-wrapper::-webkit-scrollbar {
  display: none;
}
.xinwen-box-div {
  width: 260px;
  margin-right: 20px;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  flex-shrink: 0;
}
.xinwen-box-div-abs-left {
  position: absolute;
  left: -50px;
  padding: 40px 10px;
  background-color: #ffffff;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  border-top-left-radius: 5px;
  border-bottom-left-radius: 5px;
  font-size: 15px;
  z-index: 10;
  cursor: pointer;
  /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); */
}
.xinwen-box-div-abs-right {
  position: absolute;
  right: -50px;
  top: 50%;
  transform: translateY(-50%);
  padding: 40px 10px;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;
  font-size: 15px;
  z-index: 10;
  cursor: pointer;
  /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); */
}
.xinwen-box-div-top {
  width: 100%;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  background-color: #464646;
  box-sizing: border-box;
  padding: 10px;
  font-size: 13px;
  color: #f8f8f8;
  font-size: 500;
  position: relative;
}
.xinwen-box-div-bottom {
  width: 100%;
  box-sizing: border-box;
  padding: 30px 10px 0px 30px;
  font-size: 12px;
  background-color: #ffffff;
}
.xinwen-box-div-top-bas {
  position: absolute;
  right: 0px;
  bottom: -10px;
  font-size: 40px;
  opacity: 0.1;
  color: white;
  font-weight: 800;
}
/* .xinwen-box-div-bottom > div {
  display: flex;
  align-items: center;
} */
.tixin {
  /* 背景色渐变 */
  background: linear-gradient(to right, #f4a12d, #fdc21c);
  /* 创建等腰梯形 */
  clip-path: polygon(20% 0%, 100% 0%, 100% 100%, 0% 100%);
  padding: 10px 15px 10px 20px;
  color: white;
}
.xinwen-box2 {
  width: 100%;
  display: flex;
  justify-content: space-between;
  margin-top: 50px;
}
.xinwen-box2 > div {
  width: 49.5%;
  background-color: white;
  border-radius: 10px;
  box-sizing: border-box;
  padding: 10px 15px;
}
.xinwen-box3 {
  width: 100%;
  /* display: flex;
  justify-content: space-between; */
  margin-top: 50px;
}
.xinwen-box3 > div:nth-child(2) {
  width: 100%;
  display: flex;
  justify-content: space-between;
}
.xinwen-box3 > div:nth-child(2) > div {
  width: 33%;
  background-color: white;
  border-radius: 10px;
  box-sizing: border-box;
  padding: 10px 15px;
}

.xinwen-box4 {
  width: 100%;
  /* display: flex;
  justify-content: space-between; */
  margin-top: 50px;
}
.xinwen-box4 > div:nth-child(2) {
  width: 100%;
  display: flex;
  justify-content: space-between;
}

.xinwen-box4 > div:nth-child(2) > div {
  width: 24.5%;
  background-color: white;
  border-radius: 10px;
  box-sizing: border-box;
  padding: 10px 15px;
}
.xinwen-box5 {
  width: 100%;
  box-sizing: border-box;
  margin-top: 50px;
}
.xinwen-box5 > div:nth-child(2) {
  padding: 10px;
  border-radius: 10px;
  color: white;
  background-color: #344d5d;
  display: flex;
  justify-content: space-between;
}
.xinwen-box6 {
  width: 100%;
  /* margin-top: 30px; */
}
.xinwen-box6 > div:nth-child(2) {
  width: 100%;
  border-radius: 10px;
  box-sizing: border-box;
  padding: 20px;
  background-color: white;
  display: flex;
  justify-content: space-between;
}
.xinwen-box7 {
  width: 100%;
  box-sizing: border-box;
  padding: 15px 0px;
  margin-top: 50px;
}
.sidebar-linksa {
  display: block;
  padding: 12px 20px;
  color: #888888;

  border-left: 3px solid transparent;
  transition: all 0.3s ease;
}
.actives {
  border-bottom: 2px solid #ffbc00;
}
.bg-primarys {
  background-color: #3e3d3b !important;
}
.text-darks {
  color: #deaa11 !important;
}
.text-muteds {
  color: #1e1d1d !important;
}
.bse {
  background-color: #d8d8d8;
}
.activeracepointmanage {
  background-color: #000000 !important;
  color: white !important;
}
.sidebar-linkracepointmanage {
  background-color: white;
  color: black;
  display: block;
  padding: 12px 20px;
}

.racepointmanageder {
  width: 90%;
  border: 1px solid #d8dce1;
  border-radius: 10px;
  box-sizing: border-box;
  padding: 0px 5px;
}
.racepointmanagebutton {
  border: 1px solid #d8dce1;
  padding: 13px 10px;
  border-radius: 10px;
  color: #636a76 !important;
}
.racepointmanageinput {
  border-bottom: none;
}
.button-btns {
  background-color: #000000;
  color: white;
  padding: 10px 100px;
}
.tag-primary {
  background-color: #f3f4f7;
}
/* ===== LayUI 风格表格 ===== */
.layui-table-wrapper {
  border: 1px solid #e6e6e6;
  border-radius: 2px;
  background-color: #fff;
  overflow: hidden;
}
.layui-table-wrapper .layui-table-header {
  background-color: #f2f2f2 !important;
  border-bottom: 1px solid #e6e6e6;
  font-weight: 700;
}
.layui-table-wrapper .layui-table-row {
  border-bottom: 1px solid #e6e6e6;
  transition: background-color 0.3s;
}
.layui-table-wrapper .layui-table-row:last-child {
  border-bottom: none;
}
.layui-table-wrapper .layui-table-row:hover {
  background-color: #f8f8f8;
}

.borderxie {
  background: url("../images/anniu2.png") no-repeat center/100% 100%;
  padding: 5px 10px;
}
.events-boximg {
  width: 100%;
  background: url("../images/saishiimg.png") no-repeat center / 100% 100%;
  z-index: 2;
  position: sticky;
  box-sizing: border-box;
  padding-bottom: 10px;
}
.fszl {
  width: 100%;
  background: url("../images/fszl.png") no-repeat center / 100% 100%;
  padding-top: 40px;
}
.saishixqbj {
  background: url("../images/saishixqbj.png") no-repeat center / 100% 100%;
}
.saiqubj {
  background: url("../images/2025saiqu.png") no-repeat center / 100% 100%;
}
