/* Main styles for gacha page */
body {
    font-family: 'Noto Sans JP', sans-serif;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    line-height: 1.6;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: white;
    position: relative;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    z-index: -1;
    pointer-events: none;
}

header {
    text-align: center;
    padding: 20px 0;
    border-bottom: 2px solid rgba(255, 247, 125, 0.7); /* 半透明黄色边框 */
    margin-bottom: 30px;
    position: relative;
}

.header-logo {
    max-width: 100%;
    height: auto;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

h1, h2, h3 {
    border-bottom: 2px solid rgba(255, 128, 171, 0.7); /* 半透明粉色边框 */
    padding-bottom: 5px;
    margin-top: 30px;
    color: #fff77d; /* 黄色标题 */
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
    background-color: rgba(255, 255, 255, 0.08);
}

table, th, td {
    border: 1px solid #8e71c9; /* 淡紫色边框 */
}

th, td {
    padding: 12px;
    text-align: left;
}

th {
    background: linear-gradient(45deg, #573a9a, #8e71c9);
    color: white;
    font-weight: bold;
    text-align: center;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

th:first-child {
    border-top-left-radius: 8px;
}

th:last-child {
    border-top-right-radius: 8px;
}

tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.05);
}

.top-link {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 5px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.top-link a {
    display: inline-block;
    margin: 0 10px;
    color: #fff77d; /* 黄色链接 */
    text-decoration: none;
    font-weight: bold;
}

.top-link a:hover {
    color: #ff80ab; /* 粉色悬停状态 */
    text-decoration: underline;
}

.prizes-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px 0;
}

.prize-item {
    flex: 1;
    min-width: 300px;
    margin-bottom: 20px;
    background-color: rgba(41, 128, 185, 0.1);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
    border: 1px solid rgba(41, 128, 185, 0.3);
}

.prize-item:hover {
    transform: translateY(-5px);
    background-color: rgba(41, 128, 185, 0.2);
    box-shadow: 0 8px 16px rgba(41, 128, 185, 0.2);
}

.prize-item h3 {
    color: #fff77d; /* 黄色标题 */
    border-bottom: 1px dashed rgba(255, 128, 171, 0.7); /* 粉色虚线边框 */
    padding-bottom: 12px;
    text-align: center;
    font-size: 1.4rem;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.prize-item h3::before {
    content: attr(data-prize);
    display: block;
    font-size: 1.8rem;
    color: #fff;
    background: linear-gradient(45deg, #ff80ab, #fff77d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
    text-shadow: 0 0 20px rgba(255, 128, 171, 0.8);
    font-weight: 900;
    letter-spacing: 2px;
    transform: scale(1.05);
}

.prize-item img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.participants {
    list-style-type: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.participants li {
    margin-bottom: 15px;
    padding: 15px;
    background-color: white;
    border-left: 4px solid #ff6b6b;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    width: 200px;
    text-align: center;
    transition: transform 0.3s ease;
}

.participants li:hover {
    transform: translateY(-5px);
}

.participants .member-photo {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 10px;
    border: 3px solid #ff6b6b;
}

.participants span {
    display: block;
    font-weight: bold;
    font-size: 1.1em;
}

/* Button styles */
.gacha-buttons-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 15px 0;
}

.gacha-button {
    display: inline-block;
    background-color: #ff6b81;
    color: white;
    padding: 10px 20px;
    border-radius: 3px;
    text-decoration: none;
    font-weight: normal;
    font-size: 16px;
    width: 200px;
    text-align: center;
}

.gacha-button.ten {
    background-color: #5352ed;
}

/* Status message */
.status-message {
    text-align: center;
    font-size: 24px;
    padding: 20px;
    background-color: #ffeaa7;
    border-radius: 8px;
    margin: 20px 0;
    border: 2px dashed #fdcb6e;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .prizes-container {
        flex-direction: column;
    }
    
    .prize-item {
        min-width: 100%;
    }
    
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .participants {
        flex-direction: column;
        align-items: center;
    }
    
    .participants li {
        width: 80%;
    }
}

.event-schedule {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 12px;
    margin: 20px auto;
    max-width: 80%;
    line-height: 1.5;
    border-left: 4px solid #ff80ab; /* 粉色边框 */
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.event-schedule p {
    margin: 5px 0;
    position: relative;
    padding-left: 20px;
}

.event-schedule p::before {
    content: '•';
    position: absolute;
    left: 5px;
    color: rgba(255, 128, 171, 0.9);
    font-weight: bold;
}

.event-schedule p:last-child {
    text-align: center;
    font-weight: bold;
    margin-top: 15px;
    grid-column: 1 / -1;
    background-color: rgba(255, 128, 171, 0.3); /* 半透明粉色 */
    padding: 8px;
    border-radius: 30px;
    border: 1px dashed #fff77d; /* 黄色虚线边框 */
}

@media (max-width: 768px) {
    .event-schedule {
        grid-template-columns: 1fr;
        max-width: 95%;
    }
}

/* Countdown styles */
.countdown-container {
    background-color: rgba(41, 128, 185, 0.8); /* 半透明蓝色背景 */
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
    text-align: center;
    margin: 20px auto;
    max-width: 800px;
    border: 2px solid rgba(255, 255, 255, 0.7);
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.countdown-item {
    background: rgba(52, 152, 219, 0.5); /* 半透明浅蓝色 */
    padding: 10px 15px;
    border-radius: 8px;
    min-width: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.countdown-item span:first-child {
    font-size: 2rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 5px;
}

.countdown-item span:last-child {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 768px) {
    .countdown-timer {
        gap: 10px;
    }
    
    .countdown-item {
        min-width: 60px;
        padding: 8px 10px;
    }
    
    .countdown-item span:first-child {
        font-size: 1.5rem;
    }
    
    .countdown-item span:last-child {
        font-size: 0.8rem;
    }
}

#current-event {
    background-color: rgba(0,0,0,0.1);
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    margin-top: 10px;
}

@media (max-width: 500px) {
    .countdown {
        flex-wrap: wrap;
    }
    
    .countdown-item {
        min-width: 65px;
    }
    
    .countdown-item span:first-child {
        font-size: 1.8rem;
        min-width: 50px;
    }
}

/* Upcoming Events Section */
.upcoming-events {
    margin: 30px 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 100%;
    perspective: 1000px;
}

.upcoming-event-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
    transition: all 0.4s ease;
    transform-origin: center;
    cursor: pointer;
    text-decoration: none;
    display: block;
    background-color: rgba(255, 255, 255, 0.1);
    transform-style: preserve-3d;
    backface-visibility: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 20px;
}

.event-date {
    text-align: center;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 0.9rem;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.upcoming-event-item:hover {
    transform: translateY(-10px) scale(1.02) rotateY(2deg);
    box-shadow: 0 15px 30px rgba(255, 128, 171, 0.4);
    z-index: 1;
}

.upcoming-event-item:hover .event-date {
    background-color: rgba(255, 128, 171, 0.2);
}

.upcoming-event-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    vertical-align: middle;
    transition: all 0.5s ease;
    filter: brightness(0.95);
}

.upcoming-event-item:hover .upcoming-event-image {
    transform: scale(1.05);
    filter: brightness(1.05);
}

.upcoming-event-info {
    padding: 15px 20px;
    flex: 1;
}

.upcoming-event-info h3 {
    margin-top: 0;
    color: #ff4757;
    border-bottom: 1px dashed #ff6b6b;
    padding-bottom: 8px;
}

.upcoming-event-info p {
    margin-bottom: 0;
    line-height: 1.6;
}

.event-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(87, 58, 154, 0.9) 0%, rgba(87, 58, 154, 0) 100%);
    padding: 30px 20px 15px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.upcoming-event-item:hover .event-overlay {
    transform: translateY(0);
}

.event-overlay span {
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    display: block;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease 0.1s;
}

.upcoming-event-item:hover .event-overlay span {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 900px) {
    .upcoming-events {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .upcoming-events {
        grid-template-columns: 1fr;
    }
    
    .upcoming-event-item {
        max-width: 100%;
        margin: 0 auto 20px;
    }
}

/* 修改标题样式 */
section h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 30px;
    padding: 10px 20px;
    font-size: 1.8rem;
    background-color: rgba(255, 128, 171, 0.8); /* 半透明粉色背景 */
    color: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
    border: none;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #ff80ab, transparent);
    border-radius: 4px;
}

/* 修改制作中覆盖层样式 */
.event-wip-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(87, 58, 154, 0.8); /* 半透明紫色 */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.wip-text {
    color: white;
    font-size: 1.8rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    background-color: rgba(255, 128, 171, 0.8); /* 半透明粉色 */
    padding: 12px 25px;
    border-radius: 8px;
    transform: rotate(-10deg) scale(1.1);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    border: 2px solid #fff77d; /* 黄色边框 */
    letter-spacing: 3px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: rotate(-10deg) scale(1.1);
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    }
    50% {
        transform: rotate(-10deg) scale(1.2);
        box-shadow: 0 0 30px rgba(255, 128, 171, 0.7);
    }
    100% {
        transform: rotate(-10deg) scale(1.1);
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    }
}

/* 修改第1弾标题样式 */
section h1 {
    font-size: 2.5rem;
    text-align: center;
    color: #fff77d; /* 黄色标题 */
    border-bottom: 3px solid rgba(255, 128, 171, 0.7); /* 半透明粉色边框 */
    padding: 10px 0;
    margin: 30px auto;
    max-width: 80%;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

section h1::before,
section h1::after {
    content: '';
    position: absolute;
}

section h1::before {
    left: 10%;
}

section h1::after {
    right: 10%;
}

/* 修改日期样式 */
section h1 + p {
    text-align: center;
    font-size: 1.3rem;
    font-weight: bold;
    color: #573a9a; /* 紫色文字 */
    background-color: rgba(255, 247, 125, 0.8); /* 半透明黄色背景 */
    padding: 10px 20px;
    border-radius: 30px;
    margin: 0 auto 20px;
    max-width: 50%;
    border: 2px dashed rgba(255, 128, 171, 0.7); /* 半透明粉色虚线边框 */
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

/* 修改S奖样式 */
.s-prize {
    width: 95%;
    margin: 0 auto 40px;
    background: linear-gradient(to right, rgba(255, 128, 171, 0.15), rgba(255, 255, 255, 0.08), rgba(255, 128, 171, 0.15));
    border: 2px solid rgba(255, 247, 125, 0.7); /* 半透明黄色边框 */
    padding: 25px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.s-prize::before {
    content: 'S';
    position: absolute;
    top: -15px;
    right: 10px;
    font-size: 150px;
    font-weight: bold;
    color: rgba(255, 247, 125, 0.1); /* 半透明黄色 */
    z-index: 0;
    line-height: 1;
}

.s-prize h3 {
    font-size: 1.6rem;
    color: #fff77d; /* 黄色标题 */
    text-align: center;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
    padding-bottom: 15px;
    border-bottom: 2px dashed rgba(255, 128, 171, 0.8);
}

.s-prize h3::before {
    content: attr(data-prize);
    display: block;
    font-size: 2.5rem;
    color: #fff;
    background: linear-gradient(45deg, #ff9fb8, #fffb8f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
    font-weight: 900;
    letter-spacing: 3px;
    transform: scale(1.1);
    text-shadow: 0 0 30px rgba(255, 128, 171, 0.9);
    animation: glow 2s infinite alternate;
}

@keyframes glow {
    0% {
        text-shadow: 0 0 10px rgba(255, 128, 171, 0.6);
    }
    100% {
        text-shadow: 0 0 25px rgba(255, 128, 171, 0.9), 0 0 40px rgba(255, 247, 125, 0.4);
    }
}

.s-prize img {
    max-width: 450px;
    height: auto;
    display: block;
    margin: 0 auto 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

.s-prize p {
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    position: relative;
    z-index: 1;
    padding: 0 20px;
}

@media (max-width: 768px) {
    .s-prize {
        padding: 15px;
        width: 100%;
    }
    
    .s-prize::before {
        font-size: 100px;
        top: -5px;
    }
    
    .s-prize img {
        max-width: 100%;
    }
}

/* 改进奖项说明文本的排版 */
.prize-description {
    line-height: 1.8;
    text-align: left;
    padding: 15px;
    position: relative;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin: 15px 0;
    border-left: 3px solid rgba(255, 128, 171, 0.7);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.prize-description p {
    margin-bottom: 12px;
    font-size: 1.05em;
    line-height: 1.6;
    color: #fff;
}

.prize-description p:first-child {
    font-weight: bold;
    font-size: 1.1em;
    color: #fff77d;
    padding-bottom: 8px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
}

/* 突出重点文字 */
.highlight {
    color: #fff77d;
    font-weight: bold;
}

.emphasis {
    color: #ff80ab;
    font-weight: bold;
}

.note {
    font-style: italic;
    opacity: 0.9;
    font-size: 0.95em;
    display: block;
    padding-left: 15px;
    border-left: 2px solid rgba(255, 128, 171, 0.5);
    margin-top: 8px;
    background-color: rgba(0, 0, 0, 0.1);
    padding: 8px 15px;
    border-radius: 4px;
}

/* S奖专用样式 */
.s-prize .prize-description {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    background-color: rgba(255, 255, 255, 0.08);
    border-left: 3px solid rgba(255, 247, 125, 0.7);
}

/* ガチャの仕様説明部分の画像スタイル */
.step-image,
.point-list-image,
.gacha-step-image,
.shipping-image {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin: 20px auto;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.step-image img,
.point-list-image img,
.gacha-step-image img,
.shipping-image img {
    width: 300px;      /* 固定图片宽度 */
    height: auto;      /* 保持宽高比 */
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 128, 171, 0.3);
    flex-shrink: 0;    /* 防止图片被压缩 */
}

.step-image .text-content,
.point-list-image .text-content,
.gacha-step-image .text-content,
.shipping-image .text-content {
    flex: 1;
    padding: 10px;
}

@media (max-width: 768px) {
    .step-image,
    .point-list-image,
    .gacha-step-image,
    .shipping-image {
        flex-direction: column;
        align-items: center;
    }
    
    .step-image img,
    .point-list-image img,
    .gacha-step-image img,
    .shipping-image img {
        width: 100%;
        max-width: 300px;
        margin-bottom: 15px;
    }
}

/* 固定在右下角的抽扭蛋按钮 */
.fixed-gacha-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(45deg, #2980b9, #3498db);
    color: white;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(41, 128, 185, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    border: 2px solid #fff;
}

.fixed-gacha-button:hover {
    background: linear-gradient(45deg, #3498db, #2980b9);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(41, 128, 185, 0.6);
}

@media (max-width: 768px) {
    .fixed-gacha-button {
        bottom: 20px;
        right: 20px;
        padding: 12px 24px;
        font-size: 1.1rem;
    }
}

.shipping-links {
    margin-top: 20px;
    display: flex;
    gap: 20px;
    justify-content: center;
}

.shipping-links a {
    background: linear-gradient(45deg, #573a9a, #8e71c9);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.shipping-links a:hover {
    background: linear-gradient(45deg, #8e71c9, #573a9a);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(87, 58, 154, 0.4);
}

@media (max-width: 768px) {
    .shipping-links {
        flex-direction: column;
        align-items: center;
    }
    
    .shipping-links a {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
}

.shipping-section {
    margin: 30px auto;
    max-width: 800px;
}

.shipping-section h2 {
    color: white;
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.shipping-info {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    line-height: 1.6;
    text-align: left;
}

.shipping-info p {
    margin: 10px 0;
    font-size: 1.1rem;
}

.shipping-info .note {
    color: white;
    margin-left: 0;
    text-align: left;
}

.text-content {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 20px;
    border-radius: 8px;
    margin-top: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.text-content p {
    margin: 0;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .shipping-section {
        margin: 20px 15px;
    }
    
    .shipping-info {
        padding: 15px;
    }
    
    .shipping-info p {
        font-size: 1rem;
    }
} 