/* ============================================
   Apex Aluminum - Premium Aluminum Doors & Windows
   Style Sheet
   Inspired by marvin.com
   ============================================ */

/* --- CSS Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  color: #2d2d2d;
  line-height: 1.6;
  background-color: #ffffff;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius:5px;
}

a {
  text-decoration: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

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

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Georgia', 'Playfair Display', 'Times New Roman', serif;
  font-weight: 400;
  line-height: 1.2;
  color: #1a1a1a;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

.section-subtitle {
  text-align: center;
  font-size: 1.05rem;
  color: #666;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.section {
  padding: 5rem 0;
}

.section-light {
  background-color: #f8f8f8;
}

.section-dark {
  background-color: #1a1a1a;
  color: #fff;
}

.section-dark .section-title,
.section-dark .section-subtitle {
  color: #fff;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 12px 32px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: #1a1a1a;
  color: #fff;
  border-color: #1a1a1a;
}

.btn-primary:hover {
  background-color: #333;
  border-color: #333;
}

.btn-outline {
  background: transparent;
  color: #1a1a1a;
  border-color: #1a1a1a;
}

.btn-outline:hover {
  background-color: #1a1a1a;
  color: #fff;
}

.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

.btn-outline-light:hover {
  background-color: #fff;
  color: #1a1a1a;
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: opacity 0.3s ease;
}

.btn-link:hover {
  opacity: 0.7;
}

.btn-link::after {
  content: '→';
  font-size: 1.1rem;
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: #ffffff;
  border-bottom: 1px solid #e8e8e8;
  transition: background-color 0.3s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

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

.logo a {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background-color: #1a1a1a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  font-family: Georgia, serif;
}

.logo-text {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: 0.03em;
}

.logo-text span {
  display: block;
  font-size: 0.55rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #888;
  font-family: 'Segoe UI', Arial, sans-serif;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.main-nav a {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #333;
  transition: color 0.3s ease;
  position: relative;
}

.main-nav a:hover,
.main-nav a.active {
  color: #000;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #1a1a1a;
  transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

.nav-cta {
  background-color: #1a1a1a !important;
  color: #fff !important;
  padding: 10px 24px !important;
  border: none;
}

.nav-cta:hover {
  background-color: #333 !important;
}

.nav-cta::after {
  display: none !important;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background-color: #1a1a1a;
  transition: all 0.3s ease;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  margin-top: 80px;
  position: relative;
  height: 85vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.2) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
  color: #fff;
}

.hero-content h1 {
  font-size: 3.5rem;
  color: #fff;
  margin-bottom: 1.2rem;
  line-height: 1.15;
}

.hero-content p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ============================================
   COLLECTIONS / PRODUCTS GRID
   ============================================ */
.collections-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.collection-card {
  background: #fff;
  border: 1px solid #eee;
  transition: all 0.4s ease;
  overflow: hidden;
}

.collection-card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  transform: translateY(-4px);
}

.collection-card-image {
  position: relative;
  height: 280px;
  overflow: hidden;
}

.collection-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.collection-card:hover .collection-card-image img {
  transform: scale(1.05);
}

.collection-card-body {
  padding: 1.8rem;
}

.collection-card-body h3 {
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
}

.collection-card-body .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.collection-card-body .tags span {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #888;
  border: 1px solid #ddd;
  padding: 3px 10px;
  border-radius: 2px;
}

.collection-card-body p {
  font-size: 0.92rem;
  color: #666;
  margin-bottom: 1.2rem;
  line-height: 1.7;
}

.collection-card-body .material {
  font-size: 0.78rem;
  color: #999;
  margin-bottom: 1.2rem;
  font-style: italic;
}

/* ============================================
   FEATURES / WHY US
   ============================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.feature-item {
  padding: 2rem 1rem;
}

.feature-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.5rem;
  background-color: #f0f0f0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.feature-item h4 {
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
  font-family: 'Segoe UI', Arial, sans-serif;
  font-weight: 600;
}

.feature-item p {
  font-size: 0.88rem;
  color: #777;
  line-height: 1.6;
}

/* ============================================
   CASE STUDIES / PROJECTS
   ============================================ */
.case-studies-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.case-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.case-card-image {
  height: 380px;
  overflow: hidden;
}

.case-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.case-card:hover .case-card-image img {
  transform: scale(1.05);
}

.case-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  color: #fff;
}

.case-card-overlay h4 {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}

.case-card-overlay p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.8);
}

/* ============================================
   LATEST / BLOG
   ============================================ */
.latest-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.blog-card {
  border: 1px solid #eee;
  transition: all 0.3s ease;
  background: #fff;
}

.blog-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}

.blog-card-image {
  height: 200px;
  overflow: hidden;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.05);
}

.blog-card-body {
  padding: 1.5rem;
}

.blog-card-body .category {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #999;
  margin-bottom: 0.5rem;
}

.blog-card-body h4 {
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
  font-family: Georgia, serif;
  line-height: 1.4;
}

.blog-card-body p {
  font-size: 0.85rem;
  color: #777;
  line-height: 1.6;
}

/* ============================================
   CTA BANNER
   ============================================ */
.cta-banner {
  background-color: #1a1a1a;
  color: #fff;
  text-align: center;
  padding: 5rem 0;
}

.cta-banner h2 {
  color: #fff;
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

.cta-banner p {
  color: rgba(255,255,255,0.75);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

/* ============================================
   RESOURCES SECTION (Homepage bottom)
   ============================================ */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.resource-card {
  text-align: center;
  padding: 2.5rem 2rem;
  border: 1px solid #eee;
  transition: all 0.3s ease;
}

.resource-card:hover {
  background: #fafafa;
}

.resource-icon {
  font-size: 2.5rem;
  margin-bottom: 1.2rem;
}

.resource-card h4 {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  font-family: 'Segoe UI', Arial, sans-serif;
  font-weight: 600;
}

.resource-card p {
  font-size: 0.88rem;
  color: #777;
  line-height: 1.7;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background-color: #111;
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .logo-text {
  color: #fff;
  margin-bottom: 0.5rem;
  display: inline-block;
}

.footer-brand .logo-text span {
  color: rgba(255,255,255,0.5);
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.7;
  margin: 1rem 0 1.5rem;
  color: rgba(255,255,255,0.55);
}

.footer-social {
  display: flex;
  gap: 0.8rem;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition: all 0.3s ease;
  color: rgba(255,255,255,0.5);
}

.footer-social a:hover {
  border-color: #fff;
  color: #fff;
}

.footer-column h5 {
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.2rem;
  font-family: 'Segoe UI', Arial, sans-serif;
  font-weight: 600;
}

.footer-column a {
  display: block;
  font-size: 0.85rem;
  padding: 0.4rem 0;
  color: rgba(255,255,255,0.55);
  transition: color 0.3s ease;
}

.footer-column a:hover {
  color: #fff;
}

.footer-bottom {
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  color: rgba(255,255,255,0.35);
  transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
  color: rgba(255,255,255,0.7);
}

/* ============================================
   PAGE HEADER (for inner pages)
   ============================================ */
.page-header {
  margin-top: 80px;
  padding: 5rem 0 3rem;
  background-color: #f8f8f8;
  text-align: center;
}

.page-header h1 {
  font-size: 2.8rem;
  margin-bottom: 0.6rem;
}

.page-header p {
  color: #777;
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.82rem;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.breadcrumb a {
  color: #666;
}

.breadcrumb a:hover {
  color: #1a1a1a;
}

/* ============================================
   LIST PAGE - FILTERS
   ============================================ */
.filters-bar {
  background: #fff;
  border: 1px solid #eee;
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.filters-bar label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #555;
}

.filters-bar select {
  padding: 8px 16px;
  border: 1px solid #ddd;
  background: #fff;
  font-size: 0.88rem;
  color: #333;
  cursor: pointer;
  outline: none;
}

.filters-bar select:focus {
  border-color: #1a1a1a;
}

.product-list-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.product-card {
  border: 1px solid #eee;
  transition: all 0.3s ease;
  background: #fff;
}

.product-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}

.product-card-image {
  height: 260px;
  overflow: hidden;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-card-image img {
  transform: scale(1.05);
}

.product-card-body {
  padding: 1.5rem;
}

.product-card-body h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
  font-family: 'Segoe UI', Arial, sans-serif;
  font-weight: 600;
}

.product-card-body .product-spec {
  font-size: 0.82rem;
  color: #999;
  margin-bottom: 0.6rem;
}

.product-card-body p {
  font-size: 0.88rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
}

.pagination a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid #ddd;
  font-size: 0.88rem;
  color: #555;
  transition: all 0.3s ease;
}

.pagination a:hover,
.pagination a.active {
  background-color: #1a1a1a;
  border-color: #1a1a1a;
  color: #fff;
}

/* ============================================
   SHOW PAGE - Product Detail
   ============================================ */
.product-detail {
  margin-top: 80px;
  padding: 3rem 0;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.product-gallery {
  position: relative;
}

.product-gallery-main {
  width: 100%;
  height: 500px;
  overflow: hidden;
  border: 1px solid #eee;
}

.product-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-gallery-thumbs {
  display: flex;
  gap: 0.8rem;
  margin-top: 1rem;
}

.gallery-thumb {
  width: 90px;
  height: 70px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color 0.3s ease;
}

.gallery-thumb:hover,
.gallery-thumb.active {
  border-color: #1a1a1a;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info h1 {
  font-size: 2.4rem;
  margin-bottom: 0.5rem;
}

.product-info .product-subtitle {
  font-size: 1rem;
  color: #888;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-info .product-materials {
  font-size: 0.85rem;
  color: #999;
  margin-bottom: 1.5rem;
  font-style: italic;
  padding: 1rem 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.product-description {
  margin-bottom: 2rem;
}

.product-description h3 {
  font-size: 1.1rem;
  font-family: 'Segoe UI', Arial, sans-serif;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.product-description p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.8;
}

.product-features-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.product-features-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: #555;
}

.product-features-list li::before {
  content: '✓';
  color: #1a1a1a;
  font-weight: 700;
}

.product-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #eee;
}

/* Specifications Table */
.specs-section {
  margin-top: 4rem;
}

.specs-section h2 {
font-size: 1.8rem;
  margin-bottom: 1rem;
  margin-top: 1rem;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
}

.specs-table tr {
  border-bottom: 1px solid #eee;
}

.specs-table td {
  padding: 1rem 1.5rem;
  font-size: 0.9rem;
  color: #555;
}

.specs-table td:first-child {
  font-weight: 600;
  color: #333;
  width: 220px;
  background: #fafafa;
}

/* Related Products */
.related-section {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid #eee;
}

.related-section h2 {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  text-align: center;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .collections-grid,
  .case-studies-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

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

  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    gap: 1rem;
  }

  .main-nav.open {
    display: flex;
  }

  .hero {
    height: 70vh;
    min-height: 450px;
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }

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

  .collections-grid,
  .case-studies-grid,
  .latest-grid,
  .features-grid,
  .resources-grid,
  .product-list-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.8rem;
    text-align: center;
  }

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

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

  .product-gallery-main {
    height: 320px;
  }

  .product-features-list {
    grid-template-columns: 1fr;
  }

  .specs-table td {
    display: block;
    width: 100% !important;
  }

  .specs-table td:first-child {
    background: none;
    padding-bottom: 0;
  }
}

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

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    text-align: center;
  }
}

a {
  text-decoration: none;  /* 去除所有状态的下划线 */
}

/* 或者分别控制不同状态 */
a:link,
a:visited {
  text-decoration: none;  /* 未访问和已访问链接无下划线 */
}

a:hover,
a:active {
  text-decoration: underline;  /* 悬停时显示下划线，提升交互体验 */
}
li{list-style:none;}