/* 主题变量与基础设置（前缀：css365jz） */
:root {
  --css365jz-font-sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Noto Sans", "Microsoft YaHei", sans-serif;
  --css365jz-radius-sm: 8px;
  --css365jz-radius-md: 14px;
  --css365jz-shadow-sm: 0 4px 14px rgba(0,0,0,.08);
  --css365jz-shadow-md: 0 10px 30px rgba(0,0,0,.10);

  /* 默认主题（light） */
  --css365jz-bg: #f6f8fb;
  --css365jz-surface: #ffffff;
  --css365jz-text: #0f172a;
  --css365jz-text-muted: #475569;
  --css365jz-primary: #2563eb;
  --css365jz-primary-ghost: rgba(37,99,235,.12);
  --css365jz-accent: #22c55e;
  --css365jz-danger: #ef4444;
  --css365jz-border: #e5e7eb;
  --css365jz-gradient: linear-gradient(135deg, #2563eb, #22c55e);
}

.css365jz-body {
  margin: 0;
  font-family: var(--css365jz-font-sans);
  color: var(--css365jz-text);
  background: radial-gradient(1200px 800px at 10% -10%, rgba(37,99,235,.06), transparent),
              radial-gradient(900px 600px at 110% 10%, rgba(34,197,94,.08), transparent),
              var(--css365jz-bg);
  line-height: 1.6;
}

/* 百变模板：暗色主题 */
.css365jz-theme--dark {
  --css365jz-bg: #0b1220;
  --css365jz-surface: #111827;
  --css365jz-text: #e5e7eb;
  --css365jz-text-muted: #94a3b8;
  --css365jz-primary: #60a5fa;
  --css365jz-primary-ghost: rgba(96,165,250,.18);
  --css365jz-accent: #34d399;
  --css365jz-danger: #f87171;
  --css365jz-border: #1f2937;
  --css365jz-gradient: linear-gradient(135deg, #60a5fa, #34d399);
}

/* 百变模板：蓝色主题 */
.css365jz-theme--blue {
  --css365jz-bg: #eaf2ff;
  --css365jz-surface: #ffffff;
  --css365jz-text: #0a1a3a;
  --css365jz-text-muted: #34527a;
  --css365jz-primary: #1e40af;
  --css365jz-primary-ghost: rgba(30,64,175,.12);
  --css365jz-accent: #0ea5e9;
  --css365jz-danger: #dc2626;
  --css365jz-border: #cfe0ff;
  --css365jz-gradient: linear-gradient(135deg, #1e40af, #0ea5e9);
}

/* 容器与网格 */
.css365jz-container {
  width: 100%;
  max-width: 1200px;
  padding: 0 20px;
  margin: 0 auto;
}

.css365jz-grid {
  display: grid;
  gap: 22px;
}

.css365jz-grid--3 { grid-template-columns: repeat(3, 1fr); }
.css365jz-grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
  .css365jz-grid--4 { grid-template-columns: repeat(2, 1fr); }
}

/* Grid responsiveness moved to consolidated mobile media query */

/* 头部与导航 */
.css365jz-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.7);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--css365jz-border);
}
.css365jz-theme--dark .css365jz-header { background: rgba(17,24,39,.7); }

.css365jz-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.css365jz-brand {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .3px;
  background: var(--css365jz-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.css365jz-nav__list {
  display: flex;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.css365jz-nav__link {
  text-decoration: none;
  color: var(--css365jz-text);
  padding: 8px 10px;
  border-radius: 8px;
}
.css365jz-nav__link:hover { background: var(--css365jz-primary-ghost); }

.css365jz-nav__toggle { display: none; }

@media (max-width: 768px) {
  .css365jz-nav__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 12px;
    border-radius: 8px;
    background: var(--css365jz-primary);
    color: #fff;
    border: none;
  }
  .css365jz-nav__list {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--css365jz-surface);
    border-bottom: 1px solid var(--css365jz-border);
    display: none;
    flex-direction: column;
    padding: 12px 16px;
    max-width: 100%;
    overflow-x: hidden;
  }
  .css365jz-nav__list.is-open { display: flex; }

  /* 移动端主题切换按钮优化 */
  .css365jz-theme-switch {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
  }

  /* 移动端英雄区域优化 */
  .css365jz-hero {
    padding: 40px 0 32px;
  }

  .css365jz-hero__content h1 {
    font-size: 28px;
    line-height: 1.3;
  }

  .css365jz-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .css365jz-hero__actions .css365jz-btn {
    width: 100%;
    justify-content: center;
  }
}

/* 按钮 */
.css365jz-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 18px;
  border-radius: var(--css365jz-radius-sm);
  background: var(--css365jz-surface);
  color: var(--css365jz-text);
  text-decoration: none;
  border: 1px solid var(--css365jz-border);
  box-shadow: var(--css365jz-shadow-sm);
}
.css365jz-btn:hover { transform: translateY(-1px); }
.css365jz-btn:active { transform: translateY(0); }

.css365jz-btn--primary {
  background: var(--css365jz-primary);
  color: #fff;
  border: none;
}
.css365jz-btn--ghost { background: var(--css365jz-primary-ghost); border: none; }
.css365jz-btn--sm { height: 34px; padding: 0 12px; box-shadow: none; }

/* 主横幅 */
.css365jz-hero {
  padding: 64px 0 40px;
  position: relative;
}
.css365jz-hero__grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 30px;
}
@media (max-width: 992px) { .css365jz-hero__grid { grid-template-columns: 1fr; } }

.css365jz-hero__content h1 { font-size: 34px; margin: 0 0 10px; }
.css365jz-hero__content p { color: var(--css365jz-text-muted); margin: 0 0 18px; }
.css365jz-hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

.css365jz-hero__content h1 { font-size: 34px; margin: 0 0 10px; }
.css365jz-hero__content p { color: var(--css365jz-text-muted); margin: 0 0 18px; }
.css365jz-hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

.css365jz-hero__card {
  background: var(--css365jz-surface);
  border: 1px solid var(--css365jz-border);
  border-radius: var(--css365jz-radius-md);
  box-shadow: var(--css365jz-shadow-md);
  padding: 18px;
}
.css365jz-divider { height: 1px; background: var(--css365jz-border); margin: 12px 0; }

.css365jz-stat { display: flex; align-items: baseline; gap: 10px; }
.css365jz-stat__label { color: var(--css365jz-text-muted); }
.css365jz-stat__value { font-size: 22px; font-weight: 700; }
.css365jz-stat__delta { font-size: 13px; }
.css365jz-up { color: var(--css365jz-accent); }
.css365jz-down { color: var(--css365jz-danger); }

.css365jz-sparkline {
  height: 56px;
  background:
    linear-gradient(180deg, rgba(37,99,235,.18), transparent),
    radial-gradient(40px 40px at 10% 60%, rgba(34,197,94,.25), transparent),
    repeating-linear-gradient(90deg, rgba(15,23,42,.06) 0 1px, transparent 1px 6px);
  border-radius: 10px;
}

/* 通用区块 */
.css365jz-section { padding: 52px 0; }
.css365jz-section--alt { background: rgba(0,0,0,.02); }
.css365jz-theme--dark .css365jz-section--alt { background: rgba(255,255,255,.03); }

.css365jz-section__header { margin-bottom: 18px; }
.css365jz-section__header h2 { margin: 0 0 6px; font-size: 24px; }
.css365jz-section__header p { margin: 0; color: var(--css365jz-text-muted); }

.css365jz-card {
  padding: 18px;
  border-radius: var(--css365jz-radius-md);
  border: 1px solid var(--css365jz-border);
  background: var(--css365jz-surface);
  box-shadow: var(--css365jz-shadow-sm);
}
.css365jz-card h3 { margin: 0 0 8px; font-size: 18px; }
.css365jz-card p { margin: 0 0 14px; color: var(--css365jz-text-muted); }

.css365jz-feature {
  padding: 18px;
  border-radius: var(--css365jz-radius-md);
  background: var(--css365jz-surface);
  border: 1px solid var(--css365jz-border);
  display: flex;
  align-items: center;
  gap: 16px;
}

.css365jz-feature__icon { 
  font-size: 22px; 
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--css365jz-primary-ghost);
  border-radius: 12px;
}

.css365jz-feature__content {
  flex: 1;
}

.css365jz-feature h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
}

.css365jz-feature p {
  margin: 0;
  color: var(--css365jz-text-muted);
  font-size: 14px;
  line-height: 1.5;
}

/* 统计卡片网格 */
.css365jz-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 32px;
}

.css365jz-stat-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--css365jz-surface);
  border: 1px solid var(--css365jz-border);
  border-radius: var(--css365jz-radius-md);
  box-shadow: var(--css365jz-shadow-sm);
}

.css365jz-stat-card__icon {
  font-size: 24px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--css365jz-primary-ghost);
  border-radius: 12px;
}

.css365jz-stat-card__value {
  font-size: 20px;
  font-weight: 700;
  color: var(--css365jz-text);
  margin-bottom: 2px;
}

.css365jz-stat-card__label {
  font-size: 13px;
  color: var(--css365jz-text-muted);
}

/* Stats grid responsiveness moved to consolidated mobile media query */

@media (max-width: 480px) {
  .css365jz-stats-grid { grid-template-columns: 1fr; }
}

/* 表格 */
.css365jz-table-wrap { overflow-x: auto; background: var(--css365jz-surface); border-radius: 12px; border: 1px solid var(--css365jz-border); }
.css365jz-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.css365jz-table th, .css365jz-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--css365jz-border); }
.css365jz-table thead th { background: rgba(0,0,0,.03); font-weight: 700; }
.css365jz-theme--dark .css365jz-table thead th { background: rgba(255,255,255,.03); }

/* 下载卡片 */
.css365jz-download-card {
  padding: 24px;
  background: var(--css365jz-surface);
  border: 1px solid var(--css365jz-border);
  border-radius: var(--css365jz-radius-md);
  box-shadow: var(--css365jz-shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.css365jz-download-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--css365jz-shadow-md);
}

.css365jz-download-card__icon {
  font-size: 48px;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--css365jz-primary-ghost);
  border-radius: 20px;
  margin-bottom: 16px;
}

.css365jz-download-card__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.css365jz-download-card h3 {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 600;
  color: var(--css365jz-text);
}

.css365jz-download-card p {
  margin: 0 0 20px;
  color: var(--css365jz-text-muted);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

.css365jz-download-card .css365jz-btn {
  margin-top: auto;
  min-width: 120px;
}

/* 交易所卡片 */
.css365jz-exchange-card {
  padding: 20px;
  background: var(--css365jz-surface);
  border: 1px solid var(--css365jz-border);
  border-radius: var(--css365jz-radius-md);
  box-shadow: var(--css365jz-shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.css365jz-exchange-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--css365jz-shadow-md);
}

.css365jz-exchange-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.css365jz-exchange-card__logo {
  font-size: 28px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--css365jz-primary-ghost);
  border-radius: 12px;
}

.css365jz-exchange-card__info h3 {
  margin: 0 0 4px;
  font-size: 18px;
}

.css365jz-exchange-card__info p {
  margin: 0;
  color: var(--css365jz-text-muted);
  font-size: 14px;
}

.css365jz-exchange-card__rank {
  margin-left: auto;
  background: var(--css365jz-primary);
  color: #fff;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
}

.css365jz-exchange-card__stats {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.css365jz-exchange-card__stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.css365jz-exchange-card__stat-label {
  font-size: 12px;
  color: var(--css365jz-text-muted);
}

.css365jz-exchange-card__stat-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--css365jz-text);
}

.css365jz-exchange-card__features {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.css365jz-tag {
  background: var(--css365jz-primary-ghost);
  color: var(--css365jz-primary);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
}

/* 币种详情卡片 */
.css365jz-coin-detail {
  padding: 20px;
  background: var(--css365jz-surface);
  border: 1px solid var(--css365jz-border);
  border-radius: var(--css365jz-radius-md);
  box-shadow: var(--css365jz-shadow-sm);
}

.css365jz-coin-detail__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.css365jz-coin-detail__symbol {
  font-size: 32px;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--css365jz-primary-ghost);
  border-radius: 14px;
}

.css365jz-coin-detail__info h3 {
  margin: 0 0 4px;
  font-size: 20px;
}

.css365jz-coin-detail__info p {
  margin: 0;
  color: var(--css365jz-text-muted);
  font-size: 14px;
}

.css365jz-coin-detail__price {
  margin-left: auto;
  text-align: right;
}

.css365jz-coin-detail__price-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--css365jz-text);
}

.css365jz-coin-detail__price-change {
  font-size: 14px;
  font-weight: 600;
}

.css365jz-coin-detail__chart {
  height: 80px;
  margin-bottom: 16px;
  border-radius: 8px;
  overflow: hidden;
}

.css365jz-mini-chart {
  width: 100%;
  height: 100%;
  background: var(--css365jz-primary-ghost);
  position: relative;
}

.css365jz-chart-up {
  background: linear-gradient(135deg, rgba(34,197,94,.2), rgba(34,197,94,.05));
}

.css365jz-chart-down {
  background: linear-gradient(135deg, rgba(239,68,68,.2), rgba(239,68,68,.05));
}

.css365jz-mini-chart::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: repeating-linear-gradient(
    90deg,
    transparent 0px,
    rgba(0,0,0,.1) 1px,
    transparent 2px,
    transparent 8px
  );
}

.css365jz-coin-detail__stats {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.css365jz-coin-detail__stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--css365jz-border);
}

.css365jz-coin-detail__stat:last-child {
  border-bottom: none;
}

.css365jz-coin-detail__stat span:first-child {
  color: var(--css365jz-text-muted);
  font-size: 14px;
}

.css365jz-coin-detail__stat span:last-child {
  color: var(--css365jz-text);
  font-weight: 600;
}

/* 新闻卡片 */
.css365jz-news-card {
  background: var(--css365jz-surface);
  border: 1px solid var(--css365jz-border);
  border-radius: var(--css365jz-radius-md);
  box-shadow: var(--css365jz-shadow-sm);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.css365jz-news-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--css365jz-shadow-md);
}

.css365jz-news-card__image {
  height: 120px;
  background: var(--css365jz-primary-ghost);
  display: flex;
  align-items: center;
  justify-content: center;
}

.css365jz-news-card__placeholder {
  font-size: 32px;
}

.css365jz-news-card__content {
  padding: 16px;
}

.css365jz-news-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.css365jz-news-card__category {
  background: var(--css365jz-primary);
  color: #fff;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
}

.css365jz-news-card__date {
  color: var(--css365jz-text-muted);
  font-size: 12px;
}

.css365jz-news-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.4;
}

.css365jz-news-card p {
  margin: 0 0 12px;
  color: var(--css365jz-text-muted);
  font-size: 14px;
  line-height: 1.5;
}

.css365jz-news-card__link {
  color: var(--css365jz-primary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.css365jz-news-card__link:hover {
  text-decoration: underline;
}

/* 用户评价 */
.css365jz-testimonial {
  padding: 20px;
  background: var(--css365jz-surface);
  border: 1px solid var(--css365jz-border);
  border-radius: var(--css365jz-radius-md);
  box-shadow: var(--css365jz-shadow-sm);
}

.css365jz-testimonial__avatar {
  font-size: 32px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--css365jz-primary-ghost);
  border-radius: 12px;
  margin-bottom: 12px;
}

.css365jz-testimonial__rating {
  margin-bottom: 12px;
  font-size: 16px;
}

.css365jz-testimonial p {
  margin: 0 0 16px;
  color: var(--css365jz-text-muted);
  font-style: italic;
  line-height: 1.6;
}

.css365jz-testimonial__author strong {
  display: block;
  color: var(--css365jz-text);
  margin-bottom: 2px;
}

.css365jz-testimonial__author span {
  color: var(--css365jz-text-muted);
  font-size: 14px;
}

/* 手风琴 */
.css365jz-accordion__item { border: 1px solid var(--css365jz-border); border-radius: 10px; background: var(--css365jz-surface); padding: 10px 12px; }
.css365jz-accordion__item + .css365jz-accordion__item { margin-top: 12px; }
.css365jz-accordion__content { color: var(--css365jz-text-muted); padding: 6px 2px 2px; }

/* 页脚 */
.css365jz-footer { padding: 40px 0 30px; border-top: 1px solid var(--css365jz-border); background: rgba(0,0,0,.02); }
.css365jz-theme--dark .css365jz-footer { background: rgba(255,255,255,.03); }
.css365jz-footer__grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 20px; }
.css365jz-footer__title { margin: 0 0 10px; font-size: 16px; }
.css365jz-footer__copy { margin-top: 18px; color: var(--css365jz-text-muted); font-size: 13px; text-align: center; }

@media (max-width: 900px) {
  .css365jz-footer__grid { grid-template-columns: 1fr; }
}

/* 移动端响应式优化 - 防止横向滚动 */
@media (max-width: 768px) {
  /* 防止整体页面横向滚动 */
  .css365jz-body {
    overflow-x: hidden;
  }

  /* 优化容器在小屏幕上的内边距 */
  .css365jz-container {
    padding: 0 16px;
  }

  /* 确保所有内容不超出视口宽度 */
  * {
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Grid responsiveness */
  .css365jz-grid--3 { grid-template-columns: 1fr; }
  .css365jz-grid--4 { grid-template-columns: 1fr; }

  /* Stats grid responsiveness */
  .css365jz-stats-grid { grid-template-columns: repeat(2, 1fr); }

  /* 防止表格容器造成横向滚动 */
  .css365jz-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
  }

  /* 移动端表格优化 */
  .css365jz-table {
    min-width: 100%;
    font-size: 14px;
  }

  .css365jz-table th,
  .css365jz-table td {
    padding: 8px 6px;
    white-space: nowrap;
  }

  /* 移动端卡片和功能区域优化 */
  .css365jz-feature {
    flex-direction: column;
    text-align: center;
    padding: 16px;
  }

  .css365jz-feature__icon {
    margin-bottom: 8px;
  }

  /* 交易所卡片移动端优化 */
  .css365jz-exchange-card {
    padding: 16px;
  }

  .css365jz-exchange-card__stats {
    flex-direction: column;
    gap: 12px;
  }

  .css365jz-exchange-card__features {
    justify-content: center;
  }

  /* 币种详情卡片移动端优化 */
  .css365jz-coin-detail {
    padding: 16px;
  }

  .css365jz-coin-detail__header {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  .css365jz-coin-detail__price {
    margin-left: 0;
    text-align: center;
  }

  /* 新闻卡片移动端优化 */
  .css365jz-news-card__content {
    padding: 12px;
  }

  .css365jz-news-card h3 {
    font-size: 15px;
  }

  /* 下载卡片移动端优化 */
  .css365jz-download-card {
    padding: 20px 16px;
  }

  .css365jz-download-card__icon {
    width: 64px;
    height: 64px;
    font-size: 36px;
    margin-bottom: 12px;
  }

  .css365jz-download-card h3 {
    font-size: 18px;
  }

  .css365jz-download-card p {
    font-size: 13px;
    margin-bottom: 16px;
  }

  .css365jz-download-card .css365jz-btn {
    width: 100%;
    min-width: auto;
  }
}

@media (max-width: 480px) {
  /* 超小屏幕进一步优化 */
  .css365jz-container {
    padding: 0 12px;
  }

  /* 表格在超小屏幕的进一步优化 */
  .css365jz-table {
    font-size: 12px;
  }

  .css365jz-table th,
  .css365jz-table td {
    padding: 6px 4px;
  }
}

/* 可访问性微调 */
:focus { outline: 2px dashed var(--css365jz-primary); outline-offset: 2px; }


