/* === 基础样式与变量定义 === */
:root {
    --color-dark: #0f0f0f;
    --color-primary: #722F37;
    --color-accent: #C19A6B;
    --color-text-light: #f5f5f5;
    --color-text-gray: #cccccc;
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Lato', sans-serif;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--color-dark);
    color: var(--color-text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* === 工具类 === */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

/* === 响应式设计 === */
@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }
    
    .hero h1 {
        font-size: 2.5rem !important;
    }
    
    .hero p {
        font-size: 1rem !important;
        padding: 0 20px;
    }
    
    .products-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    .cert-badges {
        gap: 1rem !important;
    }
    
    .cert-badge {
        width: 100px !important;
        height: 100px !important;
    }
    
    .cert-badge i {
        font-size: 1.5rem !important;
    }
    
    .footer-content {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
}

@media (max-width: 480px) {
    .nav-links {
        gap: 1rem !important;
    }
    
    .nav-links a {
        font-size: 0.8rem !important;
    }
    
    .hero h1 {
        font-size: 2rem !important;
    }
    
    .cert-badge {
        width: 80px !important;
        height: 80px !important;
    }
    
    .cert-badge span {
        font-size: 0.6rem !important;
    }
}

/* === 导航栏 === */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo图片样式 - 保持3:1比例 */
.logo-image {
    height: 60px;           /* 高度固定 */
    width: auto;            /* 宽度自动保持比例 */
    max-width: 180px;       /* 最大宽度，保持3:1比例 */
    transition: all 0.3s ease;
}

.logo-image:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

/* 平板设备调整 */
@media (max-width: 1024px) {
    .logo-image {
        height: 50px;
        max-width: 150px;
    }
}

/* 手机设备调整 */
@media (max-width: 768px) {
    .logo-image {
        height: 40px;
        max-width: 120px;
    }
}

/* 小手机设备调整 */
@media (max-width: 480px) {
    .logo-image {
        height: 35px;
        max-width: 105px;
    }
}


.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    font-weight: 300;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links:hover a {
    opacity: 0.6;
    transform: scale(0.95);
}

.nav-links a:hover {
    opacity: 1;
    transform: scale(1.05);
    color: var(--color-accent);
}

/* === 首屏区域 === */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

#hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 15, 15, 0.3);
    backdrop-filter: blur(8px);
    z-index: 2;
}

.hero-content {
    z-index: 3;
    position: relative;
}

.hero h1 {
    font-family: var(--font-serif);
    font-size: 4rem;
    margin-bottom: 1rem;
    font-weight: 700;
    opacity: 0;
    animation: fadeInUp 1s ease 0.5s forwards;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    color: var(--color-text-gray);
    opacity: 0;
    animation: fadeInUp 1s ease 0.7s forwards;
}

.cta-button {
    display: inline-block;
    padding: 15px 35px;
    background-color: var(--color-primary);
    color: white;
    border: none;
    border-radius: 30px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeInUp 1s ease 0.9s forwards;
    box-shadow: 0 5px 15px rgba(114, 47, 55, 0.4);
}

.cta-button:hover {
    background-color: var(--color-accent);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(193, 154, 107, 0.4);
}

/* === 产品区域 === */
.featured-products .section-title {
    text-align: center;
    font-family: var(--font-serif);
    font-size: 2.5rem;
    margin-bottom: 3rem;
    opacity: 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(114, 47, 55, 0.3);
}

.product-image {
    height: 300px;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

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

.product-info {
    padding: 1.5rem;
    position: relative;
}

.product-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-serif);
}

.product-info p {
    color: var(--color-text-gray);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.product-link {
    color: var(--color-accent);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.product-link:hover {
    gap: 1rem;
}

/* === 品牌故事区域 === */
.brand-story {
    background: linear-gradient(rgba(15,15,15,0.9), rgba(15,15,15,0.9)), url('../assets/images/malaysia-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.story-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    opacity: 0;
}

.story-content h2 {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--color-accent);
}

.story-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.highlight {
    color: var(--color-accent);
    font-weight: 700;
}

/* === 认证区域 === */
.certifications {
    text-align: center;
}

.certifications .section-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    opacity: 0;
}

.certifications p {
    color: var(--color-text-gray);
    margin-bottom: 3rem;
    opacity: 0;
}

.cert-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.cert-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    color: white;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    opacity: 0;
    transition: transform 0.3s ease;
}

.cert-badge:hover {
    transform: scale(1.1);
}

.cert-badge i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.cert-badge span {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

/* === 页脚 === */
.footer {
    background-color: #111;
    padding: 60px 0 30px;
    border-top: 1px solid #333;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-column h3 {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--color-accent);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--color-text-gray);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--color-accent);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #333;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--color-primary);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
    color: var(--color-text-gray);
    font-size: 0.9rem;
}

/* === 动画 === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 1s ease forwards;
}