/*!
 * Raqcoin.net 站点样式（优化重构版）
 * 设计基调沿用原 Cryptod 模板：主色 #096e3f / #ffce00，标题 Lora，正文 Roboto
 * 自包含：字体本地化、无第三方 CSS 依赖
 */

/* =========================================================
   0. 字体（本地可变字体，font-display:swap 避免白屏）
   ========================================================= */
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/lora-var.woff2') format('woff2');
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/roboto-var.woff2') format('woff2');
}

/* =========================================================
   1. 变量 & 基础重置
   ========================================================= */
:root {
  --green: #096e3f;
  --green-dark: #075a33;
  --yellow: #ffce00;
  --ink: #141414;
  --text: #666;
  --line: #e8e8e8;
  --bg-soft: #f8f8f8;
  --header-h: 72px;
  --font-serif: 'Lora', Georgia, 'Songti SC', 'SimSun', serif;
  --font-sans: 'Roboto', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; }
img, svg { vertical-align: middle; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--ink);
  line-height: 1.3;
  margin: 0 0 16px;
}
h1 { font-size: 44px; }
h2 { font-size: 38px; line-height: 1.3; font-weight: 700; }
h3 { font-size: 28px; }
h4 { font-size: 20px; font-weight: 500; }

p { margin: 0 0 14px; color: var(--text); line-height: 1.9; }

a {
  color: inherit;
  text-decoration: none;
  transition: color .25s ease, background .25s ease, opacity .25s ease;
}
a:hover { color: var(--yellow); }

ul { margin: 0; padding: 0; }
li { list-style: none; }

button { font: inherit; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
}

/* 跳转链接（无障碍） */
.skip-link {
  position: absolute;
  left: 8px;
  top: -48px;
  z-index: 2000;
  background: var(--ink);
  color: #fff;
  padding: 8px 16px;
  transition: top .2s;
}
.skip-link:focus { top: 8px; color: #fff; }

/* =========================================================
   2. 布局栅格（替代 Bootstrap 3）
   ========================================================= */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}
.row > [class*="col-"] {
  width: 100%;
  padding: 0 15px;
}
.row-eq-height { align-items: center; }

/* xs（手机默认） */
.row > .col-xs-6 { width: 50%; }

@media (min-width: 768px) {
  .row > .col-sm-6 { width: 50%; }
}
@media (min-width: 992px) {
  .row > .col-md-2  { width: 16.6667%; }
  .row > .col-md-3  { width: 25%; }
  .row > .col-md-4  { width: 33.3333%; }
  .row > .col-md-6  { width: 50%; }
  .row > .col-md-8  { width: 66.6667%; }
  .row > .col-md-12 { width: 100%; }
}

/* 工具类 */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.img-responsive { display: block; max-width: 100%; height: auto; }
.pr { position: relative; }
.bg-deep { background: var(--bg-soft); }
.bg-white { background: #fff; }
.title-white { color: #fff !important; }

.boxshadow {
  box-shadow: 0 6px 35px rgba(95, 95, 95, .08);
  transition: box-shadow .3s ease, transform .3s ease;
  background: #fff;
}
.boxshadow:hover {
  box-shadow: 0 10px 40px rgba(95, 95, 95, .18);
  transform: translateY(-2px);
}

.section-padding { padding: 88px 0; }
.section-head { margin-bottom: 56px; }
.section-head p { max-width: 760px; margin: 18px auto 0; }

/* 按钮 */
.cryptod-button-success,
.cryptod-button-warning {
  display: inline-block;
  min-width: 160px;
  padding: 12px 26px;
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .5px;
  text-align: center;
  color: #fff;
  border: 0;
  transition: background .3s ease, transform .2s ease;
}
.cryptod-button-success { background: var(--green); }
.cryptod-button-warning { background: var(--yellow); color: #222 !important; }
.cryptod-button-success:hover { background: var(--green-dark); color: #fff; }
.cryptod-button-warning:hover { background: #e6b900; color: #222 !important; }

/* =========================================================
   3. 头部导航
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0,0,0,.06);
  transition: box-shadow .3s ease;
}
.site-header.is-scrolled { box-shadow: 0 4px 18px rgba(0,0,0,.12); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 24px;
}
.logo { display: inline-flex; align-items: center; flex: none; }
.logo img { height: 30px; width: auto; }

.site-nav > ul {
  display: flex;
  align-items: center;
  gap: 6px;
}
.site-nav a {
  display: block;
  padding: 10px 14px;
  font-size: 15px;
  color: var(--ink);
}
.site-nav a:hover { color: var(--green); }
.site-nav a[aria-current="page"] {
  color: var(--green);
  font-weight: 700;
}
/* 下拉菜单 */
.site-nav li { position: relative; }
.site-nav .dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,.14);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all .25s ease;
  z-index: 100;
}
.site-nav li:hover > .dropdown,
.site-nav li:focus-within > .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.site-nav .dropdown a { padding: 9px 18px; font-size: 14px; }
.site-nav .dropdown a:hover { background: var(--bg-soft); }

/* 汉堡按钮 */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 0;
  position: relative;
  z-index: 1100;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 991px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    overflow-y: auto;
    padding: 12px 20px 40px;
    transform: translateX(100%);
    transition: transform .3s ease;
    visibility: hidden;
  }
  .site-nav.is-open { transform: translateX(0); visibility: visible; }
  .site-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav > ul > li { border-bottom: 1px solid var(--line); }
  .site-nav a { padding: 15px 4px; font-size: 17px; }
  .site-nav .dropdown {
    position: static;
    min-width: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    background: var(--bg-soft);
    padding: 4px 0;
  }
  .site-nav li.is-expanded > .dropdown { display: block; }
  .site-nav li.has-sub > a { display: flex; justify-content: space-between; align-items: center; }
  .site-nav li.has-sub > a::after {
    content: '';
    width: 8px; height: 8px;
    border-right: 2px solid #999;
    border-bottom: 2px solid #999;
    transform: rotate(45deg);
    transition: transform .25s;
    flex: none;
    margin-left: 10px;
  }
  .site-nav li.is-expanded > a::after { transform: rotate(225deg); }
  .site-nav .dropdown a { font-size: 15px; padding: 12px 14px; }
}

/* =========================================================
   4. 首页轮播（替代 Revolution Slider）
   ========================================================= */
.hero {
  position: relative;
  height: calc(100vh - var(--header-h));
  min-height: 540px;
  max-height: 960px;
  overflow: hidden;
  background: #0a1418;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease, visibility 1s ease;
  display: flex;
  align-items: center;
}
.hero-slide.is-active { opacity: 1; visibility: visible; z-index: 2; }
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.45) 55%, rgba(0,0,0,.25) 100%);
}
.hero-content {
  position: relative;
  z-index: 3;
  max-width: 640px;
  color: #fff;
}
.hero-kicker {
  font-size: 14px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 14px;
}
.hero-title {
  font-size: clamp(44px, 7vw, 72px);
  line-height: 1.1;
  color: #fff;
  margin-bottom: 6px;
}
.hero-subtitle {
  font-size: clamp(26px, 4vw, 40px);
  color: #fff;
  font-weight: 700;
  margin-bottom: 22px;
}
.hero-desc {
  font-size: 16px;
  line-height: 1.9;
  color: rgba(255,255,255,.85);
  margin-bottom: 30px;
}
/* 文字入场动画（仅当前激活 slide） */
.hero-slide.is-active .hero-kicker,
.hero-slide.is-active .hero-title,
.hero-slide.is-active .hero-subtitle,
.hero-slide.is-active .hero-desc,
.hero-slide.is-active .hero-cta {
  animation: heroIn .9s cubic-bezier(.2,.65,.3,1) both;
}
.hero-slide.is-active .hero-title    { animation-delay: .12s; }
.hero-slide.is-active .hero-subtitle { animation-delay: .24s; }
.hero-slide.is-active .hero-desc     { animation-delay: .36s; }
.hero-slide.is-active .hero-cta      { animation-delay: .48s; }
@keyframes heroIn {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}

/* 轮播控件 */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.14);
  color: #fff;
  display: grid;
  place-items: center;
  transition: background .25s ease;
}
.hero-arrow:hover { background: var(--yellow); color: #222; }
.hero-arrow--prev { left: 18px; }
.hero-arrow--next { right: 18px; }
.hero-dots {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 10px;
}
.hero-dots button {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(255,255,255,.4);
  transition: background .25s ease, transform .25s ease;
}
.hero-dots button.is-active { background: var(--yellow); transform: scale(1.25); }

@media (max-width: 767px) {
  .hero { min-height: 480px; }
  .hero-content { text-align: center; margin: 0 auto; padding: 0 6px; }
  .hero-slide::after { background: rgba(0,0,0,.55); }
  .hero-arrow { display: none; }
}

/* =========================================================
   5. 内页 Banner
   ========================================================= */
.banner-section {
  position: relative;
  padding: 96px 0;
  background-image: image-set(url('../images/banner/banner-section.webp') type('image/webp'), url('../images/banner/banner-section.jpg') type('image/jpeg'));
  background-size: cover;
  background-position: center;
  text-align: center;
}
.banner-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.66);
}
.banner-title {
  position: relative;
  z-index: 2;
}
.banner-title h1 {
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 400;
  color: #fff;
  margin: 0;
}

/* =========================================================
   6. 各区块
   ========================================================= */
/* 关于 / 双栏 */
.about-section { padding-top: 96px; }
.about-content-section { padding-top: 88px; }
.about-inner .text { padding-top: 10px; }
.about-inner .cryptod-button-success { margin: 10px 0 26px; }
.about-inner-text-content { padding-top: 20px; }

/* 特性卡片 */
.blog { margin-bottom: 30px; background: #fff; }
.blog .image { overflow: hidden; }
.blog .image img { width: 100%; transition: transform .6s ease; display: block; }
.blog:hover .image img { transform: scale(1.05); }
.blog .text-content { padding: 26px 32px 30px; }
.blog .text-content h4 { margin-bottom: 10px; }
.blog .text-content h4 a:hover { color: var(--green); }

/* 深色视差区块 */
.parallax-section {
  position: relative;
  padding: 110px 0 120px;
  background-image: image-set(url('../images/banner/banner.webp') type('image/webp'), url('../images/banner/banner.jpg') type('image/jpeg'));
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.parallax-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.78);
}
.parallax-section > .container { position: relative; z-index: 2; }
@media (hover: none) {
  .parallax-section { background-attachment: scroll; }
}

.service-process { margin-top: 34px; }
.service-process .text-content { padding: 24px 10px; }
.service-process .text-content h4 { color: var(--yellow); margin-top: 0; }
.service-process .text-content p { color: #d1d1d1; margin: 0; }
.service-process .icon-icon {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.06);
}
.service-process .icon-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px dashed rgba(255,255,255,.55);
  border-radius: 50%;
  animation: rotate 30s linear infinite;
}
@keyframes rotate { to { transform: rotate(360deg); } }
.service-process .icon-icon img { width: 46px; height: 46px; object-fit: contain; }
.process-one {
  position: absolute;
  right: -4px;
  top: -4px;
  width: 34px;
  height: 34px;
  background: var(--green);
  color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-family: var(--font-serif);
  z-index: 2;
}

/* 服务/摘要标题 */
.service-text h2 { font-size: 34px; }
.service-text h2 span { color: var(--yellow); }

/* 矿池挖矿 */
.pool-section { background: var(--bg-soft); }
.pool-box {
  max-width: 880px;
  margin: 0 auto;
  padding: 44px 48px 48px;
  text-align: center;
}
.pool-url { margin: 0; font-size: 17px; color: var(--text); }
.pool-url a {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 20px;
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 4px;
  word-break: break-all;
}
.pool-url a:hover { color: var(--green-dark); }
.pool-desc {
  max-width: 720px;
  margin: 20px auto 0;
  font-size: 16px;
  line-height: 1.9;
  color: var(--text);
}
.pool-cta { margin: 30px 0 0; }
.pool-cta .cryptod-button-warning { min-width: 240px; }

/* 研究报告文章页 */
.article { max-width: 860px; margin: 0 auto; font-size: 16.5px; line-height: 2; color: #444; }
.article-head { text-align: center; margin-bottom: 44px; }
.article-head .a-title { font-size: 32px; margin: 0; color: var(--ink); }
.article-head .a-meta { margin: 14px 0 0; color: #999; font-size: 14px; letter-spacing: 1px; }
.abstract {
  background: var(--bg-soft);
  border-left: 4px solid var(--yellow);
  padding: 28px 30px 18px;
  margin: 0 0 30px;
}
.abstract h3 { margin: 0 0 14px; font-size: 20px; color: var(--ink); }
.abstract ol { margin: 0; padding-left: 20px; }
.abstract li { margin-bottom: 8px; }
.keywords {
  display: flex; flex-wrap: wrap; gap: 10px;
  justify-content: center;
  margin: 0 0 52px; padding: 0; list-style: none;
}
.keywords li {
  background: #fff;
  border: 1px solid var(--line);
  padding: 4px 16px;
  font-size: 13px;
  color: var(--text);
  border-radius: 999px;
}
.article h3 {
  font-family: var(--font-serif);
  font-size: 24px;
  color: var(--ink);
  margin: 56px 0 20px;
  padding-left: 14px;
  border-left: 4px solid var(--green);
  line-height: 1.4;
}
.article p { margin: 0 0 18px; text-align: justify; }
.figure { margin: 32px auto; text-align: center; }
.figure img {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--line);
  background: #fff;
}
.figure figcaption { margin-top: 12px; font-size: 13.5px; color: #999; }
.quote-en {
  background: var(--bg-soft);
  padding: 22px 26px;
  margin: 0 0 18px;
  font-size: 14.5px;
  line-height: 1.85;
  color: #777;
  font-style: italic;
}
.article-note { font-size: 15px; color: #777; background: var(--bg-soft); padding: 18px 22px; border-radius: 6px; }
.refs { font-size: 14px; line-height: 1.9; }
.refs ol { padding-left: 20px; margin: 0; }
.refs li { margin-bottom: 8px; word-break: break-all; }
.refs a { color: var(--green); }
.appendix-links { padding: 0; list-style: none; margin: 0 0 8px; }
.appendix-links li { margin-bottom: 10px; }
.appendix-links a { color: var(--green); font-weight: 500; }
.download-box { text-align: center; margin: 52px 0 0; }

/* 钱包 / 团队卡片 */
.expert-team { margin-bottom: 30px; background: #fff; }
.expert-team .image { overflow: hidden; }
.expert-team .image img { width: 100%; display: block; }
.expert-team .text-content { padding: 24px 28px 28px; }
.expert-team .text-content h4 { margin: 0 0 6px; }
.expert-team .text-content h4 a:hover { color: var(--green); }
.expert-team .designation { color: #999; font-size: 14px; letter-spacing: 1px; }

/* 捐助页 */
.contact-form { padding: 46px 50px 56px; }
.input-head { margin-bottom: 34px; }
.input-head h4 { margin: 0; }
.input-head h4 a { color: var(--ink); }
.address-code {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  background: var(--bg-soft);
  border: 1px dashed #cfcfcf;
  padding: 14px 16px;
  margin-bottom: 18px;
}
.address-code code {
  font-family: 'SFMono-Regular', Menlo, Consolas, monospace;
  font-size: 13px;
  word-break: break-all;
  color: var(--ink);
  flex: 1 1 260px;
}
.copy-btn {
  flex: none;
  border: 1px solid var(--green);
  background: #fff;
  color: var(--green);
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 4px;
  transition: all .25s ease;
}
.copy-btn:hover { background: var(--green); color: #fff; }
.copy-btn.is-copied { background: var(--green); color: #fff; }
.donate-qr { max-width: 220px; border: 1px solid var(--line); padding: 8px; background: #fff; }

.table-wrap { overflow-x: auto; }
.donate-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-top: 8px;
}
.donate-table th, .donate-table td {
  border: 1px solid var(--line);
  padding: 10px 14px;
  text-align: left;
  word-break: break-all;
}
.donate-table th { background: var(--bg-soft); color: var(--ink); font-weight: 500; }

.address-box {
  padding: 34px 36px 38px;
  background: #fff;
  margin-bottom: 30px;
}
.address-box h4 {
  margin: 0 0 16px;
  font-size: 17px;
  line-height: 1.7;
}
.address-box h4 a { color: var(--ink); }
.address-box p { margin: 0; }

/* =========================================================
   7. 页脚
   ========================================================= */
.footer-area {
  background: #282828;
  padding-top: 88px;
  margin-top: 0;
}
.footer-banner {
  background-image: image-set(url('../images/banner/footer-banner.webp') type('image/webp'), url('../images/banner/footer-banner.png') type('image/png'));
  background-size: cover;
}
.footer-content { margin-bottom: 34px; }
.footer-content h4 { color: #fff; margin-bottom: 22px; }
.footer-content p, .footer-content ul li a { color: #bababa; font-size: 14px; }
.footer-content .text-content p { padding-bottom: 6px; margin: 0; }
.footer-content ul li { padding-bottom: 8px; }
.footer-content ul li a:hover { color: var(--yellow); }
.footer-logo { padding-bottom: 22px; display: inline-block; }

.copyright {
  padding: 26px 0;
  border-top: 1px solid #424242;
  margin-top: 26px;
}
.copyright-info p { color: #bababa; margin: 0; font-size: 13px; }

/* =========================================================
   8. Preloader（不再阻塞渲染：JS 就绪后立即移除）
   ========================================================= */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: #fff;
  display: grid;
  place-items: center;
  transition: opacity .4s ease, visibility .4s ease;
}
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader .loading {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid rgba(237,237,237,.9);
  border-top-color: var(--yellow);
  animation: spinner 1s infinite linear;
}
@keyframes spinner { to { transform: rotate(360deg); } }
.no-js .preloader { display: none; }

/* =========================================================
   9. 入场动画（ WOW.js 替代）
   ========================================================= */
.wow { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s ease; }
.wow.is-revealed { opacity: 1; transform: none; }
.no-js .wow { opacity: 1; transform: none; }

/* =========================================================
   10. 响应式细节
   ========================================================= */
@media (max-width: 991px) {
  .section-padding { padding: 56px 0; }
  .about-section, .about-content-section { padding-top: 64px; }
  .section-head { margin-bottom: 36px; }
  h2 { font-size: 30px; }
  .contact-form { padding: 34px 28px 40px; }
  .pool-box { padding: 34px 26px 38px; }
  .pool-url a { font-size: 18px; }
}

@media (max-width: 480px) {
  h1 { font-size: 30px; }
  h2 { font-size: 26px; }
  .row-eq-height .col-xs-6 { width: 100%; }
  .banner-section { padding: 64px 0; }
  .blog .text-content { padding: 22px 22px 26px; }
  .contact-form { padding: 28px 20px 32px; }
  .pool-box { padding: 28px 20px 32px; }
  .pool-url { font-size: 15px; }
  .pool-url a { font-size: 16px; }
  .pool-cta .cryptod-button-warning { min-width: 0; width: 100%; }
}

/* 减少动效偏好 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .wow { opacity: 1; transform: none; }
}
