/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #e8a0b5;
    --primary-dark: #d4809a;
    --secondary: #f5e6ea;
    --text: #333;
    --text-light: #666;
    --white: #fff;
    --bg-light: #faf8f9;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--white);
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* ===== Layout ===== */
.container {
    max-width: 750px;
    margin: 0 auto;
    padding: 0 15px;
}

.section {
    padding: 50px 0;
}

.section-title {
    font-size: 22px;
    text-align: center;
    margin-bottom: 30px;
    color: var(--text);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--primary);
    margin: 12px auto 0;
    border-radius: 2px;
}

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 55px;
}

.logo {
    font-size: 18px;
    font-weight: bold;
    color: var(--primary-dark);
}

.menu-btn {
    width: 28px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
}

.menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text);
    position: absolute;
    left: 0;
    transition: all 0.3s;
}

.menu-btn span:nth-child(1) { top: 0; }
.menu-btn span:nth-child(2) { top: 9px; }
.menu-btn span:nth-child(3) { bottom: 0; }

.menu-btn.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 9px;
}
.menu-btn.active span:nth-child(2) { opacity: 0; }
.menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg);
    bottom: 9px;
}

.nav {
    display: none;
    background: var(--white);
    border-top: 1px solid #eee;
}

.nav.active {
    display: block;
}

.nav ul {
    display: flex;
    flex-direction: column;
}

.nav li a {
    display: block;
    padding: 12px 15px;
    text-align: center;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
}

.nav li a:active {
    background: var(--secondary);
}

/* ===== Banner ===== */
.banner {
    height: 280px;
    background: linear-gradient(135deg, #f5e6ea 0%, #fce4ec 50%, #fff0f5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 55px;
    position: relative;
    overflow: hidden;
}

.banner::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(232,160,181,0.15) 0%, transparent 60%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.banner-content {
    position: relative;
    z-index: 1;
    padding: 20px;
}

.banner h1 {
    font-size: 24px;
    color: var(--primary-dark);
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.banner p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    padding: 10px 30px;
    background: var(--primary);
    color: var(--white);
    border-radius: 25px;
    font-size: 14px;
    transition: all 0.3s;
}

.btn:active {
    background: var(--primary-dark);
    transform: scale(0.98);
}

/* ===== Products ===== */
.products {
    background: var(--bg-light);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.category-item {
    background: var(--white);
    border-radius: 12px;
    padding: 20px 15px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.3s;
}

.category-item:active {
    transform: scale(0.98);
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.category-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.category-item h3 {
    font-size: 15px;
    margin-bottom: 6px;
    color: var(--text);
}

.category-item p {
    font-size: 11px;
    color: var(--text-light);
    line-height: 1.4;
}

/* ===== About ===== */
.about {
    background: var(--white);
}

.about-text {
    margin-bottom: 30px;
}

.about-text p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 15px;
    text-align: justify;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    text-align: center;
}

.feature-item {
    padding: 15px 5px;
    background: var(--secondary);
    border-radius: 10px;
}

.feature-num {
    display: block;
    font-size: 22px;
    font-weight: bold;
    color: var(--primary-dark);
}

.feature-label {
    display: block;
    font-size: 11px;
    color: var(--text-light);
    margin-top: 4px;
}

/* ===== Contact ===== */
.contact {
    background: var(--bg-light);
}

.contact-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: var(--white);
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.contact-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 14px;
    color: var(--text);
    margin-bottom: 4px;
}

.contact-item p {
    font-size: 13px;
    color: var(--text-light);
}

/* ===== Footer ===== */
.footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 25px 0;
    text-align: center;
}

.footer p {
    font-size: 12px;
    opacity: 0.9;
    margin-bottom: 5px;
}

/* ===== Responsive ===== */
@media (min-width: 480px) {
    .banner {
        height: 350px;
    }
    
    .banner h1 {
        font-size: 28px;
    }
    
    .category-grid {
        gap: 15px;
    }
    
    .category-item {
        padding: 25px 20px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 960px;
    }
    
    .banner {
        height: 420px;
    }
    
    .banner h1 {
        font-size: 32px;
    }
    
    .banner p {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 26px;
    }
    
    .menu-btn {
        display: none;
    }
    
    .nav {
        display: block;
        border-top: none;
    }
    
    .nav ul {
        flex-direction: row;
        justify-content: center;
    }
    
    .nav li a {
        padding: 0 20px;
        border-bottom: none;
        line-height: 55px;
    }
    
    .category-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .about-content {
        display: flex;
        gap: 40px;
    }
    
    .about-text {
        flex: 1;
        margin-bottom: 0;
    }
    
    .about-features {
        flex-shrink: 0;
        width: 200px;
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .contact-content {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .contact-item {
        width: calc(50% - 6px);
    }
}
