@font-face {
  font-family: "DingTalk JinBuTi";
  src: url("../font/DingTalk-JinBuTi.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --iiice-bg: #f4f5f6;
  --iiice-white: #ffffff;
  --iiice-border: #e9eaec;
  --iiice-title: #2f3640;
  --iiice-text: #666f7a;
  --iiice-primary: #3d4557;
  --iiice-accent: #ef4444;
  --iiice-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body.iiice-body {
  font-family: "DingTalk JinBuTi", "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--iiice-title);
  background: var(--iiice-bg);
}

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

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

.iiice-topbar {
  width: 100%;
  background: var(--iiice-primary);
  color: #fff;
  font-size: 12px;
}

.iiice-topbar-inner {
  max-width: 1300px;
  margin: 0 auto;
  height: 36px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.iiice-topbar-left {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.iiice-topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.iiice-topbar-date,
.iiice-topbar-right p {
  margin: 0;
  line-height: 1;
}

.iiice-topbar-divider {
  width: 1px;
  height: 12px;
  background: rgba(255, 255, 255, 0.5);
}

.iiice-header {
  width: 100%;
  background: var(--iiice-white);
  border-bottom: 1px solid #f2f2f2;
}

.iiice-header-inner {
  max-width: 1300px;
  min-height: 100px;
  margin: 0 auto;
  padding: 0 00px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.iiice-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 240px;
}

.iiice-logo {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.iiice-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.iiice-brand-text h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

.iiice-brand-text p {
  margin: 2px 0 0;
  font-size: 12px;
  color: #b4bcc8;
}

.iiice-search {
  flex: 1;
  min-width: 300px;
  max-width: 430px;
}

.iiice-search-box {
  position: relative;
  padding: 8px 10px;
  border-radius: 8px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

.iiice-search-form {
  height: 24px;
  background: #fff;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.iiice-search-toggle {
  width: 38px;
  height: 100%;
  background: transparent;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 0;
  cursor: pointer;
}

.iiice-search-toggle img {
  width: 18px;
  height: 18px;
}

.iiice-search-toggle svg {
  width: 18px;
  height: 18px;
  fill: #4a5568;
}

.iiice-search-form input {
  flex: 1;
  height: 100%;
  border: 0;
  outline: none;
  padding: 0;
  font-size: 14px;
  color: #333;
  background: #fff;
}

.iiice-search-form input::placeholder {
  color: #999;
}

.iiice-search-submit {
  width: 26px;
  height: 24px;
  border: 0;
  background: transparent;
  color: #343c47;
  cursor: pointer;
  padding: 0;
}

.iiice-search-submit svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.iiice-search-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 30;
  display: none;
  border-radius: 8px;
  background: #fff;
  padding: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.14);
}

.iiice-search-dropdown.is-open {
  display: block;
}

.iiice-search-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.iiice-search-item {
  height: 36px;
  border: 0;
  border-radius: 7px;
  background: #f7f9fb;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  cursor: pointer;
}

.iiice-search-item img {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.iiice-search-item span {
  font-size: 12px;
  color: #334155;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.iiice-quick {
  width: 277px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.iiice-quick-item {
  width: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.iiice-quick-item img {
  width: 32px;
  height: 32px;
  object-fit: cover;
}

.iiice-quick-item em {
  font-style: normal;
  font-size: 12px;
  color: #414b57;
  white-space: nowrap;
}

.iiice-top-links {
  border-top: 1px solid #f4f4f4;
  position: relative;
}

.iiice-top-links-inner {
  max-width: 1300px;
  height: 40px;
  margin: 0 auto;
  padding: 0 0px;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
}

.iiice-top-links-inner a {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 13px;
  color: #333;
}

.iiice-top-links-inner a img {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.iiice-top-links-inner a.is-highlight span {
  color: #dc2626;
}

.iiice-top-links-inner a:hover span {
  color: var(--iiice-accent);
}

/* ===== 关注和历史按钮样式 ===== */
.iiice-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border: 1px solid #e9eaec;
  border-radius: 20px;
  background: #fff;
  color: #666f7a;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: inherit;
  vertical-align: middle;
  flex-shrink: 0;
  margin-left: 4px;
}

.iiice-nav-btn:first-of-type {
  margin-left: auto;
}

.iiice-nav-btn:hover {
  border-color: #d1d5db;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.iiice-nav-btn:active { transform: scale(0.97); }

.iiice-nav-icon { width: 13px; height: 13px; }

.iiice-nav-btn-follow {
  color: #e91e63;
  border-color: #fce4ec;
  background: #fff5f8;
}

.iiice-nav-btn-follow:hover {
  border-color: #f8bbd9;
  background: #fce4ec;
}

.iiice-nav-btn-follow .iiice-nav-icon { stroke: #e91e63; }
.iiice-nav-btn-follow.is-followed .iiice-nav-icon { fill: #e91e63; stroke: #e91e63; }

/* ===== 下拉浮层 ===== */
.iiice-dropdown {
  position: fixed;
  margin-top: 0;
  width: 250px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  z-index: 99999 !important;
  overflow: hidden;
}

.iiice-follow-dropdown {
  width: 260px;
}

.iiice-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid #f0f0f0;
}

.iiice-dropdown-header h4 { margin: 0; font-size: 14px; font-weight: 500; color: #374151; }

.iiice-dropdown-close {
  width: 18px; height: 18px; border: none; background: transparent;
  color: #9ca3af; font-size: 16px; cursor: pointer; line-height: 1;
}

.iiice-dropdown-close:hover { color: #6b7280; }

.iiice-dropdown-body { max-height: 360px; overflow-y: auto; }

.iiice-dropdown-footer { 
  padding: 10px 14px; 
  border-top: 1px solid #e5e7eb; 
  text-align: center;
  background: #fff;
}

.iiice-clear-history {
  border: none;
  background: transparent;
  color: #3b82f6;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
}

.iiice-clear-history:hover { color: #2563eb; }

/* ===== 历史列表 ===== */
.iiice-history-empty { padding: 30px 14px; text-align: center; color: #9ca3af; font-size: 13px; }

.iiice-history-item {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid #f5f5f5;
  transition: background 0.15s;
  cursor: pointer;
}

.iiice-history-item:hover { background: #f9fafb; }
.iiice-history-item:last-child { border-bottom: none; }

.iiice-history-link {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
}

.iiice-history-link img { 
  width: 24px; 
  height: 24px; 
  border-radius: 4px; 
  object-fit: cover; 
  flex-shrink: 0; 
}

.iiice-history-info { 
  flex: 1; 
  min-width: 0; 
  display: flex; 
  flex-direction: column; 
  gap: 2px; 
}

.iiice-history-name { 
  font-size: 14px; 
  color: #1f2937; 
  font-weight: 500;
  overflow: hidden; 
  text-overflow: ellipsis; 
  white-space: nowrap; 
}

.iiice-history-time { 
  font-size: 12px; 
  color: #9ca3af; 
}

.iiice-history-right { 
  display: flex; 
  align-items: center; 
  gap: 4px; 
  flex-shrink: 0; 
  margin-left: 10px;
}

/* ===== 关注弹窗 ===== */
.iiice-follow-body { padding: 16px; }

.iiice-follow-tip { margin: 0 0 14px; text-align: center; font-size: 13px; color: #666; }

.iiice-qr-grid { display: flex; gap: 16px; justify-content: center; }

.iiice-qr-item { display: flex; flex-direction: column; align-items: center; gap: 8px; }

.iiice-qr-box {
  width: 90px; height: 90px; background: #f9f9f9; border: 1px solid #eee; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}

.iiice-qr-box img { width: 100%; height: 100%; object-fit: cover; }
.iiice-qr-placeholder { font-size: 11px; color: #ccc; }
.iiice-qr-item span { font-size: 12px; color: #666; }

/* 手机端隐藏按钮 */
@media screen and (max-width: 768px) {
  .iiice-nav-btn { display: none !important; }
}

.iiice-ad-wrap {
  max-width: 1300px;
  margin: 8px auto 0;
  padding: 0 10px 10px;
  display: none;
}

.iiice-ad-wrap.has-desktop {
  display: block;
}

.iiice-ad-desktop,
.iiice-ad-mobile {
  width: 100%;
}

.iiice-ad-mobile {
  display: none;
}

.iiice-main {
  padding: 10px 10px 30px;
}

.iiice-main-inner {
  max-width: 1300px;
  margin: 0 auto;
}

.iiice-section {
  margin-top: 10px;
}

/* ===== 分类标题区域 ===== */
.iiice-section-head {
  height: auto;
  min-height: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 0;
}

.iiice-section-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.iiice-section-marker {
  width: 8px;
  height: 8px;
  background: #3b82f6;
  border-radius: 50%;
  flex-shrink: 0;
}

.iiice-section-title-wrap h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

/* ===== 子分类标签样式 ===== */
.iiice-subcategories-wrap {
  flex-shrink: 0;
}

.iiice-subcategories {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 3px;
  border: 1px solid #d1d5db;
  border-radius: 18px;
  background: #fff;
}

.iiice-subcat-item {
  display: inline-block;
  padding: 5px 9px;
  font-size: 14px;
  color: #64748b;
  background: transparent;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  white-space: nowrap;
}

.iiice-subcat-item:hover {
  background: #fef3c7;
  color: #d97706;
}

.iiice-subcat-item.active {
  background: #22c55e;
  color: #fff;
  font-weight: 600;
}

/* ===== 分类介绍（放在最右边） ===== */
.iiice-section-desc {
  font-size: 12px;
  color: #8a949f;
  margin-left: auto;
  text-align: right;
  flex-shrink: 0;
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 卡片容器（用于筛选） */
.iiice-card-container {
  display: contents;
}

.iiice-grid {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 10px;
}

/* ===== 卡片外层包裹（角标容器） ===== */
.iiice-card-wrap {
  position: relative;
}

.iiice-card {
  height: 40px;
  border-radius: 8px;
  background: var(--iiice-white);
  border: 1px solid #f0f0f0;
  padding: 0 8px;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.iiice-card:hover {
  box-shadow: var(--iiice-shadow);
  transform: translateY(-1px);
}

.iiice-card img {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}

.iiice-card span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #313a45;
  font-size: 13px;
}

.iiice-card.is-title-red span {
  color: #dc2626;
}

/* ===== 角标样式 ===== */
.navcat-badge {
  position: absolute;
  top: -3px;
  left: -3px;
  background-color: #ff4444;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 4px;
  transform: rotate(-15deg);
  z-index: 10;
  border-radius: 4px;
  pointer-events: none;
  line-height: 1.4;
}

.navcat-badge-new {
  background-color: #4CAF50;
}

.badge-short {
  display: none;
}

.badge-full {
  display: inline;
}

@media (max-width: 768px) {
  .badge-full {
    display: none;
  }
  .badge-short {
    display: inline;
  }
}

.iiice-pagebar {
  margin-top: 18px;
  padding-bottom: 8px;
}

.iiice-pagebar a,
.iiice-pagebar span {
  display: inline-block;
  margin: 0 5px 6px 0;
  padding: 6px 10px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid #e6e9ee;
  font-size: 13px;
}

.iiice-main-single {
  /* max-width: 980px; */
}

.iiice-article {
  background: #fff;
  border: 1px solid #eceff3;
  border-radius: 12px;
  padding: 22px 24px;
}

.iiice-article-title {
  margin: 0 0 12px;
  font-size: 26px;
  line-height: 1.35;
}

.iiice-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
  color: #8a949f;
  padding-bottom: 16px;
  border-bottom: 1px dashed #e6eaf0;
}

.iiice-article-content {
  margin-top: 20px;
  line-height: 1.7;
  font-size: 15px;
  color: #2f3640;
  word-break: break-word;
  overflow-wrap: break-word;
}

.iiice-article-content img {
  max-width: 100%;
  height: auto;
}

.iiice-article-tags {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed #e6eaf0;
  color: #5c6673;
  font-size: 13px;
}

.iiice-article-tags a {
  margin-right: 8px;
  color: #3c4f73;
}

.iiice-404 {
  text-align: center;
  padding: 40px 20px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e9edf3;
}

.iiice-404 h2 {
  margin: 0 0 10px;
}

.iiice-404 p {
  margin: 0 0 14px;
  color: #7a8390;
}

.iiice-404 a {
  color: #3f4960;
}

.iiice-footer {
  margin-top: 16px;
  background: var(--iiice-primary);
  color: #fff;
  padding: 14px 10px 18px;
}

.iiice-footer-inner {
  max-width: 1300px;
  margin: 0 auto;
}

.iiice-footer-title {
  margin: 0 0 8px;
  font-size: 12px;
}

.iiice-friend-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(12, 16, 23, 0.35);
}

.iiice-friend-links a {
  font-size: 12px;
  color: #dde3ed;
}

.iiice-friend-links a:hover {
  color: #fff;
}

.iiice-footer-bottom {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
}

.iiice-footer-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.iiice-footer-left a {
  color: #fff;
}

#divCommentPost {
  margin-top: 18px;
  padding: 16px;
  background: #fff;
  border: 1px solid #e7ebf0;
  border-radius: 12px;
}

#divCommentPost .posttop {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 700;
  color: #334155;
}

#divCommentPost .iiice-comment-heading {
  display: inline-block;
  vertical-align: middle;
}

#divCommentPost .postbottom {
  margin: 8px 0 0;
  color: #94a3b8;
  font-size: 12px;
}

#divCommentPost form p {
  margin: 0 0 10px;
}

.iiice-comment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.iiice-comment-grid .iiice-comment-field {
  margin: 0;
}

#divCommentPost input[type="text"],
#divCommentPost input[type="email"],
#divCommentPost textarea {
  width: 100%;
  border: 1px solid #d9e2ee;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  color: #334155;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#divCommentPost input[type="text"]:focus,
#divCommentPost input[type="email"]:focus,
#divCommentPost textarea:focus {
  outline: none;
  border-color: #94a3b8;
  box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.18);
}

#divCommentPost textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.65;
}

.iiice-comment-field-verify {
  display: flex;
  align-items: center;
  gap: 8px;
}

.iiice-comment-field-verify input[type="text"] {
  flex: 1;
  min-width: 0;
}

.iiice-comment-verify-img {
  flex-shrink: 0;
  width: 96px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid #dbe4ef;
  cursor: pointer;
}

#divCommentPost label {
  display: inline-block;
  margin-top: 6px;
  color: #64748b;
  font-size: 12px;
}

#divCommentPost input[type="submit"] {
  width: auto;
  min-width: 96px;
  border: 0;
  border-radius: 10px;
  padding: 9px 16px;
  background: #3f4960;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#divCommentPost input[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(63, 73, 96, 0.22);
}

#cancel-reply {
  margin-left: -8px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  color: #475569;
  background: #f1f5f9;
}

.msg {
  list-style: none;
  margin: 12px 0 0;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid #e6ecf3;
  border-radius: 12px;
}

.msg > li {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.msghead {
  padding: 10px 14px;
}

.msghead .tbname {
  font-size: 14px;
  font-weight: 700;
  color: #334155;
}

.msgname {
  min-height: 0;
  padding-left: 0;
}

.commentname a {
  color: #334155;
  font-size: 14px;
  font-weight: 700;
}

.msgname small {
  display: block;
  margin-top: 4px;
  color: #9ca3af;
  font-size: 12px;
  line-height: 1.5;
}

.revertcomment a {
  color: #64748b;
}

.revertcomment a:hover {
  color: #334155;
}

.msgarticle {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #e2e8f0;
  color: #334155;
  font-size: 14px;
  line-height: 1.8;
  word-break: break-word;
}

.msgarticle > .msg {
  margin-top: 10px;
  margin-left: 14px;
  background: #f8fafc;
  border-color: #e2e8f0;
}

.commentpagebar {
  margin-top: 12px;
}

@media (max-width: 1200px) {
  .iiice-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .iiice-header-inner {
    flex-wrap: wrap;
    align-items: flex-start;
    padding-top: 12px;
    padding-bottom: 10px;
  }

  .iiice-search {
    max-width: none;
    width: 100%;
    order: 3;
  }

  .iiice-search-box {
    padding: 8px 10px;
  }

  .iiice-quick {
    width: auto;
    margin-left: auto;
  }

  .iiice-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

/* ========== 手机端样式修改 ========== */
@media (max-width: 768px) {
  .iiice-topbar-inner {
    height: 32px;
    font-size: 11px;
  }

  .iiice-topbar-date,
  .iiice-topbar-divider {
    display: none;
  }

  /* 让搜索框在手机端显示 */
  .iiice-search {
    display: block !important;
    flex: 1;
    min-width: 0;
    max-width: 160px;
    margin: 0 4px;
    order: 1;
  }

  /* 调整搜索框在手机端的样式 */
  .iiice-search .iiice-search-box {
    padding: 4px 6px;
    background: #f1f5f9;
    border-radius: 8px;
  }

  .iiice-search .iiice-search-form {
    height: 30px;
    background: #fff;
    border-radius: 4px;
  }

  .iiice-search .iiice-search-toggle {
    width: 34px;
  }

  .iiice-search .iiice-search-toggle img {
    width: 16px;
    height: 16px;
  }

  .iiice-search .iiice-search-toggle svg {
    width: 16px;
    height: 16px;
  }

  .iiice-search .iiice-search-form input {
    font-size: 13px;
  }

  .iiice-search .iiice-search-submit {
    width: 32px;
  }

  .iiice-search .iiice-search-submit svg {
    width: 18px;
    height: 18px;
  }

  .iiice-search-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  /* 调整 header 内部布局 */
  .iiice-header-inner {
    min-height: 66px;
    gap: 6px !important;
    flex-wrap: nowrap;
    align-items: center;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  /* 品牌区域 - SEO优化：使用无障碍隐藏替代display:none */
  .iiice-brand {
    min-width: 0;
    gap: 8px;
    flex: 0 0 auto;
    order: 0;
  }

  .iiice-logo {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    font-size: 22px;
  }

  /* ⭐ 关键优化：H1标签无障碍隐藏，保留SEO价值 */
  .iiice-brand-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  /* 压缩快捷图标间距 */
  .iiice-quick {
    width: auto;
    flex: 0 0 auto;
    justify-content: flex-end;
    order: 2;
    overflow-x: auto;
    padding-bottom: 0;
    gap: 4px !important;
  }

  .iiice-quick-item {
    width: auto !important;
    min-width: 46px;
    flex-shrink: 0;
  }

  .iiice-quick-item img {
    width: 28px;
    height: 28px;
  }

  .iiice-quick-item em {
    font-size: 11px;
  }

  .iiice-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }

  .iiice-ad-wrap {
    display: none;
  }

  .iiice-ad-wrap.has-mobile {
    display: block;
  }

  .iiice-ad-desktop {
    display: none;
  }

  .iiice-ad-mobile {
    display: block;
  }

  .iiice-card {
    padding: 0 6px;
    gap: 6px;
    min-width: 0;
  }

  .iiice-card-wrap {
    min-width: 0;
  }

  .iiice-card {
    overflow: clip;
    overflow-clip-margin: 8px;
  }

  .iiice-card span {
    font-size: 12px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* 手机端保持不换行：长文字延伸到小飞机下方被盖住，卡片容器裁切避免横向溢出 */


  .iiice-article {
    padding: 16px 14px;
  }

  .iiice-article-title {
    font-size: 22px;
  }

  #divCommentPost {
    padding: 12px;
  }

  #divCommentPost input[type="text"],
  #divCommentPost input[type="email"],
  #divCommentPost textarea {
    font-size: 13px;
    padding: 9px 10px;
  }

  .iiice-comment-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .iiice-comment-field-verify {
    align-items: stretch;
  }

  .iiice-comment-verify-img {
    width: 88px;
    height: 36px;
  }

  .msg {
    padding: 12px;
  }

  .msgname {
    padding-left: 0;
  }

  .msgarticle {
    font-size: 13px;
  }

  .msgarticle > .msg {
    margin-left: 8px;
  }

  .iiice-section-head {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
  }
  
  .iiice-section-title-wrap {
    flex-shrink: 0;
  }
  
  .iiice-subcategories-wrap {
    flex-shrink: 0;
  }
  
  .iiice-section-desc {
    font-size: 11px;
    max-width: none;
  }
  /* 手机端：分类标签允许内部换行，避免整页横向溢出 */
  .iiice-subcategories {
    flex-wrap: wrap;
    max-width: 100%;
  }
}

@media (max-width: 520px) {
  .iiice-main {
    padding-left: 8px;
    padding-right: 8px;
  }

  .iiice-search-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .iiice-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .iiice-card {
    height: 38px;
  }
}

/* ===== 立即访问按钮 ===== */
.iiice-history-visit {
  display: inline-block;
  padding: 4px 12px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  font-size: 12px;
  border-radius: 14px;
  text-decoration: none;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.iiice-history-visit:hover {
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(102, 126, 234, 0.4);
}

.iiice-history-visit:active {
  transform: translateY(0);
}

/* ========== 夜间模式样式 ========== */
/* 全局暗色变量 */
.dark-mode {
  --iiice-bg: #1a1a2e !important;
  --iiice-white: #16213e !important;
  --iiice-border: #2a2a3a !important;
  --iiice-title: #e2e8f0 !important;
  --iiice-text: #94a3b8 !important;
  --iiice-primary: #0f3460 !important;
  --iiice-shadow: 0 0 15px rgba(0, 0, 0, 0.3) !important;
}

/* 顶部栏 */
.dark-mode .iiice-topbar {
  background: #0f3460 !important;
}

/* 头部背景 */
.dark-mode .iiice-header,
.dark-mode .iiice-top-links,
.dark-mode .iiice-card,
.dark-mode .iiice-article,
.dark-mode .iiice-404,
.dark-mode #divCommentPost,
.dark-mode .msg {
  background: #16213e !important;
  border-color: #2a2a3a !important;
}
/* 手机端搜索框夜间模式 */
.dark-mode .iiice-search .iiice-search-box {
  background: #16213e !important;
  border-color: #2a2a3a !important;
}
.dark-mode .iiice-search .iiice-search-toggle {
  border-right-color: #334155 !important;
}
.dark-mode .iiice-search-engine-name {
  color: #94a3b8 !important;
}
.dark-mode .iiice-search .iiice-search-toggle svg {
  fill: #64748b !important;
}
.dark-mode .iiice-search .iiice-search-submit {
  background: #0f172a !important;
  border-color: #334155 !important;
}
.dark-mode .iiice-search .iiice-search-submit svg {
  fill: #94a3b8 !important;
}

/* 搜索框 */
.dark-mode .iiice-search-box {
  background: #0f3460 !important;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.3) !important;
}
.iiice-search .iiice-search-box:focus-within {
  border-color: #2563eb;
  box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.3), 0 0 30px rgba(37, 99, 235, 0.3), 0 0 60px rgba(37, 99, 235, 0.2);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.dark-mode .iiice-search-form {
  background: #1e293b !important;
}

.dark-mode .iiice-search-form input {
  background: #1e293b !important;
  color: #e2e8f0 !important;
}

.dark-mode .iiice-search-form input::placeholder {
  color: #64748b !important;
}

.dark-mode .iiice-search-dropdown {
  background: #1e293b !important;
  border-color: #334155 !important;
}

.dark-mode .iiice-search-item {
  background: #0f172a !important;
}

.dark-mode .iiice-search-item span {
  color: #cbd5e1 !important;
}

/* 快速入口文字 */
.dark-mode .iiice-quick-item em {
  color: #94a3b8 !important;
}

/* 顶部链接 */
.dark-mode .iiice-top-links-inner a {
  color: #cbd5e1 !important;
}

/* 下拉浮层 */
.dark-mode .iiice-dropdown {
  background: #1e293b !important;
  border-color: #334155 !important;
}

.dark-mode .iiice-dropdown-header {
  border-bottom-color: #334155 !important;
}

.dark-mode .iiice-dropdown-header h4 {
  color: #e2e8f0 !important;
}

.dark-mode .iiice-history-item {
  border-bottom-color: #334155 !important;
}

.dark-mode .iiice-history-item:hover {
  background: #0f172a !important;
}

.dark-mode .iiice-history-name {
  color: #e2e8f0 !important;
}

.dark-mode .iiice-history-empty {
  color: #64748b !important;
}

/* 分类标签 */
.dark-mode .iiice-subcategories {
  background: #0f172a !important;
  border-color: #334155 !important;
}

.dark-mode .iiice-subcat-item {
  color: #94a3b8 !important;
}

.dark-mode .iiice-subcat-item:hover {
  background: #334155 !important;
  color: #fbbf24 !important;
}

.dark-mode .iiice-subcat-item.active {
  background: #22c55e !important;
  color: #fff !important;
}

/* 卡片文字 */
.dark-mode .iiice-card span {
  color: #cbd5e1 !important;
}

.dark-mode .iiice-card:hover {
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3) !important;
}

/* 页脚 */
.dark-mode .iiice-footer {
  background: #0f3460 !important;
}

.dark-mode .iiice-friend-links {
  background: rgba(0, 0, 0, 0.25) !important;
}

.dark-mode .iiice-friend-links a {
  color: #cbd5e1 !important;
}

/* 文章页 */
.dark-mode .iiice-article-content {
  color: #cbd5e1 !important;
}

.dark-mode .iiice-article-meta {
  border-bottom-color: #334155 !important;
  color: #64748b !important;
}

.dark-mode .iiice-article-tags {
  border-top-color: #334155 !important;
}

/* 评论表单 */
.dark-mode #divCommentPost input[type="text"],
.dark-mode #divCommentPost input[type="email"],
.dark-mode #divCommentPost textarea {
  background: #0f172a !important;
  border-color: #334155 !important;
  color: #e2e8f0 !important;
}

.dark-mode #divCommentPost .posttop {
  color: #e2e8f0 !important;
}

.dark-mode .commentname a {
  color: #e2e8f0 !important;
}

.dark-mode .msgarticle {
  border-top-color: #334155 !important;
  color: #cbd5e1 !important;
}

/* 分页 */
.dark-mode .iiice-pagebar a,
.dark-mode .iiice-pagebar span {
  background: #16213e !important;
  border-color: #334155 !important;
  color: #94a3b8 !important;
}

.dark-mode .iiice-pagebar a:hover {
  background: #0f3460 !important;
  color: #fff !important;
}

/* 悬浮按钮 */
.dark-mode .float-btn {
  background: #1e293b !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3) !important;
}

.dark-mode .float-btn:hover {
  background: #334155 !important;
}

/* 分享弹窗 */
.dark-mode .modal-content {
  background: #1e293b !important;
}

.dark-mode .modal-title {
  color: #22c55e !important;
}

.dark-mode .modal-text {
  color: #cbd5e1 !important;
}

.dark-mode .modal-footer {
  color: #60a5fa !important;
}

/* 底部收藏提示 */
.dark-mode .bottom-bookmark-tip {
  background: #16213e !important;
  border-color: #334155 !important;
  color: #e2e8f0 !important;
}

.dark-mode .key-label {
  background: #0f3460 !important;
  border-color: #22c55e !important;
  color: #e2e8f0 !important;
}

/* 夜间模式切换按钮样式 */
.iiice-darkmode-toggle {
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  color: #fff;
}

.darkmode-icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  transition: all 0.3s ease;
}

.sun-icon {
  display: block;
}

.moon-icon {
  display: none;
}

.dark-mode .iiice-darkmode-toggle .sun-icon {
  display: none;
}

.dark-mode .iiice-darkmode-toggle .moon-icon {
  display: block;
}

/* APP下载悬浮栏暗色 */
.dark-mode .app-bottom-card {
  background: linear-gradient(135deg, #0f3460 0%, #1e3a5f 100%) !important;
}

.dark-mode .app-bottom-close {
  background: #1e293b !important;
  border-color: #22c55e !important;
  color: #22c55e !important;
}

.dark-mode .app-bottom-btn-primary {
  background: #22c55e !important;
  color: #fff !important;
}

.dark-mode .wechat-modal-card {
  background: #1e293b !important;
}

.dark-mode .wechat-modal-card h3 {
  color: #e2e8f0 !important;
}

/* APP框架弹窗暗色 */
.dark-mode .app-frame-modal {
  background: #16213e !important;
}

.dark-mode .app-frame-body {
  background: #16213e !important;
}

.dark-mode .app-frame-download-item {
  background: #0f172a !important;
  border-color: #334155 !important;
}

.dark-mode .app-frame-download-name {
  color: #e2e8f0 !important;
}

.dark-mode .app-frame-download-guide {
  color: #94a3b8 !important;
}

.dark-mode .app-frame-footer {
  border-top-color: #334155 !important;
}

/* 导航按钮暗色 */
.dark-mode .iiice-nav-btn {
  background: #0f172a !important;
  border-color: #334155 !important;
  color: #94a3b8 !important;
}

.dark-mode .iiice-nav-btn-follow {
  background: rgba(233, 30, 99, 0.15) !important;
  border-color: #e91e63 !important;
  color: #f48fb1 !important;
}

/* 历史访问按钮暗色 */
.dark-mode .iiice-history-visit {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%) !important;
}

/* ========== 夜间模式样式结束 ========== */

/* ===== 手机端搜索引擎下拉框（完整显示 + 居中） ===== */
@media (max-width: 768px) {
  .iiice-search-dropdown {
    position: fixed !important;
    top: 80px !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    width: 280px !important;
    min-width: 260px !important;
    z-index: 99999 !important;
  }
  
  .iiice-search-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
  
  .iiice-search-item {
    padding: 0 10px !important;
    gap: 8px !important;
  }
  
  .iiice-search-item img {
    width: 18px !important;
    height: 18px !important;
    flex-shrink: 0 !important;
  }
  
  .iiice-search-item span {
    font-size: 13px !important;
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: clip !important;
    color: #334155 !important;
  }
}

/* 窄屏手机进一步调整 */
@media (max-width: 480px) {
  .iiice-search-dropdown {
    width: 260px !important;
    min-width: 240px !important;
  }
  
  .iiice-search-item span {
    font-size: 12px !important;
  }
}
/* ===== 分类区域按钮（简洁版） ===== */
.iiice-section-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
}

.iiice-section-title-wrap {
    flex-shrink: 0;
}

.iiice-subcategories-wrap {
    flex-shrink: 0;
}

.iiice-section-desc {
    margin-left: auto;
    flex-shrink: 0;
}

/* 按钮容器 - 靠右 */
.iiice-section-btns {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    flex-shrink: 0;
}

/* 按钮基础样式 */
.iiice-section-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.25s ease;
    white-space: nowrap;
    cursor: pointer;
    border: 1px solid transparent;
    font-family: inherit;
    line-height: 1.4;
}

.iiice-section-btn svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

/* 硬核指南 - 蓝紫色 */
.iiice-btn-guide {
    background: #eef2ff;
    color: #4f46e5 !important;
    border-color: #c7d2fe;
}
.iiice-btn-guide:hover {
    background: #4f46e5;
    color: #fff !important;
    border-color: #4f46e5;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

/* 流量卡 - 橙红色 */
.iiice-btn-card {
    background: #fff7ed;
    color: #ea580c !important;
    border-color: #fed7aa;
}
.iiice-btn-card:hover {
    background: #ea580c;
    color: #fff !important;
    border-color: #ea580c;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.3);
}

/* 手机端适配 */
@media (max-width: 768px) {
    .iiice-section-head {
        gap: 6px 8px;
    }
    .iiice-section-btn {
        padding: 4px 10px;
        font-size: 12px;
        gap: 4px;
    }
    .iiice-section-btn svg {
        width: 13px;
        height: 13px;
    }
    .iiice-section-btns {
        margin-left: auto;
    }
}

@media (max-width: 520px) {
    .iiice-section-btn {
        padding: 3px 8px;
        font-size: 11px;
        gap: 3px;
        border-radius: 4px;
    }
    .iiice-section-btn svg {
        width: 12px;
        height: 12px;
    }
}

/* ============================================================
   以下为新增元素/页面的夜间模式适配（完整补充）
   ============================================================ */

/* ----- 1. 顶部栏暗色按钮（手机端） ----- */
.dark-mode .iiice-search .iiice-search-box {
    background: #16213e !important;
    border-color: #2a2a3a !important;
}

.dark-mode .iiice-search .iiice-search-form input {
    color: #e2e8f0 !important;
}

.dark-mode .iiice-search .iiice-search-form input::placeholder {
    color: #64748b !important;
}

/* ----- 2. 分类区域按钮（硬核指南、流量卡）暗色 ----- */
.dark-mode .iiice-section-btn {
    border-color: #334155 !important;
}

.dark-mode .iiice-btn-guide {
    background: #1e1b4b !important;
    color: #818cf8 !important;
    border-color: #3730a3 !important;
}

.dark-mode .iiice-btn-guide:hover {
    background: #4f46e5 !important;
    color: #fff !important;
    border-color: #4f46e5 !important;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2) !important;
}

.dark-mode .iiice-btn-card {
    background: #2d1a0a !important;
    color: #fb923c !important;
    border-color: #7c2d12 !important;
}

.dark-mode .iiice-btn-card:hover {
    background: #ea580c !important;
    color: #fff !important;
    border-color: #ea580c !important;
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.2) !important;
}

/* ----- 3. 搜索下拉框（手机端）暗色 ----- */
.dark-mode .iiice-search-dropdown {
    background: #1e293b !important;
    border-color: #334155 !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4) !important;
}

.dark-mode .iiice-search-item {
    background: #0f172a !important;
}

.dark-mode .iiice-search-item:hover {
    background: #1a2744 !important;
}

.dark-mode .iiice-search-item span {
    color: #cbd5e1 !important;
}

/* ----- 4. 底部悬浮栏（APP下载）暗色（覆盖强化） ----- */
.dark-mode .app-bottom-card {
    background: linear-gradient(135deg, #0a1a2f 0%, #162a4a 100%) !important;
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.6) !important;
}

.dark-mode .app-bottom-close {
    background: #1a1a2e !important;
    border-color: #3b82f6 !important;
    color: #60a5fa !important;
}

.dark-mode .app-bottom-close:hover {
    background: #3b82f6 !important;
    color: #fff !important;
}

.dark-mode .app-bottom-btn-primary {
    background: #3b82f6 !important;
    color: #fff !important;
}

.dark-mode .app-bottom-btn-primary:hover {
    background: #2563eb !important;
    transform: translateY(-2px) !important;
}

.dark-mode .app-bottom-btn-secondary {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    color: #cbd5e1 !important;
}

.dark-mode .app-bottom-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15) !important;
}

.dark-mode .app-bottom-icon {
    background: rgba(255, 255, 255, 0.05) !important;
}

/* ----- 5. 微信群弹窗暗色 ----- */
.dark-mode .wechat-modal-overlay {
    background: rgba(0, 0, 0, 0.85) !important;
}

.dark-mode .wechat-modal-card {
    background: #1a1a2e !important;
}

.dark-mode .wechat-modal-card .close {
    color: #94a3b8 !important;
}

.dark-mode .wechat-modal-card .close:hover {
    color: #e2e8f0 !important;
}

.dark-mode .wechat-modal-card h3 {
    color: #e2e8f0 !important;
}

.dark-mode .wechat-qrcode-img {
    background: #0f172a !important;
}

.dark-mode .wechat-tip {
    color: #94a3b8 !important;
}

/* ----- 6. APP框架弹窗暗色 ----- */
.dark-mode .app-frame-overlay {
    background: rgba(0, 0, 0, 0.85) !important;
}

.dark-mode .app-frame-modal {
    background: #1a1a2e !important;
}

.dark-mode .app-frame-body {
    background: #1a1a2e !important;
}

.dark-mode .app-frame-download-item {
    background: #0f172a !important;
    border-color: #2a2a3a !important;
}

.dark-mode .app-frame-download-item:hover {
    border-color: #3b82f6 !important;
    box-shadow: 0 2px 12px rgba(59, 130, 246, 0.15) !important;
}

.dark-mode .app-frame-download-name {
    color: #e2e8f0 !important;
}

.dark-mode .app-frame-download-guide {
    color: #94a3b8 !important;
}

.dark-mode .app-frame-download-btn {
    background: #3b82f6 !important;
    color: #fff !important;
}

.dark-mode .app-frame-download-btn:hover {
    background: #2563eb !important;
}

.dark-mode .app-frame-footer {
    border-top-color: #2a2a3a !important;
}

.dark-mode .app-frame-footer-link {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%) !important;
    color: #fff !important;
}

.dark-mode .app-frame-footer-link:hover {
    background: linear-gradient(135deg, #b45309 0%, #92400e 100%) !important;
    color: #fff !important;
}

.dark-mode .app-frame-close {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #94a3b8 !important;
}

.dark-mode .app-frame-close:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
}

/* ----- 7. 悬浮侧边按钮暗色（强化） ----- */
.dark-mode .float-toolbar .float-btn {
    background: #1e293b !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4) !important;
}

.dark-mode .float-toolbar .float-btn:hover {
    background: #334155 !important;
}

/* ----- 8. 分享弹窗暗色（强化） ----- */
.dark-mode .share-modal {
    background: rgba(0, 0, 0, 0.85) !important;
}

.dark-mode .share-modal .modal-content {
    background: #1a1a2e !important;
}

.dark-mode .share-modal .modal-title {
    color: #22c55e !important;
}

.dark-mode .share-modal .modal-text {
    color: #cbd5e1 !important;
}

.dark-mode .share-modal .modal-footer {
    color: #60a5fa !important;
}

.dark-mode .share-modal .modal-close {
    background: #334155 !important;
    color: #94a3b8 !important;
}

.dark-mode .share-modal .modal-close:hover {
    background: #475569 !important;
    color: #e2e8f0 !important;
}

/* ----- 9. 底部收藏提示暗色（强化） ----- */
.dark-mode .bottom-bookmark-tip {
    background: #16213e !important;
    border-color: #2a2a3a !important;
    color: #e2e8f0 !important;
}

.dark-mode .bottom-bookmark-tip .key-label {
    background: #0f3460 !important;
    border-color: #22c55e !important;
    color: #e2e8f0 !important;
}

.dark-mode .bottom-bookmark-tip .green-url {
    color: #22c55e !important;
}

/* ----- 10. 夜间模式切换按钮暗色（强化） ----- */
.dark-mode .iiice-darkmode-toggle {
    color: #fbbf24 !important;
}

.dark-mode .iiice-darkmode-toggle:hover {
    color: #f59e0b !important;
}

.dark-mode .iiice-darkmode-toggle .sun-icon {
    display: none !important;
}

.dark-mode .iiice-darkmode-toggle .moon-icon {
    display: block !important;
}

/* ----- 11. 关注/历史按钮暗色（强化） ----- */
.dark-mode .iiice-nav-btn {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #94a3b8 !important;
}

.dark-mode .iiice-nav-btn:hover {
    border-color: #475569 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3) !important;
}

.dark-mode .iiice-nav-btn-follow {
    background: rgba(233, 30, 99, 0.15) !important;
    border-color: #e91e63 !important;
    color: #f48fb1 !important;
}

.dark-mode .iiice-nav-btn-follow:hover {
    background: rgba(233, 30, 99, 0.25) !important;
    border-color: #e91e63 !important;
}

/* ----- 12. 历史访问按钮暗色 ----- */
.dark-mode .iiice-history-visit {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%) !important;
    color: #fff !important;
}

.dark-mode .iiice-history-visit:hover {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%) !important;
    box-shadow: 0 3px 10px rgba(34, 197, 94, 0.3) !important;
}

/* ----- 13. 角标暗色 ----- */
.dark-mode .navcat-badge {
    background-color: #dc2626 !important;
    color: #fff !important;
}

.dark-mode .navcat-badge-new {
    background-color: #22c55e !important;
    color: #fff !important;
}

/* ----- 14. 评论区暗色补充 ----- */
.dark-mode #divCommentPost .postbottom {
    color: #64748b !important;
}

.dark-mode #divCommentPost label {
    color: #94a3b8 !important;
}

.dark-mode .msghead .tbname {
    color: #e2e8f0 !important;
}

.dark-mode .revertcomment a {
    color: #94a3b8 !important;
}

.dark-mode .revertcomment a:hover {
    color: #e2e8f0 !important;
}

.dark-mode #cancel-reply {
    color: #94a3b8 !important;
    background: #1e293b !important;
}

.dark-mode .commentpagebar .iiice-pagebar a,
.dark-mode .commentpagebar .iiice-pagebar span {
    background: #16213e !important;
    border-color: #334155 !important;
    color: #94a3b8 !important;
}

/* ===== 夜间模式 ===== */
.dark-mode .iiice-btn-guide {
    background: #312e81;
    color: #a5b4fc !important;
    border-color: #4338ca;
}
.dark-mode .iiice-btn-guide:hover {
    background: #4f46e5;
    color: #fff !important;
}

.dark-mode .iiice-btn-card {
    background: #451a03;
    color: #fdba74 !important;
    border-color: #9a3412;
}
.dark-mode .iiice-btn-card:hover {
    
    background: #ea580c;
    color: #fff !important;
}
/* 引擎名称默认隐藏，仅手机端显示 */
.iiice-search-engine-name {
  display: none;
}

/* ========== 手机端：搜索框位置 + 样式 ========== */
@media (max-width: 768px) {
  /* --- 位置：grid 三行布局 --- */
  .iiice-header {
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "inner"
      "search"
      "links" !important;
  }

  .iiice-header-inner {
    display: contents !important;
  }

  .iiice-brand {
    grid-area: inner !important;
    align-self: center !important;
  }

  .iiice-quick {
    grid-area: inner !important;
    align-self: center !important;
    justify-self: end !important;
    width: auto !important;
    flex: 0 0 auto !important;
    overflow-x: auto !important;
    gap: 4px !important;
    padding-bottom: 0 !important;
  }

  /* --- 搜索框：撑满整行 + 与 logo 间距 --- */
  .iiice-search {
    grid-area: search !important;
    display: block !important;
    max-width: none !important;
    width: 100% !important;
    min-width: 0 !important;
    padding: 10px 10px 8px 10px !important;
    margin: 0 !important;
    order: unset !important;
    justify-self: stretch !important;
  }

  .iiice-top-links {
    grid-area: links !important;
  }

  /* --- 样式：方正 + 引擎名 + 搜索按钮框 --- */
  .iiice-search .iiice-search-box {
    padding: 3px 4px 3px 6px !important;
    background: #fff !important;
    border: 1px solid #d5d5d5 !important;
    border-radius: 4px !important;
    box-shadow: none !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
  }

.iiice-search .iiice-search-box:focus-within {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.5) !important;
}

  .iiice-search .iiice-search-form {
    height: 30px !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    gap: 2px !important;
  }

  .iiice-search .iiice-search-toggle {
    width: auto !important;
    min-width: 0 !important;
    flex-shrink: 0 !important;
    background: transparent !important;
    gap: 3px !important;
    padding: 0 4px 0 2px !important;
    border-right: 1px solid #e5e7eb !important;
  }

  .iiice-search .iiice-search-toggle img {
    width: 16px !important;
    height: 16px !important;
    flex-shrink: 0 !important;
  }

  .iiice-search-engine-name {
    display: inline !important;
    font-size: 12px !important;
    color: #4a5568 !important;
    white-space: nowrap !important;
    line-height: 1 !important;
  }

  .iiice-search .iiice-search-toggle svg {
    width: 10px !important;
    height: 10px !important;
    fill: #9ca3af !important;
    flex-shrink: 0 !important;
  }

  .iiice-search .iiice-search-form input {
    font-size: 13px !important;
    min-width: 0 !important;
    flex: 1 !important;
    padding: 0 4px !important;
    background: transparent !important;
  }

  .iiice-search .iiice-search-submit {
    width: 28px !important;
    height: 26px !important;
    flex-shrink: 0 !important;
    background: #f3f4f6 !important;
    border: 1px solid #d1d5db !important;
    border-radius: 6px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
  }

  .iiice-search .iiice-search-submit svg {
    width: 14px !important;
    height: 14px !important;
    fill: #4b5563 !important;
  }

  .iiice-quick-item {
    width: auto !important;
    min-width: 46px;
    flex-shrink: 0;
  }

  .iiice-quick-item img {
    width: 28px;
    height: 28px;
  }

  .iiice-quick-item em {
    font-size: 11px;
  }
}

/* 窄屏微调 */
@media (max-width: 480px) {
  .iiice-search .iiice-search-form {
    height: 28px !important;
  }

  .iiice-search .iiice-search-toggle {
    gap: 2px !important;
    padding: 0 3px 0 1px !important;
  }

  .iiice-search-engine-name {
    font-size: 11px !important;
  }

  .iiice-search .iiice-search-submit {
    width: 26px !important;
    height: 24px !important;
  }
}
/* ===== 修复手机端搜索下拉框位置 ===== */
@media (max-width: 768px) {
  .iiice-search {
    position: relative !important;
  }
  
  .iiice-search-dropdown {
    position: absolute !important;
    top: calc(100% + 4px) !important;
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
    width: 100% !important;
    min-width: auto !important;
  }

  /* 新增：让下拉内容居中 */
  .iiice-search-grid {
    justify-items: center !important;
  }

  .iiice-search-item {
    justify-content: center !important;
    width: 100% !important;
  }
}
/* 隐藏搜索引擎名称文字，保留图标 */
.iiice-search-engine-name {
  display: none !important;
}

/* 调整切换按钮间距，让图标居中 */
.iiice-search-toggle {
  gap: 0px !important;
  padding: 0 4px !important;
}

.iiice-search-toggle svg {
  margin-left: 0px !important;
}
/* ===== 强制增强手机端搜索框点击蓝色边框效果 ===== */
@media (max-width: 768px) {
  .iiice-search .iiice-search-box:focus-within {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.4), 0 0 20px rgba(37, 99, 235, 0.2) !important;
  }
}

/* ============================================================
   导航卡片点击量悬浮提示
   ============================================================ */
/* ===== 导航点击量悬浮气泡 ===== */
.iiice-click-tooltip {
  position: fixed;
  z-index: 99998;
  display: none;
  padding: 5px 10px;
  background: rgba(30, 30, 40, 0.95);
  color: #fff;
  font-size: 12px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  white-space: nowrap;
  pointer-events: none;
  align-items: center;
  gap: 5px;
  line-height: 1.4;
  font-family: inherit;
  max-width: 250px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.iiice-click-tooltip::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: rgba(30, 30, 40, 0.95);
  border-bottom: 0;
}

.iiice-click-tooltip.is-below::after {
  bottom: auto;
  top: -5px;
  border-top: 0;
  border-bottom: 5px solid transparent;
  border-bottom-color: rgba(30, 30, 40, 0.95);
}

.iiice-click-tooltip-icon {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.iiice-click-tooltip-icon svg {
  width: 14px;
  height: 14px;
  stroke: #fff;
  fill: none;
}

.iiice-click-tooltip-text {
  font-size: 12px;
  color: #fff;
  white-space: nowrap;
}

/* 点击次数数字 — 红色 */
.iiice-click-tooltip-text .iiice-click-count {
  color: #ff4757;
  font-weight: 700;
  font-size: 14px;
  margin: 0 1px;
}

/* 夜间模式适配 */
.dark-mode .iiice-click-tooltip {
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(51, 65, 85, 0.5);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.dark-mode .iiice-click-tooltip::after {
  border-top-color: rgba(15, 23, 42, 0.98);
}

.dark-mode .iiice-click-tooltip.is-below::after {
  border-bottom-color: rgba(15, 23, 42, 0.98);
}

/* ============================================================
   导航详情页（post-detail.php）+ 小飞机图标
   ============================================================ */

/* ===== 面包屑 ===== */
.iiice-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  color: #8a949f;
  margin: 4px 0 14px;
  padding: 0 2px;
}
.iiice-breadcrumb a {
  color: #64748b;
  text-decoration: none;
  transition: color 0.15s;
}
.iiice-breadcrumb a:hover {
  color: #3b82f6;
}
.iiice-breadcrumb-sep {
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1;
}
.iiice-breadcrumb-current {
  color: #313a45;
  font-weight: 500;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ===== 站点头部卡片 ===== */
.iiice-site-header {
  background: #fff;
  border: 1px solid #eceff3;
  border-radius: 12px;
  padding: 20px 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  margin-bottom: 14px;
}
.iiice-site-header-main {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 0;
}
.iiice-site-icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  object-fit: cover;
  flex-shrink: 0;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  padding: 8px;
  box-sizing: border-box;
}
.iiice-site-info {
  flex: 1;
  min-width: 0;
}
.iiice-site-name {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.iiice-site-desc {
  margin: 0 0 8px;
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.iiice-site-stats {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  color: #8a949f;
}
.iiice-stat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.iiice-stat svg {
  width: 13px;
  height: 13px;
  stroke: #8a949f;
}

/* ===== 动作按钮 ===== */
.iiice-site-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  flex-shrink: 0;
  width: 180px;
}
.iiice-site-actions .iiice-action-btn {
  justify-content: center;
  width: 100%;
}
.iiice-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 34px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  cursor: pointer;
  transition: all 0.18s ease;
  border: 1px solid transparent;
  white-space: nowrap;
  user-select: none;
}
.iiice-action-btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.iiice-action-btn-primary {
  background: #3b82f6;
  color: #fff !important;
  box-shadow: 0 1px 2px rgba(59, 130, 246, 0.25);
}
.iiice-action-btn-primary:hover {
  background: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(59, 130, 246, 0.3);
}
.iiice-action-btn-secondary {
  background: #fff;
  color: #475569 !important;
  border-color: #d1d5db;
}
.iiice-action-btn-secondary:hover {
  border-color: #94a3b8;
  background: #f8fafc;
  color: #1e293b !important;
}

/* ===== 详情页通用 section ===== */
.iiice-detail-section {
  background: #fff;
  border: 1px solid #eceff3;
  border-radius: 12px;
  padding: 18px 22px;
  margin-bottom: 14px;
}
.iiice-detail-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 700;
  color: #1f2937;
  position: relative;
}
.iiice-detail-section-icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background-color: #3b82f6;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 12px 12px;
  flex-shrink: 0;
  position: relative;
}
.iiice-detail-section-icon-img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}
.iiice-detail-section-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 12px 12px;
}
.iiice-detail-icon-desc::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/><polyline points='14 2 14 8 20 8'/><line x1='9' y1='13' x2='15' y2='13'/><line x1='9' y1='17' x2='13' y2='17'/></svg>");
}
.iiice-detail-icon-info::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><line x1='12' y1='16' x2='12' y2='12'/><line x1='12' y1='8' x2='12.01' y2='8'/></svg>");
}
.iiice-detail-icon-related::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='3' width='7' height='7'/><rect x='14' y='3' width='7' height='7'/><rect x='14' y='14' width='7' height='7'/><rect x='3' y='14' width='7' height='7'/></svg>");
}
.iiice-detail-section-content {
  font-size: 14px;
  color: #2f3640;
  line-height: 1.7;
}
.iiice-detail-section-empty {
  margin: 0;
  color: #94a3b8;
  font-size: 13px;
  text-align: center;
  padding: 12px 0;
}

/* 网站描述内容 */
.iiice-site-description {
  font-size: 14px;
  color: #2f3640;
  line-height: 1.7;
  word-break: break-word;
}
.iiice-site-description p {
  margin: 0 0 8px;
}
.iiice-site-description img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

/* ===== 站点信息列表 ===== */
.iiice-info-list {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  background: #f8fafc;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 13px;
  color: #475569;
}
.iiice-info-list li {
  display: flex;
  align-items: flex-start;
  padding: 4px 0;
  gap: 4px;
}
.iiice-info-label {
  color: #8a949f;
  flex-shrink: 0;
  min-width: 78px;
}
.iiice-info-value {
  color: #2f3640;
  word-break: break-all;
  flex: 1;
}
.iiice-info-link {
  color: #3b82f6;
  text-decoration: none;
  word-break: break-all;
  flex: 1;
  transition: color 0.15s;
}
.iiice-info-link:hover {
  color: #2563eb;
  text-decoration: underline;
}

/* ===== 温馨提示 ===== */
.iiice-notice-box {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-left: 3px solid #f59e0b;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 12.5px;
  line-height: 1.7;
  color: #78350f;
}
.iiice-notice-box strong {
  color: #b45309;
}

/* ===== SEO 数据 ===== */
/* ===== 相关导航 ===== */
.iiice-refresh-btn {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 500;
  color: #64748b;
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 14px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  transition: all 0.2s;
  cursor: pointer;
  user-select: none;
}
.iiice-refresh-btn:hover {
  background: #e2e8f0;
  color: #1e293b;
}
.iiice-refresh-btn svg {
  width: 12px;
  height: 12px;
  transition: transform 0.4s ease;
}
.iiice-refresh-btn.is-rotating svg {
  transform: rotate(360deg);
}

.iiice-related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.iiice-related-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  text-decoration: none !important;
  color: inherit;
  transition: all 0.2s;
  min-height: 56px;
  overflow: hidden;
}
.iiice-related-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
}
.iiice-related-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  background: #f1f5f9;
}
.iiice-related-name {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  font-weight: 600;
  color: #313a45;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.iiice-related-card.is-title-red .iiice-related-name {
  color: #dc2626;
}
.iiice-related-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px 0 6px 0;
  color: #fff;
  line-height: 1.3;
}
.iiice-related-badge-recommend {
  background: #ff4444;
}
.iiice-related-badge-new {
  background: #22c55e;
}

/* ===== 小飞机图标（hover 显示） ===== */
.iiice-card-wrap .card-plane-icon {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%) scale(0.7);
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 6;
}
.iiice-card-wrap .card-plane-icon img {
  width: 16px;
  height: 16px;
  display: block;
  object-fit: contain;
  -webkit-user-drag: none;
}
.iiice-card-wrap:hover .card-plane-icon {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%) scale(1);
}
.iiice-card-wrap .card-plane-icon:hover {
  transform: translateY(-50%) scale(1.1);
}
.iiice-card-wrap .card-plane-icon:active {
  transform: translateY(-50%) scale(0.95);
}

/* ===== 详情页移动端适配 ===== */
@media (max-width: 768px) {
  .iiice-site-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
    gap: 14px;
  }
  .iiice-site-header-main {
    width: 100%;
  }
  .iiice-site-icon {
    width: 52px;
    height: 52px;
  }
  .iiice-site-name {
    font-size: 18px;
  }
  .iiice-site-desc {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
  .iiice-site-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
  .iiice-site-actions .iiice-action-btn {
    justify-content: center;
    width: 100%;
  }
  .iiice-action-btn {
    height: 32px;
    padding: 0 12px;
    font-size: 12px;
  }
  .iiice-detail-section {
    padding: 14px 16px;
  }
  .iiice-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .iiice-info-list {
    padding: 10px 12px;
  }
  .iiice-info-label {
    min-width: 70px;
  }
  /* 手机端：小飞机往后挪一点，紧贴导航卡片右边缘 */
  .iiice-card-wrap .card-plane-icon {
    right: 2px;
  }
}
@media (max-width: 480px) {
  .iiice-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .iiice-related-card {
    min-height: 50px;
    padding: 8px 10px;
  }
  .iiice-breadcrumb-current {
    max-width: 140px;
  }
}

/* ===== 详情页暗色模式适配 ===== */
.dark-mode .iiice-breadcrumb,
.dark-mode .iiice-breadcrumb a {
  color: #94a3b8;
}
.dark-mode .iiice-breadcrumb a:hover {
  color: #60a5fa;
}
.dark-mode .iiice-breadcrumb-current {
  color: #e2e8f0;
}
.dark-mode .iiice-site-header,
.dark-mode .iiice-detail-section {
  background: #1e293b;
  border-color: #334155;
}
.dark-mode .iiice-site-name {
  color: #f1f5f9;
}
.dark-mode .iiice-site-desc {
  color: #94a3b8;
}
.dark-mode .iiice-stat {
  color: #94a3b8;
}
.dark-mode .iiice-action-btn-secondary {
  background: #334155;
  color: #cbd5e1 !important;
  border-color: #475569;
}
.dark-mode .iiice-action-btn-secondary:hover {
  background: #475569;
  color: #f1f5f9 !important;
  border-color: #64748b;
}
.dark-mode .iiice-detail-section-title {
  color: #f1f5f9;
}
.dark-mode .iiice-detail-section-content {
  color: #cbd5e1;
}
.dark-mode .iiice-info-list {
  background: #0f172a;
  color: #cbd5e1;
}
.dark-mode .iiice-info-label {
  color: #64748b;
}
.dark-mode .iiice-info-value {
  color: #e2e8f0;
}
.dark-mode .iiice-info-link {
  color: #60a5fa;
}
.dark-mode .iiice-notice-box {
  background: #422006;
  border-color: #78350f;
  border-left-color: #f59e0b;
  color: #fde68a;
}
.dark-mode .iiice-notice-box strong {
  color: #fbbf24;
}
.dark-mode .iiice-refresh-btn {
  background: #334155;
  border-color: #475569;
  color: #cbd5e1;
}
.dark-mode .iiice-refresh-btn:hover {
  background: #475569;
  color: #f1f5f9;
}
.dark-mode .iiice-related-card {
  background: #0f172a;
  border-color: #334155;
}
.dark-mode .iiice-related-card:hover {
  background: #1e293b;
  border-color: #475569;
}
.dark-mode .iiice-related-name {
  color: #e2e8f0;
}
.dark-mode .iiice-detail-section-empty {
  color: #64748b;
}

/* 桌面端：长文字延伸到小飞机下方被盖住（不省略），仅桌面端生效 */
@media (min-width: 769px) {
  .iiice-card > span:not(.card-app-text) {
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: nowrap !important;
  }
}

/* 手机端：文字超出卡片宽度时显示省略号 */
@media (max-width: 768px) {
  .iiice-card > span:not(.card-app-text) {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }
}

/* ============================================================
   详情页投票（有价值 / 无价值）
   ============================================================ */
/* 链接直达/反馈按钮下方的额外面板：投票 + 评论 */
.iiice-extra-panel {
  width: 100%;
  margin-top: 14px;
  padding: 16px 0 0;
  border-top: 1px dashed #e2e8f0;
}

.iiice-vote-bar {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 18px;
}

.iiice-vote-btn {
  min-width: 140px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border: 1px solid var(--iiice-border);
  border-radius: 32px;
  background: var(--iiice-white);
  color: var(--iiice-title);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  user-select: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.iiice-vote-btn img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.iiice-vote-btn:hover {
  border-color: #1b54bc;
  color: #1b54bc;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(27, 84, 188, 0.12);
}

.iiice-vote-btn.is-voted,
.iiice-vote-btn:disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

.iiice-vote-btn.is-voted {
  border-color: #22c55e;
  color: #15803d;
  background: #f0fdf4;
}

.iiice-vote-btn.iiice-vote-bad.is-voted {
  border-color: #ef4444;
  color: #b91c1c;
  background: #fef2f2;
}

.iiice-vote-count {
  margin-left: auto;
  font-size: 14px;
  color: var(--iiice-text);
  font-weight: 500;
}

.iiice-vote-btn:hover .iiice-vote-count,
.iiice-vote-btn.is-voted .iiice-vote-count {
  color: inherit;
}

@media (max-width: 768px) {
  .iiice-extra-panel {
    margin-top: 12px;
    padding-top: 12px;
  }
  .iiice-vote-bar {
    gap: 10px;
    margin-bottom: 14px;
  }
  .iiice-vote-btn {
    min-width: 0;
    flex: 1;
    padding: 6px 12px;
    font-size: 14px;
    gap: 8px;
    border-radius: 28px;
  }
  .iiice-vote-btn img {
    width: 36px;
    height: 36px;
  }
  .iiice-vote-count {
    font-size: 13px;
  }
}

/* ============================================================
   详情页评论区样式增强
   ============================================================ */
.iiice-comment-section {
  margin-top: 0;
}
.iiice-comment-section .iiice-detail-section-title {
  margin-bottom: 12px;
}

.iiice-comment-section .msghead .tbname {
  font-size: 16px;
  font-weight: 600;
  color: var(--iiice-title);
}

.iiice-comment-section .msg {
  background: var(--iiice-white);
  border: 1px solid var(--iiice-border);
  border-radius: 12px;
  margin-bottom: 12px;
  padding: 12px 16px;
  list-style: none;
}

.iiice-comment-section .msgname {
  margin-bottom: 8px;
}

.iiice-comment-section .commentname a {
  color: var(--iiice-title);
  font-weight: 600;
}

.iiice-comment-section .msgarticle {
  color: var(--iiice-text);
  line-height: 1.7;
  border-top: 1px dashed var(--iiice-border);
  padding-top: 10px;
}

.iiice-comment-section #divCommentPost {
  background: var(--iiice-white);
  border: 1px solid var(--iiice-border);
  border-radius: 12px;
  padding: 16px;
  margin-top: 16px;
}

.iiice-comment-section .iiice-comment-heading {
  font-size: 16px;
  font-weight: 600;
  color: var(--iiice-title);
}

.iiice-comment-section .iiice-comment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.iiice-comment-section .iiice-comment-field input[type="text"],
.iiice-comment-section .iiice-comment-field input[type="email"] {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--iiice-border);
  border-radius: 8px;
  background: var(--iiice-white);
  color: var(--iiice-title);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.iiice-comment-section .iiice-comment-field input:focus {
  border-color: #1b54bc;
}

.iiice-comment-section textarea#txaArticle {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--iiice-border);
  border-radius: 8px;
  background: var(--iiice-white);
  color: var(--iiice-title);
  font-size: 14px;
  resize: vertical;
  outline: none;
  min-height: 90px;
  transition: border-color 0.2s;
}

.iiice-comment-section textarea#txaArticle:focus {
  border-color: #1b54bc;
}

.iiice-comment-section input[type="submit"].button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 22px;
  border: none;
  border-radius: 8px;
  background: #1b54bc;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.iiice-comment-section input[type="submit"].button:hover {
  background: #15409a;
  transform: translateY(-1px);
}

.iiice-comment-section .postbottom {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--iiice-text);
}

@media (max-width: 768px) {
  .iiice-comment-section .iiice-comment-grid {
    grid-template-columns: 1fr;
  }
}

/* 暗色模式适配 */
.dark-mode .iiice-vote-btn {
  background: #0f172a !important;
  border-color: #334155 !important;
  color: #e2e8f0 !important;
}

.dark-mode .iiice-vote-btn:hover {
  border-color: #3b82f6 !important;
  color: #60a5fa !important;
}

.dark-mode .iiice-vote-btn.is-voted {
  background: #052e16 !important;
  border-color: #22c55e !important;
  color: #86efac !important;
}

.dark-mode .iiice-vote-btn.iiice-vote-bad.is-voted {
  background: #450a0a !important;
  border-color: #ef4444 !important;
  color: #fca5a5 !important;
}

.dark-mode .iiice-extra-panel {
  border-top-color: #334155;
}

.dark-mode .iiice-comment-section .msg,
.dark-mode .iiice-comment-section #divCommentPost {
  background: #0f172a !important;
  border-color: #334155 !important;
}

.dark-mode .iiice-comment-section .msgarticle {
  border-top-color: #334155 !important;
  color: #cbd5e1 !important;
}

.dark-mode .iiice-comment-section .iiice-comment-field input,
.dark-mode .iiice-comment-section textarea#txaArticle {
  background: #16213e !important;
  border-color: #334155 !important;
  color: #e2e8f0 !important;
}