:root {
    --matcha-dark: #4ba0d1;
    --matcha-bg: #d9eefa;
    --glass-white: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.4);
    --apple-font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
    --accent-color: #4da3e9;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

.top-nav {
  position: fixed;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 95%;
  max-width: 1400px;
  height: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  z-index: 1000;
  background: var(--glass-white);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.nav-links {
  display: flex;
  gap: 10px;
  align-items: center;
}


body.home {
  padding-top: 0;
}

body {
    font-family: var(--apple-font);
    background-color: var(--matcha-bg);
    color: #333;
    overflow-x: hidden;
    padding-top: 80px; /* Space for fixed nav */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Main content wrapper (keeps footer at bottom on short pages) */
.page-main,
.page-wrap {
    flex: 1;
}

/* --- NAVIGATION --- */
nav {
    position: fixed;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1400px;
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    z-index: 1000;
    background: var(--glass-white);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.nav-left { flex: 1; display: flex; justify-content: flex-start; }
.nav-center { flex: 1; text-align: center; }
.nav-right { flex: 1; display: flex; justify-content: flex-end; gap: 10px; align-items: center; }

.brand-name {
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--matcha-dark);
    text-transform: uppercase;
    font-size: 1.1rem;
}

/* Glass Buttons */
.btn-glass {
    text-decoration: none;
    color: var(--matcha-dark);
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid var(--glass-border);
    transition: 0.3s;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.btn-glass:hover {
    background: rgba(255, 187, 0, 0.5);
    transform: translateY(-1px);
    color:rgba(255, 0, 21, 0.5);
}

.icon-only { padding: 8px 12px; font-size: 1.1rem; }

/* Language Switcher */
.lang-dropdown { position: relative; }
.lang-menu {
    position: absolute;
    top: 50px;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    display: none; /* Hidden by default */
    flex-direction: column;
    min-width: 100px;
    border: 1px solid var(--glass-border);
}
.lang-menu.active { display: flex; }

.lang-option {
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    border-radius: 8px;
    transition: 0.2s;
}
.lang-option:hover { background: #f0f0f0; }

/* --- HERO & VIDEO (Index) --- */
body.home .hero-carousel {
  width: 100%;
  height: 100vh;          /* 充满首屏 */
  margin-bottom: 0;       /* 不要把首屏往下挤 */
  border-radius: 0;
  overflow: hidden;
  position: relative;
}
.carousel-inner {
    display: flex;
    width: 300%;
    height: 100%;
}
.carousel-item {
    width: 33.333%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}
/* Carousel content */
.carousel-content {
    position: absolute;
    top: 50%;
    left: 5%;
    transform: translateY(-50%);
    max-width: 600px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    opacity: 1;
    transition: all 0.5s ease;
}
.carousel-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--matcha-dark);
    margin-bottom: 15px;
    line-height: 1.2;
}
.carousel-content p {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.6;
}
.carousel-content .btn-glass.primary {
    background: rgba(132, 194, 253, 0.3);
    border-color: rgba(41, 116, 151, 0.5);
    color: var(--matcha-dark);
    font-weight: 700;
    padding: 12px 24px;
    transition: all 0.3s ease;
}
.carousel-content .btn-glass.primary:hover {
    background: rgba(76, 150, 219, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(108, 157, 180, 0.3);
    color: rgba(255, 0, 0, 0.658);
}
/* Carousel indicators */
.carousel-indicators {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 20;
}
.carousel-indicators .indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}
.carousel-indicators .indicator.active {
    background: var(--accent-color);
    width: 36px;
    border-radius: 6px;
}
/* Overlay removed for clearer background */
.carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 1;
}

/* Carousel watermark */
.carousel-watermark {
    position: absolute;
    bottom: 30px;
    right: 30px;
    z-index: 20;
    font-size: 2rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    opacity: 0.7;
    pointer-events: none;
}
@keyframes slide {
    0%, 30% { transform: translateX(0); }
    33%, 63% { transform: translateX(-100%); }
    66%, 96% { transform: translateX(-200%); }
    100% { transform: translateX(-300%); }
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px 5%;
    max-width: 1400px;
    margin: 0 auto;
}
.video-card {
    background: var(--glass-white);
    padding: 15px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    text-align: center;
}
.video-card h3 { margin-bottom: 10px; color: var(--matcha-dark); }
video { width: 100%; border-radius: 12px; cursor: pointer; }

/* --- PRODUCT PAGE --- */
.product-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.product-top-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background: var(--glass-white);
    padding: 40px;
    border-radius: 30px;
    border: 1px solid var(--glass-border);
    margin-bottom: 50px;
}

.product-image-box {
    width: 100%;
    aspect-ratio: 1/1; /* Square */
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.1);
}



.product-info h1 { font-size: 2rem; color: var(--matcha-dark); margin-bottom: 10px; }
.price { display: flex; align-items: center; gap: 15px; margin-bottom: 25px; flex-wrap: wrap; }
.current-price { font-size: 2.2rem; font-weight: 700; color: #d35400; }
.original-price { font-size: 1.5rem; color: #999; text-decoration: line-through; }
.promo-discount { font-size: 1.1rem; font-weight: 700; color: #fff; background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%); padding: 6px 16px; border-radius: 20px; box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3); }

.specs-table {
    width: 100%;
    border-collapse: collapse;
}
.specs-table td {
    padding: 12px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    font-size: 0.95rem;
}
.specs-table td:first-child {
    font-weight: 700;
    width: 140px;
    color: var(--matcha-dark);
}

/* Amazon links styling */
.specs-table a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #f7ca00 0%, #f59e0b 100%);
    color: #111;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.specs-table a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #fcd34d 0%, #fbbf24 100%);
}

.specs-table a:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.long-image-flow {
    display: flex;
    flex-direction: column;
    width: 100%;
}
.long-image-flow img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: -1px; /* Prevent gap */
}

/* --- ABOUT PAGE --- */
.about-container {
    max-width: 900px;
    margin: 60px auto;
    text-align: center;
    padding: 40px;
    background: var(--glass-white);
    border-radius: 30px;
}
.about-container h1 { color: var(--matcha-dark); margin-bottom: 20px; }
.about-container p { margin-bottom: 15px; font-size: 1.1rem; line-height: 1.8; }

.about-contact {
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid rgba(0,0,0,0.08);
    text-align: left;
}
.about-contact h2 {
    color: var(--matcha-dark);
    font-size: 1.3rem;
    margin-bottom: 12px;
}
.about-contact .contact-row {
    margin: 10px 0;
    font-size: 1rem;
    line-height: 1.7;
}
.about-contact a {
    color: var(--matcha-dark);
    text-decoration: underline;
}
.about-contact address {
    font-style: normal;
    white-space: pre-line;
}

/* --- FOOTER --- */
footer {
    background: var(--matcha-dark);
    color: #fff;
    padding: 60px 5% 30px;
    margin-top: auto;
}
.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
}
.footer-col h4 { margin-bottom: 15px; font-size: 1.1rem; }
.footer-col a { display: block; color: #ccc; text-decoration: none; margin-bottom: 8px; font-size: 0.9rem; }
.footer-col a:hover { color: #fff; }
.copyright { text-align: center; margin-top: 50px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.8rem; color: #aaa; }

/* --- MOBILE RESPONSIVE --- */
.mobile-menu-btn { display: none; }
.mobile-drawer {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(242, 245, 235, 0.98);
    z-index: 999;
    padding: 80px 20px;
    transform: translateY(-100%);
    transition: 0.3s ease-in-out;
    display: flex; flex-direction: column; gap: 20px; text-align: center;
}
.mobile-drawer.open { transform: translateY(0); }

@media (max-width: 900px) {
    .nav-right .nav-links { display: none; }
    .mobile-menu-btn { display: block; font-size: 1.2rem; }
    .nav-center { display: none; } /* Hide brand name on mobile */
    .product-top-section { grid-template-columns: 1fr; }
    .hero-carousel { height: 50vh; }
}

.copy-link {
    text-decoration: none;
    color: #e72929ce; /* 链接颜色，可修改 */
    cursor: pointer;
    position: relative;
}

/* 可选：点击提示的样式 */
.copy-link::after {
    content: "Copied";
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: #55c7fc;
    color: #e2f4ff;
    padding: 2px 6px;
    font-size: 12px;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}
.copy-link.copied::after {
    opacity: 1;
}
.copy-link,
.copy-link:link,
.copy-link:visited,
.copy-link:hover,
.copy-link:active {
    text-decoration: none !important; /* 去下划线 */
    color: #a7dcffb6;
    cursor: pointer;
    position: relative;
}
