* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html, body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #333;
  background: #F5F5F5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
::-webkit-scrollbar { display: none; }
body { -ms-overflow-style: none; scrollbar-width: none; }
a { color: #0066CC; text-decoration: none; }
a:hover { text-decoration: underline; }
input, textarea, button { font-family: inherit; }
button { cursor: pointer; }

.wp, #wp { max-width: 960px; margin: 0 auto; padding: 12px 10px 20px; }

#hd {
  background: linear-gradient(135deg, #004B9D 0%, #0066CC 100%);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.hd-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hd-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
}
.hd-menu-toggle span {
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  transition: all 0.2s;
}
.hd-menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hd-menu-toggle.active span:nth-child(2) { opacity: 0; }
.hd-menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
.hd-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}
.hd-logo-icon {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}
.hd-logo-text {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
}
.hd-logo-text a { color: #fff; text-decoration: none; }
.hd-logo-text a:hover { color: #FFD700; }
.hd-actions {
  display: none;
  align-items: center;
  gap: 8px;
}
.hd-search-toggle {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 6px;
  padding: 8px;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
}
.hd-search-toggle:hover { background: rgba(255, 255, 255, 0.2); }
.hd-search-toggle svg { width: 20px; height: 20px; }
.hd-search-bar {
  display: none;
  padding: 8px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.1);
}
.hd-search-bar.active { display: block; }
.hd-search-form {
  display: flex;
  gap: 8px;
  max-width: 400px;
  margin: 0 auto;
}
.hd-search-input {
  flex: 1;
  padding: 10px 14px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.95);
  color: #333;
}
.hd-search-input::placeholder { color: #999; }
.hd-search-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  background: #FF8C00;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
}
.hd-search-btn:hover { background: #E07B00; }
.hd-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #004B9D;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.hd-menu.active { display: block; }
.hd-menu-content {
  display: flex;
  flex-direction: column;
  padding: 8px 0;
}
.hd-menu-content a {
  display: block;
  padding: 12px 16px;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.hd-menu-content a:last-child { border-bottom: none; }
.hd-menu-content a:hover,
.hd-menu-content a.active {
  background: rgba(255, 255, 255, 0.1);
}
.hd-menu-admin {
  background: rgba(255, 102, 0, 0.2) !important;
}
.hd-menu-admin:hover {
  background: rgba(255, 102, 0, 0.3) !important;
}
.hd-menu-login {
  background: rgba(255, 255, 255, 0.05) !important;
}
.hd-menu-login:hover {
  background: rgba(255, 255, 255, 0.15) !important;
}

.nv-desktop {
  display: flex;
  align-items: center;
  gap: 0;
}
.nv-desktop a {
  display: block;
  padding: 10px 18px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.15s;
}
.nv-desktop a:first-child { border-left: 1px solid rgba(255, 255, 255, 0.1); }
.nv-desktop a:hover,
.nv-desktop a.active {
  background: rgba(255, 255, 255, 0.15);
}
.nv-desktop a.nav-admin { background: rgba(255, 102, 0, 0.3); }
.nv-desktop a.nav-admin:hover { background: rgba(255, 102, 0, 0.5); }
.nv-desktop a.nav-login { background: rgba(255, 255, 255, 0.08); }
.nv-desktop a.nav-login:hover { background: rgba(255, 255, 255, 0.2); }

#nv {
  background: #004080;
  border-bottom: 1px solid #003366;
}
.nv-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 10px;
  display: flex;
  align-items: center;
  min-height: 38px;
}
.nv-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.nv-search-form {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nv-search-input {
  width: 140px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 13px;
  border-radius: 4px;
  outline: none;
}
.nv-search-input::placeholder { color: rgba(255, 255, 255, 0.6); }
.nv-search-btn {
  padding: 5px 14px;
  border: none;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.nv-search-btn:hover { background: rgba(255, 255, 255, 0.25); }

.nv-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  margin-right: 8px;
}
.nv-toggle span {
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
}
.nv-list {
  display: flex;
  align-items: center;
}

.bm {
  background: #fff;
  border-radius: 8px;
  margin-bottom: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.bm_h {
  padding: 12px 14px;
  border-bottom: 1px solid #F0F0F0;
  font-size: 14px;
  font-weight: 700;
  color: #333;
  display: flex;
  align-items: center;
  gap: 8px;
}
.bm_c {
  padding: 12px 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-primary {
  background: #0066CC;
  color: #fff;
}
.btn-primary:hover { background: #0055AA; }
.btn-orange {
  background: linear-gradient(135deg, #FF8C00, #E07B00);
  color: #fff;
}
.btn-orange:hover {
  background: linear-gradient(135deg, #FFA000, #FF8C00);
}

.sp-header {
  background: linear-gradient(135deg, #0066CC, #004B9D);
  padding: 24px 0;
  margin-bottom: 16px;
  border-radius: 0 0 12px 12px;
}
.sp-header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.sp-avatar {
  position: relative;
}
.sp-avatar-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 700;
  color: #fff;
}
.sp-info {
  flex: 1;
}
.sp-name {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}
.sp-bio {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 12px;
}
.sp-stats {
  display: flex;
  gap: 24px;
}
.sp-stat {
  text-align: center;
}
.sp-stat-num {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}
.sp-stat-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

.ct3_a {
  display: flex;
  gap: 16px;
}
.appl {
  width: 180px;
  flex-shrink: 0;
}
.sp-main {
  flex: 1;
}
.sd {
  width: 260px;
  flex-shrink: 0;
}

.tbn {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 12px;
}
.tbn h2 {
  font-size: 13px;
  font-weight: 700;
  color: #666;
  padding: 10px 12px;
  border-bottom: 1px solid #F0F0F0;
  margin: 0;
}
.tbn ul {
  list-style: none;
  padding: 4px 0;
}
.tbn ul li {
  margin: 0;
}
.tbn ul li a {
  display: block;
  padding: 8px 12px;
  font-size: 13px;
  color: #333;
  text-decoration: none;
  transition: background 0.15s;
}
.tbn ul li a:hover {
  background: #F5F8FA;
}
.tbn ul li.s-activ a {
  background: #E8F0FE;
  color: #0066CC;
  font-weight: 600;
}

.sp-tab-content {
  display: none;
}
.sp-tab-content.s-activ {
  display: block;
}

.sp-card {
  background: #fff;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
}
.sp-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #333;
  margin-bottom: 8px;
}
.sp-card-desc {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
}

.sp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.sp-grid-item {
  background: #fff;
  border-radius: 8px;
  padding: 12px;
  text-align: center;
}
.sp-grid-item-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 8px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sp-grid-item-title {
  font-size: 13px;
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}
.sp-grid-item-desc {
  font-size: 12px;
  color: #999;
}

.sp-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.sp-cloud-item {
  padding: 4px 10px;
  background: #E8F0FE;
  border-radius: 12px;
  font-size: 12px;
  color: #0066CC;
}

.sp-stat-list {
  list-style: none;
}
.sp-stat-list li {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #F5F5F5;
}
.sp-stat-list li:last-child { border-bottom: none; }
.sp-stat-key {
  color: #666;
  font-size: 13px;
}
.sp-stat-val {
  color: #333;
  font-weight: 600;
  font-size: 13px;
}

.sp-rule-panel {
  background: #FFF8F0;
  border: 1px solid #FFE4CC;
  border-radius: 6px;
  padding: 12px;
}
.sp-rule-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed #FFE4CC;
}
.sp-rule-row:last-child { border-bottom: none; }
.sp-rule-type {
  width: 60px;
  font-size: 12px;
  font-weight: 700;
  color: #E07B00;
}
.sp-rule-desc {
  font-size: 12px;
  color: #666;
}

.sp-rule-mini {
  list-style: none;
  padding: 0;
}
.sp-rule-mini li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
}
.sp-rule-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.sp-rule-dot-major { background: #C62828; }
.sp-rule-dot-minor { background: #1976D2; }
.sp-rule-dot-patch { background: #2E7D32; }

.sp-mini-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.sp-mini-cloud-item {
  padding: 3px 8px;
  background: #F0F0F0;
  border-radius: 4px;
  font-size: 11px;
  color: #666;
}

.version-detail {
  background: #fff;
  border-radius: 8px;
  margin-bottom: 12px;
}
.version-detail .bm_h {
  display: flex;
  align-items: center;
  gap: 8px;
}
.version-badge {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 6px;
  background: #D20C0C;
  border-radius: 2px;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  line-height: 1.5;
  vertical-align: middle;
}
.version-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #D20C0C;
  border-radius: 50%;
  vertical-align: middle;
  margin-left: 4px;
  flex-shrink: 0;
}
.version-alert {
  margin: 8px 12px;
  padding: 8px 12px;
  background: #FFF8F0;
  border: 1px solid #E0A060;
  border-radius: 2px;
  font-size: 12px;
  color: #996633;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.5;
}
.version-alert svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  stroke: #E0A060;
}
.version-entries {
  list-style: none;
  padding: 0;
}
.version-entry {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #F5F5F5;
}
.version-entry:last-child { border-bottom: none; }
.version-entry-dot {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.version-entry-dot svg {
  width: 8px;
  height: 8px;
  color: #0066CC;
}

.thread-list {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}
.thread-list th {
  background: #F5F8FA;
  padding: 10px 12px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: #666;
  border-bottom: 1px solid #E8E8E8;
}
.thread-list td {
  padding: 12px;
  border-bottom: 1px solid #F5F5F5;
}
.thread-list tr:hover td {
  background: #FAFAFA;
}
.thread-title {
  font-size: 14px;
  color: #333;
  font-weight: 500;
}
.thread-title:hover {
  color: #0066CC;
}
.thread-cat {
  font-size: 12px;
  color: #999;
}
.thread-date {
  font-size: 12px;
  color: #999;
}

.thread-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.thread-search-form {
  display: flex;
  gap: 8px;
}
.thread-search-input {
  padding: 8px 12px;
  border: 1px solid #DDD;
  border-radius: 6px;
  font-size: 13px;
  width: 200px;
}
.thread-search-input::placeholder { color: #999; }
.thread-post-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: linear-gradient(135deg, #E86A17, #D85A0A);
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
}
.thread-post-btn:hover {
  background: linear-gradient(135deg, #FF7A27, #E86A17);
}

.reader-article {
  background: #fff;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 16px;
}
.reader-title {
  font-size: 22px;
  font-weight: 700;
  color: #333;
  margin-bottom: 12px;
  line-height: 1.4;
}
.reader-meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: #999;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #F0F0F0;
}
.reader-content {
  font-size: 15px;
  line-height: 1.8;
  color: #333;
}
.reader-content h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 20px 0 12px;
  color: #333;
}
.reader-content h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 16px 0 10px;
  color: #444;
}
.reader-content p {
  margin-bottom: 12px;
}
.reader-content ul,
.reader-content ol {
  padding-left: 24px;
  margin-bottom: 12px;
}
.reader-content li {
  margin-bottom: 6px;
}
.reader-content a {
  color: #0066CC;
}

.form-group {
  margin-bottom: 16px;
}
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
}
.form-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #DDD;
  border-radius: 6px;
  font-size: 14px;
  background: #fff;
}
.form-textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #DDD;
  border-radius: 6px;
  font-size: 14px;
  background: #fff;
  min-height: 150px;
  resize: vertical;
}
.form-select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #DDD;
  border-radius: 6px;
  font-size: 14px;
  background: #fff;
}

.login-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.login-modal.active {
  display: flex;
}
.login-modal-content {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  width: 90%;
  max-width: 360px;
}
.login-modal-title {
  font-size: 18px;
  font-weight: 700;
  color: #333;
  margin-bottom: 20px;
  text-align: center;
}
.login-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  font-size: 20px;
  color: #999;
  cursor: pointer;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: 20px;
}
.pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  font-size: 13px;
  color: #666;
  text-decoration: none;
  background: #fff;
  transition: all 0.2s;
}
.pagination a:hover {
  background: #E8F0FE;
  color: #0066CC;
}
.pagination a.active {
  background: #0066CC;
  color: #fff;
}

.ft {
  background: #333;
  padding: 24px 0;
  margin-top: 24px;
}
.ft-main {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 12px;
  display: flex;
  justify-content: space-between;
}
.ft-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ft-logo-icon {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}
.ft-logo-text {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}
.ft-links {
  display: flex;
  gap: 16px;
}
.ft-links a {
  font-size: 13px;
  color: #999;
  text-decoration: none;
}
.ft-links a:hover {
  color: #fff;
}
.ft-copyright {
  text-align: center;
  padding-top: 16px;
  margin-top: 16px;
  border-top: 1px solid #444;
  font-size: 12px;
  color: #666;
}

@media (max-width: 768px) {
  .wp { padding: 0 8px; }
  #wp { padding: 12px 8px 20px; }

  .hd-logo-text { font-size: 15px; }
  .hd-logo-icon { width: 32px; height: 32px; font-size: 16px; }
  .hd-info { display: none; }

  .nv-toggle { display: block; }
  .nv-desktop.nv-list { display: none; }
  .nv-desktop.nv-list.nv-open { display: flex; flex-direction: column; width: 100%; }
  .nv-desktop.nv-list.nv-open a { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.05); padding: 10px 12px; }
  .nv-desktop.nv-right { display: none; }
  .nv-desktop.nv-right.nv-open { display: flex; width: 100%; padding: 8px 12px; }
  .nv-search-input { width: 100%; }

  .profile-grid { flex-direction: column; gap: 20px; }
  .digit-grid { min-width: unset; }
  .digit-block-value { font-size: 22px; }

  .virtue-grid { grid-template-columns: repeat(2, 1fr); }
  .rule-row { flex-direction: column; align-items: flex-start; gap: 6px; }
  .rule-row-type { width: auto; }

  .release-inner { flex-direction: column; gap: 16px; text-align: center; }
  .release-digit { font-size: 36px; }
  .release-stats { justify-content: center; gap: 16px; }

  .thread-toolbar { flex-direction: column; align-items: stretch; gap: 10px; }
  .thread-search-form { width: 100%; }
  .thread-search-input { flex: 1; }

  .related-grid { grid-template-columns: 1fr; }

  .reader-article { padding: 16px; font-size: 13px; }
  .reader-title { font-size: 18px; }

  .forum-header { padding: 16px 0 12px; }
  .forum-title { font-size: 18px; }
  .forum-stats { gap: 12px; flex-wrap: wrap; }

  .cat-item { flex-wrap: wrap; }
  .cat-item-meta { width: 100%; text-align: left; margin-top: 6px; }

  .ct3_a { flex-direction: column; }
  .appl { width: 100%; }
  .sd { width: 100%; }
  .sp-header-inner { flex-direction: column; text-align: center; gap: 16px; }
  .sp-avatar-img { width: 60px; height: 60px; font-size: 26px; }
  .sp-name { font-size: 20px; }
  .sp-stats { justify-content: center; }
  .sp-grid { grid-template-columns: repeat(2, 1fr); }
  .sp-rule-row { flex-direction: column; align-items: flex-start; gap: 6px; }
  .sp-rule-type { width: auto; }
  .tbn ul { display: flex; flex-wrap: wrap; gap: 2px; padding: 6px; }
  .tbn ul li { flex: 1; min-width: 0; }
  .tbn ul li a { text-align: center; font-size: 12px; padding: 6px 4px; border-top: none; border: 1px solid #F0F0F0; border-radius: 2px; }
  .tbn ul li.s-activ a { border-left: none; padding-left: 4px; }
  .sp-tab-content { min-height: auto; }
  .sp-card { padding: 14px 10px; }
  .version-card { padding: 14px; }

  .ft-main { flex-direction: column; gap: 12px; text-align: center; }
  .ft-brand { align-items: center; justify-content: center; }
}

@media (max-width: 480px) {
  .virtue-grid { grid-template-columns: 1fr; }
  .digit-grid { grid-template-columns: 1fr 1fr; }
  .thread-list th:nth-child(3),
  .thread-list td:nth-child(3) { display: none; }
}