* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #E91E63;
    --secondary-color: #5C6BC0;
    --accent-color: #FF6B9D;
    --text-primary: #2D3436;
    --text-secondary: #636E72;
    --bg-gradient-start: #F8E5F1;
    --bg-gradient-end: #D5E4F7;
    --card-bg: rgba(255, 255, 255, 0.75);
    --shadow-soft: 0 15px 45px rgba(92, 107, 192, 0.25);
    --shadow-hover: 0 20px 60px rgba(233, 30, 99, 0.35);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang TC", "Microsoft JhengHei", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* 漂浮装饰元素 */
.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.cloud {
    position: absolute;
    background: radial-gradient(circle, rgba(233, 30, 99, 0.12) 0%, rgba(92, 107, 192, 0.08) 70%, transparent 100%);
    border-radius: 50%;
    animation: float-cloud 30s ease-in-out infinite;
}

.cloud-1 {
    width: 200px;
    height: 100px;
    top: 10%;
    left: -100px;
    animation-duration: 40s;
}

.cloud-2 {
    width: 150px;
    height: 80px;
    top: 60%;
    right: -80px;
    animation-duration: 35s;
    animation-delay: -10s;
}

.cloud-3 {
    width: 180px;
    height: 90px;
    top: 80%;
    left: -90px;
    animation-duration: 45s;
    animation-delay: -20s;
}

.star {
    position: absolute;
    color: rgba(233, 30, 99, 0.6);
    font-size: 24px;
    animation: twinkle 3s ease-in-out infinite;
}

.star-1 {
    top: 15%;
    right: 20%;
    animation-delay: 0s;
}

.star-2 {
    top: 45%;
    left: 15%;
    animation-delay: 1s;
}

.star-3 {
    top: 70%;
    right: 25%;
    animation-delay: 2s;
}

@keyframes float-cloud {
    0%, 100% {
        transform: translateX(0) translateY(0);
    }
    50% {
        transform: translateX(calc(100vw + 200px)) translateY(-20px);
    }
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* 主容器 */
.container {
    position: relative;
    z-index: 1;
    max-width: 100%;
    width: 100%;
    padding: 0;
}

/* Logo样式 */
.logo-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    animation: fadeInDown 1s ease-out;
}

.logo {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@media (min-width: 768px) {
    .logo {
        height: 60px;
    }
    
    .logo-container {
        top: 30px;
    }
}

/* 头部区域 */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 20px 40px;
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 600px;
    width: 100%;
}

.fade-in {
    animation: fadeInUp 1.2s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.main-title h1 {
    font-size: clamp(36px, 8vw, 56px);
    font-weight: 300;
    line-height: 1.4;
    color: var(--text-primary);
    letter-spacing: 2px;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #FFB6C1 0%, #B8D8E8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    margin: 30px auto;
    animation: expandWidth 1.5s ease-out;
    box-shadow: 0 2px 8px rgba(233, 30, 99, 0.3);
}

@keyframes expandWidth {
    from {
        width: 0;
    }
    to {
        width: 60px;
    }
}

.subtitle {
    font-size: clamp(14px, 3.5vw, 18px);
    line-height: 1.8;
    color: var(--text-secondary);
    margin-top: 20px;
    font-weight: 300;
    letter-spacing: 1px;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-arrow {
    width: 30px;
    height: 50px;
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    position: relative;
    animation: bounce 2s infinite;
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
}

.scroll-arrow::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 7px;
    height: 7px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: scrollDot 2s infinite;
    box-shadow: 0 2px 8px rgba(233, 30, 99, 0.4);
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(10px);
    }
}

@keyframes scrollDot {
    0% {
        opacity: 1;
        top: 8px;
    }
    100% {
        opacity: 0;
        top: 30px;
    }
}

/* 产品展示区域 */
.products-section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: clamp(28px, 6vw, 36px);
    font-weight: 300;
    text-align: center;
    color: var(--text-primary);
    margin-bottom: 60px;
    letter-spacing: 3px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--primary-color);
    margin: 20px auto 0;
    box-shadow: 0 2px 8px rgba(233, 30, 99, 0.3);
}

/* 产品画廊 */
.product-gallery {
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInCard 0.8s ease-out forwards;
    animation-delay: 0.1s;
}

.gallery-container {
    position: relative;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 30px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle at center,
        rgba(233, 30, 99, 0.08) 0%,
        rgba(92, 107, 192, 0.08) 50%,
        transparent 70%
    );
    animation: rotateGradient 15s linear infinite;
    pointer-events: none;
}

@keyframes rotateGradient {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.gallery-container:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.gallery-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
    position: relative;
    z-index: 1;
    transition: transform 0.4s ease;
}

.gallery-container:hover .gallery-image {
    transform: scale(1.02);
}

/* 产品画廊装饰元素 */
.gallery-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(
        to top,
        rgba(255, 255, 255, 0.5),
        transparent
    );
    pointer-events: none;
    z-index: 2;
}

@media (min-width: 768px) {
    .gallery-container {
        padding: 40px;
    }
    
    .product-gallery {
        margin-bottom: 80px;
    }
}

/* 产品卡片 */
.product-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 40px 30px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInCard 0.8s ease-out forwards;
}

.product-card.card-1 {
    animation-delay: 0.2s;
}

.product-card.card-2 {
    animation-delay: 0.4s;
}

.product-card.card-3 {
    animation-delay: 0.6s;
}

@keyframes fadeInCard {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.card-decoration {
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    opacity: 0.15;
    transition: all 0.6s ease;
}

.deco-1 {
    background: radial-gradient(circle, #E91E63, transparent);
    top: -50px;
    right: -50px;
}

.deco-2 {
    background: radial-gradient(circle, #5C6BC0, transparent);
    bottom: -50px;
    left: -50px;
}

.deco-3 {
    background: radial-gradient(circle, #FF6B9D, transparent);
    top: -50px;
    left: -50px;
}

.product-card:hover .card-decoration {
    transform: scale(1.3);
    opacity: 0.25;
}

.card-content {
    position: relative;
    z-index: 1;
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.icon-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.icon-circle svg {
    width: 24px;
    height: 24px;
    color: white;
}

.card-title {
    font-size: clamp(22px, 5vw, 28px);
    font-weight: 400;
    color: var(--text-primary);
    letter-spacing: 1px;
}

.flavor-tag {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.15), rgba(92, 107, 192, 0.15));
    border-radius: 20px;
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 20px;
    border: 1px solid rgba(233, 30, 99, 0.3);
    letter-spacing: 1px;
    font-weight: 500;
}

.card-description {
    font-size: clamp(14px, 3.5vw, 16px);
    line-height: 1.9;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

.card-pattern {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 80px;
    height: 80px;
    opacity: 0.1;
    border-radius: 50%;
}

.pattern-peach {
    background: radial-gradient(circle, #E91E63 0%, transparent 70%);
}

.pattern-mint {
    background: radial-gradient(circle, #5C6BC0 0%, transparent 70%);
}

.pattern-tropical {
    background: radial-gradient(circle, #FF6B9D 0%, transparent 70%);
}

/* CTA区域 */
.cta-section {
    padding: 80px 20px;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-title {
    font-size: clamp(24px, 5vw, 32px);
    font-weight: 300;
    color: var(--text-primary);
    margin-bottom: 40px;
    letter-spacing: 1px;
    line-height: 1.6;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 50px;
    font-size: clamp(16px, 4vw, 18px);
    font-weight: 500;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 12px 35px rgba(233, 30, 99, 0.45);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cta-button:hover::before {
    width: 300px;
    height: 300px;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 45px rgba(233, 30, 99, 0.6);
}

.cta-button:active {
    transform: translateY(-1px);
}

.cta-button span {
    position: relative;
    z-index: 1;
}

.button-icon {
    width: 20px;
    height: 20px;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.cta-button:hover .button-icon {
    transform: translateX(5px);
}

/* 页脚 */
.footer {
    padding: 50px 20px 30px;
    text-align: center;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}

.footer-divider {
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    margin: 0 auto 30px;
    box-shadow: 0 2px 8px rgba(233, 30, 99, 0.25);
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    letter-spacing: 0.5px;
}

.footer-link:hover {
    color: var(--primary-color);
}

.footer-separator {
    color: var(--text-secondary);
    opacity: 0.5;
}

.footer-copyright {
    font-size: 12px;
    color: var(--text-secondary);
    opacity: 0.7;
    letter-spacing: 0.5px;
}

/* 响应式设计 */
@media (min-width: 768px) {
    .products-section {
        padding: 80px 40px;
    }
    
    .product-card {
        padding: 50px 40px;
    }
    
    .hero-section {
        padding: 80px 40px 60px;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 1200px;
        margin: 0 auto;
    }
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 模态框样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(45, 52, 54, 0.75);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
    backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 50px 40px 40px;
    max-width: 450px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(92, 107, 192, 0.3);
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active .modal-container {
    transform: scale(1) translateY(0);
}

.modal-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: modalIconPulse 2s ease-in-out infinite;
    box-shadow: 0 8px 25px rgba(233, 30, 99, 0.4);
}

.modal-icon svg {
    width: 45px;
    height: 45px;
    color: white;
    stroke-width: 2.5;
}

@keyframes modalIconPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 25px rgba(233, 30, 99, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 12px 35px rgba(233, 30, 99, 0.5);
    }
}

.modal-title {
    font-size: clamp(24px, 5vw, 28px);
    font-weight: 400;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.modal-message {
    font-size: clamp(15px, 3.5vw, 17px);
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 35px;
    line-height: 1.6;
}

.modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.modal-btn {
    flex: 1;
    max-width: 150px;
    padding: 14px 30px;
    border: none;
    border-radius: 25px;
    font-size: clamp(15px, 3.5vw, 16px);
    font-weight: 500;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.modal-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.modal-btn:hover::before {
    width: 200px;
    height: 200px;
}

.modal-btn-cancel {
    background: linear-gradient(135deg, #DFE6E9, #B2BEC3);
    color: #2D3436;
    box-shadow: 0 6px 20px rgba(178, 190, 195, 0.4);
}

.modal-btn-cancel:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(178, 190, 195, 0.5);
}

.modal-btn-cancel:active {
    transform: translateY(0);
}

.modal-btn-confirm {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 6px 20px rgba(233, 30, 99, 0.4);
}

.modal-btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(233, 30, 99, 0.5);
}

.modal-btn-confirm:active {
    transform: translateY(0);
}

.modal-btn span {
    position: relative;
    z-index: 1;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(99, 110, 114, 0.1);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close svg {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
}

.modal-close:hover {
    background: rgba(233, 30, 99, 0.15);
    transform: rotate(90deg);
}

.modal-close:hover svg {
    color: var(--primary-color);
}

/* 模态框响应式 */
@media (max-width: 480px) {
    .modal-container {
        padding: 40px 25px 30px;
    }
    
    .modal-icon {
        width: 70px;
        height: 70px;
    }
    
    .modal-icon svg {
        width: 38px;
        height: 38px;
    }
    
    .modal-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .modal-btn {
        max-width: 100%;
        width: 100%;
    }
}

/* 禁止背景滚动 */
body.modal-open {
    overflow: hidden;
}

/* 图片查看器 */
.image-viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.image-viewer.active {
    opacity: 1;
    visibility: visible;
}

.image-viewer-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(45, 52, 54, 0.95);
    backdrop-filter: blur(10px);
    cursor: pointer;
}

.image-viewer-content {
    position: relative;
    max-width: 95%;
    max-height: 95%;
    z-index: 1;
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-viewer.active .image-viewer-content {
    transform: scale(1);
}

.viewer-image {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5);
    display: block;
}

.viewer-close {
    position: absolute;
    top: -60px;
    right: 0;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.viewer-close svg {
    width: 24px;
    height: 24px;
    color: white;
}

.viewer-close:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: rotate(90deg) scale(1.1);
}

@media (max-width: 768px) {
    .viewer-close {
        top: -50px;
        width: 45px;
        height: 45px;
    }
    
    .viewer-close svg {
        width: 20px;
        height: 20px;
    }
}

/* 选择文本样式 */
::selection {
    background: var(--primary-color);
    color: white;
}

::-moz-selection {
    background: var(--primary-color);
    color: white;
}

