@charset "UTF-8";

.hero {
    background: linear-gradient(135deg, #008dff 0%, #0c86e7 100%);
    padding: 80px 0;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('pattern.png') repeat;
    opacity: 0.1;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.hero-left {
    flex: 1;
    text-align: left;
}

.hero-right {
    flex: 1;
    display: flex;
    justify-content: center;
}

.promotion-tag {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 16px;
    font-weight: 500;
    font-size: 0.9rem;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    line-height: 1.2;
}

.highlight-text {
    color: #FFE66D;
    font-size: 3rem;
    margin-left: 8px;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.benefit-tags {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.benefit-tag {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    font-size: 0.9rem;
}

.benefit-tag .icon {
    margin-right: 6px;
    font-size: 1.1rem;
}

.countdown-container {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    padding: 24px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.countdown-header {
    text-align: center;
    margin-bottom: 16px;
    font-size: 1.1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.today-tag {
    background: #FF4D4D;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.9rem;
}

.countdown {
    display: flex;
    align-items: center;
    gap: 8px;
}

.time-block {
    background: white;
    color: #FF6B6B;
    padding: 12px 16px;
    border-radius: 8px;
    min-width: 80px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    /*
    animation: blink 2s infinite;
    animation-timing-function: ease-in-out;
    */
}

.time-block span {
    font-size: 2rem;
    font-weight: bold;
    display: block;
    line-height: 1;
}

.time-block label {
    font-size: 0.8rem;
    color: #666;
    margin-top: 4px;
    display: block;
}

.time-separator {
    font-size: 2rem;
    font-weight: bold;
    color: white;
    line-height: 1;
}

.product-card {
    position: relative;
    border: none;
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 36px rgba(0,0,0,0.15);
}

.product-badge {
    position: absolute;
    top: -12px;
    left: 24px;
    background: #FF8E53;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.product-badge.hot {
    background: #FF4D4D;
}

.discount-tag {
    background: #FFE4E4;
    color: #FF4D4D;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.sales-info {
    text-align: center;
    margin: 16px 0;
    color: #666;
}

.highlight {
    color: #FF4D4D;
    font-weight: bold;
    font-size: 1.2rem;
}

.buy-btn {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
    border: none;
    width: 100%;
    padding: 16px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 500;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.buy-btn.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.rules-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.rules-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.products {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.product-card.featured {
    border: 2px solid var(--primary-color);
    position: relative;
}

.product-card.featured::before {
    content: "推荐";
    position: absolute;
    top: -12px;
    right: 2rem;
    background: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
}

.product-header h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.price {
    margin: 1rem 0;
}

.price .original {
    text-decoration: line-through;
    color: #999;
    margin-right: 1rem;
}

.price .current {
    color: var(--secondary-color);
    font-size: 1.5rem;
    font-weight: bold;
}

.product-features ul {
    list-style: none;
    margin: 1.5rem 0;
}

.product-features li {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.product-features li::before {
    content: "✓";
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

.activity-rules {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.section-header .subtitle {
    color: #666;
    font-size: 1rem;
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.rules-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.rules-card:hover {
    transform: translateY(-5px);
}

.rules-card.highlight-card {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
    color: white;
}

.rules-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.rules-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.rules-desc {
    color: #666;
    margin-bottom: 1.5rem;
}

.highlight-card .rules-desc {
    color: rgba(255, 255, 255, 0.9);
}

.gift-detail {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
}

.gift-name {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.gift-price {
    color: #FF4D4D;
    font-weight: bold;
}

.discount-detail {
    display: flex;
    justify-content: space-around;
    margin: 1.5rem 0;
}

.discount-item {
    text-align: center;
}

.discount-label {
    display: block;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.5rem;
}

.discount-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: #FFE66D;
}

.rules-list {
    list-style: none;
    text-align: left;
    margin-top: 1.5rem;
}

.rules-list li {
    margin: 0.8rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.rules-list li::before {
    content: "•";
    color: #FF6B6B;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.highlight-card .rules-list li::before {
    color: #FFE66D;
}

.rules-notice {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.notice-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: #666;
    font-weight: 500;
}

.notice-icon {
    font-size: 1.2rem;
}

.notice-list {
    list-style: none;
}

.notice-list li {
    color: #666;
    margin: 0.5rem 0;
    padding-left: 1rem;
    position: relative;
}

.notice-list li::before {
    content: "•";
    color: #999;
    position: absolute;
    left: 0;
}


@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-left {
        text-align: center;
    }

    .benefit-tags {
        justify-content: center;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .highlight-text {
        font-size: 3rem;
    }

    .time-block {
        min-width: 60px;
        padding: 8px 12px;
    }

    .time-block span {
        font-size: 1.5rem;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .activity-rules {
        padding: 1rem;
    }

    .rules-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .discount-detail {
        flex-direction: column;
        gap: 1rem;
    }

    .discount-item {
        padding: 0.5rem 0;
    }
}

/* 添加闪烁动画 */
@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* 当倒计时小于10分钟时添加紧急样式 */
.time-block.urgent {
    background: #FF4D4D;
    color: white;
}

.time-block.urgent label {
    color: rgba(255, 255, 255, 0.8);
}

/* 活动说明区域样式更新 */
.section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 1rem;
}

.title-icon {
    font-size: 2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.rules-icon-wrapper {
    background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.1));
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    position: relative;
}

.rules-icon-wrapper::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF6B6B, #FF8E53);
    z-index: -1;
    opacity: 0.3;
}

.rules-icon {
    font-size: 2.5rem;
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hot-tag {
    position: absolute;
    top: -12px;
    right: 20px;
    background: #FFE66D;
    color: #FF4D4D;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(255,230,109,0.3);
}

.gift-detail {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.gift-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
}

.gift-image img {
    width: 100%;
    margin-top: 10px;
    object-fit: cover;
}

.gift-info {
    flex: 1;
    text-align: left;
}

.gift-tags {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.gift-tag {
    background: rgba(255, 107, 107, 0.1);
    color: #FF6B6B;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.discount-circle {
    background: rgba(255, 255, 255, 0.1);
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
}

.discount-circle::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 100%
    );
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

.discount-value {
    font-size: 2.5rem;
    font-weight: bold;
    line-height: 1;
}

.discount-unit {
    font-size: 1rem;
    opacity: 0.8;
}

.timeline {
    margin: 2rem 0;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 107, 107, 0.2);
}

.timeline-item {
    padding-left: 40px;
    position: relative;
    margin-bottom: 1.5rem;
}

.timeline-dot {
    position: absolute;
    left: 8px;
    top: 8px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #FF6B6B;
    border: 3px solid white;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.3);
}

.timeline-content {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 8px;
}

.timeline-content h4 {
    color: #FF6B6B;
    margin-bottom: 0.5rem;
}

.notice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.notice-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.notice-item-icon {
    font-size: 1.2rem;
    color: #FF6B6B;
}

.notice-item p {
    margin: 0;
    font-size: 0.9rem;
}

.notice-item a {
    color: #FF6B6B;
    text-decoration: none;
    font-weight: 500;
}

.notice-item a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .gift-detail {
        flex-direction: column;
        text-align: center;
    }

    .gift-info {
        text-align: center;
    }

    .gift-tags {
        justify-content: center;
    }

    .notice-grid {
        grid-template-columns: 1fr;
    }
} 

