/* ========== 冰极科技电竞头部 ========== */
:root {
  --ice-bg: #ffffff;
  --ice-surface: #f8fafd;
  --ice-primary: #2563eb;
  --ice-cyan: #06b6d4;
  --ice-purple: #7c3aed;
  --ice-text: #1e293b;
  --ice-text-soft: #64748b;
  --ice-border: #e2e8f0;
  --ice-shadow: 0 4px 20px rgba(0,0,0,0.04);
  --radius: 14px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---- 顶部细条 ---- */
.ice-top {
  background: var(--ice-surface);
  border-bottom: 1px solid var(--ice-border);
  padding: 8px 0;
  font-size: 0.85rem;
}
.ice-top__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.ice-top__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ice-primary);
  letter-spacing: 0.5px;
  margin: 0;
}
.ice-top__info {
  display: flex;
  align-items: center;
  gap: 16px;
}
.ice-top__email {
  color: var(--ice-text-soft);
}
.ice-top__links {
  display: flex;
  gap: 8px;
}

/* 徽章按钮 */
.ice-badge {
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  background: #fff;
  border: 1px solid currentColor;
  transition: all 0.25s;
  letter-spacing: 0.3px;
}
.ice-badge--blue {
  color: var(--ice-primary);
  border-color: var(--ice-primary);
}
.ice-badge--blue:hover {
  background: var(--ice-primary);
  color: #fff;
}
.ice-badge--cyan {
  color: var(--ice-cyan);
  border-color: var(--ice-cyan);
}
.ice-badge--cyan:hover {
  background: var(--ice-cyan);
  color: #fff;
}
.ice-badge--purple {
  color: var(--ice-purple);
  border-color: var(--ice-purple);
}
.ice-badge--purple:hover {
  background: var(--ice-purple);
  color: #fff;
}

/* ---- Logo + 搜索 ---- */
.ice-main {
  padding: 20px 0;
  background: #fff;
}
.ice-main__row {
  display: flex;
  align-items: center;
  gap: 30px;
}
.ice-logo img {
  height: 45px;
  width: auto;
  display: block;
}

.ice-search {
  flex: 1;
  max-width: 500px;
}
.ice-search__form {
  display: flex;
  background: var(--ice-surface);
  border: 1px solid var(--ice-border);
  border-radius: 50px;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.ice-search__form:focus-within {
  border-color: var(--ice-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.ice-search__input {
  flex: 1;
  height: 44px;
  padding: 0 20px;
  background: transparent;
  border: none;
  outline: none;
  font-size: 0.95rem;
  color: var(--ice-text);
}
.ice-search__input::placeholder {
  color: var(--ice-text-soft);
}
.ice-search__btn {
  height: 44px;
  padding: 0 28px;
  background: var(--ice-primary);
  border: none;
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: background 0.2s;
}
.ice-search__btn:hover {
  background: #1d4ed8;
}

.ice-ad-placeholder {
  width: 600px;
  height: 60px;
  border: 1px dashed var(--ice-border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ice-text-soft);
  font-size: 0.8rem;
}
.ice-ad-placeholder::before {
  content: '';
}

/* ---- 导航 ---- */
.ice-nav {
  background: #fff;
  border-top: 1px solid var(--ice-border);
  border-bottom: 1px solid var(--ice-border);
  position: relative;
}
.ice-nav__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ice-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 1px solid var(--ice-border);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 10px;
}
.ice-burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ice-text);
  border-radius: 2px;
  transition: 0.3s;
}

.ice-nav__list {
  list-style: none;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  gap: 4px;
}
.ice-nav__item {
  position: relative;
}
.ice-nav__item a {
  display: block;
  padding: 16px 20px;
  color: var(--ice-text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 10px;
  transition: background 0.2s, color 0.2s;
}
.ice-nav__item a:hover,
.ice-nav__item.active > a {
  background: var(--ice-surface);
  color: var(--ice-primary);
}
.ice-nav__arrow {
  display: inline-block;
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-left: 4px;
  transition: transform 0.2s;
}
.ice-nav__item--has-sub:hover .ice-nav__arrow {
  transform: rotate(180deg);
}

/* 下拉菜单 */
.ice-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid var(--ice-border);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  padding: 8px 0;
  min-width: 160px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s;
  z-index: 200;
  list-style: none;
}
.ice-nav__item--has-sub:hover .ice-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.ice-dropdown li a {
  display: block;
  padding: 10px 20px;
  color: var(--ice-text);
  font-size: 0.9rem;
  white-space: nowrap;
}
.ice-dropdown li a:hover {
  background: var(--ice-surface);
  color: var(--ice-primary);
}

.ice-nav__sitemap {
  flex-shrink: 0;
}
.ice-nav__sitemap a {
  padding: 8px 18px;
  background: var(--ice-surface);
  border-radius: 20px;
  color: var(--ice-text-soft);
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.2s;
}
.ice-nav__sitemap a:hover {
  background: var(--ice-primary);
  color: #fff;
}

/* ---- 移动端 ---- */
@media (max-width: 768px) {
  .ice-main__row {
    flex-wrap: wrap;
    gap: 16px;
  }
  .ice-search {
    max-width: 100%;
    width: 100%;
    order: 3;
  }
  .ice-ad-placeholder {
    display: none;
  }
  .ice-burger {
    display: flex;
  }
  .ice-nav__list {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #fff;
    position: absolute;
    top: 100%;
    left: 0;
    border-top: 1px solid var(--ice-border);
    box-shadow: var(--ice-shadow);
    z-index: 300;
    padding: 8px 0;
  }
  .ice-nav__list.open {
    display: flex;
  }
  .ice-nav__item a {
    padding: 12px 20px;
  }
  .ice-dropdown {
    position: static;
    box-shadow: none;
    border: none;
    padding-left: 20px;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
  }
  .ice-nav__item--has-sub.active .ice-dropdown {
    display: block;
  }
}