@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;
}

.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;
}

.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-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;
}

.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;
}

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

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

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

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

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

.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: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

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

.iiice-section-head a,
.iiice-section-head span {
  font-size: 12px;
  color: #8a949f;
}

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

.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;
}

.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: 0;
  font-size: 15px;
  color: #2f3640;
}

.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: #94a3b8;
  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-header-inner {
    min-height: 66px;
    gap: 10px;
    flex-wrap: nowrap;
    align-items: center;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .iiice-brand {
    min-width: 0;
    gap: 8px;
    flex: 0 0 auto;
  }

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

  .iiice-brand-text {
    display: none;
  }

  .iiice-search {
    display: none;
  }

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

  .iiice-quick {
    width: auto;
    flex: 1;
    justify-content: flex-end;
    order: 0;
    overflow-x: auto;
    padding-bottom: 0;
  }

  .iiice-quick-item {
    width: 56px;
    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;
  }

  .iiice-card span {
    font-size: 12px;
  }

  .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;
  }
}

@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;
  }
}
