/* 台球竞猜/斯诺克博彩 - 企业站样式 */
:root {
  --primary: #1a365d;
  --primary-light: #2c5282;
  --accent: #c9a227;
  --accent-hover: #b8921f;
  --text: #2d3748;
  --text-light: #718096;
  --bg: #f7fafc;
  --white: #ffffff;
  --border: #e2e8f0;
  --shadow: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -1px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -2px rgba(0,0,0,.05);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color .2s;
}
a:hover {
  color: var(--accent);
}

/* ========== 顶部栏 ========== */
.top-bar {
  background: var(--primary);
  color: var(--white);
  padding: .5rem 0;
  font-size: .875rem;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-bar a {
  color: rgba(255,255,255,.9);
}
.top-bar a:hover {
  color: var(--accent);
}

/* ========== 主导航 ========== */
.header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}
.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}
.logo span {
  color: var(--accent);
}
.nav-main {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-main a {
  font-weight: 500;
  color: var(--text);
}
.nav-main a:hover,
.nav-main a.active {
  color: var(--accent);
}

/* ========== 容器 ========== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ========== 主视觉 / Hero ========== */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
}
.hero h1 {
  font-size: 2.25rem;
  margin-bottom: 1rem;
  font-weight: 700;
}
.hero p {
  font-size: 1.125rem;
  opacity: .95;
  max-width: 600px;
  margin: 0 auto 1.5rem;
}
.hero .btn {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  padding: .75rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background .2s;
}
.hero .btn:hover {
  background: var(--accent-hover);
}

/* ========== 区块标题 ========== */
.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}
.section-title h2 {
  font-size: 1.75rem;
  color: var(--primary);
  margin-bottom: .5rem;
}
.section-title p {
  color: var(--text-light);
  font-size: 1rem;
}

/* ========== 服务/产品卡片 ========== */
.services {
  padding: 4rem 0;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}
.service-card {
  background: var(--white);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
  border: 1px solid var(--border);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.service-card h3 {
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: .75rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--accent);
}
.service-card p {
  color: var(--text-light);
  font-size: .95rem;
}
.service-card a {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 500;
  color: var(--accent);
}

/* ========== 关于/内容区块 ========== */
.about-section {
  padding: 4rem 0;
  background: var(--white);
}
.about-section .content {
  max-width: 800px;
  margin: 0 auto;
}
.about-section h2 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
}
.about-section p {
  margin-bottom: 1rem;
  color: var(--text);
}

/* ========== 页内面包屑 ========== */
.breadcrumb {
  padding: 1rem 0;
  font-size: .875rem;
  color: var(--text-light);
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.breadcrumb a {
  color: var(--primary);
}
.breadcrumb span {
  margin: 0 .5rem;
  color: var(--border);
}

/* ========== 内容页主区 ========== */
.page-main {
  padding: 2rem 0 4rem;
}
.page-main .container {
  max-width: 900px;
}
.page-main h1 {
  font-size: 1.75rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
  padding-bottom: .5rem;
  border-bottom: 3px solid var(--accent);
}
.page-main h2 {
  font-size: 1.25rem;
  color: var(--primary);
  margin: 1.5rem 0 .75rem;
}
.page-main p {
  margin-bottom: 1rem;
}
.page-main ul {
  margin: 1rem 0 1rem 1.5rem;
}
.page-main .related-links {
  margin: 2rem 0;
  padding: 1.25rem;
  background: var(--bg);
  border-radius: 8px;
  border: 1px solid var(--border);
}
.page-main .related-links h3 { font-size: 1.1rem; margin-bottom: .75rem; color: var(--primary); }
.page-main .related-links p { margin: 0; }
.page-main .btn { display: inline-block; margin-top: .5rem; }

/* ========== 页脚 ========== */
.footer {
  background: var(--primary);
  color: rgba(255,255,255,.9);
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}
.footer a {
  color: rgba(255,255,255,.9);
}
.footer a:hover {
  color: var(--accent);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer h4 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--white);
}
.footer ul {
  list-style: none;
}
.footer ul li {
  margin-bottom: .5rem;
}
.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.2);
  font-size: .875rem;
  opacity: .9;
}

/* ========== 联系表单 ========== */
.contact-form {
  max-width: 500px;
  margin: 2rem auto;
}
.form-group {
  margin-bottom: 1rem;
}
.form-group label {
  display: block;
  margin-bottom: .25rem;
  font-weight: 500;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: .6rem .75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 1rem;
}
.form-group textarea {
  min-height: 120px;
  resize: vertical;
}
.contact-form .btn {
  background: var(--accent);
  color: var(--white);
  padding: .75rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
}
.contact-form .btn:hover {
  background: var(--accent-hover);
}

/* ========== 首页 CTA ========== */
.cta-section {
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  text-align: center;
}
.cta-section h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.cta-section p {
  margin-bottom: 1.5rem;
  opacity: .95;
}
.cta-section .btn {
  background: var(--accent);
  color: var(--white);
  padding: .75rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.cta-section .btn:hover {
  background: var(--accent-hover);
  color: var(--white);
}

/* ========== 首页增强：Hero ========== */
.hero-rich { padding: 4.5rem 0; }
.hero-tag {
  display: inline-block;
  font-size: .9rem;
  opacity: .9;
  margin-bottom: .75rem;
  padding: .25rem .75rem;
  background: rgba(255,255,255,.15);
  border-radius: 4px;
}
.hero-desc { max-width: 640px; margin-left: auto; margin-right: auto; font-size: 1.05rem; }
.hero-actions { margin-top: 1.5rem; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.8);
  padding: .75rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s, border-color .2s;
}
.btn-outline:hover { background: rgba(255,255,255,.15); border-color: #fff; color: #fff; }
.btn-primary { background: var(--accent); color: #fff; padding: .75rem 1.5rem; border-radius: 6px; font-weight: 600; text-decoration: none; border: none; cursor: pointer; display: inline-block; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-secondary { background: var(--primary-light); color: #fff; padding: .6rem 1.2rem; border-radius: 6px; font-weight: 500; text-decoration: none; display: inline-block; }
.btn-secondary:hover { color: #fff; opacity: .95; }

/* ========== 数据统计 ========== */
.stats-section {
  background: var(--white);
  padding: 3rem 0;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.stat-item {
  padding: 1rem;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: .25rem;
}
.stat-label { font-size: .95rem; color: var(--text-light); }

/* ========== 服务卡片图标 ========== */
.service-icon { font-size: 2rem; margin-bottom: .75rem; }
.service-card .service-icon + h3 { padding-top: 0; }

/* ========== 为什么选择我们 ========== */
.features-section { padding: 4rem 0; background: var(--white); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.feature-item {
  text-align: center;
  padding: 1.5rem 1rem;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  transition: box-shadow .2s;
}
.feature-item:hover { box-shadow: var(--shadow); }
.feature-icon { font-size: 2rem; display: block; margin-bottom: .75rem; }
.feature-item h4 { font-size: 1.1rem; color: var(--primary); margin-bottom: .5rem; }
.feature-item p { font-size: .9rem; color: var(--text-light); line-height: 1.5; }

/* ========== 最新资讯区块 ========== */
.news-section {
  padding: 4rem 0;
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
}
.section-title-light h2 { color: var(--white); }
.section-title-light p { color: rgba(255,255,255,.85); }
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.news-card {
  background: rgba(255,255,255,.1);
  border-radius: 8px;
  padding: 1.5rem;
  border: 1px solid rgba(255,255,255,.2);
  transition: background .2s;
}
.news-card:hover { background: rgba(255,255,255,.15); }
.news-card .news-meta { font-size: .85rem; opacity: .9; margin-bottom: .5rem; }
.news-card h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.news-card h3 a { color: var(--white); }
.news-card h3 a:hover { color: var(--accent); }
.news-card p { font-size: .9rem; opacity: .9; margin-bottom: .75rem; line-height: 1.5; }
.news-link { color: var(--accent); font-weight: 500; font-size: .9rem; }
.news-link:hover { color: #e6c44d; }
.news-more { text-align: center; margin-top: 2rem; }
.btn-outline-light {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.8);
  padding: .6rem 1.2rem;
  border-radius: 6px;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
}
.btn-outline-light:hover { background: rgba(255,255,255,.2); color: var(--white); }
.news-empty { text-align: center; padding: 2rem; opacity: .95; }
.news-empty a { color: var(--accent); }

/* ========== 关于区块内容 ========== */
.about-content { max-width: 800px; margin: 0 auto; }
.about-content p { margin-bottom: 1rem; }

/* ========== 常见问题 ========== */
.faq-section { padding: 4rem 0; background: var(--bg); }
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: var(--white);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  border-left: 4px solid var(--accent);
}
.faq-item h4 { font-size: 1.05rem; color: var(--primary); margin-bottom: .5rem; }
.faq-item p { font-size: .95rem; color: var(--text); margin: 0; line-height: 1.6; }

/* ========== 合作伙伴/服务保障 ========== */
.partners-section { padding: 3rem 0; background: var(--white); }
.partners-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
.partner-tag {
  padding: .5rem 1.25rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 24px;
  font-size: .95rem;
  color: var(--text);
}

/* ========== 顶部栏链接 ========== */
.top-links { display: flex; gap: 1.5rem; }

/* ========== 页脚增强 ========== */
.footer-rich .footer-top {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
  align-items: start;
}
.footer-brand .logo { display: inline-block; margin-bottom: .75rem; }
.footer-brand p { font-size: .9rem; line-height: 1.6; opacity: .9; max-width: 260px; }
.footer-rich .footer-grid { grid-template-columns: repeat(5, 1fr); }

/* ========== 移动端抽屉导航 ========== */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 102;
  position: relative;
  border-radius: 6px;
  transition: background .2s;
}
.nav-toggle:hover { background: var(--bg); }
.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
  transition: transform .25s, opacity .25s;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 100;
  opacity: 0;
  transition: opacity .25s;
  pointer-events: none;
}
body.drawer-open .nav-drawer-overlay {
  opacity: 1;
  pointer-events: auto;
}
.nav-drawer-panel {
  transition: transform .25s ease-out;
}
@media (min-width: 769px) {
  .nav-drawer-panel { display: block; }
  .nav-drawer-overlay { display: none !important; }
}
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-drawer-overlay { display: block; }
  .nav-drawer-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: min(280px, 85vw);
    height: 100%;
    background: var(--white);
    box-shadow: -4px 0 20px rgba(0,0,0,.15);
    z-index: 101;
    overflow-y: auto;
    padding: 4rem 1.25rem 2rem;
    transform: translateX(100%);
  }
  body.drawer-open .nav-drawer-panel {
    transform: translateX(0);
  }
  .nav-drawer-panel .nav-main {
    flex-direction: column;
    gap: 0;
    align-items: stretch;
  }
  .nav-drawer-panel .nav-main li {
    border-bottom: 1px solid var(--border);
  }
  .nav-drawer-panel .nav-main a {
    display: block;
    padding: 1rem 0;
    font-size: 1rem;
  }
}

/* ========== 移动端 ========== */
@media (max-width: 768px) {
  .header .container {
    position: relative;
    padding-left: 1rem;
    padding-right: 0;
    max-width: 100%;
  }
  .header .container .logo {
    flex: 1;
    text-align: center;
    padding-right: 44px;
  }
  .header .nav-toggle {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
  }
  .hero h1 { font-size: 1.75rem; }
  .hero-rich { padding: 3rem 0; }
  .section-title h2 { font-size: 1.5rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border); }
  .stat-item:nth-child(2) { border-bottom: 1px solid var(--border); }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .footer-rich .footer-top { grid-template-columns: 1fr; }
  .footer-rich .footer-grid { grid-template-columns: repeat(2, 1fr); }
  body.drawer-open { overflow: hidden; }
}
@media (max-width: 480px) {
  .features-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
}
