/* Basic Reset and Variables */
:root {
    --primary-color: #007bff; /* A standard blue for links/buttons */
    --secondary-color: #267cc1; /* A darker blue for accents */
    --third-color: #f3a740;
    --accent-color: #FFC300; /* Yellow/Gold for highlights */
    --text-color: #333;
    --bg-light: #f4f4f9;
    --font-sans: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --background: #0171bb;
    --extract-font-size: 1.2em;
    --title-font-size: 3em;
    --mobile-extract-font-size: 1.3em;
    --mobile-title-font-size: 2em;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background);
}

/* Headings */
h1, h2, h3 {
    line-height: 1.2;
    margin-bottom: 0.5em;
    font-weight: 700;
}

h2 {
    font-size: var(--title-font-size);
    padding-bottom: 0.2em;
    text-align: center;
}

h2 span.secondary-color {
    color: var(--secondary-color);
}

h2 span.third-color {
    color: var(--third-color);
}

.text-center {
    text-align: center;
}

.w-25 {
    width: 25%;
}

.w-50 {
    width: 50%;
}

.p-5 {
    padding: 5px;
}

.extract {
    font-size: var(--extract-font-size);
}

.wordcount {
    margin-top: -17px;
    margin-bottom: 8px;
    text-align: right;
    color: #ffffff;
}

.over-limit {
    color: #f97e7e!important;
    font-weight: bold;
}

/* --- Effects --- */
.slide-in {
    animation-duration: 600ms;
    animation-timing-function: cubic-bezier(.2,.9,.2,1);
    animation-fill-mode: both;
    opacity: 0;
    /*will-change: transform, opacity;*/
}

/* 方向變體 */
.slide-in-left.in-view  { animation-name: slideInLeft;  transform: translateX(-100px); }
.slide-in-right.in-view { animation-name: slideInRight; transform: translateX(100px);  }
.slide-in-up.in-view    { animation-name: slideInUp;    transform: translateY(100px);  }
.slide-in-down.in-view  { animation-name: slideInDown;  transform: translateY(-100px); }

.fade-in {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 420ms cubic-bezier(.2,.9,.2,1), transform 420ms cubic-bezier(.2,.9,.2,1);
    will-change: opacity, transform;
}
.fade-in.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* 可調整的時間/延遲工具類 */
.slow  { animation-duration: 900ms; }
.fast  { animation-duration: 350ms; }
.fade-fast { transition-duration: 250ms; animation-duration: 250ms; }
.fade-slow { transition-duration: 900ms; animation-duration: 900ms; }
.delay-1 { animation-delay: 150ms; }
.delay-2 { animation-delay: 300ms; }
.delay-3 { animation-delay: 450ms; }

/* 隱藏狀態 -> 動畫結束呈現 */
@keyframes slideInLeft {
    from { transform: translateX(-100px); opacity: 0; }
    to   { transform: translateX(0);    opacity: 1; }
}
@keyframes slideInRight {
    from { transform: translateX(100px); opacity: 0; }
    to   { transform: translateX(0);   opacity: 1; }
}
@keyframes slideInUp {
    from { transform: translateY(100px); opacity: 0; }
    to   { transform: translateY(0);   opacity: 1; }
}
@keyframes slideInDown {
    from { transform: translateY(-100px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}



/* --- Layout and Structure --- */
header {
    /*max-width: 1200px;*/
    margin: 0 auto;
    padding: 0 2em;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    /*padding: 20px;*/
    /*padding-bottom: 0px;*/
}

.section {
    padding: 40px 0;
}

/* --- Hero Banner (Image Area) --- */
.hero-banner {
    background-color: var(--background);
    /* In a real scenario, this would be a background image */
    background-size: cover;
    background-position: center;
    /*color: white;*/
    /*padding: 150px 20px 40px;*/
    text-align: left;
    position: relative;
    /*clip-path: polygon(0 0, 100% 0, 100% 90%, 0% 100%); !* Slight wave/shape at the bottom *!*/
}

.header-content {
    width: 100%;
    margin: 0 auto;
}

.date-tag {
    background-color: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 5px;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 10px;
}

.event-title {
    font-size: var(--title-font-size);
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 10px 20px;
    margin: 10px 0;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s ease;
}

.primary-btn {
    background-color: var(--secondary-color);
    color: white;
    border: 2px solid var(--secondary-color);
}

.primary-btn:hover {
    background-color: #550794;
}

.secondary-btn {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.secondary-btn:hover {
    background-color: var(--secondary-color);
    color: white;
}

.large-btn {
    font-size: 1.2em;
    padding: 15px 30px;
}

/* --- Solo Travel Section --- */
.solo-travel-intro {
    display: flex;
    padding-bottom: 0;
}

.solo-travel-intro .subtitle {
    color: #ffffff;
    font-size: var(--title-font-size);
    text-align: left;
    font-weight: 700;
}

.solo-travel-intro .description {
    color: #ffffff;
}

.solo-travel-themes {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.solo-routes {
    display: flex;
    background: #f9f7f0;
    padding-bottom: 0;
}

.solo-routes-section-title {
    padding-bottom: 0!important;
}

.section.solo-routes-example {
    display: flex;
    background: #f7f5ee;
    padding: 0 30px 30px 30px;
}

.theme-card {
    flex: 1 1 30%;
    padding: 0px 0px 0px 30px;
    border-radius: 8px;
    min-width: 250px;
}

.theme-card h3 {
    color: var(--primary-color);
    font-size: var(--extract-font-size);
}

.theme-card p {
    color: #ffffff;
    text-align: justify;
    font-size: var(--extract-font-size);
    padding-left: 5%;
    padding-right: 5%;
}

.theme-bottom {
    bottom: 0;
    display: flex;
}

/* --- Routes Section --- */
.route-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.route-highlights span {
    background-color: #e9ecef;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 500;
}

/* --- KOL Hashtags --- */
.kol-solo-travel {
    background-image: url('/storage/event2025/kol-solo-travel.png');
    background-size: contain;
    background-position: center;
    background-attachment: fixed;
}

.kol-solo-travel p {
    padding-left: 3%;
    padding-right: 3%;
}

.kol-hashtags {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 0 0;
    padding: 30px;
    text-align: center;
    align-items: stretch;
}

.hashtag-container {
    flex: 1 1 0;
}

.hashtag {
    background-color: #ffffff;
    color: #000000;
    padding: 10px 20px;
    border-radius: 12px;
    border: 1px solid #000000;
    font-weight: bold;
    letter-spacing: 1px;
    box-shadow: 5px 5px 1px 1px #cdcdcd;
}

.temp-reels {
    /*width: 80%;*/
    /*aspect-ratio: 9 / 16;*/
    /*background-color: #7c7c7c;*/
    margin: 40px auto 40px auto;
}

.temp-reels p {
    padding-top: 75%;
    color: #ffffff;
    font-size: 36px;
}

/* --- Events List --- */
.macau-events-title {
    display: flex;
    align-items: end;
    justify-content: center;
}

.macau-events {
    padding-bottom: 0;
}

.events-list-section {
    padding-top: 0;
}

.macau-events,
.events-list-section {
    background: #f9f7f0;
}

.event-card-text {
    width: 75%;
    display: inline-block;
    padding-left: 15px;
}

.event-card-btn {
    width: 20%;
    display: inline-block;
    margin-top: 15px;
    vertical-align: top;
    text-align: center;
}

.event-card-btn-link {
    padding: 10px;
    /* margin: auto; */
    /* aspect-ratio: 1 / 1; */
    margin-top: 0;
    background-color: #0086ef;
    border-radius: 50%;
    text-decoration: none;
     color: #000000;
    /* vertical-align: top; */
}


.events-list {
    display: flex;
    /*grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));*/
    gap: 30px;
    /*margin-top: 30px;*/
    flex-wrap: wrap;
    justify-content: center;
}

.event-card {
    padding: 20px;
    flex: 0 0 calc(33.3333% - 30px);
}

.event-card h3 {
    color: var(--primary-color);
    font-size: var(--extract-font-size);
}

.event-card .date-range {
    display: block;
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.event-bottom {
    background-image: url('/storage/event2025/event-bottom-v1.png');
    background-size: contain;
    background-repeat: repeat-x;
    height: 100px;
}

/* --- Alipay Promo --- */
.alipay-promo {
    background-image: url('/storage/event2025/alipay-promo.jpg');
    background-size: contain;
    background-position: center;
    background-attachment: fixed;
}

.alipay-promo-title {
    color: #ffffff;
}

.alipay-subtitle {
    color: #ffffff;
    font-size: var(--extract-font-size);
    text-align: center;
}

.alipay-subtitle a {
    color: #ffffff!important;
}

.promo-box {
    padding: 50px;
    padding-top: 30px;
    text-align: center;
}

.steps-container {
    display: flex;
    justify-content: space-around;
    gap: 80px;
    margin-bottom: 20px;
}

.step {
    flex: 1;
    text-align: center;
}

.step p {
    color: #ffffff;
    font-size: var(--extract-font-size);
    padding-top: 5px;
    padding-bottom: 5px;
    min-height: 80px;
}

.step img {
    box-shadow: 3px 6px 5px 2px #313131;
}

.step-number {
    display: block;
    font-size: 2em;
    color: var(--third-color);
    font-weight: bold;
    margin-bottom: 0 !important;
}

/* --- Contest Form --- */
.contest-form {
    background-image: url('/storage/event2025/contest-form-v2.png');
    background-color: #1c70b2;
    background-size: contain;
    /*background-position: center;*/
    /*background-attachment: fixed;*/
    padding: 0;
    padding-top: 30px;
}

.prize-container {
    overflow: hidden;
}

.prizes-list {
    background-color: #fff;
    border: 1px solid #eee;
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
}

.prizes-list h3 {
    color: var(--secondary-color);
    font-size: 1.1em;
    border-bottom: none;
}

.prize-badge {
    position: absolute;
    top: -160px;
    right: -10px;
    width: 60px;
    z-index: 99;
}

.prize-badge img {
    width: 100%;
    box-shadow: none!important;
}

.contest-title {
    color: #ffffff;
    font-size: var(--title-font-size);
    text-align: center;
    margin-bottom: 10px;
}

.contest-subtitle {
    color: var(--third-color);
    font-size: var(--extract-font-size);
    text-align: center;
    margin-bottom: 30px;
}

.contest-form-container {
    display: flex;
    gap: 30px;
}

.contest-bottom {
    background-image: url('/storage/event2025/contest-bottom-v1.png');
    background-size: cover;
    background-repeat: repeat-x;
    height: 100px;
}

.solo-route-form input,
.solo-route-form textarea
{
    background-color: var(--accent-color);
}


element.style {
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
user agent stylesheet
p {
    display: block;
    margin-block-start: 1em;
    margin-block-end: 1em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    unicode-bidi: isolate;
}
.contest-info {
    color: var(--background);
    text-align: center;
    margin-top: 15px;
    padding: 20px;
    background-color: #cdcdcd;
    box-shadow: -1px 15px 10px -10px #313131;
    border-radius: 15px;
    margin-bottom: 20px;
    font-size: var(--extract-font-size);
}

.contest-form-section {
    padding-top: 0;
}

.contest-note {
    text-align: center;
}

.solo-route-form {
    display: grid;
    gap: 15px;
    /*background-color: var(--bg-light);*/
    padding: 25px;
    /*border-radius: 8px;*/
    font-size: larger;
}

.solo-route-form label {
    font-weight: bold;
    margin-top: 5px;
    display: block;
    text-align: center;
    color: #ffffff;
}

.submit-container {
    display: flex;
    align-items: anchor-center;
}

.submit-btn {
    background: none;
    border: none;
    width: 200px;
}

.submit-btn img {
    width: 100%;
}

.solo-route-form label {
    font-size: 1.1em;
}

.solo-route-form input[type="text"],
.solo-route-form input[type="email"],
.solo-route-form textarea {
    width: 100%;
    padding: 10px;
    /*border: 1px solid #ccc;*/
    border-radius: 4px;
    font-family: inherit;
}

.form-disclaimer {
    font-size: 0.8em;
    color: #ffffff;
    text-align: left;
}

/* --- Footer --- */
.footer {
    background-color: #ffffff;
    color: #000000;
    padding: 30px 20px;
    text-align: center;
    /* margin-top: 40px; */
    /*max-width: 1200px;*/
}

.partners {
    margin-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.partners span {

}

.partnerImg {
    height: 100px
}

.subtitleLeft {
    width: 30%;
    background: #0086ef;
    padding: 3%;
}

.subtitleRight {
    width: 70%;
}

.solo-routes-left,
.solo-routes-right {
    width: 25%;
}

.solo-routes-left img,
.solo-routes-right img {
    padding: 20px;
}

.solo-routes-centre {
    width: 60%;
    text-align: center;
}

.solo-routes-btn {
    text-align: center;
    padding: 20px;
    margin: auto;
    width: 300px;
    max-width: 100%;
}

.prize-note {
    font-size: 0.8em;
    color: #ffffff;
    width: 100%;
    padding-bottom: 20px;
}

#submitMsg {
    display: none;
}

#submitMsg.Show {
    display: block;
}

.mobile {
    display: none;
}

.desktop {
    display: inline-block;
}

/* --- Rotate 3D Slider --- */
.sector-slider{ position:relative; width:100%; max-width:1200px; margin:0px auto; height:500px; display:flex; align-items:center; justify-content:center; gap:12px; margin-top: -50px; }
.sector-track{ position:relative; width:100%; height:100%; pointer-events:none; }

/* 每項目 */
.sector-item{ position:absolute; left:40%; top:15%; transform-origin:50% 50%; transition: transform .6s cubic-bezier(.2,.9,.2,1), opacity .4s, z-index .1s; pointer-events:auto; }
.sector-item img{ display:block; width:200px; height:372px; object-fit:contain; border-radius:10%; box-shadow:0 14px 30px rgba(0,0,0,.25); transition: filter .3s, transform .6s; }

/* 狀態：中心/側邊/遠端（視覺比例用 scale 控制） */
.sector-item.center{ z-index:30; opacity:1; }
.sector-item.center img{ box-shadow:0 24px 46px rgba(0,0,0,.4); transform: translateY(-6px) scale(1); }
.sector-item.side{ z-index:20; opacity:.95; }
.sector-item.side.left{ transform: translateX(-95%)  }
.sector-item.side.right{ transform: translateX(95%)  }
.sector-item.side img{ transform: translateY(0) scale(.9); filter:contrast(.95) saturate(.95); }
.sector-item.far{ z-index:10; opacity:.85; }
.sector-item.far.left{ transform: translateX(-180%)  }
.sector-item.far.right{ transform: translateX(180%)  }
.sector-item.far img{ transform: translateY(-8px) scale(.8); filter:grayscale(.06) opacity(.88); }

/* 按鈕 */
.sector-btn{ position:relative; z-index:60; background:transparent; border:none; font-size:40px; width:56px; height:56px; color:var(--accent-color); cursor:pointer; opacity:.95; }
/*.sector-btn:focus{ outline:2px solid rgba(0,0,0,.12); border-radius:6px; }*/

/* 小螢幕：只顯示 3 張（隱藏 far）並縮小整體高度 */
@media (max-width:768px){
    .sector-slider{ max-width:390px; height:380px; }
    .sector-track { left: -2%;}
    .sector-item.far{ display:none; }
    /* 保持圖片原始像素，但用 scale 在 render 中做縮放；若需要可用以下限制最大寬度 */
    .sector-item img{ max-width:70%; height:auto; }
    .sector-item{left:28%;}

    .sector-item.side.left{ transform: translateX(-60%)  }
    .sector-item.side.right{ transform: translateX(60%)  }
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    header {
        padding: 0;
    }

    h2 {
        font-size: var(--mobile-title-font-size)!important;
    }

    .subtitle {
        font-size: var(--mobile-title-font-size)!important;
    }

    .event-title {
        font-size: var(--mobile-title-font-size)!important;
    }

    .extract {
        font-size: var(--mobile-extract-font-size)!important;
    }

    .mobile {
        display: inline-block;
    }

    .desktop {
        display: none!important;
    }

    .contest-subtitle {
        font-size: var(--mobile-extract-font-size)!important;
    }

    .contest-info p {
        font-size: 1em!important;
    }

    .event-card-text p {
        font-size: var(--mobile-extract-font-size)!important;
    }

    .solo-travel-intro {
        padding-top: 0;
    }

    /*.hashtag-container {*/
    /*    border-top: 1px solid #343434;*/
    /*    padding-top: 80px;*/
    /*}*/

    .solo-travel-themes {
        flex-direction: column;
    }
    .steps-container {
        flex-direction: column;
    }
    .route-highlights {
        justify-content: center;
    }

    .subtitleLeft img{
        display: none;
    }

    .step p {
        min-height: 0;
    }

    p {
        font-size: 1.5em;
        text-align: center;
        padding-left: 5%;
        padding-right: 5%;
    }

    .w-40,
    .w-50,
    .w-60,
    .w-25 {
        width: 100%;
    }

    .theme-card p {
        display: none;
    }

    .solo-routes-centre {
        width: 100%;
    }

    .contest-note img {
        width: 100%!important;
    }

    .solo-routes-left,
    .solo-routes-right {
        display: none;
    }

    .solo-routes {
        margin-top: -7px;
    }

    .event-card {
        padding-bottom: 50px;
    }

    .event-card-text,
    .event-card-btn {
        width: 100%;
    }

    .form-disclaimer {
        text-align: center;
    }

    .contest-form-container,
    .submit-container,
    .events-list,
    .solo-routes-example,
    .solo-travel-intro {
        display: inline-block!important;
    }

    .kol-hashtags {
        display: block;
    }

    .hashtag {
        display: none;
    }

    .subtitleLeft,
    .subtitleRight {
        width: 100%;
    }

    .theme-card {
        padding: 3%;
    }

    .contest-info {
        margin-left: 5%;
        margin-right: 5%;
    }

    .partnerImg {
        height: 50px;
    }

    .solo-travel-intro .subtitle {
        text-align: center!important;
    }

    button.sector-btn.prev {
        left: 10px;
        color: #000000;
    }

    button.sector-btn.next {
        right: 10px;
        color: #000000;
    }
}
