/* base.css - 基础样式与变量 */
:root {
  --color-primary: #2A2F3B;
  --color-accent: #00C1D4;
  --color-bg: #fff;
  --color-text: #222;
  --color-footer: #222;
  --font-zh: 'Noto Sans SC', '思源黑体', 'Microsoft YaHei', Arial, sans-serif;
  --font-en: 'Roboto', Arial, sans-serif;
  --footer-height: 60px;
}

html {
  font-size: 16px;
  font-family: 'DingTalk JinBuTi', var(--font-zh), sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
}

body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, figcaption, blockquote, dl, dd {
  margin: 0;
  padding: 0;
  font-weight: normal;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* 禁止所有图片拖动 */
img {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
  pointer-events: none; /* 更严格的禁止拖动 */
}

/* 或者更简单的方式 */
img {
  draggable: false;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: var(--color-primary);
}

#wechat-qr-popup {
    display: none;
    position: fixed;
    z-index: 1000;
    pointer-events: none;
  }
  
  #wechat-qr-popup img {
    max-width: 200px;
    height: auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    border-radius: 8px;
  }

button, input, select, textarea {
  font-family: inherit;
  font-size: 1em;
  outline: none;
}

[hidden] { display: none !important; }

@font-face {
  font-family: 'DingTalk JinBuTi';
  src: url('../assets/fonts/DingTalk_JinBuTi_Regul.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* 也可以在:root中定义字体变量以便灵活使用 */
:root {
  /* 现有变量保持不变 */
  --font-dingtalk: 'DingTalk JinBuTi', sans-serif;
}

/* 可以在这里添加使用该字体的样式类 */
.dingtalk-font {
  font-weight: 400;
  font-family: 'DingTalk JinBuTi', sans-serif, 'DingTalk JinBuTi-Regular';
}

/* 思源黑体/Roboto 字体引入（可替换为本地/在线） */
@font-face {
  font-family: 'Noto Sans SC';
  src: local('Noto Sans SC'), local('思源黑体');
  font-display: swap;
}


/* 优化 View Transitions 动画 */

@keyframes fade-in {
  from { opacity: 0; }
}

@keyframes fade-out {
  to { opacity: 0; }
}

@keyframes slide-from-right {
  from { transform: translateX(30px); }
}

@keyframes slide-to-left {
  to { transform: translateX(-30px); }
}

::view-transition-old(root) {
  animation: 90ms cubic-bezier(0.4, 0, 1, 1) both fade-out,
             300ms cubic-bezier(0.4, 0, 0.2, 1) both slide-to-left;
}

::view-transition-new(root) {
  animation: 210ms cubic-bezier(0, 0, 0.2, 1) 90ms both fade-in,
             300ms cubic-bezier(0.4, 0, 0.2, 1) both slide-from-right;
}

/* 保持头部在过渡期间不参与动画 */
::view-transition-group(main-header) {
  animation: none;
}
::view-transition-old(main-header),
::view-transition-new(main-header) {
  animation: none;
  mix-blend-mode: normal;
}


/* 响应式布局 */

.container {
  /*width: 90%;*/ /* 使用百分比宽度，增强流动性 */
  /*max-width: 1400px;*/ /* 增加最大宽度以适配大屏 */
  /*padding: 0 24px;*/ /* 调整默认内边距 */
  margin: 0 auto;
}

main {
  min-height: calc(100vh - var(--footer-height) - 270px);
}

/* 适配中等屏幕，如平板和小型桌面端 */
/* @media (max-width: 1400px) {
  .container {
    width: 95%;
    padding: 0 20px;
  }
} */

/* 适配移动端 */
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  .container {
    width: 100%;
    /*padding: 0 16px;*/ /* 优化移动端内边距 */
  }
  main {
    min-height: calc(100vh - var(--footer-height) - 56px);
  }
}


/* 头部、导航、页脚、按钮等组件样式 */

a,
a:active,
a:focus,
a:visited,
a:hover {
    outline: none;
    box-shadow: none;
}

header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 64px;
  background: var(--color-primary);
  color: #fff;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  view-transition-name: main-header;
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  /* max-width: 1400px; */
  margin: 0 auto;
  padding: 0 14%;
}
.navbar-logo {
  font-size: 1.5em;
  font-weight: bold;
  letter-spacing: 2px;
  color: #fff;
  text-decoration: none;
  display: inline-block;
  width: 120px;
}
.navbar-logo-hover{
    position: relative;
    font-size:2em;
    font-weight:700;
    line-height:39px;
    overflow:hidden;
    margin:0;
}
.navbar-logo-hover::before{
    content:"";
    position: absolute;
    width: 150px;
    height: 0;
    background-color: rgba(255,255,255,1);
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
    -webkit-animation: searchLights .1s ease-in .1s infinite;
    animation: searchLights .1s ease-in .1s infinite;
    animation-iteration-count: 1;
}
@keyframes searchLights {
    0% { left: -90px; top: 0; height: 30px }
    to { left: 60px; top: 0; height: 30px }
}
.navbar-logo img {
    width: 100%;
}
.navbar-menu {
  display: flex;
  gap: 32px;
}
.navbar-menu a {
  color: #fff;
  font-size: 1em;
  padding: 8px 0;
  transition: color 0.2s;
}
.navbar-menu a.active,
.navbar-menu a:hover {
  color: var(--color-accent);
}
.lang-switch {
  margin-left: 24px;
  cursor: pointer;
  border: none;
  font-size: 1em;
  line-height: 42px;
  background: linear-gradient(90deg, #6CEAFE 0%, #CD69F1 52%, #FF7256 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  width: 32px;
  height: 32px;
  cursor: pointer;
  margin-left: 16px;
}
.hamburger span {
  height: 3px;
  background: #fff;
  margin: 5px 0;
  border-radius: 2px;
  transition: all 0.3s;
  display: block;
  width: 100%;
}

@media (max-width: 768px) {
  header {
    height: 56px;
  }
  .navbar {
    padding: 0 8px;
  }
  .navbar-menu {
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--color-primary);
    flex-direction: column;
    gap: 0;
    display: none;
  }
  .navbar-menu.open {
    display: flex;
  }
  .navbar-menu a {
    padding: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .hamburger {
    display: flex;
  }
}

footer {
  background: var(--color-footer);
  color: #fff;
  text-align: center;
  font-size: 0.95em;
  min-height: var(--footer-height);
}
.footer-links {
  margin-bottom: 8px;
}
.footer-links a {
  color: var(--color-accent);
  margin: 0 8px;
}
@media (max-width: 768px) {
  footer {
    padding: 16px 0 8px 0;
    font-size: 0.92em;
  }
  .footer-links {
    margin-bottom: 4px;
  }
}

.btn {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 10px 28px;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.2s;
}
.btn:hover {
  background: #009eaf;
}

/* Page-specific styles */
.page-title {
  text-align: center;
  padding: 40px 0;
  border-bottom: 1px solid #eee;
  margin-bottom: 40px;
}


@media (max-width: 768px) {
  .product-main, .app-intro, .contact-info {
    flex-direction: column;
  }
}

/* New Footer Styles */
footer {
  margin: 0 auto;
  padding: 30px 14%;
  background-color: #111;
  color: #ccc;
  /* padding: 40px 0; */
  font-size: 0.9em;
  min-height: auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  margin-bottom: 30px;
}

.footer-logo {
  font-size: 2em;
  font-weight: bold;
  color: #fff;
  flex-shrink: 0;
  margin-right: 12%;
}

.footer-logo img {
  width: 120px;
}

.footer-contact-info {
  display: flex;
  gap: 40px;
  flex-grow: 1;
}

.footer-contact-col {
  flex: 1;
  min-width: 150px;
  text-align: left;
}

.footer-contact-col:last-child {
  flex: 2;
}

.footer-contact-col h4 {
  color: #888;
  font-size: 0.9em;
  margin-bottom: 10px;
  font-weight: normal;
}

.footer-contact-col p {
  color: #fff;
  line-height: 1.6;
}

.footer-separator {
  border-top: 1px solid #444;
  margin-bottom: 20px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.copyright {
  color: #888;
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: #222;
  color: #fff;
  border-radius: 50%;
  text-decoration: none;
  font-size: 1.1em;
  transition: background-color 0.2s;
}

.footer-socials-zh img { 
  width: 26px;
  height: 26px;
}

.footer-socials-en img { 
  width: 18px;
  height: 18px;
}

.social-icon:hover {
  background-color: var(--color-accent);
}

@media (max-width: 992px) {
  .footer-top {
    flex-direction: column;
  }
  .footer-contact-info {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .footer-contact-info {
    flex-direction: column;
  }
  .footer-bottom {
    flex-direction: column-reverse;
    gap: 20px;
    text-align: center;
  }
}


/* 公共布局样式 */
body {
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    color: #222;
    background: #f8f9fa;
    font-size: 16px;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

.container {
    /* max-width: 1400px; */
    margin: 0 auto;
    /*padding: 0px 16px;*/
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -8px;
    margin-right: -8px;
}

.col {
    flex: 1;
    padding: 8px;
    min-width: 0;
}

/* 弹性布局工具类 */
.flex {
    display: flex;
}
.inline-flex {
    display: inline-flex;
}
.flex-row {
    flex-direction: row;
}
.flex-row-reverse {
    flex-direction: row-reverse;
}
.flex-col {
    flex-direction: column;
}
.flex-col-reverse {
    flex-direction: column-reverse;
}
.flex-wrap {
    flex-wrap: wrap;
}
.flex-nowrap {
    flex-wrap: nowrap;
}
.items-start {
    align-items: flex-start;
}
.items-center {
    align-items: center;
}
.items-end {
    align-items: flex-end;
}
.items-stretch {
    align-items: stretch;
}
.justify-start {
    justify-content: flex-start;
}
.justify-center {
    justify-content: center;
}
.justify-end {
    justify-content: flex-end;
}
.justify-between {
    justify-content: space-between;
}
.justify-around {
    justify-content: space-around;
}
.justify-evenly {
    justify-content: space-evenly;
}
.gap-1 {
    gap: 8px;
}
.gap-2 {
    gap: 16px;
}
.gap-3 {
    gap: 24px;
}

/* 标题样式 */
h1, h2, h3, h4, h5, h6 {
    color: #1a1a1a;
    font-weight: 600;
    margin-top: 1.2em;
    margin-bottom: 0.6em;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

/* 按钮样式 */
.button, button, input[type="button"], input[type="submit"] {
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.button:hover, button:hover, input[type="button"]:hover, input[type="submit"]:hover {
    background: #1d4ed8;
}

/* 表单输入框 */
input, textarea, select {
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 1rem;
    margin-bottom: 12px;
    outline: none;
    transition: border-color 0.2s;
}

input:focus, textarea:focus, select:focus {
    border-color: #2563eb;
}

/* 卡片样式 */
.card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    padding: 24px;
    margin-bottom: 24px;
}

/* 公共间距 */
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.p-1 { padding: 8px; }
.p-2 { padding: 16px; }
.p-3 { padding: 24px; }

/* 圆角工具类 */
.rounded { border-radius: 8px; }
.rounded-lg { border-radius: 16px; }
.rounded-full { border-radius: 999px; }
