/* ========================================
   福彩3D - 彩票投注站怀旧风 公共样式
   CSS类名前缀: fc-
   ======================================== */

/* --- 干扰码隐藏 --- */
.ball-noise { display: none; }

/* --- CSS Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: "FangSong", "STFangsong", "SimSun", "Noto Serif SC", serif;
  color: #424242;
  background-color: #FDF8F0;
  background-image: url('../images/paper-texture.webp');
  background-repeat: repeat;
  line-height: 1.8;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: #E91E63;
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover { color: #C2185B; }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5, h6 {
  font-family: "SimSun", "Noto Serif SC", serif;
  font-weight: 700;
  color: #333;
  line-height: 1.4;
}

/* --- 公共容器 --- */
.fc-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* --- 顶部通告栏 --- */
.fc-topbar {
  background: linear-gradient(135deg, #B71C1C, #E91E63);
  color: #fff;
  padding: 8px 0;
  font-size: 0.85rem;
  text-align: center;
  letter-spacing: 1px;
}
.fc-topbar a { color: #FFE082; }
.fc-topbar a:hover { color: #FFF; }

/* --- 导航栏 --- */
.fc-navbar {
  background: #FDF5E6;
  border-bottom: 3px double #E91E63;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.fc-navbar .fc-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px;
}
.fc-nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
}
.fc-nav-logo img {
  height: 45px;
  width: auto;
}
.fc-nav-logo span {
  font-size: 1.1rem;
  font-weight: 700;
  color: #B71C1C;
  font-family: "SimSun", serif;
}
.fc-nav-menu {
  display: flex;
  list-style: none;
  gap: 0;
}
.fc-nav-menu > li {
  position: relative;
}
.fc-nav-menu > li > a {
  display: block;
  padding: 16px 18px;
  color: #424242;
  font-size: 0.95rem;
  font-weight: 600;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
}
.fc-nav-menu > li > a:hover,
.fc-nav-menu > li > a.fc-active {
  color: #E91E63;
  border-bottom-color: #E91E63;
  background: rgba(233,30,99,0.05);
}

/* 下拉菜单 */
.fc-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #FDF5E6;
  border: 1px dashed #E91E63;
  min-width: 180px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 1001;
  list-style: none;
}
.fc-nav-menu > li:hover .fc-dropdown { display: block; }
.fc-dropdown li a {
  display: block;
  padding: 10px 18px;
  color: #424242;
  font-size: 0.9rem;
  border-bottom: 1px dotted #ddd;
}
.fc-dropdown li:last-child a { border-bottom: none; }
.fc-dropdown li a:hover {
  background: rgba(233,30,99,0.08);
  color: #E91E63;
}

/* 汉堡菜单 */
.fc-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
  background: none;
  border: none;
}
.fc-hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: #424242;
  border-radius: 2px;
  transition: 0.3s;
}

/* --- 通用模块标题 --- */
.fc-section-title {
  text-align: center;
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 15px;
}
.fc-section-title h2 {
  font-size: 1.6rem;
  color: #B71C1C;
  display: inline-block;
  position: relative;
}
.fc-section-title h2::before,
.fc-section-title h2::after {
  content: "◆";
  color: #E91E63;
  margin: 0 12px;
  font-size: 0.8rem;
  vertical-align: middle;
}
.fc-section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #E91E63, transparent);
}
.fc-section-title p {
  color: #888;
  font-size: 0.9rem;
  margin-top: 8px;
}

/* --- 首页 Hero Banner --- */
.fc-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 3px double #E91E63;
}
.fc-hero img {
  width: 100%;
  height: auto;
  display: block;
}
.fc-hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.6));
  padding: 30px 20px 20px;
  color: #fff;
}
.fc-hero-overlay h1 {
  font-size: 2rem;
  color: #FFE082;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}
.fc-hero-overlay p {
  font-size: 1rem;
  margin-top: 8px;
  color: #eee;
}

/* --- 核心功能区 --- */
.fc-features {
  padding: 40px 0;
  background: rgba(255,255,255,0.6);
  border-bottom: 1px dashed #ddd;
}
.fc-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.fc-feature-card {
  background: #FDF5E6;
  border: 2px dashed #E0D5C1;
  border-radius: 8px;
  padding: 25px 20px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.fc-feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  border-color: #E91E63;
}
.fc-feature-card .fc-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  display: block;
}
.fc-feature-card h3 {
  font-size: 1.1rem;
  color: #B71C1C;
  margin-bottom: 8px;
}
.fc-feature-card p {
  font-size: 0.85rem;
  color: #666;
}

/* --- 开奖公告板 --- */
.fc-kaijiang {
  padding: 40px 0;
  background: rgba(139,69,19,0.05);
  border-bottom: 1px dashed #ddd;
}
.fc-kaijiang-board {
  background: #FDF5E6;
  border: 3px solid #8B4513;
  border-radius: 4px;
  padding: 25px;
  box-shadow: inset 0 0 20px rgba(139,69,19,0.1), 0 4px 15px rgba(0,0,0,0.1);
  position: relative;
}
.fc-kaijiang-board::before {
  content: "";
  position: absolute;
  top: 8px; left: 8px; right: 8px; bottom: 8px;
  border: 1px dashed #C4A882;
  border-radius: 2px;
  pointer-events: none;
}
.fc-kaijiang-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px dotted #C4A882;
}
.fc-kaijiang-row:last-child { border-bottom: none; }
.fc-kaijiang-period {
  font-weight: 700;
  color: #8B4513;
  min-width: 120px;
}
.fc-kaijiang-date {
  color: #888;
  font-size: 0.85rem;
  min-width: 100px;
}
.fc-kaijiang-nums {
  display: flex;
  gap: 10px;
}
.fc-ball {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(145deg, #E91E63, #C2185B);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  font-family: "Roboto Slab", serif;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.2), inset 0 1px 2px rgba(255,255,255,0.3);
}

/* --- 数据图表区 --- */
.fc-charts {
  padding: 40px 0;
  border-bottom: 1px dashed #ddd;
}
.fc-charts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.fc-chart-card {
  background: #FDF5E6;
  border: 1px solid #E0D5C1;
  border-radius: 6px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.fc-chart-card:hover {
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.fc-chart-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-bottom: 1px dashed #E0D5C1;
}
.fc-chart-card .fc-chart-info {
  padding: 15px;
}
.fc-chart-card h3 {
  font-size: 1rem;
  color: #333;
  margin-bottom: 6px;
}
.fc-chart-card p {
  font-size: 0.85rem;
  color: #888;
}

/* --- 文章列表 --- */
.fc-articles {
  padding: 40px 0;
  background: rgba(255,255,255,0.6);
  border-bottom: 1px dashed #ddd;
}
.fc-article-list {
  list-style: none;
}
.fc-article-item {
  display: flex;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px dotted #ddd;
  transition: background 0.2s;
}
.fc-article-item:hover {
  background: rgba(233,30,99,0.03);
}
.fc-article-item img {
  width: 160px;
  height: 100px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #E0D5C1;
  flex-shrink: 0;
}
.fc-article-info h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}
.fc-article-info h3 a { color: #333; }
.fc-article-info h3 a:hover { color: #E91E63; }
.fc-article-info p {
  font-size: 0.85rem;
  color: #888;
  line-height: 1.6;
}
.fc-article-meta {
  font-size: 0.8rem;
  color: #aaa;
  margin-top: 6px;
}

/* --- 彩民故事 --- */
.fc-stories {
  padding: 40px 0;
  border-bottom: 1px dashed #ddd;
}
.fc-stories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.fc-story-card {
  background: #FDF5E6;
  border: 1px dashed #E0D5C1;
  border-radius: 6px;
  padding: 20px;
  position: relative;
}
.fc-story-card::before {
  content: "\201C";
  font-size: 3rem;
  color: #E91E63;
  opacity: 0.3;
  position: absolute;
  top: 5px;
  left: 15px;
  font-family: serif;
}
.fc-story-card p {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 10px;
  padding-top: 20px;
}
.fc-story-card .fc-story-author {
  font-size: 0.8rem;
  color: #aaa;
  text-align: right;
}

/* --- 工具矩阵 --- */
.fc-tools {
  padding: 40px 0;
  background: rgba(255,255,255,0.6);
  border-bottom: 1px dashed #ddd;
}
.fc-tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}
.fc-tool-item {
  background: #FDF5E6;
  border: 1px solid #E0D5C1;
  border-radius: 6px;
  padding: 20px;
  text-align: center;
  transition: all 0.2s;
}
.fc-tool-item:hover {
  border-color: #E91E63;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.fc-tool-item .fc-icon { font-size: 2rem; margin-bottom: 8px; display: block; }
.fc-tool-item h4 { font-size: 0.95rem; color: #333; }
.fc-tool-item p { font-size: 0.8rem; color: #888; margin-top: 4px; }

/* --- 荣誉展示 --- */
.fc-honor {
  padding: 40px 0;
  text-align: center;
  border-bottom: 1px dashed #ddd;
}
.fc-honor-badge {
  display: inline-block;
  max-width: 150px;
  margin-bottom: 10px;
}
.fc-honor p {
  font-size: 0.9rem;
  color: #888;
}

/* --- 页脚 --- */
.fc-footer {
  background: #2C2C2C;
  color: #ccc;
  padding: 40px 0 0;
  margin-top: auto;
}
.fc-footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid #444;
}
.fc-footer-col h4 {
  color: #FFE082;
  font-size: 1rem;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 1px dashed #555;
}
.fc-footer-col ul {
  list-style: none;
}
.fc-footer-col ul li {
  margin-bottom: 8px;
}
.fc-footer-col ul li a {
  color: #aaa;
  font-size: 0.85rem;
}
.fc-footer-col ul li a:hover { color: #FFE082; }
.fc-footer-col p {
  font-size: 0.85rem;
  color: #aaa;
  line-height: 1.6;
}
.fc-footer-col .fc-honor-small {
  max-width: 80px;
  margin-bottom: 8px;
}
.fc-footer-bottom {
  text-align: center;
  padding: 20px 0;
  font-size: 0.8rem;
  color: #888;
}
.fc-footer-bottom a {
  color: #aaa;
}
.fc-footer-bottom a:hover { color: #FFE082; }

/* --- 面包屑 --- */
.fc-breadcrumb {
  padding: 12px 0;
  font-size: 0.85rem;
  color: #888;
  border-bottom: 1px dotted #ddd;
  margin-bottom: 25px;
}
.fc-breadcrumb a { color: #E91E63; }
.fc-breadcrumb span { margin: 0 6px; color: #ccc; }

/* --- 内页通用 --- */
.fc-page-content {
  padding: 30px 0 50px;
  flex: 1;
}
.fc-page-header {
  text-align: center;
  padding: 30px 0;
  margin-bottom: 30px;
  border-bottom: 2px dashed #E0D5C1;
}
.fc-page-header h1 {
  font-size: 1.8rem;
  color: #B71C1C;
}
.fc-page-header p {
  color: #888;
  margin-top: 8px;
  font-size: 0.9rem;
}

/* --- 按钮 --- */
.fc-btn {
  display: inline-block;
  padding: 10px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  text-decoration: none;
}
.fc-btn-primary {
  background: linear-gradient(180deg, #1E88E5, #1565C0);
  color: #fff;
  box-shadow: 0 3px 0 #0D47A1, 0 4px 8px rgba(0,0,0,0.2);
}
.fc-btn-primary:hover {
  background: linear-gradient(180deg, #1976D2, #1565C0);
  transform: translateY(1px);
  box-shadow: 0 2px 0 #0D47A1, 0 3px 6px rgba(0,0,0,0.2);
  color: #fff;
}
.fc-btn-primary:active {
  transform: translateY(3px);
  box-shadow: 0 0 0 #0D47A1;
}
.fc-btn-danger {
  background: linear-gradient(180deg, #E91E63, #C2185B);
  color: #fff;
  box-shadow: 0 3px 0 #880E4F, 0 4px 8px rgba(0,0,0,0.2);
}
.fc-btn-danger:hover {
  transform: translateY(1px);
  box-shadow: 0 2px 0 #880E4F, 0 3px 6px rgba(0,0,0,0.2);
  color: #fff;
}

/* --- Tabs 标签页 --- */
.fc-tabs {
  display: flex;
  border-bottom: 2px solid #E0D5C1;
  margin-bottom: 25px;
}
.fc-tab {
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #888;
  cursor: pointer;
  border: 1px solid transparent;
  border-bottom: none;
  background: none;
  font-family: inherit;
  transition: all 0.2s;
  position: relative;
  bottom: -2px;
}
.fc-tab.fc-active,
.fc-tab:hover {
  color: #E91E63;
  background: #FDF5E6;
  border-color: #E0D5C1;
  border-bottom-color: #FDF5E6;
}
.fc-tab-content {
  display: none;
}
.fc-tab-content.fc-active {
  display: block;
}

/* --- 数据表格 --- */
.fc-table-wrap {
  overflow-x: auto;
  margin: 20px 0;
}
.fc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  background: #FDF5E6;
}
.fc-table th {
  background: #8B4513;
  color: #fff;
  padding: 10px 12px;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
}
.fc-table td {
  padding: 8px 12px;
  text-align: center;
  border-bottom: 1px dotted #ddd;
}
.fc-table tr:hover td {
  background: rgba(233,30,99,0.05);
}
.fc-table .fc-hot { color: #E91E63; font-weight: 700; }
.fc-table .fc-cold { color: #1976D2; font-weight: 700; }

/* --- 表单元素 --- */
.fc-form-group {
  margin-bottom: 15px;
}
.fc-form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 5px;
  color: #555;
  font-size: 0.9rem;
}
.fc-input, .fc-select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #E0D5C1;
  border-radius: 4px;
  font-size: 0.9rem;
  font-family: inherit;
  background: #fff;
  color: #424242;
  transition: border-color 0.2s;
}
.fc-input:focus, .fc-select:focus {
  outline: none;
  border-color: #E91E63;
  box-shadow: 0 0 0 2px rgba(233,30,99,0.1);
}

/* --- APP下载页 --- */
.fc-app-hero {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 40px 0;
}
.fc-app-info { flex: 1; }
.fc-app-info h1 {
  font-size: 2rem;
  color: #B71C1C;
  margin-bottom: 15px;
}
.fc-app-info p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 20px;
}
.fc-app-features {
  list-style: none;
  margin-bottom: 25px;
}
.fc-app-features li {
  padding: 8px 0;
  font-size: 0.95rem;
  color: #555;
  padding-left: 25px;
  position: relative;
}
.fc-app-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #E91E63;
  font-weight: 700;
}
.fc-app-preview {
  flex: 0 0 300px;
}
.fc-app-preview img {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}
.fc-download-btns {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}
.fc-qrcode-section {
  text-align: center;
  padding: 30px 0;
}
.fc-qrcode-section img {
  max-width: 200px;
  margin: 0 auto 10px;
}

/* --- 文章详情页 --- */
.fc-article-detail {
  max-width: 800px;
  margin: 0 auto;
}
.fc-article-detail h1 {
  font-size: 1.6rem;
  margin-bottom: 10px;
}
.fc-article-detail .fc-article-meta {
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px dashed #ddd;
}
.fc-article-detail .fc-article-body {
  font-size: 1rem;
  line-height: 2;
}
.fc-article-detail .fc-article-body p {
  margin-bottom: 18px;
  text-indent: 2em;
}
.fc-article-nav {
  display: flex;
  justify-content: space-between;
  padding: 20px 0;
  margin-top: 30px;
  border-top: 1px dashed #ddd;
}
.fc-related-articles {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 2px dashed #E0D5C1;
}
.fc-related-articles h3 {
  margin-bottom: 15px;
  color: #B71C1C;
}

/* --- 选号结果 --- */
.fc-result-box {
  background: #FDF5E6;
  border: 2px dashed #E91E63;
  border-radius: 8px;
  padding: 25px;
  text-align: center;
  margin: 20px 0;
}
.fc-result-nums {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 15px 0;
}
.fc-result-nums .fc-ball {
  width: 56px;
  height: 56px;
  font-size: 1.5rem;
}

/* --- 响应式设计 --- */

/* 1024px 笔记本 */
@media (max-width: 1024px) {
  .fc-features-grid { grid-template-columns: repeat(2, 1fr); }
  .fc-tools-grid { grid-template-columns: repeat(3, 1fr); }
  .fc-nav-menu > li > a { padding: 14px 12px; font-size: 0.9rem; }
}

/* 768px 平板 */
@media (max-width: 768px) {
  .fc-hamburger { display: flex; }
  .fc-nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #FDF5E6;
    border-top: 1px dashed #E0D5C1;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }
  .fc-nav-menu.fc-open { display: flex; }
  .fc-nav-menu > li > a { padding: 14px 20px; border-bottom: 1px dotted #eee; }
  .fc-dropdown {
    position: static;
    border: none;
    box-shadow: none;
    background: #F5EFE0;
    display: none;
  }
  .fc-nav-menu > li:hover .fc-dropdown,
  .fc-nav-menu > li.fc-open .fc-dropdown { display: block; }
  .fc-dropdown li a { padding-left: 36px; }

  .fc-features-grid { grid-template-columns: 1fr; }
  .fc-charts-grid { grid-template-columns: 1fr; }
  .fc-stories-grid { grid-template-columns: 1fr; }
  .fc-tools-grid { grid-template-columns: repeat(2, 1fr); }
  .fc-footer-grid { grid-template-columns: 1fr; }
  .fc-kaijiang-row { flex-direction: column; gap: 8px; text-align: center; }
  .fc-article-item { flex-direction: column; }
  .fc-article-item img { width: 100%; height: 180px; }
  .fc-app-hero { flex-direction: column; text-align: center; }
  .fc-app-preview { flex: none; max-width: 250px; }
  .fc-download-btns { justify-content: center; }
  .fc-hero-overlay h1 { font-size: 1.4rem; }
}

/* 360px 小屏手机 */
@media (max-width: 400px) {
  html { font-size: 14px; }
  .fc-container { padding: 0 10px; }
  .fc-ball { width: 36px; height: 36px; font-size: 1rem; }
  .fc-kaijiang-board { padding: 15px; }
  .fc-tools-grid { grid-template-columns: 1fr; }
  .fc-section-title h2 { font-size: 1.3rem; }
  .fc-tabs { flex-direction: column; }
  .fc-tab { text-align: center; }
}
