/*
Theme Name: 锐悟智能 Ruiwu
Theme URI: https://47.101.181.66
Author: Ruiwu
Author URI: https://47.101.181.66
Description: 锐悟智能企业官网子主题 - 基于 Twenty Twenty-Four 的清新明亮企业首页（白底蓝调）。
Template: twentytwentyfour
Version: 1.1.0
License: GNU General Public License v2 or later
Text Domain: ruiwu
*/

/* 附加样式（补充自定样式，主样式继承父主题并覆盖） */
:root {
  --ruiwu-bg: #f4f8fb;        /* 页面主背景 浅灰蓝 */
  --ruiwu-bg-2: #eef4fa;      /* 交替区背景 浅蓝灰 */
  --ruiwu-card: #ffffff;      /* 卡片背景 白 */
  --ruiwu-card-2: #f8fbff;    /* 卡片hover 更白 */
  --ruiwu-border: #dbe7f3;    /* 边框 浅蓝灰 */
  --ruiwu-primary: #3b82f6;   /* 主蓝 */
  --ruiwu-accent: #6366f1;    /* 紫蓝点缀 */
  --ruiwu-text: #1f2937;      /* 主文字 深灰 */
  --ruiwu-muted: #64748b;     /* 次要文字 灰蓝 */
  --ruiwu-green: #22c55e;     /* 数据强调 */
}

/* 平滑滚动：点击导航锚点自动平滑滚动到对应板块 */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 40px;
}

/* 导航栏链接 hover 效果 */
.ruiwu-header nav a {
  color: #1f2937;
  transition: color .2s ease;
}
.ruiwu-header nav a:hover {
  color: #3b82f6;
}

/* 白色卡片柔和阴影，营造干净轻盈的层次感 */
main .wp-block-column {
  box-shadow: 0 6px 24px rgba(59, 130, 246, 0.08), 0 1px 3px rgba(15, 23, 42, 0.04);
  border: 1px solid #e6eef8;
  border-radius: 14px;
  transition: transform .2s ease, box-shadow .2s ease;
}
main .wp-block-column:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(59, 130, 246, 0.14), 0 2px 6px rgba(15, 23, 42, 0.05);
}

/* 页脚列不套卡片阴影，保持扁平整洁 */
footer .wp-block-column {
  box-shadow: none;
  border: none;
  border-radius: 0;
}
footer .wp-block-column:hover {
  transform: none;
  box-shadow: none;
}

/* 主按钮：轻盈的蓝色渐变，白字 */
.is-style-fill .wp-block-button__link,
.wp-block-button.is-style-fill .wp-block-button__link,
a.wp-block-button__link {
  background: linear-gradient(90deg, #3b82f6, #6366f1) !important;
  border-radius: 10px !important;
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
  color: #ffffff !important;
}
a.wp-block-button__link:hover {
  box-shadow: 0 12px 26px rgba(59, 130, 246, 0.4);
  transform: translateY(-2px);
}

/* ============ 联系我们弹窗 ============ */
.ruiwu-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  align-items: center;
  justify-content: center;
}
.ruiwu-modal.open { display: flex; }
.ruiwu-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(3px);
}
.ruiwu-modal-box {
  position: relative;
  width: 90%;
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
  background: #ffffff;
  border-radius: 16px;
  padding: 32px 30px 26px;
  box-shadow: 0 24px 60px rgba(59, 130, 246, 0.25);
  animation: ruiwuModalIn .18s ease;
}
@keyframes ruiwuModalIn {
  from { opacity: 0; transform: translateY(16px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.ruiwu-modal-close {
  position: absolute;
  top: 12px; right: 14px;
  width: 32px; height: 32px;
  border: none; border-radius: 50%;
  background: #f1f5f9; color: #64748b;
  font-size: 22px; line-height: 1;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.ruiwu-modal-close:hover { background: #3b82f6; color: #fff; }
.ruiwu-modal-box h3 {
  margin: 0 0 6px;
  font-size: 24px;
  color: #0f172a;
  font-weight: 700;
}
.ruiwu-modal-sub {
  margin: 0 0 20px;
  font-size: 14px;
  color: #64748b;
  line-height: 1.6;
}
.ruiwu-modal-box form label {
  display: block;
  margin-bottom: 14px;
  font-size: 13px;
  color: #334155;
  font-weight: 500;
}
.ruiwu-modal-box input,
.ruiwu-modal-box textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid #dbe7f3;
  border-radius: 8px;
  font-size: 14px;
  color: #1f2937;
  background: #f8fbff;
  box-sizing: border-box;
  transition: border-color .2s, box-shadow .2s;
}
.ruiwu-modal-box input:focus,
.ruiwu-modal-box textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
  background: #fff;
}
.ruiwu-modal-box textarea { resize: vertical; }
.ruiwu-modal-submit {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(90deg, #3b82f6, #6366f1);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
  transition: box-shadow .2s, transform .2s;
}
.ruiwu-modal-submit:hover {
  box-shadow: 0 12px 26px rgba(59, 130, 246, 0.4);
  transform: translateY(-2px);
}
.ruiwu-modal-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.ruiwu-modal-msg { margin-top: 12px; text-align: center; font-size: 14px; }
.ruiwu-modal-msg .ok  { color: #16a34a; }
.ruiwu-modal-msg .err { color: #dc2626; }
