:root {
  --primary-color: #3498db;
  --secondary-color: #2ecc71;
  --accent-color: #e74c3c;
  --text-color: #333;
  --light-text: #666;
  --background-color: #fff;
  --card-background: #f8f9fa;
  --footer-background: #2c3e50;
  --header-background: #f8f9fa;
  --border-color: #ddd;
  --font-size-base: 16px;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition-speed: 0.3s;
}

[data-theme="dark"] {
  --primary-color: #4dabf7;
  --secondary-color: #51cf66;
  --accent-color: #ff6b6b;
  --text-color: #f1f3f5;
  --light-text: #adb5bd;
  --background-color: #222831;
  --card-background: #393e46;
  --footer-background: #1a1d24;
  --header-background: #393e46;
  --border-color: #4d4d4d;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  transition: background-color var(--transition-speed), color var(--transition-speed);
}

body {
  font-family: 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
  font-size: var(--font-size-base);
}

header {
  background-color: var(--header-background);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  width: 50px;
  height: auto;
}

.logo a {
  text-decoration: none;
  color: var(--primary-color);
  font-size: 1.8rem;
  font-weight: bold;
  margin-left: 1rem;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

nav ul li a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: color 0.3s ease;
}

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

.theme-buttons {
  display: flex;
  gap: 1rem;
}

.theme-toggle, .font-size-toggle {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s;
}

.theme-toggle:hover, .font-size-toggle:hover {
  background-color: var(--secondary-color);
}

.font-size-toggle svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

.container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 2rem;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 3rem 0;
  margin-bottom: 2rem;
  background: linear-gradient(to right, rgba(52, 152, 219, 0.1), rgba(46, 204, 113, 0.1));
  border-radius: 8px;
}

.hero h1 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  max-width: 800px;
  margin-bottom: 2rem;
  color: var(--light-text);
}

.cta-button {
  display: inline-block;
  background-color: var(--secondary-color);
  color: white;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s, transform 0.3s;
  box-shadow: var(--box-shadow);
}

.cta-button:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

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

.post-card {
  background-color: var(--card-background);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: transform 0.3s;
}

.post-card:hover {
  transform: translateY(-5px);
}

.post-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.post-content {
  padding: 1.5rem;
}

.post-content h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

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

.read-more {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
}

.read-more:hover {
  text-decoration: underline;
}

.read-more svg {
  width: 1rem;
  height: 1rem;
  margin-left: 0.5rem;
  fill: currentColor;
}

.services {
  margin-bottom: 3rem;
}

.services h2 {
  text-align: center;
  color: var(--primary-color);
  margin-bottom: 2rem;
  font-size: 2rem;
}

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

.service-card {
  background-color: var(--card-background);
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: var(--box-shadow);
}

.service-card svg {
  width: 3rem;
  height: 3rem;
  fill: var(--primary-color);
  margin-bottom: 1rem;
}

.service-card h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.testimonials {
  margin-bottom: 3rem;
}

.testimonials h2 {
  text-align: center;
  color: var(--primary-color);
  margin-bottom: 2rem;
  font-size: 2rem;
}

.testimonial-slider {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 2rem;
  padding-bottom: 2rem;
}

.testimonial-slider::-webkit-scrollbar {
  height: 8px;
}

.testimonial-slider::-webkit-scrollbar-track {
  background: var(--card-background);
  border-radius: 10px;
}

.testimonial-slider::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 10px;
}

.testimonial {
  flex: 0 0 auto;
  width: 300px;
  scroll-snap-align: start;
  background-color: var(--card-background);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--box-shadow);
  position: relative;
}

.testimonial:before {
  content: """;
  position: absolute;
  top: 0;
  left: 10px;
  font-size: 5rem;
  color: var(--primary-color);
  opacity: 0.2;
  line-height: 1;
}

.testimonial p {
  margin-bottom: 1.5rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.testimonial-author img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 1rem;
  object-fit: cover;
}

.author-info h4 {
  color: var(--primary-color);
}

.author-info p {
  color: var(--light-text);
  margin-bottom: 0;
  font-size: 0.9rem;
}

footer {
  background-color: var(--footer-background);
  color: white;
  padding: 3rem 0 1rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 0 2rem;
}

.footer-section h3 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

.footer-section p, .footer-section a {
  margin-bottom: 0.8rem;
  color: #ddd;
}

.footer-section a {
  text-decoration: none;
  display: block;
  transition: color 0.3s;
}

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

.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: background-color 0.3s;
}

.social-icons a:hover {
  background-color: var(--primary-color);
}

.social-icons svg {
  width: 20px;
  height: 20px;
  fill: white;
}

.footer-bottom {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding: 1.5rem 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: #999;
  font-size: 0.9rem;
}

.footer-links {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.footer-links a {
  color: #ddd;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s;
}

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

/* About Page Styles */
.about-hero {
  text-align: center;
  padding: 3rem 0;
  margin-bottom: 3rem;
}

.about-hero h1 {
  color: var(--primary-color);
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.team-section {
  margin-bottom: 3rem;
}

.team-section h2 {
  text-align: center;
  color: var(--primary-color);
  margin-bottom: 2rem;
  font-size: 2rem;
}

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

.team-member {
  background-color: var(--card-background);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  text-align: center;
}

.team-member img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.team-info {
  padding: 1.5rem;
}

.team-info h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.team-info p {
  color: var(--light-text);
  margin-bottom: 0.5rem;
}

.team-info p:last-child {
  margin-bottom: 0;
}

/* Contact Page Styles */
.contact-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.contact-info {
  background-color: var(--card-background);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--box-shadow);
}

.contact-info h2 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-size: 2rem;
}

.contact-info p {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

.contact-info svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: var(--primary-color);
  margin-right: 1rem;
}

.contact-form {
  background-color: var(--card-background);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--box-shadow);
}

.contact-form h2 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-size: 2rem;
}

.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;
  background-color: var(--background-color);
  color: var(--text-color);
}

.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.submit-btn {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.3s;
}

.submit-btn:hover {
  background-color: var(--secondary-color);
}

.map-section {
  margin-top: 3rem;
}

.map-section h2 {
  text-align: center;
  color: var(--primary-color);
  margin-bottom: 2rem;
  font-size: 2rem;
}

.map-container {
  height: 450px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Blog Post Styles */
.post-header {
  text-align: center;
  padding: 2rem 0;
  margin-bottom: 2rem;
}

.post-header h1 {
  color: var(--primary-color);
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.post-meta {
  color: var(--light-text);
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.post-meta span {
  margin: 0 0.5rem;
}

.post-featured-image {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 2rem;
  box-shadow: var(--box-shadow);
}

.post-content {
  max-width: 800px;
  margin: 0 auto 3rem;
}

.post-content h2, .post-content h3 {
  color: var(--primary-color);
  margin: 2rem 0 1rem;
}

.post-content p {
  margin-bottom: 1.5rem;
}

.post-content img {
  max-width: 100%;
  border-radius: 8px;
  margin: 1.5rem 0;
}

.post-content blockquote {
  border-left: 4px solid var(--primary-color);
  padding-left: 1.5rem;
  margin: 2rem 0;
  color: var(--light-text);
  font-style: italic;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 2rem 0;
}

.post-tag {
  display: inline-block;
  background-color: var(--card-background);
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-size: 0.9rem;
  color: var(--light-text);
  text-decoration: none;
}

.post-tag:hover {
  background-color: var(--primary-color);
  color: white;
}

.share-post {
  display: flex;
  align-items: center;
  margin-top: 2rem;
}

.share-post span {
  margin-right: 1rem;
  font-weight: 500;
}

.share-icons {
  display: flex;
  gap: 0.5rem;
}

.share-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  background-color: var(--card-background);
  border-radius: 50%;
  transition: background-color 0.3s;
}

.share-icons a:hover {
  background-color: var(--primary-color);
}

.share-icons svg {
  width: 18px;
  height: 18px;
  fill: var(--primary-color);
}

.share-icons a:hover svg {
  fill: white;
}

.related-posts {
  margin-top: 3rem;
}

.related-posts h2 {
  text-align: center;
  color: var(--primary-color);
  margin-bottom: 2rem;
  font-size: 2rem;
}

.cookies-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background-color: var(--card-background);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: var(--box-shadow);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  display: none;
}

.cookies-banner.show {
  display: flex;
}

.cookies-text {
  flex: 1;
  margin-right: 1rem;
}

.cookies-text h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.cookies-buttons {
  display: flex;
  gap: 1rem;
}

.cookies-buttons button {
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  border: none;
  transition: background-color 0.3s;
}

.accept-cookies {
  background-color: var(--primary-color);
  color: white;
}

.accept-cookies:hover {
  background-color: var(--secondary-color);
}

.customize-cookies, .reject-cookies {
  background-color: var(--background-color);
  color: var(--text-color);
  border: 1px solid var(--border-color) !important;
}

.customize-cookies:hover, .reject-cookies:hover {
  background-color: var(--card-background);
}

.thank-you-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.thank-you-modal.show {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background-color: var(--background-color);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--box-shadow);
  text-align: center;
  max-width: 500px;
  width: 90%;
}

.modal-content h2 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.modal-content p {
  margin-bottom: 1.5rem;
}

.modal-close {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.3s;
}

.modal-close:hover {
  background-color: var(--secondary-color);
}

/* Media Queries */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    padding: 1rem;
  }
  
  .logo {
    margin-bottom: 1rem;
  }
  
  nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
  
  .theme-buttons {
    margin-top: 1rem;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .contact-section {
    grid-template-columns: 1fr;
  }
  
  .cookies-banner {
    flex-direction: column;
  }
  
  .cookies-text {
    margin-right: 0;
    margin-bottom: 1rem;
  }
  
  .cookies-buttons {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .header-container, .container, .footer-container {
    padding: 0 1rem;
  }
  
  .hero {
    padding: 2rem 1rem;
  }
  
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .cta-button {
    padding: 0.7rem 1.5rem;
  }
  
  .footer-section h3 {
    font-size: 1.2rem;
  }
}
