:root {
  --primary: #8a1c1c; /* Crimson Red for Ink stamps */
  --bg: #f9f9f9; /* Rice paper white */
  --text: #222222; /* Ink black */
  --card-bg: #ffffff;
  --border: #e0e0e0;
  --spacing-sm: 1rem;
  --spacing-md: 3rem;
  --spacing-lg: 6rem;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Background Ink Splatter Simulation using SVG Data URI */
body::before {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100vh;
  background-image: radial-gradient(circle at 80% 20%, rgba(138, 28, 28, 0.05) 0%, transparent 50%),
                    radial-gradient(circle at 20% 80%, rgba(34, 34, 34, 0.05) 0%, transparent 50%);
  z-index: -1;
  pointer-events: none;
}

header {
  padding: 2rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo svg {
  width: 40px;
  height: 40px;
}

.hero {
  padding: var(--spacing-lg) 5%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 70vh;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  font-weight: 900;
  letter-spacing: -1px;
}

.hero p {
  font-size: 1.2rem;
  color: #555;
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.cta-group {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.btn-primary {
  background-color: var(--primary);
  color: #fff;
  padding: 1rem 2.5rem;
  text-decoration: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: bold;
  transition: transform 0.2s, opacity 0.2s;
}
.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 1rem 2.5rem;
  text-decoration: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: bold;
  transition: all 0.2s;
}
.btn-secondary:hover {
  background-color: var(--primary);
  color: #fff;
}

section {
  padding: var(--spacing-lg) 5%;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-md);
  text-align: left;
  border-left: 6px solid var(--primary);
  padding-left: 1rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--card-bg);
  padding: 2.5rem;
  border: 1px solid var(--border);
  border-radius: 0; /* Flat ink style */
  transition: background-color 0.3s;
}
.card:hover {
  background-color: #f2f2f2;
}
.card-icon {
  margin-bottom: 1.5rem;
}
.card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.pricing-table {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.price-card {
  border: 1px solid var(--border);
  padding: 3rem 2rem;
  text-align: center;
  position: relative;
}
.price-card.popular {
  border-color: var(--primary);
  border-width: 2px;
}
.price-card .badge {
  position: absolute;
  top: 0; right: 0;
  background: var(--primary);
  color: #fff;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}
.price-amount {
  font-size: 3rem;
  font-weight: bold;
  margin: 1.5rem 0;
  color: var(--primary);
}
.price-features {
  list-style: none;
  margin-bottom: 2rem;
}
.price-features li {
  margin-bottom: 0.8rem;
  color: #666;
}

.faq-item {
  border-bottom: 1px dashed var(--border);
  padding: 1.5rem 0;
}
.faq-item h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.testimonial-card {
  border-left: 4px solid var(--text);
  padding-left: 1.5rem;
  margin-bottom: 2rem;
}

footer {
  background: var(--text);
  color: #fff;
  padding: 3rem 5%;
  text-align: center;
}
footer nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}
footer nav a {
  color: #ccc;
  text-decoration: none;
}
footer nav a:hover {
  color: #fff;
}

.sticky-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(249, 249, 249, 0.95);
  backdrop-filter: blur(5px);
  padding: 1rem 5%;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-links { display: flex; gap: 1.5rem; align-items: center; }
.nav-links a { color: var(--text); text-decoration: none; font-weight: bold; transition: color 0.2s; }
.nav-links a:hover { color: var(--primary); }
.btn-small { padding: 0.6rem 1.5rem; font-size: 1rem; }

@media (max-width: 768px) {
  .hero h1 { font-size: 2.5rem; }
  .section-title { font-size: 2rem; }
  .cta-group { flex-direction: column; }
  .btn-primary, .btn-secondary { width: 100%; text-align: center; }
  footer nav { flex-direction: column; gap: 1rem; }
  .nav-links { display: none; }
  .sticky-header { padding: 1rem; }
}

/* Global Hyperlink Styles */
a, a:link, a:visited {
  color: #8a1c1c; /* Crimson Red */
  text-decoration: none;
}
a:hover, a:active {
  color: #6a1515;
}
/* Override specific buttons so they don't break */
.btn-primary, .btn-primary:visited, .btn-primary:link { color: #fff; }
.btn-primary:hover { color: #fff; }
.btn-secondary, .btn-secondary:visited, .btn-secondary:link { color: #8a1c1c; }
.btn-secondary:hover { color: #fff; }
.nav-links a, .nav-links a:visited { color: var(--text); }
.nav-links a:hover { color: var(--primary); }
footer nav a, footer nav a:visited { color: #ccc; }
footer nav a:hover { color: #fff; }

/* Article Listing Cards */
.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px; margin-top: 40px; }
.article-card { background: #fff; padding: 30px; border: 1px solid var(--border); transition: transform 0.3s; display: flex; flex-direction: column; justify-content: center; min-height: 150px; }
.article-card:hover { transform: translateY(-5px); background: #f9f9f9; box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
.article-card h3 { font-size: 1.3rem; margin-bottom: 0; line-height: 1.5; color: var(--text); transition: color 0.2s; }
.article-card:hover h3 { color: var(--primary); }
.article-card a { text-decoration: none; display: block; }
.article-card p { font-size: 1rem; color: #666; margin-top: 15px; }

/* Article Content Spacing */
.content h2 { margin-top: 3rem; margin-bottom: 1.5rem; border-bottom: 1px dashed var(--border); padding-bottom: 10px; }
.content h3 { margin-top: 2rem; margin-bottom: 1rem; }
.content p { margin-bottom: 1.5rem; }
