/* ========== Reset & Base ========== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background: #f5f7fa;
  color: #333333;
  line-height: 1.6;
  min-height: 100%;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

input {
  font-family: inherit;
  outline: none;
  border: none;
}

a {
  color: #1a73e8;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

/* ========== Header ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  height: 52px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 16px;
  max-width: 768px;
  margin: 0 auto;
}

.header-logo {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.logo-text {
  font-size: 20px;
  font-weight: 700;
  color: #1a73e8;
  letter-spacing: -0.5px;
}

.logo-icon {
  font-size: 18px;
  margin-left: 2px;
}

.logo-sub {
  font-size: 12px;
  color: #666666;
  margin-left: 8px;
  font-weight: 400;
}

.header-actions {
  display: flex;
  align-items: center;
}

.icon-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  -webkit-tap-highlight-color: transparent;
}

.icon-btn:active {
  background: rgba(0, 0, 0, 0.05);
}

/* ========== Search Bar ========== */
.search-bar {
  position: fixed;
  top: 52px;
  left: 0;
  right: 0;
  z-index: 99;
  background: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.search-bar.expanded {
  max-height: 60px;
  padding: 8px 0;
}

.search-bar-inner {
  display: flex;
  align-items: center;
  padding: 0 16px;
  max-width: 768px;
  margin: 0 auto;
}

.search-input {
  flex: 1;
  height: 36px;
  padding: 0 12px;
  font-size: 14px;
  background: #f5f7fa;
  border-radius: 18px;
  border: 1px solid #e0e0e0;
  -webkit-appearance: none;
  appearance: none;
}

.search-input:focus {
  border-color: #1a73e8;
  background: #ffffff;
}

.search-btn {
  margin-left: 8px;
  height: 36px;
  padding: 0 16px;
  font-size: 14px;
  color: #ffffff;
  background: #1a73e8;
  border-radius: 18px;
  white-space: nowrap;
}

.search-btn:active {
  background: #1557b0;
}

.search-close-btn {
  margin-left: 4px;
  flex-shrink: 0;
}

/* ========== Tab Navigation ========== */
.tab-nav {
  position: fixed;
  top: 52px;
  left: 0;
  right: 0;
  z-index: 98;
  background: #ffffff;
  border-bottom: 1px solid #eeeeee;
}

.tab-nav.search-visible {
  top: 112px;
}

.tab-nav-inner {
  display: flex;
  align-items: center;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 12px;
  max-width: 768px;
  margin: 0 auto;
  white-space: nowrap;
  scrollbar-width: none;
  /* 滚动指示: 右侧渐变遮罩 */
  -webkit-mask-image: linear-gradient(to right, #000 90%, transparent);
  mask-image: linear-gradient(to right, #000 90%, transparent);
}

.tab-nav-inner::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  position: relative;
  padding: 12px 14px;
  font-size: 14px;
  color: #666666;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.2s;
}

.tab-btn.active {
  color: #1a73e8;
  font-weight: 600;
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  background: #1a73e8;
  border-radius: 2px;
}

.tab-btn:active {
  opacity: 0.7;
}

/* ========== Content ========== */
.content {
  padding-top: 96px;
  padding-bottom: 72px;
  min-height: 100vh;
  max-width: 768px;
  margin: 0 auto;
}

.content.search-visible {
  padding-top: 156px;
}

.page {
  padding: 0 16px;
}

/* ========== Card List ========== */
.card-list {
  /* no gap, use margin on children */
}

/* ========== Card ========== */
.card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  margin-bottom: 12px;
  padding: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.1s;
  -webkit-tap-highlight-color: transparent;
}

.card:active {
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transform: scale(0.99);
}

.card-tag {
  display: inline-block;
  padding: 2px 8px;
  font-size: 11px;
  border-radius: 4px;
  color: #ffffff;
  margin-bottom: 8px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.card-tag-cataract { background: #e91e63; }
.card-tag-cornea { background: #00bcd4; }
.card-tag-glaucoma { background: #ff9800; }
.card-tag-retina { background: #9c27b0; }
.card-tag-oculoplastics { background: #4caf50; }
.card-tag-neuro { background: #607d8b; }
.card-tag-pediatrics { background: #ff5722; }
.card-tag-uveitis { background: #795548; }
.card-tag-refractive { background: #009688; }
.card-tag-oncology { background: #f44336; }
.card-tag-strabismus { background: #3f51b5; }
.card-tag-dryeye { background: #03a9f4; }
.card-tag-default { background: #1a73e8; }

.card-top-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.card-score {
  font-size: 12px;
  color: #ff9800;
  font-weight: 500;
  margin-left: auto;
}

.card-pinned-badge {
  display: inline-block;
  font-size: 11px;
  color: #ff5722;
  font-weight: 600;
  margin-bottom: 6px;
  background: #fff3e0;
  padding: 1px 6px;
  border-radius: 3px;
}

.card-reason {
  font-size: 13px;
  color: #1a73e8;
  background: #e8f0fe;
  border-radius: 6px;
  padding: 8px 10px;
  margin-bottom: 8px;
  line-height: 1.5;
}

.card-reason-label {
  font-weight: 600;
  margin-right: 4px;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.card-tag-item {
  font-size: 12px;
  color: #1a73e8;
  background: #f0f6ff;
  padding: 2px 8px;
  border-radius: 10px;
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  color: #333333;
  line-height: 1.5;
  margin-bottom: 8px;
  word-break: break-word;
}

.card-summary {
  font-size: 14px;
  color: #666666;
  line-height: 1.6;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.card-meta {
  font-size: 12px;
  color: #999999;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.card-meta-dot {
  margin: 0 4px;
  color: #cccccc;
}

.card-source {
  color: #1a73e8;
}

.card-pinned {
  color: #ff5722;
  font-weight: 500;
}

.card-image {
  margin-bottom: 10px;
  border-radius: 6px;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  border-radius: 6px;
  display: block;
}

.card-link {
  font-size: 13px;
  color: #1a73e8;
  font-weight: 500;
}

.card-link:active {
  color: #1557b0;
}

.card-link-arrow {
  margin-left: 2px;
}

/* ========== Load More ========== */
.load-more-wrap {
  text-align: center;
  padding: 16px 0 24px;
}

.load-more-btn {
  display: inline-block;
  padding: 10px 32px;
  font-size: 14px;
  color: #1a73e8;
  background: #ffffff;
  border: 1px solid #1a73e8;
  border-radius: 20px;
  transition: opacity 0.2s;
}

.load-more-btn:active {
  background: #f0f6ff;
  opacity: 0.8;
}

.load-more-btn:disabled {
  color: #999;
  border-color: #ddd;
  background: #f5f5f5;
}

/* ========== Empty State ========== */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: #999999;
}

.empty-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.empty-state p {
  font-size: 15px;
}

/* ========== Bottom Navigation ========== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: #ffffff;
  border-top: 1px solid #eeeeee;
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: 56px;
  max-width: 100%;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  height: 100%;
  color: #999999;
  font-size: 10px;
  transition: color 0.2s;
  -webkit-tap-highlight-color: transparent;
  padding-top: 4px;
}

.bottom-nav-item span {
  margin-top: 2px;
}

.bottom-nav-item.active {
  color: #1a73e8;
}

.bottom-nav-item:active {
  opacity: 0.7;
}

/* ========== Loading ========== */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
}

.loading-spinner {
  text-align: center;
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #e0e0e0;
  border-top: 3px solid #1a73e8;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 12px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-text {
  font-size: 14px;
  color: #666666;
}

/* ========== Skeleton Loading ========== */
.skeleton-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  margin-bottom: 12px;
  padding: 16px;
}

.skeleton-line {
  background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: 4px;
  margin-bottom: 10px;
}

.skeleton-line.short { width: 60px; height: 18px; }
.skeleton-line.title { width: 80%; height: 20px; }
.skeleton-line.text { width: 100%; height: 14px; }
.skeleton-line.text-short { width: 70%; height: 14px; }
.skeleton-line.meta { width: 120px; height: 12px; margin-bottom: 0; }

@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ========== Error Toast ========== */
.error-toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  background: rgba(0, 0, 0, 0.75);
  color: #ffffff;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 20px;
  white-space: nowrap;
  max-width: 80%;
  text-align: center;
}

/* ========== Search Result Tag ========== */
.search-result-tag {
  display: inline-block;
  padding: 2px 8px;
  font-size: 12px;
  color: #1a73e8;
  background: #e8f0fe;
  border-radius: 4px;
  margin-bottom: 12px;
}

/* ========== Confirm Modal ========== */
.confirm-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 500;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  padding: 24px;
}

.confirm-modal.show {
  opacity: 1;
  visibility: visible;
}

.confirm-modal-content {
  background: #ffffff;
  border-radius: 16px;
  padding: 28px 24px 20px;
  max-width: 300px;
  width: 100%;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
  transform: translateY(20px) scale(0.96);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.confirm-modal.show .confirm-modal-content {
  transform: translateY(0) scale(1);
}

.confirm-modal-header {
  text-align: center;
  margin-bottom: 16px;
}

.confirm-modal-logo {
  margin-bottom: 8px;
}

.confirm-modal-brand {
  font-size: 16px;
  font-weight: 700;
  color: #1a73e8;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.confirm-modal-title {
  font-size: 15px;
  font-weight: 500;
  color: #333333;
  line-height: 1.4;
}

.confirm-modal-body {
  text-align: center;
  margin-bottom: 20px;
}

.confirm-modal-body p {
  font-size: 13px;
  color: #888888;
  margin-bottom: 10px;
  line-height: 1.5;
}

.confirm-modal-domain {
  display: inline-block;
  font-size: 12px;
  color: #1a73e8;
  background: #f0f6ff;
  border-radius: 12px;
  padding: 4px 12px;
  max-width: 100%;
  word-break: break-all;
  font-family: Menlo, Monaco, Consolas, monospace;
}

.confirm-modal-footer {
  display: flex;
  gap: 10px;
}

.confirm-btn {
  flex: 1;
  height: 40px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 10px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.15s;
}

.confirm-btn:active {
  opacity: 0.8;
}

.confirm-cancel {
  background: #f5f7fa;
  color: #666666;
  border: none;
}

.confirm-go {
  background: #1a73e8;
  color: #ffffff;
  border: none;
}

/* ========== PC Layout ========== */
@media (min-width: 769px) {
  .header-inner,
  .search-bar-inner,
  .tab-nav-inner {
    max-width: 768px;
  }

  .content {
    max-width: 768px;
    margin: 0 auto;
  }

  .card {
    transition: box-shadow 0.2s, transform 0.1s;
  }

  .card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }

  .load-more-btn:hover {
    background: #f0f6ff;
  }
}

/* ========== WeChat / iOS Safe Area ========== */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .bottom-nav {
    padding-bottom: env(safe-area-inset-bottom);
    height: auto;
    min-height: 56px;
  }

  .content {
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
  }
}

/* ========== v1.10.0 服务板块 ========== */
.page-services {
  padding: 12px;
}

/* 用户信息卡（默认占位，本期无用户体系） */
.service-user-card {
  display: flex;
  align-items: center;
  background: #ffffff;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 14px;
  border: 1px solid #eeeeee;
}

.service-user-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  margin-right: 12px;
  background: #E6F1FB;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-user-info {
  flex: 1;
  min-width: 0;
}

.service-user-name {
  font-size: 16px;
  font-weight: 500;
  color: #333333;
  margin-bottom: 2px;
}

.service-user-desc {
  font-size: 12px;
  color: #999999;
  line-height: 1.4;
}

/* 服务网格 4 列 */
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.service-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: 12px;
  padding: 12px 4px;
  border: 1px solid #eeeeee;
  cursor: pointer;
  transition: background 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.service-cell:active {
  background: #f5f5f5;
}

.service-cell-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #f0f6ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 6px;
}

.service-cell-name {
  font-size: 11px;
  color: #666666;
  text-align: center;
  line-height: 1.3;
  word-break: break-all;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.service-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: #999999;
  padding: 40px 0;
  font-size: 14px;
}

/* 子服务页 */
.page-subservice {
  padding: 0 12px;
}

.subservice-header {
  display: flex;
  align-items: center;
  height: 48px;
  background: #ffffff;
  border-radius: 12px;
  margin-bottom: 12px;
  padding: 0 8px;
  border: 1px solid #eeeeee;
}

.subservice-back {
  display: flex;
  align-items: center;
  background: none;
  border: none;
  color: #1a73e8;
  font-size: 14px;
  padding: 6px 8px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}

.subservice-back:active {
  opacity: 0.6;
}

.subservice-back span {
  margin-left: 2px;
}

.subservice-title {
  flex: 1;
  text-align: center;
  font-size: 16px;
  font-weight: 500;
  color: #333333;
  padding: 0 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.subservice-action {
  min-width: 56px;
  flex-shrink: 0;
}

.subservice-content {
  min-height: 200px;
}

/* 子服务占位（开发中） */
.subservice-placeholder {
  text-align: center;
  padding: 60px 20px;
}

.placeholder-icon {
  font-size: 56px;
  margin-bottom: 16px;
}

.placeholder-title {
  font-size: 18px;
  font-weight: 500;
  color: #333333;
  margin-bottom: 8px;
}

.placeholder-desc {
  font-size: 14px;
  color: #999999;
  margin-bottom: 4px;
}

.placeholder-sub {
  font-size: 12px;
  color: #bbbbbb;
}

/* ========== v1.12.0 抽屉式弹窗（Drawer） ========== */
/* 公共组件，详见 FRONTEND_SPEC §十四 组件规范 */
.eh-drawer-mask {
  position: fixed;
  inset: 0;
  z-index: 600;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.eh-drawer-mask.show {
  opacity: 1;
  visibility: visible;
}

.eh-drawer-panel {
  position: relative;
  width: 100%;
  max-width: 768px;
  max-height: 75vh;
  background: #ffffff;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
  overflow: hidden;
}

.eh-drawer-mask.show .eh-drawer-panel {
  transform: translateY(0);
}

.eh-drawer-handle {
  width: 36px;
  height: 4px;
  background: #e0e0e0;
  border-radius: 2px;
  margin: 8px auto 4px;
  flex-shrink: 0;
}

.eh-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px 12px;
  border-bottom: 1px solid #f0f0f0;
  flex-shrink: 0;
  gap: 12px;
}

.eh-drawer-title {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  color: #333333;
  line-height: 1.4;
  word-break: break-word;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.eh-drawer-close {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #999999;
  background: transparent;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s, color 0.15s;
}

.eh-drawer-close:active {
  background: #f0f0f0;
  color: #333333;
}

.eh-drawer-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px;
  min-height: 0;
}

/* md 模式内容排版 */
.eh-drawer-md {
  font-size: 14px;
  color: #333333;
  line-height: 1.75;
  word-break: break-word;
}

.eh-drawer-md h1,
.eh-drawer-md h2,
.eh-drawer-md h3,
.eh-drawer-md h4,
.eh-drawer-md h5,
.eh-drawer-md h6 {
  margin: 16px 0 8px;
  color: #1a73e8;
  line-height: 1.4;
}

.eh-drawer-md h1 { font-size: 20px; }
.eh-drawer-md h2 { font-size: 18px; }
.eh-drawer-md h3 { font-size: 16px; }
.eh-drawer-md h4,
.eh-drawer-md h5,
.eh-drawer-md h6 { font-size: 15px; }

.eh-drawer-md p {
  margin: 8px 0;
}

.eh-drawer-md strong {
  font-weight: 600;
  color: #222222;
}

.eh-drawer-md em {
  font-style: italic;
}

.eh-drawer-md del {
  text-decoration: line-through;
  color: #999999;
}

.eh-drawer-md code {
  font-family: Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  background: #f5f7fa;
  padding: 1px 5px;
  border-radius: 3px;
  color: #c62828;
}

.eh-drawer-md pre {
  background: #f5f7fa;
  border-radius: 8px;
  padding: 12px;
  overflow-x: auto;
  margin: 10px 0;
}

.eh-drawer-md pre code {
  background: none;
  padding: 0;
  color: #333333;
  font-size: 13px;
}

.eh-drawer-md blockquote {
  border-left: 3px solid #1a73e8;
  padding: 6px 12px;
  margin: 10px 0;
  background: #f0f6ff;
  color: #555555;
  border-radius: 0 6px 6px 0;
}

.eh-drawer-md ul,
.eh-drawer-md ol {
  padding-left: 22px;
  margin: 8px 0;
}

.eh-drawer-md ul { list-style: disc; }
.eh-drawer-md ol { list-style: decimal; }

.eh-drawer-md li {
  margin: 4px 0;
}

.eh-drawer-md a {
  color: #1a73e8;
  text-decoration: none;
}

.eh-drawer-md a:active {
  opacity: 0.7;
}

.eh-drawer-md hr {
  border: none;
  border-top: 1px solid #eeeeee;
  margin: 16px 0;
}

/* url 模式 iframe */
.eh-drawer-iframe {
  width: 100%;
  height: calc(75vh - 80px);
  border: none;
  display: block;
  border-radius: 8px;
  min-height: 300px;
}

.eh-drawer-loading {
  text-align: center;
  padding: 40px 20px;
  color: #999999;
  font-size: 14px;
}

.eh-drawer-empty {
  text-align: center;
  padding: 60px 20px;
  color: #999999;
  font-size: 14px;
}

.eh-drawer-html {
  font-size: 14px;
  color: #333333;
  line-height: 1.75;
}

/* PC 端居中 */
@media (min-width: 769px) {
  .eh-drawer-panel {
    margin: 0 16px;
    border-radius: 16px;
  }
}

/* ========== v1.12.0 Summary 区域"更多" ========== */
.card-summary-wrap {
  position: relative;
  margin-bottom: 10px;
}

.card-summary {
  font-size: 14px;
  color: #666666;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.card-summary:active {
  opacity: 0.7;
}

.card-summary-more {
  position: absolute;
  right: 0;
  bottom: 0;
  padding: 0 4px;
  background: #ffffff;
  color: #1a73e8;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.card-summary-more::before {
  content: '...';
  color: #666666;
  margin-right: 2px;
  font-weight: 400;
}
