/* ===== 每日大赛合规与安全信任中心 - 第29套模板 ===== */
:root {
  --primary: #16A34A;
  --primary-light: #22C55E;
  --primary-dark: #15803D;
  --secondary: #64748B;
  --secondary-light: #94A3B8;
  --bg: #F8FAFC;
  --card: #FFFFFF;
  --accent: #2563EB;
  --accent-light: #3B82F6;
  --text: #0F172A;
  --text-light: #475569;
  --text-muted: #64748B;
  --border: #E2E8F0;
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --shadow: 0 10px 30px rgba(0,0,0,0.12);
  --shadow-sm: 0 4px 12px rgba(0,0,0,0.06);
  --shadow-hover: 0 14px 40px rgba(0,0,0,0.16);
  --transition: cubic-bezier(0.23, 1, 0.32, 1);
  --font-title: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "SF Mono", "Fira Code", monospace;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.75;
  min-height: 100vh;
  overflow-x: hidden;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s var(--transition);
}

a:hover {
  color: var(--primary);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.125rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

ul, ol {
  list-style: none;
}

/* ===== Layout ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.section {
  padding: 4rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  margin-bottom: 0.75rem;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

.section-title p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 1rem auto 0;
}

/* ===== Grid System ===== */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* ===== Header ===== */
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(12px);
  background: rgba(255,255,255,0.95);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text);
}

.site-logo .logo-icon {
  width: 32px;
  height: 32px;
  background: var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-logo .logo-icon svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.main-nav a {
  color: var(--text-light);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.2s var(--transition);
  position: relative;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--primary);
}

.main-nav a.active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
  stroke: var(--text);
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }
  .main-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--card);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
  }
  .main-nav.open {
    display: flex;
  }
}

/* ===== Hero Section ===== */
.hero {
  background: linear-gradient(135deg, #F0FDF4 0%, #F8FAFC 50%, #EFF6FF 100%);
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(22,163,74,0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-text h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-text h1 .highlight {
  color: var(--primary);
}

.hero-text .subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-badges {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-text h1 {
    font-size: 1.875rem;
  }
  .hero-badges {
    justify-content: center;
  }
}

/* ===== Trust Badge ===== */
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s var(--transition);
}

.trust-badge:hover {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(22,163,74,0.1);
  transform: translateY(-2px);
}

.trust-badge .badge-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.trust-badge.active {
  border-color: var(--primary);
  background: linear-gradient(135deg, #F0FDF4, var(--card));
}

/* ===== Card ===== */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all 0.3s var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
  border-color: var(--primary-light);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #F0FDF4, #DCFCE7);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--primary);
}

.card-icon svg {
  width: 24px;
  height: 24px;
}

.card h3 {
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* ===== Entry Cards (Report/Appeal) ===== */
.entry-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  transition: all 0.3s var(--transition);
  cursor: pointer;
}

.entry-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-6px);
  border-color: var(--primary);
}

.entry-card .entry-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.entry-card .entry-icon svg {
  width: 28px;
  height: 28px;
}

.entry-card h3 {
  margin-bottom: 0.5rem;
}

.entry-card p {
  font-size: 0.875rem;
}

/* ===== Privacy Table ===== */
.privacy-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.privacy-table thead {
  background: linear-gradient(135deg, #F0FDF4, #F8FAFC);
}

.privacy-table th {
  padding: 1rem 1.25rem;
  text-align: left;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  border-bottom: 2px solid var(--primary);
}

.privacy-table td {
  padding: 0.875rem 1.25rem;
  font-size: 0.875rem;
  color: var(--text-light);
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}

.privacy-table tr:hover td {
  background: #F0FDF4;
}

.privacy-table .expandable {
  cursor: pointer;
}

.privacy-table .expand-icon {
  display: inline-block;
  transition: transform 0.3s var(--transition);
  margin-right: 0.5rem;
}

.privacy-table .expanded .expand-icon {
  transform: rotate(90deg);
}

@media (max-width: 768px) {
  .privacy-table {
    display: block;
    overflow-x: auto;
  }
}

/* ===== Announcement List ===== */
.announcement-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.announcement-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s var(--transition);
  opacity: 0;
  animation: fadeInUp 0.5s var(--transition) forwards;
}

.announcement-item:nth-child(1) { animation-delay: 0.1s; }
.announcement-item:nth-child(2) { animation-delay: 0.2s; }
.announcement-item:nth-child(3) { animation-delay: 0.3s; }
.announcement-item:nth-child(4) { animation-delay: 0.4s; }

.announcement-item:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-sm);
}

.announcement-date {
  flex-shrink: 0;
  width: 60px;
  text-align: center;
}

.announcement-date .day {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.announcement-date .month {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.announcement-content h4 {
  margin-bottom: 0.25rem;
}

.announcement-content p {
  font-size: 0.875rem;
  margin-bottom: 0;
}

.announcement-tag {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  background: #F0FDF4;
  color: var(--primary);
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  margin-top: 0.5rem;
}

/* ===== Copyright Card ===== */
.copyright-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  border-left: 4px solid var(--primary);
}

.copyright-card h4 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.copyright-card p {
  font-size: 0.9375rem;
}

/* ===== Process Steps ===== */
.process-steps {
  display: flex;
  gap: 1rem;
  position: relative;
}

.process-steps::before {
  content: "";
  position: absolute;
  top: 32px;
  left: 32px;
  right: 32px;
  height: 2px;
  background: var(--border);
  z-index: 0;
}

.process-step {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.125rem;
  margin: 0 auto 1rem;
  box-shadow: 0 4px 12px rgba(22,163,74,0.3);
}

.process-step h4 {
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.process-step p {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .process-steps {
    flex-direction: column;
    align-items: flex-start;
  }
  .process-steps::before {
    top: 0;
    bottom: 0;
    left: 24px;
    right: auto;
    width: 2px;
    height: auto;
  }
  .process-step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    text-align: left;
  }
  .step-number {
    flex-shrink: 0;
    margin: 0;
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

/* ===== FAQ ===== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
  background: var(--card);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  transition: background 0.2s;
}

.faq-question:hover {
  background: #F0FDF4;
}

.faq-question .faq-toggle {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s var(--transition);
  color: var(--primary);
}

.faq-item.open .faq-toggle {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--transition), padding 0.3s;
}

.faq-item.open .faq-answer {
  max-height: 500px;
  padding: 0 1.5rem 1.25rem;
}

.faq-answer p {
  font-size: 0.9375rem;
  color: var(--text-light);
}

/* ===== Footer ===== */
.site-footer {
  background: var(--text);
  color: #CBD5E1;
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  color: #94A3B8;
  font-size: 0.875rem;
  margin-top: 0.75rem;
}

.footer-col h4 {
  color: #F8FAFC;
  font-size: 0.9375rem;
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  color: #94A3B8;
  font-size: 0.875rem;
  padding: 0.25rem 0;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--primary-light);
}

.footer-bottom {
  border-top: 1px solid #334155;
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  color: #64748B;
}

.footer-bottom a {
  color: #94A3B8;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}

/* ===== Breadcrumb ===== */
.breadcrumb {
  padding: 1rem 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb span {
  margin: 0 0.5rem;
  color: var(--border);
}

/* ===== Page Header ===== */
.page-header {
  background: linear-gradient(135deg, #F0FDF4 0%, #F8FAFC 100%);
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.page-header p {
  color: var(--text-muted);
  max-width: 600px;
}

/* ===== Content Area ===== */
.content-area {
  padding: 3rem 0;
}

.content-area h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.content-area h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.content-area p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

.content-area ul, .content-area ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.content-area ul li {
  list-style: disc;
  margin-bottom: 0.5rem;
  color: var(--text-light);
}

.content-area ol li {
  list-style: decimal;
  margin-bottom: 0.5rem;
  color: var(--text-light);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9375rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s var(--transition);
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
  box-shadow: 0 4px 12px rgba(22,163,74,0.3);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

.btn-accent {
  background: var(--accent);
  color: #fff;
}

.btn-accent:hover {
  background: var(--accent-light);
  color: #fff;
}

/* ===== Search ===== */
.search-box {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

.search-box input {
  width: 100%;
  padding: 1rem 1.5rem;
  padding-right: 3.5rem;
  border: 2px solid var(--border);
  border-radius: 50px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s;
  background: var(--card);
}

.search-box input:focus {
  border-color: var(--primary);
}

.search-box button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: var(--primary);
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-results {
  margin-top: 2rem;
}

.search-result-item {
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  background: var(--card);
  transition: border-color 0.2s;
}

.search-result-item:hover {
  border-color: var(--primary-light);
}

.search-result-item h3 a {
  color: var(--text);
}

.search-result-item h3 a:hover {
  color: var(--primary);
}

.search-result-item .result-path {
  font-size: 0.8125rem;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.search-result-item .result-tag {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  background: #EFF6FF;
  color: var(--accent);
  border-radius: 4px;
  font-size: 0.75rem;
  margin-top: 0.5rem;
}

/* ===== 404 Page ===== */
.page-404 {
  text-align: center;
  padding: 6rem 0;
}

.page-404 h1 {
  font-size: 6rem;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 1rem;
}

.page-404 h2 {
  margin-bottom: 1rem;
}

/* ===== Animations ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes badgeGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(22,163,74,0.2); }
  50% { box-shadow: 0 0 0 8px rgba(22,163,74,0); }
}

.badge-glow {
  animation: badgeGlow 2s infinite;
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--transition), transform 0.6s var(--transition);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Utility ===== */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  .section { padding: 3rem 0; }
  .hero { padding: 3rem 0 2rem; }
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
