/* style.css - 开元棋牌官方网站完整样式 */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; background: #f5f7fa; color: #1a1a2e; line-height: 1.6; transition: background 0.4s, color 0.4s; }
body.dark { background: #0f0f1a; color: #e0e0e0; }
:root { --primary: #1a1a2e; --secondary: #f0c040; --accent: #e94560; --bg: #f5f7fa; --card: #fff; --text: #1a1a2e; --muted: #666; --border: #e0e0e0; --shadow: 0 4px 20px rgba(0,0,0,0.08); --radius: 16px; --glass: rgba(255,255,255,0.7); --glass-border: rgba(255,255,255,0.3); --gradient: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460); }
body.dark { --bg: #0f0f1a; --card: #1a1a2e; --text: #e0e0e0; --muted: #aaa; --border: #2a2a3e; --shadow: 0 4px 20px rgba(0,0,0,0.4); --glass: rgba(26,26,46,0.7); --glass-border: rgba(255,255,255,0.1); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.btn { display: inline-block; padding: 12px 28px; border-radius: 30px; font-weight: 600; text-decoration: none; transition: all 0.3s; cursor: pointer; border: none; font-size: 16px; }
.btn-primary { background: var(--secondary); color: var(--primary); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(240,192,64,0.4); }
.btn-outline { background: transparent; border: 2px solid var(--secondary); color: var(--secondary); }
.btn-outline:hover { background: var(--secondary); color: var(--primary); }
.section { padding: 80px 0; }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { font-size: 36px; font-weight: 700; margin-bottom: 12px; position: relative; display: inline-block; }
.section-title h2::after { content: ''; display: block; width: 60px; height: 4px; background: var(--secondary); margin: 12px auto 0; border-radius: 2px; }
.section-title p { font-size: 18px; color: var(--muted); max-width: 600px; margin: 0 auto; }
.card { background: var(--card); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); transition: all 0.3s; border: 1px solid var(--border); }
.card:hover { transform: translateY(-5px); box-shadow: 0 12px 40px rgba(0,0,0,0.12); }
.glass { background: var(--glass); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid var(--glass-border); border-radius: var(--radius); }
.grid { display: grid; gap: 30px; }
.flex { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.hidden { display: none; }
@media (max-width: 768px) {
  .section { padding: 50px 0; }
  .section-title h2 { font-size: 28px; }
  .container { padding: 0 15px; }
  .grid { grid-template-columns: 1fr !important; }
}
@media (min-width: 769px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr 1fr 1fr; }
  .grid-5 { grid-template-columns: 1fr 1fr 1fr 1fr 1fr; }
}
/* 头部导航 */
header { transition: all 0.3s; }
header a:hover { color: var(--secondary) !important; }
/* Hero区域渐变Banner */
#hero { position: relative; overflow: hidden; padding: 100px 0 80px; background: var(--gradient); color: #fff; }
#hero h1 { font-size: 52px; font-weight: 800; margin-bottom: 20px; line-height: 1.2; }
#hero p { font-size: 20px; margin-bottom: 30px; opacity: 0.9; }
/* 毛玻璃效果增强 */
.glass { background: var(--glass); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid var(--glass-border); border-radius: var(--radius); }
/* 滚动动画与hover动画已通过transition实现 */
/* 暗色模式支持 */
body.dark .card { background: var(--card); border-color: var(--border); }
body.dark .glass { background: var(--glass); border-color: var(--glass-border); }
/* 统计数字动画 */
.stat-number { font-size: 48px; font-weight: 800; display: block; }
/* FAQ折叠 */
.faq-item .faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, margin-top 0.3s; }
.faq-item.open .faq-answer { max-height: 300px; margin-top: 12px; }
.faq-item .faq-icon { transition: transform 0.3s; }
.faq-item.open .faq-icon { transform: rotate(180deg); }
/* 返回顶部按钮 */
#backToTop { transition: all 0.3s; }
#backToTop:hover { transform: scale(1.1); }
/* 响应式调整 */
@media (max-width: 768px) {
  #hero h1 { font-size: 32px; }
  #hero p { font-size: 16px; }
  .stat-number { font-size: 32px; }
  header .container { flex-wrap: wrap; }
  #mainNav { width: 100%; }
}
/* 自定义滚动条 */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--secondary); border-radius: 4px; }
/* 输入框与表单样式 */
input, textarea { transition: border-color 0.3s, box-shadow 0.3s; }
input:focus, textarea:focus { outline: none; border-color: var(--secondary) !important; box-shadow: 0 0 0 3px rgba(240,192,64,0.2); }
/* 合作伙伴logo占位 */
.card svg text { user-select: none; }
/* 移动端菜单按钮 */
#mobileMenuBtn { display: none; }
@media (max-width: 768px) {
  #mobileMenuBtn { display: block; }
}
/* 面包屑导航 */
#breadcrumb a:hover { text-decoration: underline; }
/* 页脚样式 */
footer a { color: var(--secondary); text-decoration: none; }
footer a:hover { text-decoration: underline; }
/* 案例与评价卡片 */
#cases .card p:first-child { font-style: italic; }
/* 应用行业卡片 */
#industries .card:hover svg { transform: scale(1.1); transition: transform 0.3s; }
/* 服务介绍卡片 */
#services .card:hover { border-color: var(--secondary); }
/* 解决方案卡片 */
#solutions .card h3 { border-left: 4px solid var(--secondary); padding-left: 12px; }
/* 信任区域 */
#trust .card:hover { border-color: var(--secondary); }
/* 网站地图 */
#sitemap a:hover { color: var(--secondary) !important; }
/* 友情链接 */
#friendlinks a:hover { text-decoration: underline; }
/* 文章卡片 */
#articles .card h3 { color: var(--primary); }
body.dark #articles .card h3 { color: var(--text); }
/* 新闻卡片 */
#news .card h3 { color: var(--primary); }
body.dark #news .card h3 { color: var(--text); }
/* 团队介绍头像 */
#team .card svg { transition: transform 0.3s; }
#team .card:hover svg { transform: scale(1.05); }
/* 企业文化图标 */
#culture .card svg { transition: transform 0.3s; }
#culture .card:hover svg { transform: rotate(10deg); }
/* 产品中心图标 */
#products .card svg { transition: transform 0.3s; }
#products .card:hover svg { transform: scale(1.1); }
/* 优势图标 */
#advantages .card svg { transition: transform 0.3s; }
#advantages .card:hover svg { transform: translateY(-3px); }
/* HowTo步骤 */
#howto .card span { transition: transform 0.3s; }
#howto .card:hover span { transform: scale(1.2); }
/* 联系表单按钮 */
#contact .btn-primary:hover { box-shadow: 0 8px 25px rgba(240,192,64,0.4); }
/* 统计区域背景渐变 */
#stats { background: var(--gradient); color: #fff; }
/* 暗色模式下的Hero文字阴影 */
body.dark #hero h1 { text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
/* 确保所有卡片在暗色模式下可读 */
body.dark .card { color: var(--text); }
/* 移动端导航样式 */
@media (max-width: 768px) {
  #mainNav { display: none; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0; background: var(--card); padding: 20px; box-shadow: var(--shadow); border-radius: 0 0 16px 16px; z-index: 999; }
  #mainNav a { padding: 10px 0; border-bottom: 1px solid var(--border); }
  #mainNav a:last-child { border-bottom: none; }
  #mainNav button { margin-top: 10px; }
}
/* 桌面端导航恢复 */
@media (min-width: 769px) {
  #mainNav { display: flex !important; flex-direction: row; position: static; background: transparent; padding: 0; box-shadow: none; border-radius: 0; }
}
/* 滚动时头部隐藏动画 */
header { transition: transform 0.3s, background 0.3s; }
/* 轮播背景切换 */
#heroBanner { transition: background 1s ease-in-out; }
/* 全局平滑过渡 */
* { transition: background-color 0.3s, border-color 0.3s, box-shadow 0.3s; }