/* HarkerTeach — knowsell 风格知识站 */
:root {
  --accent: #ff6f06;
  --accent-dark: #e45f00;
  --text: #333;
  --muted: #999;
  --line: #e8e8e8;
  --bg: #f7f9fc;
  --card: #fff;
  --w: 1200px;
  --radius: 4px;
  --font: "PingFang SC", "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; color: var(--text); background: #fff; font-family: var(--font); font-size: 14px; line-height: 1.6; }
a { color: var(--text); text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; border: 0; vertical-align: middle; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.clearfix::after { content: ""; display: table; clear: both; }

.wrap, .container { width: min(var(--w), calc(100% - 32px)); margin: 0 auto; }

/* Header */
.eyoucms_head {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 1px 0 rgba(0,0,0,.02);
}
.eyoucms_inside {
  width: min(var(--w), calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  min-height: 64px;
  gap: 20px;
}
.eyou_logo { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.eyou_logo .brand-text {
  font-size: 22px; font-weight: 800; letter-spacing: .02em; color: #222;
}
.eyou_logo .brand-text span { color: var(--accent); }
.eyoucms_main { flex: 1; min-width: 0; }
.eyou_dh {
  display: flex; align-items: center; gap: 2px;
  flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
}
.eyou_dh::-webkit-scrollbar { display: none; }
.eyou_arr {
  padding: 8px 10px; color: #333; font-size: 15px; border-radius: 3px;
  white-space: nowrap; flex-shrink: 0;
}
.eyou_arr.active, .eyou_arr:hover { color: var(--accent); }
.eyou_search { position: relative; flex-shrink: 0; margin-left: auto; }
.eyou_search form { margin: 0; }
.eyou_search input {
  width: 180px; height: 34px; border: 1px solid #e3e4e5; border-radius: 17px;
  padding: 0 36px 0 14px; outline: none; background: #f7f8fa;
}
.eyou_search input:focus { border-color: var(--accent); background: #fff; }
.eyou_search button {
  position: absolute; right: 4px; top: 2px; width: 30px; height: 30px;
  border: 0; background: transparent; cursor: pointer; color: #888;
}
.eyou_column { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.quiz { display: flex; gap: 8px; }
.ey_tw {
  display: inline-flex; align-items: center; gap: 4px;
  height: 32px; padding: 0 12px; border-radius: 16px;
  background: #fff5ee; color: var(--accent); font-size: 13px;
}
.ey_tw.ey_tiw { background: var(--accent); color: #fff; }
.ey_tw.ey_tiw:hover { background: var(--accent-dark); color: #fff; }
.ey_enroll { font-size: 14px; color: #333; }
.ey_enroll a { color: #333; }
.ey_enroll a:hover { color: var(--accent); }
.ey_xie { color: #dcdde0; margin: 0 6px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 36px; padding: 0 16px; border-radius: 3px; border: 1px solid var(--accent);
  background: #fff; color: var(--accent); cursor: pointer; font-size: 14px;
}
.btn:hover { background: #fff5ee; color: var(--accent); }
.btn-solid { background: var(--accent); color: #fff; }
.btn-solid:hover { background: var(--accent-dark); color: #fff; border-color: var(--accent-dark); }
.btn-ghost { border-color: #ddd; color: #666; }
.input, select.input, textarea.input {
  width: 100%; height: 38px; border: 1px solid #ddd; border-radius: 3px;
  padding: 0 12px; font: inherit; background: #fff;
}
textarea.input { height: auto; padding: 10px 12px; }
.input:focus { outline: none; border-color: var(--accent); }
.field { margin-bottom: 14px; }
.field label { display: block; margin-bottom: 6px; color: #666; }

/* Home icon bar */
.eyou_xs {
  display: flex; align-items: center; padding: 24px 0 8px; gap: 0;
}
.eyou_zc {
  width: 200px; display: flex; justify-content: space-around; position: relative; padding-right: 16px;
}
.eyou_zc::after { content: ""; position: absolute; right: 0; top: 8px; width: 1px; height: 40px; background: #e3e4e5; }
.eyou_zc .icon { text-align: center; color: #333; font-size: 12px; }
.eyou_zc .icon img { width: 28px; height: 28px; }
.eyou_zc .icon p { margin: 4px 0 0; }
.centre { flex: 1; position: relative; padding: 0 20px; }
.centre::after { content: ""; position: absolute; right: 0; top: 8px; width: 1px; height: 40px; background: #e3e4e5; }
.centre ul { display: flex; flex-wrap: wrap; gap: 4px 0; }
.centre ul li { width: 16.66%; }
.centre ul li a { color: #333; font-size: 14px; }
.eyou_yc { width: 260px; display: flex; flex-wrap: wrap; }
.eyou_yc .ey_xm {
  width: 50%; display: flex; align-items: center; justify-content: center; gap: 6px;
  color: #333; padding: 6px 0;
}
.eyou_yc .ey_xm img { width: 22px; }

/* Wenku hero */
.ks-wenku-hero {
  display: flex; margin-top: 16px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; min-height: 320px;
}
.ks-wenku-col { box-sizing: border-box; }
.ks-wenku-hd {
  display: flex; align-items: center; gap: 8px; padding: 12px 14px 10px;
  font-size: 16px; font-weight: 700; border-bottom: 1px solid #f0f0f0;
}
.ks-wenku-hd img { width: 20px; height: 20px; }
.ks-wenku-cat { width: 22%; border-right: 1px solid var(--line); }
.ks-wenku-cat-box { padding: 8px 10px 14px; }
.ks-cat-grid { display: flex; flex-wrap: wrap; }
.ks-cat-grid li { width: 50%; padding: 6px 4px; }
.ks-cat-grid a {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: #444;
}
.ks-cat-grid a i { font-style: normal; color: #bbb; }
.ks-wenku-featured { width: 38%; border-right: 1px solid var(--line); }
.ks-feature-item { padding: 12px 14px; border-bottom: 1px solid #f0f0f0; }
.ks-feature-item:last-child { border-bottom: 0; }
.ks-feature-hd { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.ks-feature-hd h3 { margin: 0; font-size: 15px; line-height: 1.45; flex: 1; }
.ks-feature-hd h3 a { color: #222; }
.ks-date-pill {
  flex-shrink: 0; font-size: 12px; color: #999; background: #f5f5f5;
  border-radius: 10px; padding: 2px 8px; height: fit-content;
}
.ks-feature-body { display: flex; gap: 12px; }
.ks-thumb {
  width: 96px; height: 72px; flex-shrink: 0; border-radius: 3px; overflow: hidden;
  background: #f3f5f8; display: block; position: relative;
}
.ks-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ks-feature-txt p { margin: 0; color: #888; font-size: 13px; line-height: 1.5; }
.ks-wenku-list { width: 40%; padding: 8px 0; }
.ks-wenku-list li {
  display: flex; justify-content: space-between; gap: 10px;
  padding: 8px 14px; border-bottom: 1px dashed #f0f0f0;
}
.ks-wenku-list li a { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #333; }
.ks-wenku-list .ks-date { color: #bbb; font-size: 12px; flex-shrink: 0; }

/* Sections */
.ks-section { margin: 28px auto; }
.ks-section-hd {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px;
}
.ks-section-hd h2 { margin: 0; font-size: 22px; color: #181818; }
.ks-section-hd .more { color: #999; font-size: 13px; }
.ks-card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 28px; }
.ks-doc-card {
  display: flex; gap: 14px; background: #fff; padding: 14px; border-radius: 6px;
  border: 1px solid transparent; transition: .2s;
}
.ks-doc-card:hover { border-color: #ffe0c7; box-shadow: 0 6px 18px rgba(255,111,6,.08); transform: translateY(-2px); }
.ks-doc-card .cover {
  width: 110px; height: 82px; border-radius: 4px; overflow: hidden; background: #f3f5f8; flex-shrink: 0;
}
.ks-doc-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.ks-doc-card h3 { margin: 0 0 6px; font-size: 16px; }
.ks-doc-card h3 a { color: #333; }
.ks-doc-card .desc { margin: 0; color: #949596; font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ks-doc-card .meta { margin-top: 8px; color: #c3c3c3; font-size: 12px; display: flex; gap: 12px; }
.tag {
  display: inline-block; font-size: 12px; padding: 1px 6px; border-radius: 2px;
  background: #fef6f6; color: #666;
}
.tag.paid { background: #fff5ee; color: var(--accent); }
.tag.vip { background: #fff8e6; color: #d48806; }
.tag.free { background: #eefaf1; color: #389e0d; }

/* List page */
.ks-crumb {
  background: #fafafa; border-bottom: 1px solid #f0f0f0; padding: 12px 0; color: #888; font-size: 13px;
}
.ks-crumb a { color: #666; }
.list-layout { display: flex; gap: 24px; padding: 20px 0 40px; align-items: flex-start; }
.list-main { flex: 1; background: #fff; border: 1px solid var(--line); border-radius: 4px; min-width: 0; }
.list-main .article-nav {
  margin: 0; padding: 0 20px; line-height: 50px; font-size: 18px; border-bottom: 1px solid #eee;
}
.ks-list-subtabs { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 20px; border-bottom: 1px solid #f5f5f5; }
.ks-list-subtabs a {
  padding: 4px 12px; border-radius: 14px; background: #f5f5f5; color: #666; font-size: 13px;
}
.ks-list-subtabs a.active, .ks-list-subtabs a:hover { background: var(--accent); color: #fff; }
.article-card {
  display: flex; gap: 16px; padding: 18px 20px; border-bottom: 1px solid #f0f0f0;
}
.article-card .figure {
  width: 160px; height: 100px; border-radius: 4px; overflow: hidden; background: #f3f5f8; flex-shrink: 0;
}
.article-card .figure img { width: 100%; height: 100%; object-fit: cover; }
.article-card .article-title { font-size: 18px; color: #222; }
.article-card .desc { color: #888; margin: 8px 0; }
.article-card .info { color: #bbb; font-size: 12px; display: flex; gap: 14px; }

.star-article-r { width: 280px; flex-shrink: 0; }
.article-hot-l {
  background: #fff; border: 1px solid var(--line); border-radius: 4px; margin-bottom: 16px; padding: 0 0 8px;
}
.article-hot-l h2 {
  margin: 0; padding: 14px 16px; font-size: 16px; border-bottom: 1px solid #f0f0f0;
}
.article-hot-l li {
  display: flex; gap: 8px; padding: 8px 16px; align-items: flex-start;
}
.article-hot-l li em {
  width: 18px; height: 18px; line-height: 18px; text-align: center; font-style: normal;
  background: #c1c3c8; color: #fff; font-size: 12px; border-radius: 2px; flex-shrink: 0; margin-top: 2px;
}
.article-hot-l li:nth-child(1) em { background: #f34f1c; }
.article-hot-l li:nth-child(2) em { background: #ff8447; }
.article-hot-l li:nth-child(3) em { background: #ffb95f; }
.article-hot-l li a {
  flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #333;
}

/* Detail */
.news_aricle { display: flex; gap: 24px; padding: 20px 0 40px; align-items: flex-start; }
.aricle_left { flex: 1; min-width: 0; }
.min_box { background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 24px 28px; }
.aricle_tiele h1 { margin: 0 0 12px; font-size: 26px; line-height: 1.35; }
.aricle_banquan { color: #999; font-size: 13px; display: flex; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.aricle_content {
  font-size: 15px; line-height: 1.85; color: #333; white-space: pre-wrap; word-break: break-word;
}
.lock-box {
  margin-top: 20px; padding: 24px; border: 1px dashed #ffd0a8; background: #fffaf5; border-radius: 4px; text-align: center;
}
.lock-box h3 { margin: 0 0 8px; color: var(--accent); }
.yey-banquan-sm {
  margin-top: 24px; padding: 12px; background: #fafafa; color: #999; font-size: 12px; border-radius: 3px;
}
.aricle-tuijian { margin-top: 28px; }
.aricle-tuijian .reading { font-size: 16px; border-left: 3px solid var(--accent); padding-left: 10px; }
.aricle-tuijian .post-item { margin: 8px 0; }
.attach-list { margin-top: 20px; }
.attach-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 12px; border: 1px solid #f0f0f0; border-radius: 3px; margin-bottom: 8px;
}

/* User centre */
.ey-body-bg { background: var(--bg); padding: 20px 0 40px; }
.ey-container { display: flex; gap: 16px; align-items: flex-start; }
.ey-nav {
  width: 220px; background: #fff; border-radius: 4px; border: 1px solid var(--line); padding: 12px 0; flex-shrink: 0;
}
.ey-nav a {
  display: block; padding: 10px 20px; color: #555; border-left: 3px solid transparent;
}
.ey-nav a.active, .ey-nav a:hover { color: var(--accent); background: #fff8f2; border-left-color: var(--accent); }
.ey-con { flex: 1; min-width: 0; }
.main-bg { background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 20px 24px; }
.column-title { font-size: 18px; font-weight: 700; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid #f0f0f0; }
.user-info-row { display: flex; gap: 24px; align-items: center; margin-bottom: 20px; }
.user-avatar {
  width: 72px; height: 72px; border-radius: 50%; background: linear-gradient(135deg, #ffb067, #ff6f06);
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 700;
}
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 16px 0; }
.stat { background: #fafafa; border: 1px solid #f0f0f0; border-radius: 4px; padding: 14px; }
.stat strong { display: block; font-size: 22px; color: var(--accent); }

.table { width: 100%; border-collapse: collapse; }
.table th, .table td { border-bottom: 1px solid #f0f0f0; padding: 10px 8px; text-align: left; }
.messages { list-style: none; margin: 12px auto; width: min(var(--w), calc(100% - 32px)); }
.messages li { background: #fff8f2; border: 1px solid #ffe0c7; color: #a85a00; padding: 10px 14px; margin-bottom: 8px; border-radius: 3px; }

.form-box {
  max-width: 420px; margin: 40px auto; background: #fff; border: 1px solid var(--line);
  border-radius: 6px; padding: 28px; box-shadow: 0 8px 24px rgba(0,0,0,.04);
}
.form-box h2 { margin: 0 0 18px; text-align: center; }

.eyou_foot {
  margin-top: 40px; padding: 24px 0; background: #fafafa; border-top: 1px solid #eee;
  text-align: center; color: #999; font-size: 13px;
}

/* Staff keep usable */
.staff-layout { display: grid; grid-template-columns: 220px 1fr; gap: 16px; padding: 20px 0 40px; }
.staff-side { background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 12px; height: fit-content; position: sticky; top: 80px; }
.staff-side a { display: block; padding: 8px 10px; color: #555; }
.staff-side a:hover { color: var(--accent); }

/* VIP compare (knowsell tequan) */
.vip-banner {
  background: linear-gradient(120deg, #ff8a3d 0%, #ff6f06 45%, #e85d00 100%);
  color: #fff; text-align: center; padding: 48px 16px;
}
.vip-banner p { margin: 6px 0; font-size: 18px; font-weight: 600; }
.compare { max-width: 900px; margin: 0 auto 48px; padding: 0 16px; }
.compare-title { text-align: center; margin: 28px 0 18px; font-size: 22px; font-weight: 700; }
.compare-title span { border-bottom: 3px solid var(--accent); padding-bottom: 6px; }
.compare-list, .compare-list1 {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr; align-items: center;
  border: 1px solid #eee; border-bottom: 0; min-height: 52px; background: #fff;
}
.compare-list1:last-child { border-bottom: 1px solid #eee; }
.compare-list { background: #fff8f2; font-weight: 700; }
.compare-list1.alt { background: #f8fafc; }
.compare-list li, .compare-list1 li { padding: 12px 16px; text-align: center; list-style: none; }
.compare-list li:first-child, .compare-list1 li:first-child { text-align: left; }
.compare-list .te, .compare-list1 .te { color: var(--accent); font-weight: 700; }
.vip-btn {
  display: inline-block; background: var(--accent); color: #fff !important;
  padding: 8px 22px; border-radius: 20px; font-weight: 700;
}
.vip-btn:hover { background: var(--accent-dark); color: #fff !important; }

.lock-box .pay-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }
.lock-price { font-size: 28px; color: var(--accent); font-weight: 800; margin: 8px 0; }

@media (max-width: 960px) {
  .ks-wenku-hero, .list-layout, .news_aricle, .ey-container, .staff-layout, .eyou_xs { flex-direction: column; display: flex; }
  .ks-wenku-cat, .ks-wenku-featured, .ks-wenku-list, .star-article-r, .ey-nav, .staff-side, .eyou_zc, .centre, .eyou_yc { width: 100%; border-right: 0; }
  .ks-card-grid { grid-template-columns: 1fr; }
  .article-card { flex-direction: column; }
  .article-card .figure { width: 100%; height: 160px; }
  .eyoucms_inside { flex-wrap: wrap; gap: 10px 16px; padding: 10px 0; }
  .eyoucms_main { order: 3; flex: 1 1 100%; }
  .eyou_search { margin-left: 0; order: 2; }
  .eyou_search input { width: 150px; }
  .eyou_column { margin-left: auto; }
  .compare-list, .compare-list1 { grid-template-columns: 1fr; }
  .compare-list li:first-child, .compare-list1 li:first-child { text-align: center; font-weight: 700; }
}
