* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.7;
  color: #2d2d2d;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

html, body {
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Notice */
.notice {
  background: #fff5f0;
  border-bottom: 1px solid #fce4d6;
  padding: 10px 16px;
  font-size: 13px;
  color: #c2410c;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 400;
  line-height: 1.5;
}

.notice-icon {
  flex-shrink: 0;
}

body {
  padding-top: 0;
}

/* Header */
header {
  border-bottom: 1px solid #f0f0f0;
  position: fixed;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  z-index: 300;
  width: 100%;
  box-sizing: border-box;
}

body.rtl header .container {
  direction: rtl;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
  gap: 8px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.logo {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.3px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 0;
}

.logo img {
  height: 28px;
  width: auto;
}

.badge-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

nav {
  display: flex;
  align-items: center;
  height: 100%;
  flex-wrap: nowrap;
}

nav a {
  display: flex;
  align-items: center;
  height: 100%;
  margin-left: 0;
  text-decoration: none;
  color: #555;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s;
  letter-spacing: 0;
  padding: 0 8px;
  margin: 0;
  white-space: nowrap;
}

a.logo,
.logo a,
a.logo:visited,
.logo a:visited,
a.logo:hover,
.logo a:hover,
a.logo:active,
.logo a:active {
  color: #1a1a1a;
  text-decoration: none !important;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo:hover {
  color: #1a1a1a;
}

.logo img {
  height: 32px;
  width: auto;
}

.badge {
  font-size: 11px;
  font-weight: 600;
  color: #1d9bf0;
  background: rgba(29, 155, 240, 0.08);
  border: 1px solid rgba(29, 155, 240, 0.2);
  padding: 2px 8px;
  border-radius: 10px;
  letter-spacing: 0.2px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.badge-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

nav {
  display: flex;
  align-items: center;
  height: 100%;
  flex-wrap: nowrap;
}

nav a {
  display: flex;
  align-items: center;
  height: 100%;
  margin-left: 4px;
  text-decoration: none;
  color: #555;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.2s;
  letter-spacing: 0.2px;
  padding: 0 14px;
  margin: 0 1px;
  white-space: nowrap;
}

nav a:hover {
  color: #c41d3f;
  background: rgba(196, 29, 63, 0.06);
}

/* Hero */
.hero {
  padding: 100px 0 80px;
  text-align: center;
  background: linear-gradient(180deg, #fafafa 0%, #fff 100%);
}

.hero h1 {
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 20px;
  color: #1a1a1a;
  letter-spacing: -0.5px;
  line-height: 1.25;
}

.hero p {
  font-size: 17px;
  color: #666;
  margin-bottom: 36px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

.btn {
  display: inline-block;
  padding: 13px 36px;
  background: #c41d3f;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  transition: background 0.2s, transform 0.15s;
}

.btn:hover {
  background: #a01732;
  transform: translateY(-1px);
}

.hero-divider {
  max-width: 960px;
  margin: 24px auto 20px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-alert-label {
  font-size: 13px;
  color: #c41d3f;
  font-weight: 600;
  flex-shrink: 0;
}

.hero-alert-rotate {
  width: 420px;
  flex-shrink: 0;
  height: 20px;
  overflow: hidden;
  position: relative;
}

.alert-text {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  font-size: 13px;
  color: #555;
}

.alert-text:first-child {
  animation: slideOutUp 4s infinite;
}

.alert-text:last-child {
  animation: slideInUp 4s infinite;
}

.alert-text a {
  color: #555;
  text-decoration: none;
}

.alert-text a:hover {
  color: #c41d3f;
  text-decoration: underline;
}

@keyframes slideOutUp {
  0%, 42% { transform: translateY(0); }
  50% { transform: translateY(-100%); }
  99.9% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

@keyframes slideInUp {
  0%, 42% { transform: translateY(100%); }
  50% { transform: translateY(0); }
  92% { transform: translateY(0); }
  100% { transform: translateY(-100%); }
}

.btn-outline {
  background: transparent;
  color: #555;
  border: 1px solid #ddd;
  margin-left: 12px;
}

.btn-outline:hover {
  background: #fafafa;
  border-color: #ccc;
}

/* Stats */
.stats {
  padding: 40px 0;
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  text-align: center;
}

.grid-4 strong {
  display: block;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #c41d3f;
}

.grid-4 span {
  font-size: 13px;
  color: #999;
  letter-spacing: 0.3px;
}

/* Sections */
section {
  padding: 72px 0;
  scroll-margin-top: 80px;
}

section h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 36px;
  color: #1a1a1a;
  letter-spacing: -0.3px;
}

section h2::after {
  content: '';
  display: block;
  width: 32px;
  height: 3px;
  background: #c41d3f;
  margin-top: 12px;
  border-radius: 2px;
}

/* Features */
.features-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: #f0f0f0;
  border: 1px solid #f0f0f0;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
}

.features-list .item {
  background: #fff;
  padding: 36px 28px;
}

.features-list .item h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #1a1a1a;
}

.features-list .item p {
  font-size: 14px;
  color: #777;
  line-height: 1.7;
}

.features-secondary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: #f0f0f0;
  border-left: 1px solid #f0f0f0;
  border-right: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
  border-radius: 0 0 8px 8px;
  overflow: hidden;
}

.features-secondary .item {
  background: #fff;
  padding: 32px 24px;
  text-align: center;
}

.features-secondary .item h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #1a1a1a;
}

.features-secondary .item p {
  font-size: 13px;
  color: #999;
  line-height: 1.7;
}

/* Versions */
.version-group {
  margin-bottom: 28px;
}

.version-group h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0f0f0;
  color: #1a1a1a;
}

.version-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.version-tags span {
  padding: 8px 16px;
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 6px;
  font-size: 14px;
  color: #555;
  transition: all 0.2s;
}

.version-tags span:hover {
  background: #f0f0f0;
  border-color: #ddd;
}

/* Download */
.download {
  background: #fafafa;
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
}

.password-line {
  margin-bottom: 8px;
  text-decoration: underline wavy #1d9bf0;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.password-line strong {
  color: #333;
}

.password-wave {
  color: #333;
  font-weight: 600;
}

.download-box {
  padding: 0px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  margin-top: 16px;
}

.download-box p {
  font-size: 14px;
  margin-bottom: 8px;
  color: #555;
}

.download-box strong {
  display: inline;
  color: #333;
  font-weight: 600;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.download-box.compare-grid {
  display: grid;
  grid-template-columns: 55% 45%;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  margin-top: 16px;
  overflow: hidden;
}

.download-info {
  padding: 28px;
  position: relative;
}

.download-info:first-child::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 1px;
  background: #f0f0f0;
}

.download-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
  margin: -28px -28px 16px -28px;
  padding: 12px 28px 12px;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
}

.download-card-title::before {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: #f0f0f0;
}

.download-info p {
  font-size: 14px;
  margin-bottom: 8px;
  color: #555;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 4px;
  align-items: baseline;
}

.hash-value-wrap {
  word-break: break-all;
  overflow-wrap: break-word;
  padding: 2px 6px;
  border-radius: 4px;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  border: 1.5px solid transparent;
  cursor: default;
  user-select: text;
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
}

.hash-value-wrap:hover {
  border-color: #c41d3f;
  box-shadow: 0 0 0 2px rgba(196, 29, 63, 0.15);
}

.hash-value-wrap::selection {
  background: #c41d3f;
  color: #fff;
}

.download-info p:has(strong[data-i18n]) strong[data-i18n] {
  white-space: nowrap;
  flex-shrink: 0;
}

.download-info strong {
  color: #333;
  font-weight: 600;
}

.zip-info {
  padding-left: 24px;
  padding-right: 28px;
  padding-top: 28px;
  padding-bottom: 28px;
  display: flex;
  flex-direction: column;
}

.zip-desc {
  font-size: 14px;
  color: #888;
  line-height: 1.7;
  margin-bottom: 12px;
}

.zip-content {
  flex: 1;
}

.zip-content p {
  font-size: 14px;
  margin-bottom: 8px;
  color: #555;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 4px;
  align-items: baseline;
}

.zip-content p strong {
  color: #333;
  font-weight: 600;
}

/* === 磁力链接 - 暂时禁用 === */
.btn-zip-magnet,
.btn-sm.btn-magnet {
  opacity: 0.4 !important;
  pointer-events: none !important;
  cursor: not-allowed !important;
  filter: grayscale(100%) !important;
}

/* === 检验工具 - 扁平化设计 === */
.compare-box-standalone {
  margin-top: 24px;
  padding: 0;
  background: transparent;
  border: none;
}

.compare-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 2px solid #c41d3f;
}

.compare-header h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
}

.zip-info strong {
}

.zip-actions {
  display: flex;
  flex-direction: row;
  gap: 10px;
  margin-top: 24px;
  position: relative;
  z-index: 1;
}

.zip-btn-wrapper {
  flex: 1;
  position: relative;
  min-width: 0;
}

.zip-btn-tip {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: #1a1a1a;
  color: #fff;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 6px;
  white-space: normal;
  word-break: break-word;
  line-height: 1.5;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 10;
  width: max-content;
  max-width: 220px;
  text-align: center;
}

.zip-btn-tip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #1a1a1a;
}

.zip-btn-wrapper:hover .zip-btn-tip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.zip-actions .btn {
  text-align: center;
  display: block;
  white-space: nowrap;
  font-size: 15px;
  padding: 13px 16px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-zip-download {
  background: #2d8cf0;
  color: #fff;
  border: none;
}

.btn-zip-download:hover {
  background: #1a7be0;
  transform: translateY(-1px);
}

.btn-zip-magnet {
  background: #ff8c00 !important;
  color: #fff;
  border: none;
}

.btn-zip-magnet:hover {
  background: #e67e00 !important;
  transform: translateY(-1px);
}

.compare-icon-svg {
  width: 16px;
  height: 16px;
  color: #c41d3f;
  flex-shrink: 0;
}

.compare-input {
  width: 100%;
  padding: 12px 14px;
  font-size: 14px;
  border: 1.5px solid #e5e5e5;
  border-radius: 8px;
  background: #f8f9fa;
  color: #333;
  font-family: "SF Mono", "Fira Code", "Consolas", monospace;
  transition: all 0.2s;
  resize: vertical;
  margin-bottom: 12px;
}

.compare-input:focus {
  outline: none;
  border-color: #c41d3f;
  background: #fff;
  box-shadow: 0 2px 8px rgba(196, 29, 63, 0.08);
}

.compare-input::placeholder {
  color: #aaa;
}

.compare-btn-group {
  display: flex;
  gap: 10px;
}

.compare-btn {
  display: inline-block;
  padding: 9px 28px;
  background: #c41d3f;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.compare-btn:hover {
  background: #a01732;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(196, 29, 63, 0.2);
}

.compare-btn:active {
  transform: translateY(0);
}

.compare-btn-clear {
  display: inline-block;
  padding: 9px 20px;
  background: #fff;
  color: #666;
  border: 1.5px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.compare-btn-clear:hover {
  background: #f5f5f5;
  border-color: #ccc;
  color: #333;
}

.compare-result {
  margin-top: 0;
  padding: 16px;
  border-radius: 8px;
  display: none;
}

.compare-result.match {
  display: block;
  background: #f0fdf4;
  border: 1.5px solid #bbf7d0;
}

.compare-result.no-match {
  display: block;
  background: #fef2f2;
  border: 1.5px solid #fecaca;
}

.compare-result h4 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 12px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.compare-result.match h4 {
  color: #16a34a;
}

.compare-result.no-match h4 {
  color: #dc2626;
}

.compare-result p {
  font-size: 14px;
  color: #666;
  margin: 6px 0;
  line-height: 1.7;
}

.compare-result .match-detail {
  font-family: "SF Mono", "Fira Code", "Consolas", monospace;
  font-size: 13px;
  color: #555;
  background: rgba(255, 255, 255, 0.6);
  padding: 8px 12px;
  border-radius: 4px;
  margin-top: 8px;
}

.compare-result.loading {
  display: block;
  background: #f8f9fa;
  border: 1.5px solid #e9ecef;
  text-align: center;
  padding: 30px;
}

.compare-result.error {
  display: block;
  background: #fff3cd;
  border: 1.5px solid #ffeaa7;
}

.loading-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #666;
}

.loading-spinner svg {
  color: #007bff;
}

.compare-results-container {
  width: 100%;
}

/* 匹配摘要 - 去除独立卡片感 */
.match-summary {
  background: transparent;
  color: #16a34a;
  padding: 0 0 12px 0;
  border-radius: 0;
  margin-bottom: 16px;
  text-align: left;
  border-bottom: 1px solid #bbf7d0;
}

.match-summary h4 {
  margin: 0 0 4px 0;
  font-size: 16px;
  font-weight: 700;
}

.match-summary p {
  margin: 0;
  font-size: 14px;
  opacity: 1;
  color: #16a34a;
}

/* 版本匹配卡片 - 扁平化 */
.version-match-card {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  margin-bottom: 0;
  box-shadow: none;
}

.version-match-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  color: #16a34a;
  margin-bottom: 12px;
}

.version-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 6px;
}

.version-info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.version-info-item label {
  font-size: 12px;
  color: #666;
  font-weight: 600;
  text-transform: uppercase;
}

.version-info-item span {
  font-size: 14px;
  color: #333;
  font-weight: 500;
}

/* Hash 区块 - 简化边框 */
.matched-hash-section,
.all-hashes-section,
.changelog-section {
  margin-bottom: 16px;
}

.matched-hash-section h5,
.all-hashes-section h5,
.changelog-section h5 {
  font-size: 13px;
  font-weight: 600;
  color: #666;
  margin: 0 0 8px 0;
  padding-bottom: 6px;
  border-bottom: 1px solid #e5e5e5;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.matched-hash-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  margin-bottom: 6px;
  font-family: "SF Mono", "Fira Code", "Consolas", monospace;
  font-size: 13px;
}

.hash-location {
  background: #007bff;
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

.hash-type {
  color: #666;
  font-weight: 600;
  min-width: 100px;
}

.hash-value {
  color: #333;
  flex: 1;
  word-break: break-all;
}

.hash-match-icon {
  color: #16a34a;
  font-weight: bold;
  font-size: 18px;
}

.hash-group {
  margin-bottom: 12px;
}

.hash-group > label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #888;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Hash 项和未匹配项 - 统一风格 */
.hash-item {
  display: flex;
  gap: 8px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  margin-bottom: 5px;
  font-family: "SF Mono", "Fira Code", "Consolas", monospace;
  font-size: 12px;
}

.hash-item.is-matched {
  background: rgba(240, 253, 244, 0.5);
  border-color: #d0e8d0;
}

/* 不匹配卡片 - 扁平化 */
.no-match-card {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
}

.no-match-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  color: #dc2626;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #fecaca;
}

.warning-box {
  background: rgba(255, 243, 205, 0.5);
  border: 1px solid #ffeaa7;
  border-left: 3px solid #f59e0b;
  padding: 12px 14px;
  border-radius: 6px;
  margin-bottom: 16px;
}

.warning-box strong {
  color: #856404;
  font-size: 14px;
  display: block;
  margin-bottom: 6px;
}

.warning-box p {
  color: #856404;
  font-size: 13px;
  margin: 0;
  line-height: 1.6;
}

.unmatched-hashes {
  margin-bottom: 16px;
}

.unmatched-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  margin-bottom: 6px;
  font-family: "SF Mono", "Fira Code", "Consolas", monospace;
  font-size: 13px;
}

.tip-box {
  background: rgba(231, 245, 255, 0.5);
  border: 1px solid #a5d8ff;
  border-radius: 6px;
  padding: 12px 14px;
  margin-top: 16px;
}

.tip-box h5 {
  font-size: 13px;
  color: #1864ab;
  margin: 0 0 8px 0;
  font-weight: 600;
}

.tip-box ul {
  margin: 0;
  padding-left: 18px;
}

.tip-box li {
  font-size: 13px;
  color: #1c7ed6;
  line-height: 1.7;
  margin-bottom: 4px;
}

.version-actions {
  margin-top: 20px;
  text-align: center;
}

.error-box {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  padding: 15px;
  border-radius: 6px;
}

.error-box strong {
  color: #856404;
  display: block;
  margin-bottom: 8px;
}

.error-box p {
  color: #856404;
  margin: 0;
  font-size: 13px;
}

/* Changelog */
.changelog-list {
  padding: 0;
  list-style: none;
}

.changelog-list li {
  padding: 18px 0;
  border-bottom: 1px solid #f0f0f0;
  color: #555;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-left: 0;
  font-size: 15px;
  line-height: 1.7;
}

.changelog-list li:last-child {
  border-bottom: none;
}

.tag-new, .tag-fix {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 3px;
}

.tag-new {
  background: #c41d3f;
  color: #fff;
}

.tag-fix {
  background: #eee;
  color: #555;
}

/* Help */
.help ol {
  padding: 0;
  list-style: none;
  counter-reset: step;
  margin-left: 0;
}

.help li {
  counter-increment: step;
  padding: 18px 0;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: 0;
  color: #555;
  font-size: 15px;
}

.help li:last-child {
  border-bottom: none;
}

.help li::before {
  content: counter(step);
  width: 30px;
  height: 30px;
  background: #c41d3f;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
}

.note {
  font-size: 14px;
  color: #888;
  line-height: 1.7;
}

.note a {
  color: #c41d3f;
  text-decoration: underline;
  text-underline-offset: 2px;
}

code {
  background: #f5f5f5;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 13px;
  color: #c41d3f;
  font-family: "SF Mono", "Fira Code", "Consolas", monospace;
}

.alert {
  margin-top: 28px;
  padding: 18px 20px;
  background: #fff8f9;
  border: 1px solid #f5e6ea;
  border-radius: 8px;
}

.alert strong {
  display: block;
  margin-bottom: 6px;
  color: #c41d3f;
  font-size: 14px;
}

.alert p {
  font-size: 14px;
  color: #8a5e6a;
  line-height: 1.7;
}

/* Footer */
footer {
  padding: 48px 0 32px;
  border-top: 1px solid #f0f0f0;
  background: #fafafa;
  font-size: 14px;
  color: #666;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 32px;
}

.footer-col h4 {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 12px;
}

.footer-col p {
  margin-bottom: 6px;
  color: #666;
  line-height: 1.8;
}

.footer-col a {
  color: #c41d3f;
  text-decoration: none;
}

.footer-col a:hover {
  text-decoration: underline;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid #e5e5e5;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #999;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 250;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: #1a1a1a;
  margin: 3px 0;
  transition: all 0.3s;
  border-radius: 1px;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Nav */
.mobile-nav {
  display: flex;
}

/* Language Selector */
.lang-selector {
  margin-left: 16px;
  position: relative;
}

#languageSelector {
  appearance: none;
  -webkit-appearance: none;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  padding: 6px 32px 6px 12px;
  font-size: 13px;
  color: #555;
  cursor: pointer;
  transition: all 0.2s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

#languageSelector:hover {
  border-color: #c41d3f;
}

#languageSelector:focus {
  outline: none;
  border-color: #c41d3f;
  box-shadow: 0 0 0 2px rgba(196, 29, 63, 0.1);
}

/* RTL Support */
body.rtl {
  direction: rtl;
  text-align: right;
}

body.rtl .logo {
  flex-direction: row-reverse;
}

body.rtl nav a {
  margin-left: 0;
  margin-right: 4px;
}

body.rtl .footer-bottom {
  flex-direction: row-reverse;
}

body.rtl .article-signoff {
  text-align: left;
}

body.rtl .article-note-box {
  border-left: none;
  border-right: 3px solid #c41d3f;
}

body.rtl .risk-table-row.critical {
  border-right: 3px solid #c41d3f;
  border-left: none;
}

body.rtl .site-list li.danger {
  border-right: 3px solid #c41d3f;
  border-left: none;
}

body.rtl .lang-selector {
  margin-left: 0;
  margin-right: 16px;
}

.lang-selector-wrap {
  margin-left: 16px;
  position: relative;
}

.lang-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  padding: 6px 28px 6px 12px;
  font-size: 13px;
  color: #555;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
  white-space: nowrap;
  min-width: 110px;
}

.lang-chevron {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  pointer-events: none;
  transition: transform 0.2s;
}

.lang-display:hover,
.lang-selector-wrap.open .lang-display {
  border-color: #c41d3f;
}

.lang-selector-wrap.open .lang-chevron {
  transform: translateY(-50%) rotate(180deg);
}

.lang-dropdown-custom {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: all 0.2s ease;
  min-width: 100%;
  white-space: nowrap;
}

.lang-selector-wrap.open .lang-dropdown-custom {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-dropdown-custom-item {
  padding: 8px 14px;
  font-size: 13px;
  color: #333;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.lang-dropdown-custom-item:first-child {
  border-radius: 8px 8px 0 0;
}

.lang-dropdown-custom-item:last-child {
  border-radius: 0 0 8px 8px;
}

.lang-dropdown-custom-item:only-child {
  border-radius: 8px;
}

.lang-dropdown-custom-item:hover {
  background: #fef2f4;
  color: #c41d3f;
}

.lang-dropdown-custom-item.active {
  background: #c41d3f;
  color: #fff;
  font-weight: 600;
}

body.rtl .lang-selector-wrap {
  margin-left: 0;
  margin-right: 16px;
}

.btn-blue {
  background: #1a7be0;
  color: #fff;
  text-decoration: none;
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  display: inline-block;
  transition: background 0.2s, transform 0.2s;
}

.btn-blue:hover {
  background: #1565c0;
  transform: translateY(-1px);
}

/* Alternative Activation Card */
.alternative-card {
  padding: 28px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.alternative-content {
  flex: 1;
}

.alternative-title {
  font-size: 18px;
  font-weight: 700;
  color: #1a7be0;
  margin: 0 0 12px 0;
}

.alternative-desc {
  font-size: 14px;
  color: #555;
  line-height: 1.7;
  margin: 0;
}

.alternative-card .btn-blue {
  flex-shrink: 0;
}

/* Mobile */
@media (max-width: 768px) {
  .lang-selector,
  .lang-selector-wrap {
    margin-left: 0;
    margin-top: 0;
  }

  body.rtl nav a {
    margin-right: 0;
  }

  body.rtl .lang-selector {
    margin-right: 0;
  }
}

@media (max-width: 768px) {
  .lang-selector {
    margin-left: auto;
    margin-right: 0;
  }

  .lang-display {
    min-width: 44px;
    width: 44px;
    height: 44px;
    padding: 0;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    margin-top: 0;
    margin-bottom: 0;
    align-self: center;
  }

  .lang-display::before {
    content: '🌐';
    font-size: 18px;
  }

  .lang-display span {
    display: none;
  }

  .lang-display .arrow {
    display: none;
  }

  .lang-chevron {
    display: none;
  }

  .lang-dropdown-custom {
    right: 0;
    min-width: 160px;
    max-height: 60vh;
    overflow-y: auto;
  }

  .mobile-menu-btn {
    display: flex;
    order: 3;
    flex-shrink: 0;
  }

  .lang-selector {
    order: 2;
    flex-shrink: 0;
  }

  .mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: #fff;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    padding: 80px 0 24px;
    transition: right 0.3s ease;
    overflow-y: auto;
    z-index: 220;
  }

  .mobile-nav.active {
    right: 0;
  }

  .mobile-nav a {
    margin: 0 !important;
    padding: 16px 24px !important;
    border-bottom: 1px solid #f0f0f0;
    height: auto !important;
    font-size: 16px;
    position: relative;
    z-index: 1;
    cursor: pointer;
    pointer-events: auto;
    display: block;
    width: 100%;
    transition: background 0.15s;
  }

  .mobile-nav a:hover {
    background: #fef2f4;
  }

  .mobile-nav a:active {
    background: #fee2e5;
  }

  .mobile-nav a:last-child {
    border-bottom: none;
  }

  .mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 210;
    pointer-events: none;
  }

  .mobile-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  header .container {
    flex-wrap: nowrap;
    gap: 8px;
  }

  .logo {
    flex: 1;
    min-width: 0;
  }

  .logo a {
    max-width: 160px;
    overflow: hidden;
    white-space: nowrap;
  }

  .logo img {
    flex-shrink: 0;
  }

  .notice {
    padding: 8px 12px;
    font-size: 12px;
    line-height: 1.4;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    text-align: left;
    justify-content: flex-start;
    z-index: 400;
  }

  .notice-icon {
    font-size: 14px;
  }

  body {
    padding-top: 0;
  }

  header {
    top: 0;
    z-index: 300;
    position: fixed;
  }

  header .container {
    height: 60px;
    padding: 0 16px;
  }

  .logo {
    font-size: 18px;
  }

  .logo img {
    height: 28px;
  }

  .badge {
    font-size: 10px;
    padding: 2px 6px;
  }

  .badge-icon {
    width: 12px;
    height: 12px;
  }

  .hero {
    padding: 16px 16px 48px;
  }

  .hero h1 {
    font-size: 24px;
  }

  .hero p {
    font-size: 15px;
  }

  .btn {
    padding: 12px 24px;
    font-size: 14px;
  }

  .hero-divider {
    flex-direction: column;
    align-items: flex-start;
    padding: 0 16px;
    margin: 16px auto;
    gap: 4px;
  }

  .hero-alert-rotate {
    width: 100%;
    margin-left: 0;
  }

  .stats {
    padding: 24px 0;
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .grid-4 strong {
    font-size: 18px;
  }

  .grid-4 span {
    font-size: 12px;
  }

  section {
    padding: 32px 0;
  }

  section h2 {
    font-size: 18px;
    margin-bottom: 24px;
  }

  .features-list {
    grid-template-columns: 1fr;
  }

  .features-list .item {
    padding: 20px 16px;
  }

  .features-secondary {
    grid-template-columns: repeat(2, 1fr);
  }

  .features-secondary .item {
    padding: 20px 16px;
  }

  .features-secondary .item h3 {
    font-size: 13px;
  }

  .features-secondary .item p {
    font-size: 12px;
  }

  .download-box.compare-grid {
    grid-template-columns: 1fr;
  }

  .download-info {
    padding: 20px;
  }

  .download-card-title {
    margin: -20px -20px 16px -20px;
    padding: 12px 20px;
  }

  .zip-info {
    padding: 20px;
  }

  .zip-actions {
    flex-direction: column;
  }

  .version-bottom {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .changelog-list li {
    font-size: 14px;
    padding: 14px 0;
  }

  .help li {
    font-size: 14px;
    padding: 14px 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .article-top {
    padding: 32px 16px 24px;
  }

  .article-top h1 {
    font-size: 24px;
  }

  .article-top .article-type {
    font-size: 12px;
    letter-spacing: 3px;
  }

  .article-text {
    padding: 0 16px 32px;
  }

  .article-text p {
    font-size: 15px;
  }

  .risk-table-header {
    display: none;
  }

  .risk-table-row {
    flex-direction: column;
    padding: 12px 16px;
    gap: 8px;
  }

  .risk-col {
    padding: 0;
  }

  .col-num {
    display: none;
  }

  .col-url {
    flex: none;
    font-size: 13px;
  }

  .col-level {
    width: auto;
    justify-content: flex-start;
  }

  .col-reason {
    font-size: 13px;
  }

  .search-container {
    margin: 16px 16px;
  }

  .article-signoff {
    padding: 24px 0;
    margin: 24px 16px 0;
  }

  .article-note-box {
    margin: 16px 16px 0;
    padding: 16px;
  }

  .article-bottom {
    padding: 24px 16px 48px;
  }

  .history-versions summary {
    padding: 14px 16px;
    font-size: 14px;
  }

  .version-row {
    padding: 10px 16px;
    gap: 10px;
    flex-wrap: wrap;
  }

  .version-inner {
    padding: 0 16px 16px;
  }

  .version-body-inner {
    grid-template-columns: 1fr;
  }

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

  .features-grid .version-hashes:first-child {
    border-right: none;
    border-bottom: 1px solid #f0f0f0;
  }

  .hash-header {
    padding: 0 16px;
  }

  .hash-content {
    padding: 16px 16px;
  }

  .version-changelog .changelog-header {
    padding: 0 16px;
  }

  .version-changelog .changelog-body {
    padding: 16px 16px;
  }

  .hash-row {
    grid-template-columns: 48px 1fr;
  }

  .hash-val {
    word-break: break-all;
    font-size: 11px;
  }

  .compare-box-standalone {
    padding: 0;
  }

  .compare-btn-group {
    flex-direction: column;
    gap: 8px;
  }

  .alternative-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 16px;
  }

  .alternative-card .btn-blue {
    width: 100%;
    text-align: center;
  }

  .alternative-title {
    font-size: 16px;
  }

  .compare-btn,
  .compare-btn-clear {
    width: 100%;
    text-align: center;
  }

  .download-box {
    padding: 16px;
    margin: 0 -16px;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  .download-box p {
    font-size: 13px;
    word-break: break-all;
    overflow-wrap: break-word;
    line-height: 1.6;
    margin-bottom: 12px;
  }

  .download-box strong {
    display: block;
    margin-bottom: 2px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 20px;
  }

  .hero p {
    font-size: 14px;
  }

  .grid-4 {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .features-secondary {
    grid-template-columns: 1fr;
  }

  .article-top h1 {
    font-size: 20px;
  }

  .article-top .article-info {
    flex-direction: column;
    gap: 8px;
  }

  .info-sep {
    display: none;
  }
}

/* Security */
.security {
  padding: 24px 0;
}

.security .alert {
  margin-top: 0;
  padding: 14px 18px;
}

/* Notice Page - White House Proclamation Style */
.notice-page {
  padding: 0 6px;
  max-width: 1200px;
  margin: 0 auto;
}

.article-top {
  text-align: center;
  padding: 48px 0 32px;
}

.article-top .article-type {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #1a1a1a;
  margin-bottom: 32px;
}

.article-top h1 {
  font-size: 32px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.3;
  margin-bottom: 24px;
  letter-spacing: -0.3px;
}

.article-top .article-info {
  font-size: 14px;
  color: #666;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
}

.article-top .article-info .info-sep {
  width: 1px;
  height: 14px;
  background: #ccc;
}

.article-rule {
  display: none;
}

.article-text {
  padding: 0 4px 4px;
}

.article-text p {
  font-size: 17px;
  color: #2d2d2d;
  line-height: 2;
  text-align: justify;
  text-indent: 2em;
}

.article-text h2 {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
  margin-top: 36px;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.article-text h2 .group-count {
  font-size: 12px;
  font-weight: 500;
  color: #999;
  text-transform: none;
  letter-spacing: 0;
  margin-left: 8px;
}

.article-text .site-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
}

.article-text .site-list li {
  padding: 12px 14px;
  border-bottom: 1px solid #e5e5e5;
  font-family: "SF Mono", "Fira Code", "Consolas", monospace;
  font-size: 13px;
  color: #333;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: background 0.2s;
}

.article-text .site-list li:hover {
  background: #fafafa;
}

.article-text .site-list li .site-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.article-text .site-list li .site-url {
  font-weight: 600;
  color: #1a1a1a;
  word-break: break-all;
}

.article-text .site-list li .risk-reason {
  font-family: -apple-system, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 12px;
  color: #888;
  line-height: 1.5;
}

.article-text .site-list li .risk-badge {
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
  align-self: flex-start;
  margin-top: 2px;
}

.article-text .site-list li .risk-critical {
  background: #c41d3f;
  color: #fff;
  animation: pulse 2s ease-in-out infinite;
}

.article-text .site-list li .risk-high {
  background: #ff9800;
  color: #fff;
}

.article-text .site-list li .risk-fake {
  background: #9c27b0;
  color: #fff;
}

.article-text .site-list li.danger {
  border-left: 3px solid #c41d3f;
  background: #fff5f5;
}

.article-text .site-list li.danger:hover {
  background: #ffe8e8;
}

.article-text .site-list li.danger .site-url {
  color: #c41d3f;
}

/* Risk Table */
.risk-table {
  margin: 16px 0 32px 0;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  overflow: hidden;
}

.risk-table-header {
  display: flex;
  background: #fafafa;
  border-bottom: 2px solid #e5e5e5;
  font-size: 12px;
  font-weight: 700;
  color: #1a1a1a;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.risk-table-row {
  display: flex;
  border-bottom: 1px solid #f0f0f0;
  font-size: 13px;
  transition: background 0.15s;
}

.risk-table-row:last-child {
  border-bottom: none;
}

.risk-table-row:hover {
  background: #fafafa;
}

.risk-table-row.critical {
  background: #fff8f8;
}

.risk-table-row.critical:hover {
  background: #ffe8e8;
}

.risk-col {
  padding: 12px 14px;
  display: flex;
  align-items: center;
}

.col-num {
  width: 60px;
  flex-shrink: 0;
  justify-content: center;
  font-weight: 600;
  color: #666;
}

.col-url {
  flex: 0 0 220px;
  font-family: "SF Mono", "Fira Code", "Consolas", monospace;
  font-size: 12.5px;
  color: #1a1a1a;
  word-break: break-all;
  font-weight: 500;
}

.risk-table-row.critical .col-url {
  color: #c41d3f;
  font-weight: 600;
}

.col-level {
  width: 100px;
  flex-shrink: 0;
  justify-content: center;
}

.col-reason {
  flex: 1;
  font-family: -apple-system, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 12.5px;
  color: #555;
  line-height: 1.6;
}

.risk-badge {
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
}

.risk-critical {
  background: #c41d3f;
  color: #fff;
  animation: pulse 2s ease-in-out infinite;
}

.risk-high {
  background: #ff9800;
  color: #fff;
}

.risk-fake {
  background: #9c27b0;
  color: #fff;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .risk-table-header {
    display: none;
  }

  .risk-table-row {
    flex-direction: column;
    padding: 12px 14px;
    gap: 8px;
  }

  .risk-col {
    padding: 0;
  }

  .col-num {
    display: none;
  }

  .col-url {
    flex: none;
    font-size: 13px;
  }

  .col-level {
    width: auto;
    justify-content: flex-start;
  }

  .col-reason {
    font-size: 13px;
  }
}

.search-container {
  margin: 24px 0;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  border: 2px solid #e5e5e5;
  border-radius: 6px;
  background: #fafafa;
  color: #333;
  font-family: -apple-system, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  transition: all 0.2s;
}

.search-input:focus {
  outline: none;
  border-color: #c41d3f;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(196, 29, 63, 0.1);
}

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

.search-count {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: #666;
  text-align: right;
}

.search-count.active {
  color: #c41d3f;
  font-weight: 600;
}

.site-list li.hidden-by-search {
  display: none;
}

h2.hidden-by-search {
  display: none;
}

.article-signoff {
  margin-top: 48px;
  padding-top: 32px;
  text-align: right;
}

.article-signoff .signoff-org {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 4px;
  letter-spacing: -0.2px;
}

.article-signoff .signoff-date {
  font-size: 14px;
  color: #666;
}

.article-note-box {
  margin: 24px 0 0;
  padding: 20px 24px;
  background: #fff8f9;
  border: 1px solid #f5e6ea;
  border-left: 3px solid #c41d3f;
  font-size: 14px;
  color: #8a5e6a;
  line-height: 1.8;
}

.article-note-box p {
  margin-bottom: 0;
}

.article-bottom {
  padding: 32px 0 64px;
  text-align: center;
}

.article-bottom a {
  color: #1a1a1a;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-bottom: 1px solid #ccc;
  padding-bottom: 2px;
}

.article-bottom a:hover {
  border-bottom-color: #1a1a1a;
}

/* Article - Legacy */
.article {
  padding: 48px 0;
}

.article h1 {
  font-size: 28px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 12px;
  line-height: 1.4;
}

.article-meta {
  font-size: 14px;
  color: #999;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid #f0f0f0;
}

.article-content h2 {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
  margin-top: 32px;
  margin-bottom: 12px;
}

.article-content p {
  font-size: 15px;
  color: #555;
  line-height: 1.8;
  margin-bottom: 16px;
}

.article-content ul {
  margin-left: 20px;
  margin-bottom: 16px;
}

.article-content li {
  font-size: 15px;
  color: #555;
  line-height: 1.8;
  margin-bottom: 8px;
}

.article-nav {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid #f0f0f0;
}

.article-nav a {
  color: #c41d3f;
  text-decoration: none;
  font-size: 14px;
}

.article-nav a:hover {
  text-decoration: underline;
}

.site-list {
  list-style: none;
  padding: 0;
  margin-left: 0;
}

.site-list li {
  padding: 10px 12px;
  border-bottom: 1px solid #f5f5f5;
  font-family: "SF Mono", "Fira Code", "Consolas", monospace;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.site-list li .site-url {
  flex: 1;
  min-width: 0;
  word-break: break-all;
}

.site-list li .risk-badge {
  flex-shrink: 0;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-list li .risk-critical {
  background: #c41d3f;
  color: #fff;
  animation: pulse 2s ease-in-out infinite;
}

.site-list li .risk-high {
  background: #ff9800;
  color: #fff;
}

.site-list li .risk-fake {
  background: #9c27b0;
  color: #fff;
}

.site-list li.danger {
  color: #c41d3f;
  font-weight: 600;
  border-left: 3px solid #c41d3f;
  background: #fff5f5;
}

/* History Versions */
.history-versions {
  margin-top: 24px;
  background: #f5f7fa;
  border: 1px solid #e0e4e8;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.history-versions > summary {
  padding: 16px 24px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  background: linear-gradient(135deg, #f8f9fa, #eef1f5);
  border: none;
  outline: none;
  transition: background 0.2s;
  list-style: none;
  display: flex;
  align-items: center;
  user-select: none;
}

.history-versions > summary::-webkit-details-marker {
  display: none;
}

.history-versions > summary::after {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-left: auto;
  margin-right: 4px;
  border-right: 2px solid #999;
  border-bottom: 2px solid #999;
  transform: rotate(-45deg);
  transition: transform 0.3s ease;
}

.history-versions.open > summary::after {
  transform: rotate(45deg);
}

.history-versions > summary:hover {
  background: #f0f0f0;
}

.version-list {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.history-versions.open .version-list {
  max-height: 3000px;
}

.version-item {
  border-bottom: 1px solid #e8e8e8;
  background: #fff;
}

.version-item:nth-child(even) {
  background: #f7f9fb;
}

.version-item:last-child {
  border-bottom: none;
}

.version-item.active .version-row {
  background: #c41d3f;
}

.version-item.active .version-row .v-date {
  color: rgba(255, 255, 255, 0.8);
}

.version-item.active .version-row .v-version {
  color: #fff;
}

.version-item.active .version-row .v-size {
  color: rgba(255, 255, 255, 0.8);
}

.version-item.active .version-row .v-type {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.version-item.active .version-row:hover {
  background: #a01732;
}

.version-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 17px;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s;
}

.version-row:hover {
  background: #f0f0f0;
}

.v-arrow {
  display: inline-block;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  position: relative;
  order: 1;
}

.v-arrow::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 7px;
  margin-top: -3px;
  margin-left: -4px;
  border-right: 2px solid #888;
  border-bottom: 2px solid #888;
  transform: rotate(-45deg);
  transition: border-color 0.2s ease, transform 0.3s ease, opacity 0.15s ease;
}

.v-arrow::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  margin-left: -6px;
  border: 2px solid transparent;
  border-top-color: #888;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.version-item.animating .v-arrow::after {
  opacity: 0;
}

.version-item.animating .v-arrow::before {
  opacity: 1;
  animation: vArrowSpin 0.5s linear;
}

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

.version-item.active .v-arrow::after {
  border-color: #fff;
  transform: rotate(45deg);
}

.v-version {
  font-size: 14.5px;
  font-weight: 700;
  color: #1a1a1a;
  order: 2;
}

.v-type {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 3px;
  background: #666;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  order: 3;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

.v-date {
  font-size: 13px;
  color: #999;
  white-space: nowrap;
  order: 4;
}

.v-size {
  font-size: 13px;
  color: #888;
  white-space: nowrap;
  order: 5;
}

.v-type[data-type="beta"] {
  background: #f5a623;
}

.v-type[data-type="alpha"] {
  background: #888;
}

.v-type[data-type="rc"] {
  background: #7b68ee;
}

.v-type[data-type="final"] {
  background: #34c759;
}

.v-type[data-type="stable"] {
  background: #2ea043;
}

.v-type[data-type="release"] {
  background: #666;
}

.version-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.version-item.active .version-body {
  max-height: 1500px;
}

.version-inner {
  padding: 0;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  grid-column: 1 / -1;
}

.features-grid .version-hashes {
  display: flex;
  flex-direction: column;
}

.features-grid .version-hashes:first-child {
  border-right: 1px solid #f0f0f0;
}

.hash-header {
  padding: 0 20px;
  border-bottom: 1px solid #f0f0f0;
}

.hash-header h5 {
  font-size: 13px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
  padding: 16px 0 16px 0;
}

.hash-content {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.version-hashes-zip {
  background: #fafafa;
}

.version-body-inner {
  display: flex;
  flex-direction: column;
}

.version-body-inner > .features-grid {
  border-bottom: 1px solid #f0f0f0;
}

.version-body-inner > .version-changelog {
  border-top: none;
}

.version-changelog {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
}

.version-changelog .changelog-header {
  padding: 0 20px;
  border-bottom: 1px solid #f0f0f0;
}

.version-changelog .changelog-header h5 {
  font-size: 13px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
  padding: 16px 0;
}

.version-changelog .changelog-body {
  padding: 16px 20px;
}

.version-changelog h5 {
  font-size: 13px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 10px 0;
  padding-bottom: 10px;
}

.version-hashes {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.version-hashes h5 {
  font-size: 13px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 10px 0;
  padding-bottom: 10px;
}

.version-actions-full {
  grid-column: 1 / -1;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding: 14px 20px;
  border-top: 1px solid #f0f0f0;
  margin-top: 4px;
}

.version-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.btn-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 16px;
  border-radius: 4px;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-sm.btn-download {
  background: #c41d3f;
  color: #fff;
}

.btn-sm.btn-download:hover {
  background: #a01732;
}

.btn-sm.btn-magnet {
  background: transparent;
  color: #c41d3f;
  border: 1.5px solid #c41d3f;
}

.btn-sm.btn-magnet:hover {
  background: #c41d3f;
  color: #fff;
}

.hash-row {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 0 8px;
  font-size: 12.5px;
  align-items: baseline;
  padding: 4px 0;
}

.hash-label {
  font-weight: 700;
  color: #888;
  font-size: 11px;
  letter-spacing: 0.3px;
}

.hash-val {
  font-family: "SF Mono", "Fira Code", "Consolas", monospace;
  color: #555;
  word-break: break-all;
  overflow-wrap: break-word;
  line-height: 1.6;
  padding: 2px 6px;
  border-radius: 3px;
  border: 1px solid transparent;
  transition: all 0.2s;
}

.hash-val:hover {
  border-color: #ff4444;
  background: #fff5f5;
  box-shadow: 0 0 0 2px rgba(255, 68, 68, 0.15);
  color: #cc0000;
}

.hash-val::selection {
  background: #ff4444;
  color: #fff;
}

.version-changelog h5 {
  font-size: 13px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 10px 0;
  padding-bottom: 10px;
}

.version-changelog ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.version-changelog li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed #f5f5f5;
}

.version-changelog li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.log-text {
  font-size: 13.5px;
  color: #555;
  line-height: 1.6;
  flex: 1;
}

.tag-item {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: 0.3px;
  margin-top: 1px;
}

.tag-new {
  background: linear-gradient(135deg, #34c759, #28a745);
}

.tag-fix {
  background: linear-gradient(135deg, #ff4757, #c41d3f);
}

.tag-optimize {
  background: linear-gradient(135deg, #5ac8fa, #007aff);
}

.tag-remove {
  background: linear-gradient(135deg, #ff9500, #ff6b00);
}

.btn-small {
  display: inline-block;
  padding: 6px 18px;
  background: #c41d3f;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-small:hover {
  background: #a01732;
}

/* Download Button Spinner */
.btn-download-loading {
  pointer-events: none;
  opacity: 0.7;
}

.btn-download-loading .btn-text {
  opacity: 0;
}

.btn-download-loading .btn-spinner {
  opacity: 1;
}

.btn-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btnSpin 1s ease-in-out infinite;
  opacity: 0;
  pointer-events: none;
}

.btn-small .btn-spinner {
  width: 16px;
  height: 16px;
  border-width: 2px;
}

@keyframes btnSpin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.btn {
  position: relative;
  overflow: hidden;
}

.btn-small {
  position: relative;
  overflow: hidden;
}

.btn-outline {
  background: #ff8c00;
  color: #fff;
  border: none;
  margin-left: 12px;
}

.btn-outline:hover {
  background: #e67e00;
  transform: translateY(-1px);
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 48px;
  height: 48px;
  background: #c41d3f;
  color: #fff;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(196, 29, 63, 0.3), 0 2px 8px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 900;
  pointer-events: none;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  background: #a01732;
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(196, 29, 63, 0.4), 0 3px 12px rgba(0, 0, 0, 0.15);
}

.back-to-top:active {
  transform: translateY(-1px);
  box-shadow: 0 2px 10px rgba(196, 29, 63, 0.35);
}

.back-to-top svg {
  width: 22px;
  height: 22px;
  transition: transform 0.3s ease;
}

.back-to-top:hover svg {
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 10px;
  }

  .back-to-top svg {
    width: 20px;
    height: 20px;
  }
}