/* ============================================================
   只会网 — 导航页 (Desktop-first)
   ============================================================ */

/* -------------------------------------------------------
   0. 变量
   ------------------------------------------------------- */
:root {
  --primary: #4F46E5;
  --primary-light: #A5B4FC;
  --primary-dark: #3730A3;
  --bg: #F8FAFC;
  --card-bg: #FFFFFF;
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #94A3B8;
  --border: #E2E8F0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.08);
  --radius: 16px;
  --max-width: 860px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei',
    'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

body:not(.js-ready) { opacity: 0; }
body.js-ready { opacity: 1; transition: opacity 0.6s ease; }

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

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}

/* -------------------------------------------------------
   1. 页面背景 — 电脑大屏装饰
   ------------------------------------------------------- */
.page-wrapper {
  position: relative;
  min-height: 100vh;
  padding: 0 0 40px;
  overflow: hidden;
}

/* 顶部大渐变区 */
.page-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 360px;
  background: linear-gradient(160deg, #EEF2FF 0%, #E0E7FF 30%, #DBEAFE 60%, #F0FDF4 100%);
  z-index: 0;
  border-radius: 0 0 30% 30% / 0 0 40px 40px;
}

/* 右上光晕 */
.page-wrapper::after {
  content: '';
  position: absolute;
  top: -120px;
  right: -80px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* 左下光晕 */
.hero-glow {
  position: absolute;
  bottom: -120px;
  left: -80px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* -------------------------------------------------------
   2. 品牌区
   ------------------------------------------------------- */
.brand-header {
  position: relative;
  z-index: 1;
  padding: 60px 0 50px;
}

.brand-split {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}

.brand-left {
  flex-shrink: 0;
}

.brand-right {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  padding-top: 12px;
}

.brand-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(79, 70, 229, 0.08);
  padding: 5px 16px;
  border-radius: 50px;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
  border: 1px solid rgba(79, 70, 229, 0.12);
}

.brand-name {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--text-secondary);
}

.brand-name .highlight {
  background: linear-gradient(135deg, var(--primary), #8B5CF6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 右侧座右铭 */
.brand-motto {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  text-align: right;
  font-weight: 500;
  letter-spacing: 0.02em;
  max-width: 280px;
}

.brand-motto::before {
  content: '『';
  color: var(--primary-light);
  font-weight: 300;
}

.brand-motto::after {
  content: '』';
  color: var(--primary-light);
  font-weight: 300;
}

/* -------------------------------------------------------
   3. 分区标题
   ------------------------------------------------------- */
.main-content {
  position: relative;
  z-index: 1;
  padding: 10px 0 40px;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.section-label-secondary {
  margin-top: 44px;
}

.label-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.label-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.label-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(79, 70, 229, 0.1);
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  padding: 0 7px;
  letter-spacing: 0;
}

/* -------------------------------------------------------
   4. 链接卡片
   ------------------------------------------------------- */

/* 电脑端：两列网格布局 */
.links-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* 产品卡片横跨整行（更突出） */
#products-container {
  grid-template-columns: 1fr;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 28px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  box-shadow: var(--shadow-sm);
}

.link-card:hover {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: var(--shadow-lg);
}

.link-card:active {
  transform: translateY(0) scale(0.98);
}

/* 左侧彩色装饰条 */
.link-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 4px;
  background: var(--link-color, var(--primary));
  border-radius: 4px;
}

.link-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--link-bg, #F1F5F9);
  border-radius: 14px;
  transition: var(--transition);
}

.link-card:hover .link-icon {
  transform: scale(1.08) rotate(-4deg);
}

.link-text {
  flex: 1;
  min-width: 0;
}

.link-title {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.link-subtitle {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.link-arrow {
  font-size: 1.2rem;
  color: var(--text-muted);
  flex-shrink: 0;
  opacity: 0.3;
  transition: var(--transition);
}

.link-card:hover .link-arrow {
  transform: translateX(6px);
  opacity: 1;
  color: var(--link-color, var(--primary));
}

/* 产品卡片特殊样式 — 更突出 */
#products-container .link-card {
  padding: 28px 32px;
  border-radius: 20px;
  border: 1px solid rgba(79, 70, 229, 0.1);
  background: linear-gradient(135deg, #FAFAFF 0%, #FFFFFF 100%);
}

#products-container .link-card::before {
  width: 5px;
  top: 10px;
  bottom: 10px;
  background: linear-gradient(180deg, var(--primary), #8B5CF6);
}

#products-container .link-icon {
  width: 56px;
  height: 56px;
  font-size: 1.8rem;
  border-radius: 16px;
}

#products-container .link-title {
  font-size: 1.25rem;
}

#products-container .link-subtitle {
  font-size: 0.95rem;
}

/* 次要链接卡片 — 更轻量 */
.links-container-secondary .link-card {
  padding: 18px 22px;
  border-radius: 14px;
}

.links-container-secondary .link-card::before {
  width: 3px;
  top: 8px;
  bottom: 8px;
}

.links-container-secondary .link-icon {
  width: 42px;
  height: 42px;
  font-size: 1.3rem;
  border-radius: 12px;
}

/* -------------------------------------------------------
   5. 广告位
   ------------------------------------------------------- */
.ad-section {
  margin-top: 48px;
  position: relative;
  z-index: 1;
}

.ad-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

/* 招租卡片（可点击跳转抖音） */
.ad-card-rent {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border: 2px dashed #CBD5E1;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.5);
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.ad-card-rent:hover {
  border-color: var(--primary);
  background: rgba(255,255,255,0.85);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.ad-rent-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(79,70,229,0.05);
  border-radius: 10px;
}

.ad-rent-text {
  flex: 1;
  min-width: 0;
}

.ad-rent-title {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.ad-rent-contact {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 1px;
}

.ad-rent-arrow {
  font-size: 1rem;
  color: var(--text-muted);
  opacity: 0.3;
  transition: var(--transition);
}

.ad-card-rent:hover .ad-rent-arrow {
  transform: translateX(4px);
  opacity: 1;
  color: var(--primary);
}

/* 演示广告卡片 */
.ad-card-demo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card-bg);
  opacity: 0.55;
  transition: var(--transition);
}

.ad-card-demo:hover {
  opacity: 0.85;
  box-shadow: var(--shadow-sm);
}

.ad-demo-badge {
  font-size: 0.65rem;
  font-weight: 700;
  color: #CBD5E1;
  background: var(--bg);
  padding: 4px 8px;
  border-radius: 6px;
  letter-spacing: 0.08em;
  flex-shrink: 0;
}

.ad-demo-content {
  flex: 1;
  min-width: 0;
}

.ad-demo-title {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
}

.ad-demo-desc {
  display: block;
  font-size: 0.75rem;
  color: #CBD5E1;
  margin-top: 1px;
}

@media (min-width: 768px) {
  .ad-section {
    margin-top: 56px;
  }

  .ad-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .ad-card-rent {
    grid-column: 1 / -1;
    padding: 18px 26px;
    gap: 16px;
  }

  .ad-rent-icon {
    width: 44px;
    height: 44px;
    font-size: 1.4rem;
  }

  .ad-rent-title {
    font-size: 1rem;
  }

  .ad-rent-contact {
    font-size: 0.82rem;
  }

  .ad-card-demo {
    padding: 16px 20px;
  }
}

/* -------------------------------------------------------
   6. （预留）
   ------------------------------------------------------- */

/* -------------------------------------------------------
   7. 页脚
   ------------------------------------------------------- */
.footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 60px 0 30px;
}

.footer-text {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* -------------------------------------------------------
   7. 手机端适配 (粗略兼容)
   ------------------------------------------------------- */
@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }

  .page-wrapper {
    padding: 30px 0 20px;
  }

  .page-wrapper::before {
    height: 240px;
    border-radius: 0 0 15% 15% / 0 0 20px 20px;
  }

  .brand-header {
    padding: 36px 0 30px;
  }

  .brand-split {
    flex-direction: column;
    gap: 12px;
  }

  .brand-left {
    width: 100%;
  }

  .brand-right {
    width: 100%;
    justify-content: flex-start;
    padding-top: 0;
  }

  .brand-motto {
    text-align: left;
    font-size: 0.85rem;
    max-width: 100%;
  }

  .brand-name {
    font-size: 2rem;
  }

  .brand-tag {
    font-size: 0.7rem;
    padding: 4px 12px;
    margin-bottom: 10px;
  }

  /* 手机端变回单列 */
  .links-container {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  #products-container .link-card {
    padding: 18px 20px;
    border-radius: 16px;
  }

  #products-container .link-icon {
    width: 44px;
    height: 44px;
    font-size: 1.4rem;
  }

  #products-container .link-title {
    font-size: 1.05rem;
  }

  #products-container .link-subtitle {
    font-size: 0.82rem;
  }

  .links-container-secondary .link-card {
    padding: 14px 16px;
  }

  .section-label-secondary {
    margin-top: 36px;
  }

  .section-label {
    margin-bottom: 20px;
  }

  .social-bar {
    margin-top: 32px;
    gap: 12px;
  }
}
