/* AETIA BIO-TECHNOLOGY 
  Official Style Sheet - 2026 
  Image Sizing & Constraints Update
*/

:root {
    --primary: #2563eb;
    --slate-900: #0f172a;
    --slate-600: #475569;
    --slate-400: #94a3b8;
    --bg-pink-main: #fff1f2;   
    --bg-pink-hero: #fce7f3;   
    --bg-tech: #f4f4f5;        
    --accent-rose: #e11d48;
    --accent-purple: #9333ea;
    --white: #ffffff;
}

/* --- 防複製設定 --- */
body { 
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { 
    font-family: 'Urbanist', 'Noto Sans TC', sans-serif; 
    background-color: var(--bg-pink-main); 
    color: var(--slate-900); 
    line-height: 1.6;
    overflow-x: hidden;
}

.container { max-width: 1400px; margin: 0 auto; padding: 0 40px; }
.section-padding { padding: 140px 0; }
.magazine-title { font-size: 12vw; font-weight: 900; letter-spacing: -0.05em; line-height: 0.8; text-transform: uppercase; }
.sub-label { font-size: 12px; font-weight: 700; letter-spacing: 0.4em; text-transform: uppercase; color: var(--slate-400); display: block; margin-bottom: 20px; }

/* --- 導航 --- */
header { 
    position: fixed; 
    width: 100%; 
    top: 0; 
    z-index: 1000; 
    transition: all 0.4s ease;
    padding: 30px 0;
    background: transparent;
}
header.scrolled {
    background: rgba(255, 241, 242, 0.98);
    backdrop-filter: blur(15px);
    padding: 15px 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}
.nav-wrapper { display: flex; justify-content: space-between; align-items: center; }
.logo { font-weight: 900; font-size: 28px; text-transform: uppercase; letter-spacing: 0.15em; text-decoration: none; color: inherit; display: flex; align-items: center; }
.logo span { color: var(--accent-rose); margin-left: 2px; }
.nav-right { display: flex; align-items: center; gap: 50px; }
.nav-links { display: flex; gap: 40px; list-style: none; }
.nav-links a { text-decoration: none; color: var(--slate-900); font-size: 16px; font-weight: 500; transition: color 0.3s; }
.nav-links a:hover { color: var(--accent-rose); }
.nav-cta { background: var(--slate-900); color: var(--white); padding: 12px 28px; border-radius: 4px; text-decoration: none; font-size: 14px; font-weight: 700; transition: 0.3s; text-transform: uppercase; }
.nav-cta:hover { background: var(--accent-rose); transform: translateY(-2px); }

/* --- Hero Section & Video --- */
.hero { 
    height: 100vh; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    text-align: center; 
    position: relative;
    background-color: var(--bg-pink-hero); 
    overflow: hidden; 
}
.hero-video-container { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; }
.hero-video-container video { width: 100%; height: 100%; object-fit: cover; opacity: 0.45; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to bottom, rgba(252, 231, 243, 0.4), rgba(252, 231, 243, 0.7)); z-index: 1; }
.hero .container { position: relative; z-index: 2; }
.hero h1 { margin-bottom: 40px; }
.hero p { max-width: 650px; font-weight: 300; font-size: 19px; color: var(--slate-600); line-height: 1.8; }

.vertical-text { position: absolute; top: 50%; transform: translateY(-50%); font-size: 10px; font-weight: 700; letter-spacing: 0.6em; text-transform: uppercase; color: rgba(225, 29, 72, 0.1); z-index: 2; }
.v-left { left: 50px; transform: rotate(-90deg) translateY(-50%); transform-origin: left; }
.v-right { right: 50px; transform: rotate(90deg) translateY(-50%); transform-origin: right; }

/* --- Technology Section (Image Sizing) --- */
.tech-section { background-color: var(--bg-tech); position: relative; }
.tech-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: start; }
.tech-content { position: sticky; top: 180px; }

.tech-images { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.image-card { 
    aspect-ratio: 3/4; 
    background: var(--white); 
    border-radius: 4px; 
    overflow: hidden; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.03); 
    border: 1px solid rgba(0,0,0,0.02);
    max-width: 400px; /* 限制技術圖片最大寬度 */
    margin: 0 auto;
}
.image-card img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* 確保專利示意圖完整顯示 */
    padding: 20px; /* 內縮防止貼邊 */
}
.mt-magazine { margin-top: 100px; }

/* --- Products Section (Image Sizing) --- */
.products-section { background-color: var(--bg-pink-main); }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }

.product-card { 
    background: var(--white); 
    padding: 25px; 
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1); 
    border-radius: 4px; 
    border: 1px solid rgba(0,0,0,0.01); 
    display: flex;
    flex-direction: column;
}
.product-card:hover { transform: translateY(-15px); box-shadow: 0 40px 80px rgba(225, 29, 72, 0.08); }

.product-img { 
    aspect-ratio: 4/5; 
    background: var(--bg-tech); 
    margin-bottom: 30px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    overflow: hidden; 
    border-radius: 2px;
    max-height: 350px; /* 限制產品圖高度 */
}
.product-img img { 
    width: 100%; 
    height: 100%; 
    object-fit: contain; /* 改為 contain 以確保產品包裝與文字完整顯示 */
    transition: transform 0.5s ease;
    padding: 10px;
}
.product-card:hover .product-img img { transform: scale(1.05); }

.product-meta { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; }
.product-price { font-weight: 700; font-size: 21px; }
.product-price span { font-weight: 300; font-size: 12px; color: var(--slate-400); margin-right: 4px; }
.tag { font-size: 10px; font-weight: 900; letter-spacing: 0.2em; text-transform: uppercase; }
.btn-buy { width: 100%; padding: 20px; border: 1px solid var(--slate-900); background: transparent; cursor: pointer; text-transform: uppercase; font-size: 11px; font-weight: 900; letter-spacing: 0.25em; transition: 0.4s; margin-top: auto; border-radius: 2px; }
.btn-buy:hover { background: var(--slate-900); color: var(--white); }

/* --- Science Section --- */
.dark-section { background-color: var(--slate-900); color: var(--white); position: relative; overflow: hidden; }
.science-content { display: grid; grid-template-columns: 1fr 1fr; gap: 120px; align-items: center; }
.big-number { position: absolute; font-size: 30vw; font-weight: 900; color: rgba(255,255,255,0.02); top: 0; left: -100px; line-height: 1; z-index: 0; pointer-events: none; }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 50px; margin-top: 50px; }
.stat-item h4 { font-size: 12px; font-weight: 700; color: var(--slate-400); text-transform: uppercase; margin-bottom: 15px; letter-spacing: 0.2em; }
.stat-item p { font-size: 32px; font-weight: 700; color: #60a5fa; }

.ingredient-card { background: rgba(255,255,255,0.02); padding: 60px; border: 1px solid rgba(255,255,255,0.06); backdrop-filter: blur(20px); }
.ing-list { list-style: none; }
.ing-list li { margin-bottom: 35px; display: flex; justify-content: space-between; align-items: flex-start; transition: 0.4s; }
.ing-list li:hover { transform: translateX(12px); color: #60a5fa; }

/* --- CTA Section --- */
.cta-section { background-color: var(--bg-pink-hero); color: var(--slate-900); text-align: center; }
.cta-section h2 { font-size: 8vw; font-weight: 900; text-transform: uppercase; margin-bottom: 50px; line-height: 0.85; }
.btn-primary { background: var(--slate-900); color: var(--white); padding: 24px 70px; border: none; border-radius: 50px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.25em; font-size: 11px; cursor: pointer; text-decoration: none; transition: 0.4s; }
.btn-primary:hover { background: var(--accent-rose); transform: scale(1.05); }

/* --- 認證區塊 (New) --- */
.cert-section { background: white; padding: 100px 0; border-top: 1px solid #f0f0f0; }
.cert-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.cert-item i { font-size: 32px; color: var(--accent-rose); margin-bottom: 15px; }
.cert-item h5 { font-size: 14px; font-weight: 900; text-transform: uppercase; margin-bottom: 5px; }
.cert-item p { font-size: 12px; color: var(--slate-400); }


/* --- Footer --- */
footer { padding: 100px 0; background: var(--bg-pink-main); border-top: 1px solid rgba(0,0,0,0.02); text-align: center; }
.copyright { font-size: 11px; font-weight: 700; letter-spacing: 0.25em; color: var(--slate-400); }

/* --- Responsive --- */
@media (max-width: 1100px) { .product-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 968px) {
    header { padding: 20px 0; }
    .nav-right { display: none; }
    .tech-grid, .science-content { grid-template-columns: 1fr; }
    .magazine-title { font-size: 18vw; }
    .tech-images { order: 2; margin-top: 60px; }
    .product-grid { grid-template-columns: 1fr; }
    .product-img { max-height: 300px; }
}