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

html, body {
  min-width: 0;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-base);
  line-height: 1.55;
  color: var(--text-primary);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--primary-blue);
}

a.btn-primary,
a.directory-btn--primary,
a.at-btn--primary,
a.mc-btn--primary,
a[class*="btn--primary"],
a[class*="btn-primary"] {
  color: #fff !important;
}

a.btn-primary:hover,
a.directory-btn--primary:hover,
a.at-btn--primary:hover,
a.mc-btn--primary:hover,
a[class*="btn--primary"]:hover,
a[class*="btn-primary"]:hover {
  color: #fff !important;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: var(--container-width, 1380px);
  max-width: 100%;
  min-width: 0;
  margin: 0 auto;
  padding: 0 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border: 2px solid transparent;
  border-radius: var(--radius-base);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: all .2s cubic-bezier(0.16, 1, 0.3, 1);
  gap: 6px;
}

.btn-primary {
  background: var(--primary-gradient);
  color: #fff;
  box-shadow: 0 2px 8px rgba(37,99,235,0.2);
}

.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(37,99,235,0.3);
  transform: translateY(-1px);
  color: #fff;
}

.btn-secondary {
  background: var(--primary-orange-light);
  color: var(--error);
}

.btn-secondary:hover {
  background: #ffe0d1;
  color: var(--primary-orange-dark);
}

.card {
  background: rgba(255,255,255,0.97);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-base);
  overflow: hidden;
}

.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
  border-color: transparent;
  transition: all .25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .grid-2 { grid-template-columns: 1fr; }
}

/* ── visually-hidden ── */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── 富文本内容防溢出 ── */
.rich-text, .at-content, .pd-section-body {
  overflow-wrap: break-word;
  word-break: break-word;
}
.rich-text img, .at-content img {
  max-width: 100%;
  height: auto;
}
.rich-text table, .at-content table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.rich-text iframe, .at-content iframe {
  max-width: 100%;
}
.rich-text pre, .at-content pre {
  overflow-x: auto;
  max-width: 100%;
}
