/* ========================================
   Page Specific Styles
   ======================================== */

/* ---------- Home Page ---------- */

/* Hero Section */
.home-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  padding: 0 5%;
  background: linear-gradient(135deg, #F8F6F1 0%, #EDE8DC 50%, #F5F0E5 100%);
  overflow: hidden;
}

.home-hero .hero-content {
  position: relative;
  z-index: 1;
  text-align: left;
  max-width: 550px;
  animation: fadeInUp 1s ease-out;
}

.home-hero .hero-subtitle {
  text-align: left;
  margin-bottom: var(--space-md);
}

.home-hero .hero-title {
  text-align: left;
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: var(--space-lg);
}

.home-hero .hero-desc {
  text-align: left;
  margin: 0 0 var(--space-2xl);
  max-width: 500px;
}

.home-hero-buttons {
  display: flex;
  gap: var(--space-md);
}

.home-hero-decoration {
  width: 45%;
  max-width: 500px;
  flex-shrink: 0;
}

.home-hero-decoration img {
  width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
}

.home-hero-decoration::before {
  content: '';
  display: block;
  position: absolute;
  top: -20px;
  left: -20px;
  right: 20px;
  bottom: 20px;
  border: 2px solid var(--color-gold-light);
  border-radius: 8px;
  z-index: -1;
}

.home-hero-decoration {
  position: relative;
}

@media (max-width: 1200px) {
  .home-hero {
    gap: 40px;
  }

  .home-hero .hero-content {
    max-width: 480px;
  }

  .home-hero-decoration {
    width: 42%;
  }
}

@media (max-width: 992px) {
  .home-hero {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 40px;
    padding: 120px 24px 60px;
  }

  .home-hero .hero-content {
    text-align: center;
    max-width: 100%;
  }

  .home-hero .hero-subtitle,
  .home-hero .hero-title,
  .home-hero .hero-desc {
    text-align: center;
  }

  .home-hero-buttons {
    justify-content: center;
  }

  .home-hero-decoration {
    width: 80%;
    max-width: 400px;
  }
}

/* Intro Section */
.home-intro {
  padding: var(--space-4xl) 0;
}

.home-intro .two-col-image::before {
  top: var(--space-xl);
  left: var(--space-xl);
  right: calc(-1 * var(--space-xl));
  bottom: calc(-1 * var(--space-xl));
}

.home-intro-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-border);
}

.home-intro-stat {
  text-align: center;
}

.home-intro-stat-number {
  font-family: var(--font-heading-en);
  font-size: 2rem;
  color: var(--color-gold);
  margin-bottom: var(--space-xs);
}

.home-intro-stat-label {
  font-size: 0.8rem;
  color: var(--color-text-light);
}

/* Features Section */
.home-features {
  padding: var(--space-4xl) 0;
  background: var(--color-bg-dark);
}

/* Categories Section */
.home-categories {
  padding: var(--space-4xl) 0;
}

.home-categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

/* Products Preview Section */
.home-products {
  padding: var(--space-4xl) 0;
  background: var(--color-bg-dark);
}

.home-products-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: var(--space-2xl);
}

.home-products-title {
  text-align: left;
}

.home-products-title .section-label {
  margin-bottom: var(--space-sm);
}

.home-products-title .section-title {
  margin-bottom: 0;
}

/* News Preview Section */
.home-news {
  padding: var(--space-4xl) 0;
}

.home-news-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: var(--space-2xl);
}

.home-news-title {
  text-align: left;
}

/* Partners Section */
.home-partners {
  padding: var(--space-3xl) 0;
  background: var(--color-white);
}

/* CTA Section */
.home-cta {
  position: relative;
  padding: var(--space-4xl) 0;
  background: linear-gradient(135deg, var(--color-text) 0%, #1a1a1a 100%);
}

.home-cta-decoration {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L30 60M0 30L60 30' stroke='%23C9A962' stroke-width='0.5' opacity='0.1'/%3E%3C/svg%3E");
  opacity: 0.5;
}

/* ---------- About Page ---------- */

/* Brand Story */
.about-story {
  padding: var(--space-4xl) 0;
}

.about-story-image {
  position: relative;
}

.about-story-image img {
  width: 100%;
  border-radius: 8px;
}

.about-story-accent {
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
  border-radius: 8px;
  z-index: -1;
}

/* History Section */
.about-history {
  padding: var(--space-4xl) 0;
  background: var(--color-bg-dark);
}

.about-history .timeline {
  max-width: 700px;
  margin: 0 auto;
}

/* Team Section */
.about-team {
  padding: var(--space-4xl) 0;
}

.about-team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
}

.about-team-member {
  text-align: center;
}

.about-team-image {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: var(--space-md);
}

.about-team-image img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.about-team-member:hover .about-team-image img {
  transform: scale(1.05);
}

.about-team-name {
  font-family: var(--font-heading-cn);
  font-size: 1.125rem;
  margin-bottom: var(--space-xs);
}

.about-team-role {
  font-size: 0.875rem;
  color: var(--color-gold);
}

/* Honors Section */
.about-honors {
  padding: var(--space-4xl) 0;
  background: var(--color-bg-dark);
}

.about-honors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
}

.about-honor-item {
  text-align: center;
  padding: var(--space-xl);
  background: var(--color-white);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.about-honor-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.about-honor-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-gold-pale), var(--color-bg));
  border-radius: 50%;
}

.about-honor-icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--color-gold);
  stroke-width: 1.5;
  fill: none;
}

.about-honor-name {
  font-family: var(--font-heading-cn);
  font-size: 1rem;
  margin-bottom: var(--space-xs);
}

.about-honor-year {
  font-size: 0.8rem;
  color: var(--color-text-light);
}

/* ---------- R&D Page ---------- */

/* Philosophy Section */
.rd-philosophy {
  padding: var(--space-4xl) 0;
}

.rd-philosophy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

/* Capability Section */
.rd-capability {
  padding: var(--space-4xl) 0;
  background: var(--color-bg-dark);
}

.rd-capability-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2xl);
}

.rd-capability-item {
  display: flex;
  gap: var(--space-lg);
}

.rd-capability-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
  border-radius: 8px;
  flex-shrink: 0;
}

.rd-capability-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--color-white);
  stroke-width: 1.5;
  fill: none;
}

.rd-capability-title {
  font-family: var(--font-heading-cn);
  font-size: 1.125rem;
  margin-bottom: var(--space-sm);
}

.rd-capability-desc {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* Quality Section */
.rd-quality {
  padding: var(--space-4xl) 0;
}

.rd-quality-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}

.rd-quality-step {
  text-align: center;
  position: relative;
}

.rd-quality-step::after {
  content: '';
  position: absolute;
  top: 30px;
  right: -20px;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-gold-light));
}

.rd-quality-step:last-child::after {
  display: none;
}

.rd-quality-step-number {
  width: 60px;
  height: 60px;
  margin: 0 auto var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-gold-pale), var(--color-bg));
  border-radius: 50%;
  font-family: var(--font-heading-en);
  font-size: 1.5rem;
  color: var(--color-gold);
}

.rd-quality-step-title {
  font-family: var(--font-heading-cn);
  font-size: 1rem;
  margin-bottom: var(--space-xs);
}

.rd-quality-step-desc {
  font-size: 0.8rem;
  color: var(--color-text-light);
}

/* Equipment Section */
.rd-equipment {
  padding: var(--space-4xl) 0;
  background: var(--color-bg-dark);
}

.rd-equipment-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

/* ---------- Products Page ---------- */

.products-page {
  padding: var(--space-3xl) 0;
}

.products-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.products-header .section-label {
  margin-bottom: var(--space-sm);
}

.products-header .section-title {
  margin-bottom: var(--space-md);
}

.products-filters {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

/* ---------- Product Detail Page ---------- */

.product-detail-page {
  padding: var(--space-3xl) 0;
}

.product-detail-tabs {
  display: flex;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
  border-bottom: 1px solid var(--color-border);
}

.product-detail-tab {
  padding: var(--space-md) 0;
  font-size: 0.95rem;
  color: var(--color-text-light);
  border-bottom: 2px solid transparent;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.product-detail-tab:hover,
.product-detail-tab.active {
  color: var(--color-gold);
  border-bottom-color: var(--color-gold);
}

.product-detail-content {
  padding: var(--space-xl) 0;
}

.product-detail-content h3 {
  font-family: var(--font-heading-cn);
  font-size: 1.25rem;
  margin-bottom: var(--space-lg);
}

.product-detail-content p {
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

/* Related Products */
.related-products {
  margin-top: var(--space-3xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--color-border);
}

.related-products-title {
  font-family: var(--font-heading-cn);
  font-size: 1.25rem;
  margin-bottom: var(--space-xl);
}

/* ---------- News Page ---------- */

.news-page {
  padding: var(--space-3xl) 0;
}

.news-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.news-categories {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

.news-list {
  margin-bottom: var(--space-2xl);
}

/* News List Item */
.news-list-item {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: var(--space-xl);
  padding: var(--space-xl) 0;
  border-bottom: 1px solid var(--color-border);
  transition: all var(--transition-fast);
}

.news-list-item:hover {
  padding-left: var(--space-md);
}

.news-list-image {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.news-list-image img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.news-list-item:hover .news-list-image img {
  transform: scale(1.05);
}

.news-list-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-list-category {
  display: inline-block;
  padding: var(--space-xs) var(--space-sm);
  background: var(--color-gold-pale);
  color: var(--color-gold-dark);
  font-size: 0.75rem;
  border-radius: 2px;
  margin-bottom: var(--space-sm);
  width: fit-content;
}

.news-list-title {
  font-family: var(--font-heading-cn);
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
  transition: color var(--transition-fast);
}

.news-list-item:hover .news-list-title {
  color: var(--color-gold);
}

.news-list-desc {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.news-list-meta {
  font-size: 0.8rem;
  color: var(--color-text-light);
}

/* ---------- News Detail Page ---------- */

.news-detail-page {
  padding: var(--space-3xl) 0;
}

.news-detail-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--space-2xl);
}

.news-detail-main {
  max-width: 800px;
}

.news-detail-sidebar {
  position: sticky;
  top: calc(var(--header-height) + var(--space-xl));
  align-self: start;
}

.sidebar-widget {
  background: var(--color-white);
  border-radius: 8px;
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-lg);
}

.sidebar-widget-title {
  font-family: var(--font-heading-cn);
  font-size: 1rem;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--color-gold);
}

.related-news-item {
  display: block;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--color-border);
  transition: color var(--transition-fast);
}

.related-news-item:last-child {
  border-bottom: none;
}

.related-news-item:hover {
  color: var(--color-gold);
}

.related-news-date {
  font-size: 0.75rem;
  color: var(--color-text-light);
}

/* ---------- Contact Page ---------- */

.contact-page {
  padding: var(--space-3xl) 0;
}

.contact-page-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.contact-page-header .section-label {
  margin-bottom: var(--space-sm);
}

.map-section {
  height: 400px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: var(--space-2xl);
}

#map-container {
  width: 100%;
  height: 100%;
}
  stroke-width: 1;
  fill: none;
  margin-bottom: var(--space-md);
}

/* ---------- Responsive Adjustments ---------- */

@media (max-width: 1200px) {
  .home-hero-decoration {
    width: 40%;
    right: 3%;
  }

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

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

  .rd-quality-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
  }

  .rd-quality-step::after {
    display: none;
  }
}

@media (max-width: 992px) {
  .home-categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-products-header,
  .home-news-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-md);
  }

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

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

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

  .news-detail-layout {
    grid-template-columns: 1fr;
  }

  .news-detail-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }
}

@media (max-width: 768px) {
  .home-hero {
    min-height: 90vh;
  }

  .home-hero .hero-content {
    max-width: 100%;
    margin-left: 0;
    text-align: center;
    padding: 0 var(--space-lg);
  }

  .home-hero .hero-subtitle,
  .home-hero .hero-title,
  .home-hero .hero-desc {
    text-align: center;
  }

  .home-hero-buttons {
    justify-content: center;
  }

  .home-hero-decoration {
    display: none;
  }

  .home-intro-stats {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .home-categories-grid {
    grid-template-columns: 1fr;
  }

  .about-team-grid {
    grid-template-columns: 1fr;
  }

  .about-honors-grid {
    grid-template-columns: 1fr;
  }

  .rd-philosophy-grid {
    grid-template-columns: 1fr;
  }

  .rd-capability-grid {
    grid-template-columns: 1fr;
  }

  .rd-quality-steps {
    grid-template-columns: 1fr;
  }

  .rd-equipment-grid {
    grid-template-columns: 1fr;
  }

  .products-filters {
    flex-wrap: wrap;
  }

  .news-list-item {
    grid-template-columns: 1fr;
  }

  .news-detail-sidebar {
    grid-template-columns: 1fr;
  }

  .news-sidebar-widget {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }
}

@media (max-width: 480px) {
  .home-hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .home-hero-buttons .btn {
    width: 100%;
  }

  .product-detail-tabs {
    gap: var(--space-md);
    overflow-x: auto;
  }

  .product-detail-tab {
    white-space: nowrap;
  }
}
