/* 全局样式 */
:root {
    /* 主色调 */
    --primary-color: #FF5287;
    --secondary-color: #FF94C2;
    --accent-color: #FFE135;
    
    /* 功能色 */
    --success-color: #91E600;
    --warning-color: #FFB040;
    --error-color: #FF5252;
    --info-color: #44A0FF;
    
    /* 中性色 */
    --text-dark: #2D3436;
    --text-medium: #636E72;
    --text-light: #B2BEC3;
    --bg-light: #FFF5F8;
    --bg-white: #FFFFFF;
    --border-color: #FFE5EC;
    
    /* 字体 */
    --font-title: 'Fredoka One', cursive;
    --font-body: 'Nunito', sans-serif;
    
    /* 间距 */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 32px;
    --spacing-xl: 48px;
    --spacing-xxl: 64px;
    
    /* 圆角 */
    --radius-sm: 12px;
    --radius-md: 24px;
    --radius-lg: 32px;
    --radius-xl: 48px;
    
    /* 阴影 */
    --shadow-light: 0 4px 12px rgba(255, 82, 135, 0.15);
    --shadow-medium: 0 8px 24px rgba(255, 82, 135, 0.2);
    --shadow-heavy: 0 16px 48px rgba(255, 82, 135, 0.25);
    
    /* 过渡 */
    --transition: all 0.3s ease;
    
    /* 卡通元素 */
    --cartoon-border: 3px solid var(--primary-color);
    --cartoon-border-dashed: 3px dashed var(--primary-color);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
}

/* 容器 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* 标题 */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-title);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

h1 {
    font-size: 48px;
    line-height: 56px;
}

h2 {
    font-size: 36px;
    line-height: 44px;
}

h3 {
    font-size: 28px;
    line-height: 36px;
}

h4 {
    font-size: 20px;
    line-height: 28px;
}

/* 段落 */
p {
    margin-bottom: var(--spacing-md);
    color: var(--text-medium);
}

/* 按钮 */
.btn {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-lg);
    border: 3px solid var(--primary-color);
    border-radius: var(--radius-xl);
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.btn::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color), var(--primary-color));
    border-radius: var(--radius-xl);
    z-index: -1;
    opacity: 0;
    transition: var(--transition);
}

.btn:hover::before {
    opacity: 1;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-medium);
}

.btn-primary:hover {
    background-color: var(--primary-color);
    transform: translateY(-4px) scale(1.05);
    box-shadow: var(--shadow-heavy);
}

.btn-secondary {
    background-color: white;
    color: var(--primary-color);
    border: 3px solid var(--primary-color);
    box-shadow: var(--shadow-medium);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-4px) scale(1.05);
    box-shadow: var(--shadow-heavy);
}

.btn-sm {
    padding: var(--spacing-xs) var(--spacing-md);
    font-size: 14px;
    border-radius: var(--radius-lg);
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 20px;
    left: 20px;
    right: 20px;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-medium);
    z-index: 1000;
    transition: var(--transition);
    border-radius: var(--radius-xl);
    border: 3px solid var(--primary-color);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-sm) var(--spacing-md);
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary-color);
    font-family: var(--font-title);
    font-size: 28px;
    text-shadow: 2px 2px 4px rgba(255, 82, 135, 0.3);
}

.logo i {
    margin-right: var(--spacing-xs);
    font-size: 32px;
    animation: bounce 2s infinite;
}

.nav-menu {
    display: flex;
    gap: var(--spacing-md);
}

.nav-item {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 700;
    transition: var(--transition);
    padding: var(--spacing-xs) var(--spacing-sm);
    position: relative;
    border-radius: var(--radius-lg);
    font-family: var(--font-title);
    font-size: 16px;
}

.nav-item:hover {
    color: var(--primary-color);
    background-color: var(--bg-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

.nav-item.active {
    color: white;
    background-color: var(--primary-color);
    box-shadow: var(--shadow-medium);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.action-btn {
    background: white;
    border: 2px solid var(--primary-color);
    font-size: 20px;
    color: var(--primary-color);
    cursor: pointer;
    padding: var(--spacing-xs);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    position: relative;
    box-shadow: var(--shadow-light);
}

.action-btn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px) scale(1.1);
    box-shadow: var(--shadow-medium);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--accent-color);
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 50%;
    min-width: 24px;
    text-align: center;
    border: 2px solid white;
    box-shadow: var(--shadow-light);
}

.menu-toggle {
    display: none;
    background: white;
    border: 3px solid var(--primary-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xs);
    font-size: 20px;
    color: var(--primary-color);
    cursor: pointer;
    box-shadow: var(--shadow-light);
}

.menu-toggle:hover {
    background-color: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

/* Hero区域 */
.hero {
    margin-top: 120px;
    padding: var(--spacing-xxl) 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    margin-left: 20px;
    margin-right: 20px;
    box-shadow: var(--shadow-heavy);
    border: 4px solid white;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color), var(--primary-color));
    border-radius: var(--radius-xl);
    z-index: -1;
    animation: gradientShift 5s ease infinite;
}

.hero .container {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
}

.hero-content {
    flex: 1;
    color: white;
}

.hero-content h1 {
    font-size: 64px;
    margin-bottom: var(--spacing-md);
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.2);
    animation: bounceIn 1s ease;
}

.hero-content p {
    font-size: 24px;
    margin-bottom: var(--spacing-lg);
    color: rgba(255, 255, 255, 0.9);
    font-family: var(--font-title);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-xl);
    animation: float 3s ease-in-out infinite;
    border: 4px solid white;
    box-shadow: var(--shadow-heavy);
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23FFF5F8' fill-opacity='1' d='M0,224L48,218.7C96,213,192,203,288,181.3C384,160,480,128,576,133.3C672,139,768,181,864,186.7C960,192,1056,160,1152,138.7C1248,117,1344,107,1392,101.3L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
    background-size: cover;
    background-repeat: no-repeat;
}

/* 产品展示区 */
.products-section {
    padding: var(--spacing-xxl) 0;
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    color: var(--text-dark);
    position: relative;
    font-size: 48px;
    text-shadow: 2px 2px 4px rgba(255, 82, 135, 0.2);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 6px;
    background-color: var(--primary-color);
    border-radius: 3px;
    box-shadow: 0 2px 4px rgba(255, 82, 135, 0.3);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.product-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
    border: 3px solid var(--primary-color);
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px) rotate(2deg);
    box-shadow: var(--shadow-heavy);
}

.product-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.15) rotate(3deg);
}

.product-tag {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    background-color: var(--accent-color);
    color: var(--text-dark);
    padding: 8px 16px;
    border-radius: var(--radius-lg);
    font-size: 14px;
    font-weight: 700;
    font-family: var(--font-title);
    box-shadow: var(--shadow-light);
    border: 2px solid white;
}

.product-name {
    padding: var(--spacing-md);
    font-size: 20px;
    margin-bottom: var(--spacing-xs);
    font-family: var(--font-title);
    text-align: center;
    color: var(--text-dark);
}

.product-price {
    padding: 0 var(--spacing-md) var(--spacing-md);
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
    text-align: center;
    font-family: var(--font-title);
}

.product-card .btn {
    margin: 0 var(--spacing-md) var(--spacing-md);
    width: calc(100% - 48px);
}

.text-center {
    text-align: center;
    margin-top: var(--spacing-lg);
}

/* DIY设计区 */
.diy-section {
    padding: var(--spacing-xxl) 0;
    background-color: var(--bg-white);
    border-radius: var(--radius-xl);
    margin: 0 20px;
    box-shadow: var(--shadow-medium);
    border: 3px solid var(--primary-color);
}

.diy-content {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
    flex-wrap: wrap;
}

.diy-text {
    flex: 1;
    min-width: 300px;
}

.diy-text h2 {
    font-size: 48px;
    text-shadow: 2px 2px 4px rgba(255, 82, 135, 0.2);
}

.diy-text p {
    font-size: 18px;
    font-family: var(--font-body);
    color: var(--text-medium);
}

.diy-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
    position: relative;
}

.diy-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-heavy);
    border: 4px solid white;
    animation: float 4s ease-in-out infinite;
}

.diy-image::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color), var(--primary-color));
    border-radius: var(--radius-xl);
    z-index: -1;
    animation: gradientShift 5s ease infinite;
}

/* 品牌故事区 */
.story-section {
    padding: var(--spacing-xxl) 0;
}

.story-content {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
    flex-wrap: wrap;
}

.story-image {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.story-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-heavy);
    border: 4px solid var(--primary-color);
    animation: float 4s ease-in-out infinite;
}

.story-image::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color), var(--primary-color));
    border-radius: var(--radius-xl);
    z-index: -1;
    animation: gradientShift 5s ease infinite;
}

.story-text {
    flex: 1;
    min-width: 300px;
}

.story-text h2 {
    font-size: 48px;
    text-shadow: 2px 2px 4px rgba(255, 82, 135, 0.2);
}

.story-text p {
    font-size: 18px;
    font-family: var(--font-body);
    color: var(--text-medium);
}

/* 客户评价区 */
.testimonials-section {
    padding: var(--spacing-xxl) 0;
    background-color: var(--bg-white);
    border-radius: var(--radius-xl);
    margin: 0 20px;
    box-shadow: var(--shadow-medium);
    border: 3px solid var(--primary-color);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.testimonial-card {
    background-color: var(--bg-light);
    border-radius: var(--radius-xl);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
    text-align: center;
    border: 3px solid var(--primary-color);
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-10px) rotate(2deg);
    box-shadow: var(--shadow-heavy);
}

.testimonial-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto var(--spacing-md);
    border: 4px solid var(--primary-color);
    box-shadow: var(--shadow-medium);
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-rating {
    color: var(--accent-color);
    margin-bottom: var(--spacing-md);
    font-size: 24px;
}

.testimonial-product {
    margin-top: var(--spacing-md);
}

.testimonial-product img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    border: 2px solid var(--primary-color);
    box-shadow: var(--shadow-light);
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color), var(--primary-color));
    border-radius: var(--radius-xl);
    z-index: -1;
    opacity: 0;
    transition: var(--transition);
}

.testimonial-card:hover::before {
    opacity: 1;
}

/* CTA区域 */
.cta-section {
    padding: var(--spacing-xxl) 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    text-align: center;
    color: white;
    border-radius: var(--radius-xl);
    margin: 0 20px;
    box-shadow: var(--shadow-heavy);
    border: 4px solid white;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color), var(--primary-color));
    border-radius: var(--radius-xl);
    z-index: -1;
    animation: gradientShift 5s ease infinite;
}

.cta-section h2 {
    margin-bottom: var(--spacing-lg);
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.2);
    font-size: 48px;
    animation: bounceIn 1s ease;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

/* 页脚 */
.footer {
    background-color: var(--text-dark);
    color: white;
    padding: var(--spacing-xl) 0 var(--spacing-lg);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    margin-top: var(--spacing-xxl);
    border-top: 4px solid var(--primary-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.footer-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary-color);
    font-family: var(--font-title);
    font-size: 28px;
    text-shadow: 2px 2px 4px rgba(255, 82, 135, 0.3);
}

.footer-logo i {
    margin-right: var(--spacing-xs);
    font-size: 32px;
    animation: bounce 2s infinite;
}

.social-links {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-sm);
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: white;
    color: var(--primary-color);
    transition: var(--transition);
    border: 3px solid var(--primary-color);
    box-shadow: var(--shadow-light);
}

.social-link:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-4px) scale(1.1);
    box-shadow: var(--shadow-medium);
}

.footer-links h4 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
    position: relative;
    padding-bottom: var(--spacing-xs);
    font-size: 20px;
    font-family: var(--font-title);
}

.footer-links h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--spacing-sm);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    font-size: 16px;
    font-weight: 600;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 10px;
    transform: translateX(5px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-md);
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 600;
}

/* 模态框 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(10px);
}

.modal.show {
    display: flex;
}

.modal-content {
    background-color: var(--bg-white);
    border-radius: var(--radius-xl);
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-heavy);
    animation: bounceIn 0.5s ease;
    border: 4px solid var(--primary-color);
    position: relative;
}

.modal-content::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color), var(--primary-color));
    border-radius: var(--radius-xl);
    z-index: -1;
    animation: gradientShift 5s ease infinite;
}

.search-modal {
    max-width: 600px;
}

.modal-header {
    padding: var(--spacing-md);
    border-bottom: 3px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--bg-light);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.modal-header h3 {
    margin: 0;
    font-size: 24px;
    color: var(--primary-color);
    text-shadow: 2px 2px 4px rgba(255, 82, 135, 0.2);
}

.close-btn {
    background: white;
    border: 3px solid var(--primary-color);
    font-size: 24px;
    color: var(--primary-color);
    cursor: pointer;
    transition: var(--transition);
    padding: var(--spacing-xs);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-light);
}

.close-btn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: scale(1.1) rotate(90deg);
    box-shadow: var(--shadow-medium);
}

.modal-body {
    padding: var(--spacing-lg);
}

.modal-footer {
    padding: var(--spacing-md);
    border-top: 3px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: var(--spacing-sm);
    background-color: var(--bg-light);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.empty-cart {
    text-align: center;
    color: var(--text-light);
    padding: var(--spacing-lg) 0;
}

.search-box {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.search-box input {
    flex: 1;
    padding: var(--spacing-sm);
    border: 3px solid var(--primary-color);
    border-radius: var(--radius-lg);
    font-family: var(--font-body);
    font-size: 16px;
    transition: var(--transition);
    box-shadow: var(--shadow-light);
}

.search-box input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 5px rgba(255, 82, 135, 0.2);
    transform: scale(1.02);
}

.search-suggestions h4 {
    margin-bottom: var(--spacing-sm);
    color: var(--primary-color);
    font-size: 18px;
}

.suggestions-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
}

.suggestions-list a {
    padding: var(--spacing-xs) var(--spacing-sm);
    background-color: var(--bg-light);
    color: var(--text-medium);
    text-decoration: none;
    border-radius: var(--radius-lg);
    transition: var(--transition);
    font-size: 14px;
    font-weight: 600;
    border: 2px solid var(--primary-color);
    box-shadow: var(--shadow-light);
}

.suggestions-list a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px) scale(1.05);
    box-shadow: var(--shadow-medium);
}

/* 动画 */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar .container {
        padding: var(--spacing-xs) var(--spacing-sm);
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background-color: var(--bg-white);
        flex-direction: column;
        align-items: center;
        padding: var(--spacing-md) 0;
        box-shadow: var(--shadow-light);
        transform: translateY(-150%);
        transition: var(--transition);
        z-index: 999;
    }
    
    .nav-menu.active {
        transform: translateY(0);
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 36px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .diy-content {
        flex-direction: column;
        text-align: center;
    }
    
    .story-content {
        flex-direction: column;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 200px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 28px;
    }
    
    h2 {
        font-size: 24px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-links h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ff528e;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 107, 157, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 辅助类 */
.text-primary {
    color: var(--primary-color);
}

.text-center {
    text-align: center;
}

.mt-1 {
    margin-top: var(--spacing-xs);
}

.mt-2 {
    margin-top: var(--spacing-sm);
}

.mt-3 {
    margin-top: var(--spacing-md);
}

.mb-1 {
    margin-bottom: var(--spacing-xs);
}

.mb-2 {
    margin-bottom: var(--spacing-sm);
}

.mb-3 {
    margin-bottom: var(--spacing-md);
}