/* ========================================
   home.css - 首页特有样式
   仅首页使用，通过 <link> 引入
   ======================================== */

body {
  background: var(--home-bg);
}

.proto-home {
  min-width: 320px;
}

main {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

/* ---- Hero 区域 ---- */
.hero {
  position: relative;
  min-height: 600px;
  padding: 120px 0 126px;
  overflow: hidden;
  color: #fff;
  text-align: center;
  background: url(/wind.ent.web/web/pc/img/home_bg_2x.jpg) center / 100% 100% no-repeat;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 980px;
  max-width: 92vw;
  margin: 0 auto;
}

.hero-kicker {
  margin: 0 0 18px;
  font-size: 13px;
  letter-spacing: .16em;
  color: rgba(255, 255, 255, .82);
  font-weight: 700;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: 46px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: .1em;
}

.hero-sub {
  max-width: 790px;
  margin: 0 auto 30px;
  color: rgba(255, 255, 255, .84);
  font-size: 16px;
  line-height: 1.9;
}

/* ---- 搜索 Tab ---- */
.search-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 56px;
  margin: 0 auto 26px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  justify-content: center;
  width: 100%;
}

.search-tab {
  position: relative;
  padding: 10px 0;
  border-radius: 0;
  border: 0;
  background: none;
  cursor: pointer;
  color: rgba(255, 255, 255, .9);
  font-size: 16px;
  transition: color .2s ease;
}

.search-tab[aria-selected="true"] {
  color: #0a93bc;
  font-weight: 700;
}

.search-tab[aria-selected="true"]::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 52px;
  height: 3px;
  margin: 0 auto;
  content: "";
  background: #0a93bc;
  border-radius: 999px;
}

/* ---- 搜索表单 ---- */
.search-form-new {
  max-width: 956px;
  margin: 0 auto;
}

.search-form__control {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  background: #fff;
  border: 1px solid rgba(12, 104, 150, .08);
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(132, 149, 165, .16);
}

.search-form__control-hidden {
  display: none;
}

.search-form__control--relation {
  gap: 14px;
  justify-content: space-between;
}

.w-input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 10px 6px 10px 10px;
  font-size: 17px;
  color: #20252b;
}

.w-input::placeholder {
  color: #7f8790;
}

.w-input--relation {
  flex: 1 1 0;
  padding: 10px 0;
}

.w-input-search-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  color: #7b7f84;
  background: transparent;
  border: none;
  border-radius: 12px;
  box-shadow: none;
  font-size: 24px;
  cursor: pointer;
  outline: none;
}

.w-input-search-icon--relation {
  min-width: 24px;
  width: 24px;
}

.search-form__relation-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: #0a93bc;
  background: rgba(17, 164, 200, .08);
  border-radius: 999px;
  flex: 0 0 auto;
}

/* ---- 热门搜索 ---- */
.hot-search {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: center;
  gap: 10px 8px;
  max-width: 956px;
  margin: 14px auto 0;
  font-size: 13px;
  color: rgba(255, 255, 255, .9);
  overflow: hidden;
  white-space: nowrap;
}

.hot-label {
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.hot-links {
  display: flex;
  flex-wrap: nowrap;
  gap: 9px 22px;
  overflow: hidden;
}

.hot-links a {
  color: rgba(255, 255, 255, .9);
  font-size: 14px;
  text-decoration: none;
}

.hot-empty {
  color: rgba(255, 255, 255, .5);
  font-size: 13px;
}

.advanced {
  height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  background: rgba(255, 255, 255, .14);
  border-radius: 4px;
  color: #fff;
  text-decoration: none;
}

/* ---- 核心能力面板 ---- */
.home-section {
  width: 1250px;
  max-width: 94vw;
  margin: 0 auto;
}

.app-panel {
  position: relative;
  z-index: 4;
  margin-top: -170px;
  background: #fff;
  border: 1px solid var(--home-line);
  border-radius: 4px;
  box-shadow: var(--shadow);
}

.panel-head {
  height: 48px;
  margin: 0 16px;
  border-bottom: 1px solid var(--home-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.panel-head h2 {
  margin: 0;
  font-size: 18px;
}

.panel-head a,
.panel-head__btn {
  color: #8a96a6;
  font-size: 13px;
  text-decoration: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0;
}

.panel-head__btn:hover {
  color: var(--wind-blue);
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0;
  padding: 18px 20px 20px;
}

.app-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 110px;
  padding: 14px 8px;
  border-radius: 6px;
  text-decoration: none;
  color: var(--home-ink);
}

.app-card:hover {
  background: #f4f9ff;
}

.app-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background-image: linear-gradient(49deg, #274cda, #00aec7 68%, #0596b3 97%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.app-icon img {
  width: 26px;
  height: 26px;
}

.app-icon--invert img {
  filter: brightness(0) invert(1);
}

.app-card strong {
  font-size: 16px;
  line-height: 1.35;
}

.app-card span {
  margin-top: 4px;
  color: #78879a;
  font-size: 12px;
  line-height: 1.5;
}

.app-card--hot {
  position: relative;
}

.app-card .app-hot-tag {
  position: absolute;
  top: 4px;
  right: 8px;
  padding: 1px 6px;
  background: linear-gradient(135deg, #ff6b35, #ff4444);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 3px;
  line-height: 1.5;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ---- 价值横幅 ---- */
.value-banner {
  height: 112px;
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  overflow: hidden;
  padding: 0 52px;
  background: linear-gradient(105deg, #fff 0%, #eff9fb 48%, #e7f4f9 100%);
  border: 1px solid var(--home-line);
  color: #24445f;
  text-decoration: none;
}

.value-visual {
  position: relative;
  width: 132px;
  height: 72px;
  background: linear-gradient(135deg, #0d7ea8, #23b3c4);
  border-radius: 16px;
  box-shadow: 0 16px 28px rgba(7, 95, 154, .18);
  transform: rotate(-6deg);
}

.value-visual:after {
  content: "GEL";
  position: absolute;
  left: 28px;
  top: 18px;
  color: #fff;
  font-size: 28px;
  font-weight: 800;
}

.value-banner strong {
  flex: 1;
  font-size: 28px;
  letter-spacing: .02em;
}

.value-banner span:last-child {
  min-width: 140px;
  padding: 13px 24px;
  background: var(--wind-blue);
  border-radius: 4px;
  color: #fff;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
}

/* ---- 内容区 ---- */
.content-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
  margin-top: 18px;
}

.news-main,
.home-sidebar {
  background: #fff;
  border: 1px solid var(--home-line);
  border-radius: 2px;
}

/* ---- 企业动态 (Table风格, 对齐线上React版) ---- */
.corp-dynamic {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
}

.corp-dynamic__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.corp-dynamic__header h2 {
  margin: 0;
  font-size: 20px;
  line-height: 28px;
  font-weight: bold;
}

.corp-dynamic__body {
  margin-top: 12px;
  border-radius: 12px;
  background: #fff;
}

.corp-dynamic__table {
  width: 100%;
  table-layout: fixed;
  border: none;
  border-collapse: collapse;
  font-size: 14px;
}

.corp-dynamic__table thead th {
  padding: 7px 0;
  background: #fff;
  opacity: 0.5;
  font-weight: normal;
  border: none;
  text-align: left;
}

.corp-dynamic__table thead th:last-child {
  text-align: right;
}

.corp-dynamic__table tbody td {
  padding: 7px 0;
  border: none;
}

.corp-dynamic__table tbody tr:hover td {
  background: transparent !important;
}

/* 列宽通过 colgroup > col 定义, table-layout:fixed 强制执行 */
.corp-dynamic__date-col {
  width: 120px;
}

.corp-dynamic__summary-col {
  /* 摘要列自适应剩余宽度 */
}

.corp-dynamic__type-col {
  width: 18%;
}

.corp-dynamic__date {
  color: #6b7280;
  padding-right: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.corp-dynamic__summary {
  padding-right: 12px;
}

.corp-dynamic__summary a {
  color: inherit;
  text-decoration: none;
  border-bottom: none;
}

.corp-dynamic__summary a:hover {
  border-bottom: 1px solid #3dc1d4;
}

.corp-dynamic__type {
  text-align: right;
  color: #4b5563;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-sidebar {
  padding: 20px 22px;
}

.home-sidebar section + section {
  margin-top: 24px;
}

.home-sidebar h2 {
  position: relative;
  margin: 0 0 14px;
  padding-left: 10px;
  font-size: 16px;
  line-height: 1.4;
}

.home-sidebar h2:before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 3px;
  height: 16px;
  background: var(--wind-blue);
}

.sidebar-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
}

.sidebar-links a,
.home-sidebar p {
  margin: 0;
  color: #7f8b9a;
  font-size: 13px;
  line-height: 1.7;
  text-decoration: none;
}

.sidebar-links a:hover {
  color: var(--wind-blue);
}

/* ---- 侧浮工具 ---- */
.float-tools {
  position: fixed;
  right: 12px;
  top: 58%;
  z-index: 12;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.float-tools div {
  width: 52px;
  min-height: 50px;
  background: #fff;
  border: 1px solid #d9e0e8;
  border-bottom: 0;
  color: #666;
  padding: 7px 4px;
  text-align: center;
  border-radius: 0;
  font-size: 12px;
}

.float-tools div:first-child {
  border-radius: 6px 6px 0 0;
}

.float-tools div:last-child {
  border-bottom: 1px solid #d9e0e8;
  border-radius: 0 0 6px 6px;
}

/* ---- 底部应用条 ---- */
.bottom-app {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 18;
  height: 70px;
  background: linear-gradient(100deg, #11345a, #3dc1d4);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  box-shadow: 0 -8px 24px rgba(0, 64, 140, .18);
}

.bottom-app strong {
  font-size: 24px;
  letter-spacing: .04em;
}

.bottom-app .pill {
  padding: 8px 18px;
  background: var(--wind-blue);
  border-radius: 3px;
  font-size: 18px;
  font-weight: 800;
}

.bottom-app a {
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, .5);
  padding: 8px 16px;
  border-radius: 3px;
}

.bottom-close {
  position: absolute;
  right: 24px;
  font-size: 40px;
  line-height: 1;
  color: rgba(255, 255, 255, .55);
}

/* ---- 响应式 ---- */
@media (max-width: 1100px) {
  .app-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .content-row {
    grid-template-columns: 1fr;
  }

  .value-banner {
    height: auto;
    padding: 24px 18px;
    flex-wrap: wrap;
    text-align: center;
  }

  .value-banner strong {
    font-size: 24px;
  }

  .bottom-app {
    display: none;
  }
}

@media (max-width: 680px) {
  .hero {
    padding-top: 38px;
  }

  .hero h1 {
    font-size: 33px;
    letter-spacing: .06em;
  }

  .search-tabs {
    gap: 18px;
    overflow: auto;
    justify-content: flex-start;
  }

  .search-form__control {
    flex-direction: column;
    align-items: stretch;
  }

  .search-form__control--relation {
    gap: 12px;
  }

  .search-form__relation-icon {
    align-self: center;
    transform: rotate(90deg);
  }

  .w-input-search-icon {
    width: 100%;
  }

  .hot-search {
    flex-wrap: nowrap;
    justify-content: flex-start;
    margin: 14px auto 0;
    overflow-x: auto;
  }

  .app-grid {
    grid-template-columns: 1fr;
  }

  .content-row {
    margin-top: 14px;
  }

  .float-tools {
    display: none;
  }
}
