/* Events Page Styles */
.events-hero {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    padding: 100px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.events-hero h1 {
    font-family: 'Bubblegum Sans', cursive;
    font-size: 4rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    background: linear-gradient(to right, #ffffff, #f0e6ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.events-hero p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.hero-decoration {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
}

.deco {
    position: absolute;
    opacity: 0.3;
}

.deco-1 {
    top: 15%;
    left: 10%;
    width: 40px;
    height: 40px;
    animation: float 6s ease-in-out infinite;
}

.deco-2 {
    top: 25%;
    right: 15%;
    width: 30px;
    height: 30px;
    animation: float 8s ease-in-out infinite;
}

.deco-3 {
    bottom: 20%;
    left: 20%;
    width: 25px;
    height: 25px;
    animation: float 7s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(10deg);
    }
    100% {
        transform: translateY(0) rotate(0deg);
    }
}

.events-list {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.event-card {
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(106, 17, 203, 0.1);
    overflow: hidden;
    margin-bottom: 50px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(106, 17, 203, 0.2);
}

/* Free Token Voucher 卡片样式 */
.free-token-card {
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(106, 17, 203, 0.1);
    overflow: hidden;
    margin-bottom: 50px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.free-token-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(106, 17, 203, 0.2);
}

.free-token-card .event-details {
    width: 100%;
    max-width: 100%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.free-token-card .purple-title {
    margin-bottom: 30px;
}

.free-token-card .event-date-range {
    justify-content: center;
    margin-bottom: 30px;
}

.free-token-card .event-subtitle {
    font-size: 1.8rem;
    margin-bottom: 30px;
}

.free-token-card .event-description {
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 30px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.free-token-card .event-tags {
    justify-content: center;
    margin-bottom: 30px;
}

.free-token-card .event-button {
    padding: 12px 30px;
    font-size: 1.1rem;
}

/* Token Bonus Card 卡片样式 */
.token-bonus-card {
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(37, 117, 252, 0.1);
    overflow: hidden;
    margin-bottom: 50px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.token-bonus-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(37, 117, 252, 0.2);
}

.token-bonus-card .event-details {
    width: 100%;
    max-width: 100%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.token-bonus-card .purple-title {
    margin-bottom: 30px;
    color: #2575fc;
}

.token-bonus-card .event-date-range {
    justify-content: center;
    margin-bottom: 30px;
}

.token-bonus-card .date-box {
    background-color: #e6f0ff;
}

.token-bonus-card .month,
.token-bonus-card .day {
    color: #2575fc;
}

.token-bonus-card .event-subtitle {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: #2575fc;
}

.token-bonus-card .event-description {
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 30px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.token-bonus-card .event-tags {
    justify-content: center;
    margin-bottom: 30px;
}

.token-bonus-card .event-tag {
    background-color: #e0f0ff;
    color: #2575fc;
}

.token-bonus-card .event-tag:hover {
    background-color: #2575fc;
    color: white;
    box-shadow: 0 5px 15px rgba(37, 117, 252, 0.2);
}

.token-bonus-card .event-button {
    padding: 12px 30px;
    font-size: 1.1rem;
    background: linear-gradient(135deg, #2575fc 0%, #6a11cb 100%);
}

/* 修改代金券图片容器样式 */
.voucher-image {
    margin: 20px auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(106, 17, 203, 0.12);
    max-width: 450px;
    width: 90%;
    display: block;
}

.voucher-poster {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.event-details {
    padding: 40px;
}

.purple-title {
    font-family: 'Bubblegum Sans', cursive;
    font-size: 2.5rem;
    color: #6a11cb;
    margin-bottom: 20px;
}

.event-date-range {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.date-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #f0e6ff;
    border-radius: 10px;
    padding: 10px 15px;
    min-width: 70px;
}

.month {
    font-size: 0.9rem;
    font-weight: bold;
    color: #6a11cb;
}

.day {
    font-size: 1.5rem;
    font-weight: bold;
    color: #6a11cb;
}

.to {
    margin: 0 15px;
    color: #888;
    font-weight: 500;
}

.event-subtitle {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: #6a11cb;
    margin-bottom: 20px;
}

.event-description {
    color: #555;
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.event-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.event-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background-color: #f0e0ff;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #6a11cb;
    transition: all 0.3s ease;
}

.event-tag:hover {
    background-color: #6a11cb;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(106, 17, 203, 0.2);
}

.event-tag i {
    font-size: 1rem;
}

.event-button {
    background: linear-gradient(135deg, #7c3aed, #6a26cd);
    color: white;
    padding: 14px 30px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 1.1rem;
    display: block;
    text-decoration: none;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(106, 38, 205, 0.3);
    transition: all 0.3s ease;
    text-align: center;
    margin: 25px auto 20px;
    max-width: 280px;
}

.event-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(106, 38, 205, 0.4);
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

/* 闪光按钮效果 */
.shine-effect {
    position: relative;
    overflow: hidden;
}

.shine-effect:after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(30deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        left: -50%;
    }
    100% {
        left: 150%;
    }
}

.upcoming-events {
    background-color: #f0e6ff;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.upcoming-events h2 {
    font-family: 'Bubblegum Sans', cursive;
    font-size: 3rem;
    color: #6a11cb;
    margin-bottom: 20px;
}

.upcoming-events p {
    font-size: 1.2rem;
    color: #555;
    max-width: 700px;
    margin: 0 auto 30px;
}

.social-follow {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.social-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: white;
    color: #6a11cb;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(106, 17, 203, 0.1);
}

.social-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(106, 17, 203, 0.2);
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.floating-element {
    position: absolute;
    width: 40px;
    height: 40px;
    opacity: 0.2;
}

.fe-1 {
    top: 20%;
    left: 15%;
    animation: float-token 8s ease-in-out infinite;
}

.fe-2 {
    top: 60%;
    right: 20%;
    animation: float-token 10s ease-in-out infinite;
}

.fe-3 {
    bottom: 15%;
    left: 30%;
    animation: float-token 9s ease-in-out infinite;
}

@keyframes float-token {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-30px) rotate(15deg);
    }
    100% {
        transform: translateY(0) rotate(0deg);
    }
}

/* 响应式调整 */
@media (max-width: 991px) {
    .voucher-poster {
        max-height: 250px;
    }
}

@media (max-width: 768px) {
    .events-hero {
        padding: 80px 0 50px;
    }
    
    .events-hero h1 {
        font-size: 2.5rem;
    }
    
    .events-list {
        padding: 40px 0;
    }
    
    .free-token-card .event-details {
        padding: 30px 20px;
    }
    
    .free-token-card .event-description {
        max-width: 100%;
        font-size: 1rem;
    }
    
    .free-token-card .event-subtitle {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    
    .voucher-poster {
        max-height: 200px;
    }
    
    .purple-title {
        font-size: 1.8rem;
    }
    
    .social-follow {
        gap: 15px;
    }
    
    .upcoming-events h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .events-hero {
        padding: 70px 0 40px;
    }
    
    .events-hero h1 {
        font-size: 2rem;
    }
    
    .voucher-poster {
        max-height: 180px;
    }
    
    .event-button {
        width: 100%;
        text-align: center;
        padding: 12px 20px;
        font-size: 1rem;
    }
    
    .event-card, .free-token-card {
        margin-bottom: 30px;
    }
    
    .free-token-card .event-details {
        padding: 20px 15px;
    }
    
    .event-tags {
        gap: 5px;
    }
    
    .event-tag {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
    
    .event-subtitle {
        font-size: 1.4rem !important;
        margin-bottom: 15px !important;
    }
    
    .purple-title {
        font-size: 1.6rem !important;
        margin-bottom: 20px !important;
    }
}

/* Voucher Modal Styles */
.voucher-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.voucher-modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.voucher-submit-btn {
    background-color: #6a26cd;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    display: block;
    margin: 0 auto;
    font-weight: bold;
    transition: background-color 0.3s;
}

.voucher-submit-btn:hover {
    background-color: #5a1cb0;
}

/* Message Box Styles */
.message-box {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.message-content {
    background-color: white;
    padding: 30px;
    border-radius: 15px;
    max-width: 400px;
    width: 90%;
    text-align: center;
}

.message-close {
    background-color: #6a26cd;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 15px;
}

/* 改进的优惠券详情区域 */
.voucher-details {
    padding: 20px 30px;
    background-color: #f9f7ff;
    border-radius: 12px;
    margin: 20px 0;
}

.event-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #444;
    margin-bottom: 20px;
}

/* Mobile adjustments for voucher details */
@media (max-width: 768px) {
    .voucher-details {
        padding: 15px 20px;
        margin: 15px 0;
    }
    
    .event-description {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .voucher-details {
        padding: 12px 15px;
        margin: 12px 0;
        border-radius: 8px;
    }
    
    .event-description {
        font-size: 0.95rem;
        line-height: 1.4;
        margin-bottom: 12px;
    }
}

/* 重新设计的验证提示 */
.validation-notice {
    display: flex;
    align-items: center;
    background-color: #fff3f8;
    border: 2px dashed #e91e63;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
}

.notice-icon {
    font-size: 24px;
    color: #e91e63;
    margin-right: 15px;
    flex-shrink: 0;
}

.notice-text {
    color: #e91e63;
    font-weight: bold;
    font-size: 1em;
    letter-spacing: 0.5px;
    line-height: 1.4;
}

/* Mobile-specific adjustments for validation notice */
@media (max-width: 768px) {
    .validation-notice {
        padding: 10px;
        margin: 10px 0;
        border-width: 1px;
    }
    
    .notice-icon {
        font-size: 18px;
        margin-right: 10px;
    }
    
    .notice-text {
        font-size: 0.8em;
        letter-spacing: 0.3px;
        line-height: 1.3;
    }
}

/* Even smaller screens like the one in the screenshot */
@media (max-width: 480px) {
    .validation-notice {
        padding: 8px;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    
    .notice-icon {
        margin-bottom: 5px;
        margin-right: 0;
    }
    
    .notice-text {
        font-size: 0.75em;
        letter-spacing: 0.2px;
    }
    
    .voucher-details {
        padding: 15px;
    }
    
    .event-description {
        font-size: 1rem;
        margin-bottom: 15px;
    }
}

/* 更新标签样式使其更一致 */
.event-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
    justify-content: center;
}

.event-tag {
    background-color: #f0e6ff;
    color: #6a26cd;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.event-tag i {
    margin-right: 5px;
}

/* 按钮样式增强 */
.event-button {
    background: linear-gradient(135deg, #7c3aed, #6a26cd);
    color: white;
    padding: 14px 30px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 1.1rem;
    display: block;
    text-decoration: none;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(106, 38, 205, 0.3);
    transition: all 0.3s ease;
    text-align: center;
    margin: 25px auto 20px;
    max-width: 280px;
}

.event-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(106, 38, 205, 0.4);
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
} 