/*
Theme Name: NOVA — Nova Times
Theme URI: https://www.novatimes.com.cn/
Author: Chengdu Nova Times Technology
Description: NOVA 品牌站主题。排版沿用原静态站（inc/legacy/ 下的片段与 assets/css/legacy.css），WordPress 负责内容、后台与询盘管道。
Version: 1.1.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: nova
*/

/* ==========================================================================
   基础层
   --------------------------------------------------------------------------
   原站的视觉全部在 assets/css/legacy.css 与 assets/css/legacy-wp.css 里，
   这个文件只保留 WordPress 编辑器需要的少量基础样式，不再重复定义配色，
   避免两套令牌互相覆盖。
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: 'Archivo', 'Noto Sans SC', -apple-system, BlinkMacSystemFont,
    'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  font-size: 16px;
  line-height: 1.62;
  color: #171614;
  background: #FFFFFF;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: #0E5C4D; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: .18em; }
button { font: inherit; color: inherit; }

/* ---------- WordPress 编辑器与后台输出的类 ---------- */

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignnone { margin: 0; }
.alignwide { width: min(1100px, 92vw); margin-left: auto; margin-right: auto; }
.alignfull { width: 100%; }

.wp-caption { max-width: 100%; }
.wp-caption-text, .wp-block-image figcaption {
  font-size: 12.5px;
  color: #6D6860;
  margin-top: 8px;
  text-align: center;
}
.wp-caption-text { text-align: center; }

.sticky { position: static; }
.gallery-caption { display: block; font-size: 13px; color: #6D6860; }
.bypostauthor { display: block; }

.wp-block-image img { border-radius: 3px; }
.wp-block-quote, .wp-block-pullquote { margin: 1.6em 0; }
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #0E5C4D;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 24px;
  border-radius: 3px;
  text-decoration: none;
}
.wp-block-button__link:hover { background: #0A4A3E; text-decoration: none; }
.wp-block-table td, .wp-block-table th { border: 1px solid rgba(23,22,20,.13); padding: 9px 11px; }
.wp-block-separator { border-bottom: 1px solid rgba(23,22,20,.13); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}