@font-face {
  font-family: 'Roboto';
  src: url('/webfonts/Roboto-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Roboto';
  src: url('/webfonts/Roboto-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Roboto';
  src: url('/webfonts/Roboto-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'OKYSFont';
  src: url('/webfonts/兰亭集序书法字体.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'wen';
  src: url('/webfonts/wen.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'ok';
  src: url('/webfonts/ok.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* ✅ 粒子背景层覆盖全局 */
#particles-js {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(135deg, #4285F4, #34A853, #FBBC05, #EA4335);
}

/* ✅ 内容层在粒子之上 */
header.hero,
main.container,
footer {
  position: relative;
  z-index: 1;
}

/* ✅ 首页标题字体 */
.hero-content h1 {
  font-family: 'ok','wen', '微软雅黑',cursive;
  font-size: 4em;
  margin-bottom: 10px;
  color: white;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4);
  letter-spacing: 1px;
  animation: fadeInUp 1.2s ease-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content h1 .logo-icon {
  width: 140px;
  height: auto;
  vertical-align: middle;
  margin-right: -15px; /* ✅ 关键：负 margin 拉近图标和文字 */
}

/* ✅ 新增：左右滑入动画 */
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ✅ 应用于图标和文字 */
.hero-content h1 .logo-icon {
  animation: fadeInLeft 1.2s ease-out;
}

.hero-content h1 .logo-text {
  display: inline-block;
  animation: fadeInRight 1.2s ease-out;
}

/* ✅ 点播接口标题字体 */
.dianbo-title {
  font-family: 'wen', '微软雅黑', cursive;
  font-size: 2.2em;
  color: #222;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
  margin-bottom: 20px;
}

/* ✅ 点播接口说明文字 */
.features.yahei p,
.features.yahei ol,
.features.yahei li {
  font-family: 'Microsoft YaHei', '微软雅黑', sans-serif;
  font-size: 1em;
  line-height: 1.8;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
  color: #333;
  text-align: center;
}

.hero {
  height: 50vh;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content p {
  font-size: 1.2em;
  margin-bottom: 20px;
  opacity: 0.9;
}

/* ✅ 按钮统一样式 */
.btn-download {
  display: inline-block;
  padding: 14px 24px;
  font-size: 1.2em;
  background: white;
  color: #333;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
  font-family: 'Roboto', 'Microsoft YaHei', sans-serif; /* ✅ 添加这一行 */
}

.btn-download:hover {
  background: #222;
  color: white;
}

main {
  flex: 1;
}

.container {
  width: 90%;
  max-width: 600px;
  margin: 0 auto;
  padding: 50px 0;
  text-align: center;
}

.features, .contact {
  background: transparent;
  padding: 20px;
  margin-top: 30px;
  text-align: center;
}

.features ol {
  padding-left: 0;
  list-style-position: inside;
}

.copy-btn {
  display: inline-block;
  padding: 10px 15px;
  background: #4285F4;
  color: white;
  border-radius: 5px;
  text-decoration: none;
  margin-top: 10px;
  transition: background 0.3s ease;
}

.copy-btn:hover {
  background: #0b66c2;
}

main {
  flex: 1;
}

.container {
  width: 90%;
  max-width: 600px;
  margin: 0 auto;
  padding: 50px 0;
  text-align: center;
}

.features, .contact {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
  border-radius: 12px;
  padding: 20px;
  margin-top: 30px;
  text-align: center;
}

.features ol {
  padding-left: 0;
  list-style-position: inside;
}

.email-link {
  color: #EA4335;
  text-decoration: none;
  font-weight: bold;
  font-family: 'Microsoft YaHei', sans-serif !important;
}


.footer-brand {
  font-family: 'Microsoft YaHei', sans-serif;
  font-size: 1.1em;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: white;
}

.email-link:hover {
  text-decoration: underline;
}

footer {
  background: rgba(51, 51, 51, 0.65);
  color: white;
  padding: 20px;
  font-size: 0.95em;
  text-align: center;
}

/* ✅ 响应式优化 */
@media (max-width: 600px) {
  .hero-content h1 {
    font-size: 2.5em;
  }
  .logo-icon {
    width: 80px;
  }
}
