/* Acupuncture Spirit - Stylesheet */

:root {
  --primary-color: #2c5f4a;
  --secondary-color: #4a7c6a;
  --accent-color: #8fb3a3;
  --text-color: #333;
  --light-bg: #f8f9fa;
  --border-color: #e0e0e0;
  --max-width: 1200px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: #fff;
}

/* Header */
header {
  background-color: #fff;
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.header-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-color);
  text-decoration: none;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

nav a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

nav a:hover {
  color: var(--primary-color);
}

/* Main Content */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem;
  min-height: calc(100vh - 200px);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  padding: 4rem 2rem;
  text-align: center;
  border-radius: 8px;
  margin-bottom: 3rem;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  opacity: 0.95;
}

.hero-image {
  width: 100%;
  max-width: 1600px;
  height: auto;
  border-radius: 8px;
  margin: 2rem 0;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-content {
  padding: 1.5rem;
}

.card h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.card p {
  color: #666;
  margin-bottom: 1rem;
}

.card a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

/* Article List */
.article-list {
  display: grid;
  gap: 2rem;
  margin: 2rem 0;
}

.article-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1.5rem;
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  transition: box-shadow 0.3s;
}

.article-item:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.article-thumbnail {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 4px;
}

.article-meta {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #666;
}

.category-tag {
  display: inline-block;
  background: var(--accent-color);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.85rem;
}

/* Article Page */
.article-header {
  margin-bottom: 2rem;
}

.article-hero-image {
  width: 100%;
  max-width: 1200px;
  height: auto;
  border-radius: 8px;
  margin: 2rem 0;
}

.breadcrumbs {
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: #666;
}

.breadcrumbs a {
  color: var(--primary-color);
  text-decoration: none;
}

.article-content {
  max-width: 800px;
  margin: 0 auto;
}

.article-content h2 {
  color: var(--primary-color);
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.75rem;
}

.article-content h3 {
  color: var(--secondary-color);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.4rem;
}

.article-content p {
  margin-bottom: 1rem;
}

.article-content ul, .article-content ol {
  margin-left: 2rem;
  margin-bottom: 1rem;
}

.article-content li {
  margin-bottom: 0.5rem;
}

/* Info Boxes */
.info-box {
  background: var(--light-bg);
  border-left: 4px solid var(--primary-color);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 4px;
}

.info-box h3 {
  color: var(--primary-color);
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
}

/* Table of Contents */
.toc {
  background: var(--light-bg);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 8px;
}

.toc h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.toc ul {
  list-style: none;
  margin-left: 0;
}

.toc li {
  margin-bottom: 0.5rem;
}

.toc a {
  color: var(--primary-color);
  text-decoration: none;
}

.toc a:hover {
  text-decoration: underline;
}

/* Author Box */
.author-box {
  background: var(--light-bg);
  border-top: 2px solid var(--primary-color);
  padding: 1.5rem;
  margin: 3rem 0;
  border-radius: 4px;
}

.author-box p {
  margin-bottom: 0.5rem;
  color: #666;
}

/* Related Articles */
.related-articles {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid var(--border-color);
}

.related-articles h2 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.related-item {
  padding: 1rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
}

.related-item a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

.related-item a:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  background-color: #2c2c2c;
  color: #fff;
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  opacity: 0.9;
}

.footer-links a:hover {
  opacity: 1;
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #444;
  color: #999;
  font-size: 0.9rem;
}

/* Search */
.search-container {
  max-width: 600px;
  margin: 2rem auto;
}

.search-box {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 2rem;
}

.search-results {
  margin-top: 2rem;
}

.search-result-item {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.search-result-item h3 {
  margin-bottom: 0.5rem;
}

.search-result-item a {
  color: var(--primary-color);
  text-decoration: none;
}

/* Contact Form */
.contact-form {
  max-width: 600px;
  margin: 2rem auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.submit-btn {
  background: var(--primary-color);
  color: white;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
}

.submit-btn:hover {
  background: var(--secondary-color);
}

.form-note {
  background: var(--light-bg);
  padding: 1rem;
  border-radius: 4px;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #666;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .card-grid {
    grid-template-columns: 1fr;
  }
  
  .article-item {
    grid-template-columns: 1fr;
  }
  
  .article-thumbnail {
    height: 200px;
  }
  
  nav ul {
    gap: 1rem;
  }
  
  .header-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .related-grid {
    grid-template-columns: 1fr;
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mt-2 {
  margin-top: 2rem;
}

.mb-2 {
  margin-bottom: 2rem;
}

.section-title {
  color: var(--primary-color);
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
}
