/* ============================================================
   HHpoker俱乐部 - 江南水乡风格自定义样式
   Color: 竹青(#4d7c0f) + 暖白(#fefce8)
   ============================================================ */

/* === CSS Variables === */
:root {
  --bamboo: #4d7c0f;
  --bamboo-dark: #3a5e0b;
  --bamboo-light: #65a315;
  --warm-white: #fefce8;
  --warm-white-dark: #f5f0d0;
  --ink-black: #1a1a1a;
  --ink-gray: #4a4a4a;
  --ink-light: #8a8a8a;
  --gold: #c9a94e;
  --gold-light: #e0c878;
  --border-bamboo: rgba(77, 124, 15, 0.3);
  --shadow-bamboo: 0 4px 20px rgba(77, 124, 15, 0.15);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* === Base === */
body {
  font-family: 'Noto Serif SC', 'STSong', 'SimSun', 'Songti SC', 'KaiTi', 'STKaiti', serif;
  color: var(--ink-black);
  background-color: #fdfbef;
  overflow-x: hidden;
}

::selection {
  background-color: var(--bamboo);
  color: #fff;
}

/* === Ink Wash Background Pattern === */
.ink-wash-bg {
  background-color: var(--warm-white);
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(77, 124, 15, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(77, 124, 15, 0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(77, 124, 15, 0.05) 0%, transparent 50%);
}

/* === Navbar === */
.navbar-custom {
  background: rgba(254, 252, 232, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--border-bamboo);
  transition: all 0.3s ease;
}

.navbar-custom.scrolled {
  box-shadow: var(--shadow-bamboo);
  border-bottom-color: var(--bamboo);
}

.navbar-custom .nav-link {
  color: var(--ink-gray);
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
  padding: 0.5rem 1rem;
}

.navbar-custom .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--bamboo);
  transition: width 0.3s ease;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
  color: var(--bamboo);
}

.navbar-custom .nav-link:hover::after,
.navbar-custom .nav-link.active::after {
  width: 70%;
}

.navbar-brand {
  font-weight: 700;
  color: var(--bamboo) !important;
  font-size: 1.3rem;
  letter-spacing: 1px;
}

.navbar-toggler {
  border: 1px solid var(--border-bamboo);
  color: var(--bamboo);
}

/* === Hero Section === */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #1a1a1a;
}

.hero-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  filter: brightness(0.7) contrast(1.1) saturate(0.6);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(180deg, rgba(26,26,26,0.7) 0%, rgba(26,26,26,0.4) 50%, rgba(26,26,26,0.7) 100%),
    radial-gradient(ellipse at center, transparent 0%, rgba(0,0,0,0.4) 100%);
}

/* Ink wash effect overlay */
.hero-overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 30% 40%, rgba(77, 124, 15, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 70% 60%, rgba(77, 124, 15, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(200, 180, 100, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 800px;
  padding: 0 2rem;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 2px 4px 12px rgba(0,0,0,0.6);
  letter-spacing: 4px;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.hero-content .hero-subtitle {
  font-size: 1.3rem;
  color: rgba(255,255,255,0.85);
  letter-spacing: 2px;
  margin-bottom: 2rem;
  font-weight: 300;
}

.hero-content .hero-ink-line {
  width: 120px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--bamboo-light), transparent);
  margin: 0 auto 2rem;
  position: relative;
}

.hero-content .hero-ink-line::after {
  content: '';
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  background: var(--bamboo-light);
  border-radius: 50%;
}

.hero-btn {
  display: inline-block;
  padding: 14px 40px;
  border-radius: 50px;
  font-weight: 600;
  letter-spacing: 2px;
  transition: all 0.4s ease;
  text-decoration: none;
  margin: 0 10px;
  font-size: 1rem;
}

.hero-btn-primary {
  background: var(--bamboo);
  color: #fff;
  border: 2px solid var(--bamboo);
  box-shadow: 0 4px 15px rgba(77, 124, 15, 0.4);
}

.hero-btn-primary:hover {
  background: var(--bamboo-dark);
  border-color: var(--bamboo-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(77, 124, 15, 0.5);
  color: #fff;
}

.hero-btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.6);
}

.hero-btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
  transform: translateY(-2px);
  color: #fff;
}

/* ink droplets animation */
.ink-drops {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 20px;
  z-index: 10;
}

.ink-drop {
  width: 6px;
  height: 6px;
  background: rgba(255,255,255,0.5);
  border-radius: 50%;
  animation: inkRipple 2s ease-in-out infinite;
}

.ink-drop:nth-child(2) { animation-delay: 0.4s; }
.ink-drop:nth-child(3) { animation-delay: 0.8s; }

@keyframes inkRipple {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(2.5); opacity: 0; }
}

/* === Section Titles === */
.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title .cn-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--ink-black);
  letter-spacing: 4px;
  margin-bottom: 0.5rem;
}

.section-title .en-subtitle {
  font-size: 0.9rem;
  color: var(--ink-light);
  letter-spacing: 3px;
  text-transform: uppercase;
}

.section-title .title-ink-line {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--bamboo), transparent);
  margin: 0.8rem auto 0;
}

/* === Bamboo Border Card (竹节边框卡) === */
.bamboo-card {
  background: #fff;
  border: 2px solid var(--border-bamboo);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
  transition: all 0.4s ease;
  overflow: hidden;
}

/* Bamboo joint decoration on borders */
.bamboo-card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 20%;
  width: 60%;
  height: 4px;
  background: var(--bamboo);
  border-radius: 0 0 4px 4px;
}

.bamboo-card::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 20%;
  width: 60%;
  height: 4px;
  background: var(--bamboo);
  border-radius: 4px 4px 0 0;
}

.bamboo-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-bamboo);
  border-color: var(--bamboo);
}

.bamboo-card .card-icon {
  width: 70px;
  height: 70px;
  line-height: 70px;
  font-size: 1.8rem;
  color: var(--bamboo);
  margin: 0 auto 1.2rem;
  border: 2px solid var(--bamboo);
  border-radius: 8px;
  background: var(--warm-white);
  position: relative;
}

/* Window lattice style (窗格) */
.bamboo-card .card-icon i {
  display: inline-block;
}

.bamboo-card h4 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink-black);
  letter-spacing: 2px;
  margin-bottom: 0.8rem;
}

.bamboo-card p {
  color: var(--ink-gray);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 0;
}

/* === Stats Section === */
.stats-section {
  background: linear-gradient(135deg, var(--bamboo-dark) 0%, var(--bamboo) 50%, var(--bamboo-dark) 100%);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,0.03) 0%, transparent 50%);
  pointer-events: none;
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 2px;
  position: relative;
  display: inline-block;
}

/* Ink wash style numbers */
.stat-number::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
}

.stat-label {
  display: block;
  color: rgba(255,255,255,0.85);
  font-size: 1rem;
  letter-spacing: 3px;
  margin-top: 0.5rem;
  font-weight: 400;
}

.stat-suffix {
  font-size: 1.5rem;
  color: rgba(255,255,255,0.8);
  font-weight: 400;
}

/* === Testimonials Section === */
.testimonial-card {
  background: #fff;
  border: 1px solid rgba(77, 124, 15, 0.15);
  border-radius: 16px;
  padding: 2rem;
  position: relative;
  transition: all 0.3s ease;
  box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.testimonial-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.testimonial-card .quote-icon {
  font-size: 2rem;
  color: var(--bamboo);
  opacity: 0.3;
  position: absolute;
  top: 1rem;
  left: 1.5rem;
}

.testimonial-card .testimonial-text {
  color: var(--ink-gray);
  font-size: 0.95rem;
  line-height: 1.9;
  margin: 1rem 0 1.5rem;
  padding-top: 0.5rem;
  font-style: italic;
}

.testimonial-card .testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  border-top: 1px solid #f0f0e8;
  padding-top: 1rem;
}

.testimonial-card .author-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--warm-white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bamboo);
  font-weight: 700;
  font-size: 1.1rem;
  border: 2px solid var(--border-bamboo);
}

.testimonial-card .author-info .name {
  font-weight: 700;
  color: var(--ink-black);
  font-size: 0.95rem;
}

.testimonial-card .author-info .role {
  color: var(--ink-light);
  font-size: 0.8rem;
}

.testimonial-card .stars {
  color: var(--gold);
  font-size: 0.85rem;
  margin-bottom: 0.3rem;
}

/* === FAQ Accordion - Bamboo Slip Style (竹简式展开) === */
.faq-section {
  background-color: #fdfbef;
}

.faq-item {
  margin-bottom: 0.8rem;
  border: 1px solid var(--border-bamboo);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  transition: all 0.3s ease;
}

.faq-item.active {
  border-color: var(--bamboo);
  box-shadow: var(--shadow-bamboo);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.2rem 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink-black);
  letter-spacing: 1px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.3s ease;
  position: relative;
}

/* Bamboo slip lines on question */
.faq-question::before {
  content: '';
  position: absolute;
  left: 0;
  top: 15%;
  height: 70%;
  width: 3px;
  background: var(--bamboo);
  border-radius: 0 2px 2px 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.faq-item.active .faq-question::before {
  opacity: 1;
}

.faq-item.active .faq-question {
  color: var(--bamboo);
  background: var(--warm-white);
}

.faq-question .faq-icon {
  font-size: 1rem;
  color: var(--bamboo);
  transition: transform 0.4s ease;
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-item.active .faq-question .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer-inner {
  padding: 0 1.5rem 1.2rem;
  color: var(--ink-gray);
  font-size: 0.95rem;
  line-height: 1.9;
  border-top: 1px dashed var(--border-bamboo);
  margin: 0 1.5rem;
}

/* Bamboo slip vertical lines in answer area */
.faq-answer-inner {
  position: relative;
}

/* === CTA Banner === */
.cta-section {
  background: linear-gradient(135deg, #3a5e0b 0%, #4d7c0f 50%, #3a5e0b 100%);
  padding: 4rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.06) 0%, transparent 50%);
  pointer-events: none;
}

.cta-section h2 {
  color: #fff;
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 3px;
  margin-bottom: 1rem;
  position: relative;
}

.cta-section p {
  color: rgba(255,255,255,0.8);
  font-size: 1rem;
  letter-spacing: 1px;
  margin-bottom: 2rem;
  position: relative;
}

.cta-btn {
  display: inline-block;
  padding: 14px 45px;
  background: #fff;
  color: var(--bamboo);
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 2px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  position: relative;
}

.cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
  color: var(--bamboo-dark);
  background: var(--warm-white);
}

/* === Footer === */
.footer-custom {
  background: #1a1a1a;
  color: rgba(255,255,255,0.7);
  padding: 3rem 0 1.5rem;
}

.footer-custom h5 {
  color: #fff;
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 1.2rem;
  font-size: 1rem;
}

.footer-custom a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-custom a:hover {
  color: var(--bamboo-light);
}

.footer-custom .footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-custom .footer-links li {
  margin-bottom: 0.5rem;
}

.footer-divider {
  border-color: rgba(255,255,255,0.1);
  margin: 2rem 0 1.5rem;
}

.footer-bottom {
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
}

/* === Page Header (for sub-pages) === */
.page-header {
  padding: 8rem 0 3rem;
  background: linear-gradient(180deg, #1a1a1a 0%, #2a2a2a 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 30% 40%, rgba(77, 124, 15, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(77, 124, 15, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

.page-header h1 {
  color: #fff;
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 4px;
  position: relative;
  margin-bottom: 0.5rem;
}

.page-header .breadcrumb-custom {
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
  letter-spacing: 1px;
  position: relative;
}

.page-header .breadcrumb-custom a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
}

.page-header .breadcrumb-custom a:hover {
  color: var(--bamboo-light);
}

/* === Download Page === */
.download-card {
  background: #fff;
  border: 2px solid var(--border-bamboo);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.download-card.featured {
  border-color: var(--bamboo);
  box-shadow: var(--shadow-bamboo);
  position: relative;
}

.download-card.featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  width: 60%;
  height: 4px;
  background: var(--bamboo);
  border-radius: 0 0 4px 4px;
}

.download-card .platform-icon {
  font-size: 3rem;
  color: var(--bamboo);
  margin-bottom: 1rem;
}

.download-card h3 {
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}

.download-card .version {
  color: var(--ink-light);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

.download-btn {
  display: inline-block;
  padding: 12px 35px;
  background: var(--bamboo);
  color: #fff;
  border-radius: 50px;
  font-weight: 600;
  letter-spacing: 1px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.download-btn:hover {
  background: var(--bamboo-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(77, 124, 15, 0.3);
  color: #fff;
}

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

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

/* === About Page === */
.about-img-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid var(--border-bamboo);
}

.about-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

.about-value-card {
  text-align: center;
  padding: 1.5rem;
  border: 1px solid var(--border-bamboo);
  border-radius: 12px;
  background: #fff;
  transition: all 0.3s ease;
}

.about-value-card:hover {
  box-shadow: var(--shadow-bamboo);
  border-color: var(--bamboo);
}

.about-value-card .value-icon {
  font-size: 2rem;
  color: var(--bamboo);
  margin-bottom: 0.8rem;
}

/* === Contact Page === */
.contact-form-card {
  background: #fff;
  border: 2px solid var(--border-bamboo);
  border-radius: 16px;
  padding: 2.5rem;
}

.contact-form-card .form-label {
  font-weight: 600;
  color: var(--ink-black);
  letter-spacing: 1px;
  margin-bottom: 0.4rem;
}

.contact-form-card .form-control {
  border: 1px solid var(--border-bamboo);
  border-radius: 8px;
  padding: 0.7rem 1rem;
  transition: all 0.3s ease;
  background: #fdfbef;
}

.contact-form-card .form-control:focus {
  border-color: var(--bamboo);
  box-shadow: 0 0 0 3px rgba(77, 124, 15, 0.1);
  outline: none;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-info-item .info-icon {
  width: 45px;
  height: 45px;
  line-height: 45px;
  text-align: center;
  background: var(--warm-white);
  border: 1px solid var(--border-bamboo);
  border-radius: 50%;
  color: var(--bamboo);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.submit-btn {
  display: inline-block;
  padding: 12px 40px;
  background: var(--bamboo);
  color: #fff;
  border-radius: 50px;
  font-weight: 600;
  letter-spacing: 2px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  background: var(--bamboo-dark);
  box-shadow: 0 6px 20px rgba(77, 124, 15, 0.3);
  transform: translateY(-2px);
}

/* === Scroll to Top === */
.scroll-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  background: var(--bamboo);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
  font-size: 1.2rem;
  box-shadow: 0 4px 15px rgba(77, 124, 15, 0.3);
}

.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top-btn:hover {
  background: var(--bamboo-dark);
  transform: translateY(-3px);
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

/* === Responsive === */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2rem;
    letter-spacing: 2px;
  }

  .hero-content .hero-subtitle {
    font-size: 1rem;
    letter-spacing: 1px;
  }

  .section-title .cn-title {
    font-size: 1.8rem;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .cta-section h2 {
    font-size: 1.6rem;
  }

  .page-header h1 {
    font-size: 1.8rem;
  }

  .bamboo-card {
    padding: 1.5rem 1rem;
  }

  .hero-btn {
    display: block;
    width: 80%;
    margin: 0 auto 1rem;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.6rem;
  }

  .navbar-brand {
    font-size: 1rem;
  }
}
