/* ===== 字体定义 ===== */
@font-face {
    font-family: 'DIN Condensed';
    src: url('../fonts/DINCond-BlackAlternate.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
}

@font-face {
    font-family: 'Myriad Pro';
    src: url('../fonts/MyriadPro-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

/* ===== 全局重置与基础样式 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Myriad Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f3ed;
}

/* 标题和强调文字使用 DIN Condensed */
h1, h2, h3, h4, h5, h6,
.hero-title,
.slogan-title,
.section-title,
.page-title,
.package-logo,
.package-brand,
.product-name,
.mission-text,
button,
.submit-button,
.footer-logo {
    font-family: 'DIN Condensed', 'Arial Narrow', sans-serif;
    letter-spacing: 0.5px;
}

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

/* ===== 头部样式 ===== */
header {
    background-color: #f5f3ed;
    padding: 30px 0 20px;
}

.header-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.logo {
    text-align: center;
    margin-bottom: 25px;
    display: flex;
}

.logo img {
    height: 50px;
    width: auto;
}

/* 汉堡菜单按钮 */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: #333;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ===== 导航菜单 ===== */
.nav-wrapper {
    padding-top: 15px;
}

.nav-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    gap: 50px;
}

.nav-item {
    position: relative;
}

.nav-item a {
    text-decoration: none;
    color: #333;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.nav-item a:hover {
    color: #666;
}

/* 下拉菜单 */
.has-dropdown {
    position: relative;
}

.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: -5px;
    background-color: #fff;
    min-width: 180px;
    padding: 10px 0;
    list-style: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.has-dropdown:hover .dropdown {
    display: block;
}

.dropdown li {
    margin: 0;
    padding: 4px 0;
    border-bottom: 1px solid #e8e6df;
    transition: background-color 0.3s ease;
}

.dropdown li:hover {
    background-color: #bca875;
    border-bottom-color: #bca875;
}

.dropdown li:last-child {
    border-bottom: none;
}

.dropdown li a {
    display: block;
    font-size: 14px;
    color: #555;
    padding: 10px 20px;
    transition: color 0.3s ease;
    line-height: 1;
}

.dropdown li:hover a {
    color: #fff;
}

/* ===== 主视觉区 ===== */
.hero-section {
    padding: 0;
    text-align: center;
    background-color: #fff;
}

.hero-section .container {
    display: flex;
}

.hero-section .container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

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

.hero-text {
    flex: 1;
    max-width: 500px;
}

.hero-title {
    font-size: 38px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 25px;
    color: #1a1a1a;
    letter-spacing: 1px;
}

.hero-description {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
}

.hero-images {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 30px;
    position: relative;
}

/* 产品占位符 */
.product-placeholder {
    background-color: #e8e6df;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.eyelash-product {
    width: 280px;
    height: 250px;
}

.mascara-product {
    width: 180px;
    height: 200px;
    position: absolute;
    right: 0;
    top: -30px;
}

.product-placeholder span {
    color: #999;
    font-size: 14px;
    text-align: center;
}

/* ===== 标语区 ===== */
.slogan-section {
    padding: 80px 0;
    text-align: left;
    background-color: #fff;
    margin-top: 20px;
}

.slogan-title {
    font-size: 32px;
    font-weight: 900;
    line-height: 1.4;
    color: #1a1a1a;
    letter-spacing: 1px;
}

/* ===== 公司介绍区 ===== */
.company-intro {
    padding: 40px 0 80px;
    background-color: #fff;
}

.intro-block {
    display: flex;
    align-items: center;
    gap: 100px;
    margin-bottom: 60px;
}

.intro-block.reverse {
    flex-direction: row-reverse;
}

.reverse .intro-text {
    text-align: right;
}

.intro-image {
    flex: 0 0 500px;
}

.image-placeholder {
    width: 100%;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.intro-text {
    flex: 1;
}

.intro-text p {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
}

.intro-block.reverse .intro-text {
    text-align: right;
}

/* ===== 页脚 ===== */
footer {
    padding: 100px 0;
    background-color: #f5f3ed;
}

.footer-img {
    width: 106%;
    position: relative;
    left: -3%;
}

.footer-content {
    text-align: left;
}

.footer-logo {
    margin-bottom: 0;
}

.footer-logo img {
    height: 60px;
    width: auto;
}

.social-links {
    display: flex;
    justify-content: left;
    gap: 31%;
    margin-top: 60px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px);
    opacity: 0.7;
}

.social-icon img {
    width: 36px;
    height: 36px;
    display: block;
}

/* ===== 响应式设计 ===== */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }

    .nav-menu {
        gap: 30px;
    }
}

@media (max-width: 768px) {
    /* 显示汉堡菜单按钮 */
    .mobile-menu-toggle {
        display: flex;
    }

    .logo {
        margin-bottom: 0;
    }

    /* 移动端导航样式 */
    .nav-wrapper {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: #f5f3ed;
        padding: 80px 30px 30px;
        transition: right 0.3s ease;
        z-index: 1000;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
    }

    .nav-wrapper.active {
        right: 0;
    }

    .nav-menu {
        flex-direction: column;
        gap: 0;
        align-items: stretch;
    }

    .nav-item {
        border-bottom: 1px solid #e8e6df;
    }

    .nav-item:last-child {
        border-bottom: none;
    }

    .nav-item a {
        display: block;
        padding: 15px 0;
        font-size: 14px;
    }

    .dropdown {
        position: static;
        box-shadow: none;
        padding: 0 0 10px 20px;
        display: none;
    }

    .has-dropdown.active .dropdown {
        display: block;
    }

    .dropdown li {
        margin: 8px 0;
        border-bottom: none;
    }

    /* 防止背景滚动 */
    body.menu-open {
        overflow: hidden;
    }

    /* 添加遮罩层 */
    body.menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        margin-bottom: 40px;
    }

    .hero-title {
        font-size: 28px;
    }

    .slogan-title {
        font-size: 24px;
    }

    .hero-images {
        flex-direction: column;
        gap: 20px;
        justify-content: center;
    }

    .mascara-product {
        position: static;
    }

    .intro-block,
    .intro-block.reverse {
        flex-direction: column;
        gap: 30px;
    }

    .intro-block.reverse .intro-text {
        text-align: center;
    }

    .intro-image {
        flex: 0 0 auto;
    }

    .intro-text {
        text-align: center;
    }

    .footer-logo img {
        height: 45px;
    }

    .intro-text p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .logo img {
        height: 40px;
    }

    .hero-title {
        font-size: 24px;
    }

    .slogan-title {
        font-size: 20px;
    }

    .nav-item a {
        font-size: 12px;
    }

    .eyelash-product {
        width: 220px;
        height: 200px;
    }

    .mascara-product {
        width: 150px;
        height: 160px;
    }
}
