@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #9c8b7a;
    --primary-light: #d4c4b4;
    --primary-dark: #7a6a5a;
    --accent: #b8a898;
    --dark: #2a2a2a;
    --gray-dark: #5a5a5a;
    --gray: #8a8a8a;
    --gray-light: #b8b8b8;
    --bg-dark: #1a1a1a;
    --bg-cream: #faf9f7;
    --bg-warm: #f5f3f0;
    --bg-light: #ffffff;
    --border: #e8e6e3;
    --shadow: rgba(0, 0, 0, 0.03);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--dark);
    line-height: 1.7;
    background-color: var(--bg-cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.nav-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(30px);
    border-bottom: 1px solid var(--border);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link {
    position: relative;
    color: var(--gray-dark);
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    padding: 0.75rem 0;
    transition: color 0.4s ease;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background: var(--primary);
    transition: width 0.4s ease, left 0.4s ease;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--primary);
}

.nav-dropdown-wrapper {
    position: relative;
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 900px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    margin-top: 1rem;
    overflow: hidden;
}

.mega-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.mega-menu::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid white;
}

.mega-menu-inner {
    display: grid;
    grid-template-columns: 220px 220px 1fr;
    min-height: 400px;
}

.menu-column {
    padding: 1.5rem;
    border-right: 1px solid var(--border);
}

.menu-column:last-child {
    border-right: none;
}

.column-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-item {
    margin-bottom: 0.25rem;
}

.category-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    color: var(--dark);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.category-link:hover,
.category-item.active .category-link {
    background: var(--bg-warm);
    color: var(--primary);
}

.category-link .fa-chevron-right {
    opacity: 0;
    transform: translateX(-5px);
    transition: all 0.3s ease;
}

.category-link:hover .fa-chevron-right,
.category-item.active .fa-chevron-right {
    opacity: 1;
    transform: translateX(0);
}

.category-link.view-all {
    background: var(--primary);
    color: white;
    margin-top: 0.5rem;
}

.category-link.view-all:hover {
    background: var(--primary-dark);
}

.subcategory-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.subcategory-item {
    margin-bottom: 0.25rem;
}

.subcategory-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.625rem 1rem;
    color: var(--gray-dark);
    font-size: 0.85rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.subcategory-link:hover,
.subcategory-link.active {
    background: var(--bg-warm);
    color: var(--primary);
}

.subcategory-link .fa-chevron-right {
    opacity: 0.5;
    transition: all 0.3s ease;
}

.subcategory-link:hover .fa-chevron-right {
    opacity: 1;
    transform: translateX(3px);
}

.subcategory-link.view-all {
    background: var(--primary-light);
    color: white;
    font-weight: 500;
}

.subcategory-link.view-all:hover {
    background: var(--primary);
}

.product-showcase {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.5rem;
    background: var(--bg-cream);
}

.showcase-image-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    aspect-ratio: 4/3;
}

.showcase-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.showcase-image-wrapper:hover img {
    transform: scale(1.05);
}

.showcase-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
}

.showcase-category {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary-light);
    margin-bottom: 0.25rem;
}

.showcase-subcategory {
    display: block;
    font-size: 1.1rem;
    font-weight: 500;
}

.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.7)), url('/images/banner1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 70vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 30% 70%, rgba(184, 166, 122, 0.08) 0%, transparent 60%),
        radial-gradient(circle at 70% 30%, rgba(201, 184, 150, 0.06) 0%, transparent 50%);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--primary);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(184, 166, 122, 0.2);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    cursor: pointer;
    text-decoration: none;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.4);
}

.feature-card {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 3rem 2.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: block;
    text-decoration: none;
    color: inherit;
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-light);
    background: #f8faff;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

.feature-card:hover h3 {
    color: var(--primary);
}

.feature-icon {
    width: 56px;
    height: 56px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.product-showcase {
    background: var(--bg-warm);
}

.product-category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 200px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

.product-category-card:hover {
    transform: translateY(-5px);
}

.product-category-image {
    width: 200px;
    height: 200px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.product-category-image img {
    max-width: 160px;
    max-height: 160px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-category-card:hover .product-category-image img {
    transform: scale(1.05);
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.product-item {
    background: var(--bg-light);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.product-image {
    height: 240px;
    background: var(--bg-warm);
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-item:hover .product-image img {
    transform: scale(1.03);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 300;
    color: var(--primary);
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.footer {
    background: var(--bg-dark);
    color: var(--gray-light);
}

.footer-link {
    color: var(--gray-light);
    transition: color 0.4s ease;
    text-decoration: none;
}

.footer-link:hover {
    color: var(--primary-light);
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.image-placeholder {
    background: linear-gradient(135deg, var(--bg-warm) 0%, var(--border) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
}

.image-placeholder i {
    font-size: 3rem;
    opacity: 0.4;
}

@media (max-width: 1024px) {
    .mega-menu {
        width: 100%;
        left: 0;
        transform: translateY(10px);
        border-radius: 0;
        margin-top: 0;
    }

    .mega-menu.active {
        transform: translateY(0);
    }

    .mega-menu::before {
        display: none;
    }

    .mega-menu-inner {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .menu-column {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .product-showcase {
        display: none;
    }
}

@media (max-width: 768px) {
    .nav-container {
        position: relative;
    }

    .mega-menu {
        display: none;
    }
}

/* Ready to Get Started 栏目背景样式 */
.cta-section {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.7)), url('/images/getready.jpg') !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  min-height: 500px !important;
  height: auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 4rem 0 !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.7));
  z-index: 0;
}

.cta-section > * {
  position: relative;
  z-index: 1;
}

/* 产品图片放大效果 - 淘宝风格 */
.zoom-container {
  position: relative !important;
  cursor: crosshair !important;
  overflow: hidden !important;
}

.zoom-container .product-image {
  transition: none !important;
  transform: none !important;
}

.zoom-container:hover .product-image {
  transform: none !important;
}

.zoom-lens {
  position: absolute !important;
  width: 80px !important;
  height: 80px !important;
  border: 2px solid rgba(184, 166, 122, 0.9) !important;
  background: rgba(184, 166, 122, 0.2) !important;
  pointer-events: none !important;
  display: none !important;
  z-index: 100 !important;
}

.zoom-preview {
  position: absolute !important;
  top: 0 !important;
  left: calc(100% + 20px) !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 300px !important;
  min-height: 300px !important;
  max-width: 500px !important;
  max-height: 500px !important;
  background: #ffffff !important;
  border: 1px solid var(--border) !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  display: none !important;
  z-index: 1000 !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15) !important;
}

.zoom-preview img {
  position: absolute !important;
  width: 200% !important;
  height: auto !important;
  top: 0 !important;
  left: 0 !important;
}

@media (max-width: 1024px) {
  .zoom-preview {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .zoom-container {
    cursor: default !important;
  }
  .zoom-lens,
  .zoom-preview {
    display: none !important;
  }
}
