/* =====================================================
   entry.css — 入口页（对应小程序 pages/entry/index.wxss）
   手机端（≤480px）：保持小程序样式（基础样式，rpx÷2 换算）
   桌面端（>480px）：参考"首页参考代码"的左右分栏布局
   ===================================================== */

/* 仅桌面端显示的装饰元素，手机端一律隐藏 */
.entry-features,
.entry-right {
  display: none;
}

/* ===== 手机端：小程序样式 ===== */

.entry-page {
  min-height: 100vh;
  background: #f5f7fa;
}

.entry-header {
  text-align: center;
  padding: 40px 16px 32px;   /* 80rpx 32rpx 64rpx */
}

.entry-icon {
  font-size: 50px;           /* 100rpx */
  margin-bottom: 16px;       /* 32rpx */
}

.entry-title {
  color: #1a1a1a;
  font-size: 24px;           /* 48rpx */
  font-weight: 700;
  display: block;
}

.entry-subtitle {
  color: #888;
  font-size: 14px;           /* 28rpx */
  margin-top: 8px;           /* 16rpx */
  display: block;
}

.entry-content {
  padding: 0 16px;           /* 0 32rpx */
}

.entry-card {
  background: #fff;
  border-radius: 8px;        /* 16rpx */
  padding: 24px;             /* 48rpx */
  display: flex;
  align-items: center;
  margin-bottom: 12px;       /* 24rpx */
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: all 0.2s;
}

.entry-card:hover { transform: scale(0.99); opacity: 0.95; }

.entry-card:active { transform: scale(0.98); opacity: 0.9; }

.card-icon {
  font-size: 28px;           /* 56rpx */
  margin-right: 16px;        /* 32rpx */
}

.card-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  color: #1a1a1a;
  font-size: 18px;           /* 36rpx */
  font-weight: 600;
}

.card-desc {
  color: #999;
  font-size: 13px;           /* 26rpx */
  margin-top: 4px;           /* 8rpx */
}

.card-arrow {
  color: #ccc;
  font-size: 20px;           /* 40rpx */
}

.admin-card {
  background: linear-gradient(135deg, #1a6fc4, #4a9fd4);
}

.admin-card .card-title { color: #fff; }
.admin-card .card-desc { color: rgba(255, 255, 255, 0.85); }
.admin-card .card-arrow { color: rgba(255, 255, 255, 0.85); }

.entry-footer {
  text-align: center;
  padding: 32px 16px;        /* 64rpx 32rpx */
}

.footer-text {
  color: #bbb;
  font-size: 12px;           /* 24rpx */
  line-height: 1.6;
}

/* =====================================================
   桌面端（>480px）：参考 frontend/test/index.html
   —— 浅色背景 + 1200×700 白色圆角容器左右分栏：
   左：logo / 标题 / 副标题 / 两个入口按钮卡 / 特性 / 底部提示
   右：浅蓝渐变 + 插画 picture/index1.png + 漂浮白卡
   ===================================================== */
@media (min-width: 481px) {
  /* 页面背景：浅色 */
  html, body {
    background: #fdfdfd;
  }

  .page-shell {
    min-height: 100vh;
    background: #fdfdfd;
    display: flex;
    justify-content: center;
    align-items: center;
    /* safe center：内容超高时退化为顶对齐，保证可滚动且不裁顶部 */
    align-items: safe center;
  }

  /* 主容器（覆盖通用 .page-inner）
     高度自适应内容：内容少时撑满视口居中，内容多时自然长高、页面可滚动，
     避免固定高度 + 绝对定位在窄/矮窗口下互相重叠 */
  .page-shell .page-inner {
    max-width: 1200px;
    width: calc(100% - 48px);
    height: auto;
    min-height: calc(100vh - 48px);
    margin: 24px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    overflow: visible;
    display: flex;
    padding: 0;
  }

  .entry-page {
    flex: 1;
    min-width: 0;
    min-height: 0;
    background: transparent;
    display: flex;
  }

  /* ===== 左侧：功能面板（居中布局，内容超长时随页面滚动） ===== */
  .entry-left {
    flex: 1;
    padding: 50px 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
  }

  .entry-header {
    text-align: center;
    padding: 0;
  }

  .entry-icon {
    font-size: 40px;
    margin-bottom: 10px;
    display: block;
  }

  .entry-title {
    font-size: 32px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    letter-spacing: 1px;
    display: block;
  }

  .entry-subtitle {
    font-size: 16px;
    color: #888;
    margin-top: 0;
    margin-bottom: 50px;
    letter-spacing: 1px;
    display: block;
  }

  /* 入口按钮卡：可伸缩宽度（min 240px 基准，空间足时拉伸到 320px），
     避免不同容器宽度下溢出或过窄 */
  .entry-content {
    margin: 0 0 60px;
    padding: 0;
    display: flex;
    gap: 20px;
  }

  .entry-card {
    flex: 1 1 240px;
    max-width: 320px;
    min-width: 0;
    margin-bottom: 0;
    padding: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.3s, box-shadow 0.3s;
  }

  .entry-card:hover {
    transform: translateY(-5px);
    opacity: 1;
  }

  .entry-card:not(.admin-card) {
    background: #fff;
    border: 1px solid #f0f0f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    color: #333;
  }

  .admin-card {
    background: linear-gradient(135deg, #4aa8e0, #116ab5);
    box-shadow: 0 4px 15px rgba(17, 106, 181, 0.3);
    color: #fff;
  }

  .card-icon {
    font-size: 28px;
    margin-right: 0;
  }

  .card-info {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .card-title {
    font-size: 18px;
    font-weight: bold;
    color: inherit;
    margin-bottom: 5px;
    display: block;
  }

  .card-desc {
    font-size: 12px;
    color: inherit;
    opacity: 0.8;
    margin-top: 0;
    display: block;
  }

  /* 参考稿无箭头，隐藏 */
  .card-arrow {
    display: none;
  }

  /* 特性区（无边框、图标彩色） */
  .entry-features {
    position: static;
    width: auto;
    height: auto;
    display: flex;
    gap: 40px;
    margin-bottom: 30px;
    background: transparent;
    border-radius: 0;
  }

  .feature {
    text-align: center;
    max-width: 130px;
  }

  .feature span {
    width: auto;
    height: auto;
    display: block;
    margin: 0 0 10px;
    border-radius: 0;
    background: transparent;
    line-height: normal;
    font-size: 24px;
  }

  .feature h3 {
    margin-top: 0;
    font-size: 15px;
    font-weight: bold;
    color: #333;
  }

  .feature p {
    margin-top: 5px;
    color: #888;
    font-size: 12px;
    line-height: 1.5;
  }

  /* 底部提示 + 备案信息：文档流（跟随内容排布，任何窗口尺寸都不会重叠） */
  .entry-footer {
    position: static;
    margin: 28px auto 0;
    padding: 0;
    text-align: center;
  }

  .footer-text {
    font-size: 12px;
    color: #bbb;
  }

  /* ===== 右侧：插画区 ===== */
  .entry-right {
    display: block;
    flex: 1;
    position: relative;
    background: linear-gradient(135deg, #e8f4fa, #d1e8f7);
    overflow: hidden;
  }

  .entry-right-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../picture/index1.png');
    background-size: cover;
    background-position: center;
    opacity: 0.5;
  }

  /* 漂浮 UI 卡片 */
  .float-card {
    position: absolute;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 10px;
  }

  .float-card-1 { top: 20%; left: 10%; width: 120px; height: 60px; }
  .float-card-2 { top: 30%; right: 20%; width: 150px; height: 80px; }
  .float-card-3 { bottom: 20%; left: 15%; width: 100px; height: 50px; }
}

/* =====================================================
   中屏适配（平板竖屏 / 窄窗口 481~1199px）：
   —— 隐藏右侧插画，入口内容占满容器；
      卡片与特性项允许换行居中（主容器与页脚已在桌面块中
      改为自适应文档流，不存在重叠问题）
   ===================================================== */
@media (min-width: 481px) and (max-width: 1199px) {
  .entry-right {
    display: none;
  }
  .entry-left {
    padding: 44px 32px;
  }
  .entry-content {
    flex-wrap: wrap;
    justify-content: center;
  }
  .entry-features {
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
  }
}
