body {
    margin: 0;
    font-family: 'Noto Sans TC', sans-serif;
    background-color: #f9f7f4;
    color: #333;
}

.header {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('images/專輯封面.jpg');
    background-size: cover;
    background-position: center;
    filter: brightness(0.7) blur(2px);
    z-index: 0;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.header h1,
.header p,
.header a {
    position: relative;
    z-index: 2;
    color: #fff;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
}

.header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation-delay: 0.3s;
}

.header p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    animation-delay: 0.6s;
}

.header a {
    display: inline-block;
    background: #f2b66d;
    padding: 14px 32px;
    text-decoration: none;
    border-radius: 999px;
    font-weight: bold;
    font-size: 1.2rem;
    letter-spacing: 1px;
    color: #fff;
    transition: background 0.3s, transform 0.3s;
    animation-delay: 0.9s;
}

.header a:hover {
    background: #e49c44;
    transform: scale(1.05);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section {
    max-width: 1000px;
    margin: 60px auto;
    padding: 40px 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.section.show {
    opacity: 1;
    transform: translateY(0);
}

.section h2 {
    font-size: 2.2rem;
    font-weight: bold;
    text-align: center;
    position: relative;
    margin-bottom: 30px;
}

.section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: #f2b66d;
    margin: 10px auto 0;
}

.section p,
.section ul {
    font-size: 1.15rem;
    line-height: 1.9;
    color: #555;
}

.section ul {
    padding-left: 20px;
}

.tracks {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.track {
    width: 150px;
    text-align: center;
}

.track img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.track img:hover {
    transform: scale(1.05);
}

.track-name {
    margin-top: 10px;
    font-weight: bold;
    font-size: 1rem;
}

.preorder-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.preorder-form input,
.preorder-form select {
    width: 98%;
    padding: 12px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
}

.preorder-form button {
    padding: 12px;
    background: #f2b66d;
    color: #fff;
    border: none;
    border-radius: 25px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.preorder-form button:hover {
    background: #e49c44;
}

.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    border-radius: 10px;
    max-width: 400px;
    text-align: center;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

audio {
    margin-top: 20px;
    width: 100%;
}

@media (max-width: 600px) {
    .track {
        width: 45%;
    }

    .track img {
        width: 100%;
        height: auto;
    }

    #modalLyrics {
        margin-top: 20px;
        font-size: 1.1rem;
        line-height: 1.8;
        text-align: center;
        color: #444;
        white-space: pre-wrap;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }
}

.slider-wrapper {
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    border-radius: 16px;
    /* 同section圓角 */
    background: #ffffff;
    padding: 10px 0;
}

.product-slider {
    display: flex;
    scroll-snap-type: x mandatory;
    gap: 24px;
    padding: 10px 0;
    min-width: 1300px;
    /* 如果要強制出滾動可以加 */
    scrollbar-width: none;
}

.product-slider::-webkit-scrollbar {
    display: none;
}

.product-card {
    position: relative;
    flex: 0 0 auto;
    scroll-snap-align: center;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.06);
    padding: 20px;
    width: 220px;
    text-align: center;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.product-card:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.product-card.active {
    transform: scale(1.05);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

.product-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 15px;
}

.product-card h3 {
    font-size: 1.05rem;
    margin: 10px 0 5px 0;
    color: #333;
}

.product-price {
    font-size: 1rem;
    color: #e49c44;
    font-weight: bold;
    margin-top: 0;
}

/* 角標 */
.badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: #f2b66d;
    color: white;
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 999px;
    font-weight: bold;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.badge.hot {
    background-color: #f2b66d;
}

.badge.new {
    background-color: #5dade2;
}

.badge.limited {
    background-color: #af7ac5;
}


  #preorder form {
    display: flex;
    flex-direction: column;
    max-width: 500px;
    margin: 0 auto;
    gap: 12px;
  }

  #preorder input,
  #preorder select {
    padding: 10px;
    font-size: 16px;
    border-radius: 6px;
    border: 1px solid #ccc;
  }

  #preorder button.preorder-button {
    background-color: #d68672;
    color: white;
    padding: 12px;
    font-size: 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }

  #preorder button.preorder-button:hover {
    background-color: #bf6a5c;
  }

  #preorder h2 {
    text-align: center;
    margin-bottom: 20px;
  }

