/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Header styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: block;
    text-decoration: none;
}

.logo img {
    width: 200px;
    height: auto;
    vertical-align: middle;
}

.nav {
    display: flex;
    align-items: center;
}

.nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 4rem;
}

/* 選單基礎樣式 */
.nav a {
    color: #333;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
    position: relative;
    letter-spacing: 0.1rem;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #0066cc;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.nav a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav a:hover {
    color: #0066cc;
}

.nav a.active {
    color: #0066cc;
}

.nav a.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* 報名按鈕樣式 */
.nav .signup-btn {
    background-color: #0066cc;
    color: white;
    padding: 0.6rem 1.8rem;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    /* 添加透明邊框 */
}

.nav .signup-btn:hover {
    background-color: #fff;
    transform: translateY(-2px);
    border: 2px solid #0066cc;
    color: #0066cc;
}

.nav .signup-btn:active {
    transform: translateY(0) scale(0.95);
}

.nav .signup-btn::after {
    display: none;
}

/* Hamburger menu */
.hamburger {
    display: none;
    background: none;
    border: none;
    width: 30px;
    height: 24px;
    position: relative;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #333;
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}

.hamburger span:nth-child(1) {
    top: 0;
}

.hamburger span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger span:nth-child(3) {
    bottom: 0;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

/* Main content styles */
main {
    margin-top: 80px;
}

/* Hero section */
.hero {
    position: relative;
    width: 100%;
    height: 760px;
    overflow: hidden;
    padding: 0;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-image {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;

}


/* 新规则：按照视窗方向显示视频而不是设备类型 */
.desktop-video,
.mobile-video,
.desktop-image,
.mobile-image {
    display: none;
}

/* 横屏时显示桌面版视频和图片 */
@media (orientation: landscape) {
    .desktop-video {
        display: block;
    }
    
    .desktop-image {
        display: block;
    }
    
    .mobile-video,
    .mobile-image {
        display: none;
    }
  
}

/* 竖屏时显示移动版视频和图片 */
@media (orientation: portrait) {
    .desktop-video,
    .desktop-image {
        display: none;
    }
    
    .mobile-video {
        display: block;
    }
    
    .mobile-image {
        display: block;
    }
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
    width: 100%;
    padding: 0 1rem;
}

.hero-content h2 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Add overlay to hero image */
.hero-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

/* Service section */
.service {
    padding: 4rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.service-description {
    text-align: center;
    max-width: 800px;
    margin: 2rem auto 6rem;
    font-size: 1.25rem;
    line-height: 1.8;
    color: #666;
}

.service-description_pre {
    text-align: center;
    max-width: 800px;
    margin: 2rem auto 6rem;
    font-size: 1.25rem;
    line-height: 1.8;
    color: #666;
}
.service-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.step {
   
    padding: 1rem;
    transition: transform 0.3s ease;
}

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

.step img {
    width: 100%;
    max-width: 130px;
    height: auto;
    margin-bottom: 1rem;
    /* border-radius: 50%; */
    transition: transform 0.3s ease;
}

.step:hover img {
    transform: scale(1.2);
}

.step h3 {
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.5rem;
}

.step-description {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.4;
    margin: 0 auto;
    max-width: 90%;
}

/* Promotion section */
.promotion {
    background-color: #0066cc;
    color: white;
    padding: 3rem 1rem;
    text-align: center;
}

.promotion-content {
    max-width: 800px;
    margin: 0 auto;
}

.promotion-content .note {
    font-size: 1.1rem;
}

.highlight {
    font-size: 2rem;
    font-weight: bold;
    margin: 1rem 0;
}

/* Strengths section */
.strengths {
    padding: 6rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.strengths h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.strength-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

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

.strength-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1rem;
}

/* Footer Style 1 - 垂直排列 */
.footer {
    background-color: #333;
    color: white;
    padding: 4rem 1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 3rem;
}

.footer-logo {
    width: 280px;
    margin-top: 1rem;
}

.footer-logo img {
    width: 200px;
    height: auto;
}

/* .footer-sponsors h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: normal;
} */

.sponsors-list {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.sponsor-item img {
    max-width: 180px;
    height: auto;
    transition: opacity 0.3s ease;
}

.sponsor-item:hover img {
    opacity: 0.8;
}

.copyright {
    font-size: 0.9rem;
    opacity: 0.8;
    width: 100%;
    text-align: center;
    /* padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1); */
}

/* Footer Style 2 - 水平排列 */
.footer-horizontal {
    background-color: #333;
    color: rgb(213, 213, 213);
    padding: 3rem 2rem 4rem;
}

.footer-horizontal .footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
}

.footer-horizontal .footer-left {
    width: 100%;
    text-align: center;
}

.footer-horizontal .footer-left img {
    width: 200px;
    height: auto;
    margin: 0 auto;
    display: block;
}

.footer-horizontal .copyright {
    font-size: 0.9rem;
    opacity: 0.8;
    text-align: center;
    width: 100%;

    /* padding-top: 2rem; */
    /* border-top: 1px solid rgba(255, 255, 255, 0.1); */
}

/* Video section */
.video-section {
    padding: 4rem 1rem;
    background-color: #f8f9fa;
}

.video-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.video-container h2 {
    margin-bottom: 2rem;
    font-size: 2.2rem;
    color: #333;
}

.video-wrapper {
    position: relative;
    width: 100%;
    background-color: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
}

.video-wrapper video {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    background-color: #000;
}

.video-description {
    max-width: 800px;
    margin: 0 auto;
    color: #666;
    line-height: 1.8;
}

/* News section */
.news-section {
    padding: 4rem 1rem;
    background-color: #fff;
}

.news-container {
    max-width: 1200px;
    margin: 0 auto;
}

.news-container h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.2rem;
    color: #333;
}

.news-list {
    margin-bottom: 3rem;
    border-top: 1px solid #eee;
}

.news-item {
    display: flex;
    flex-direction: column;
    padding: 2rem 1.5rem;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease;
    position: relative;
}

.news-item:hover {
    /* background-color: #f8f9fa; */
}

.news-date {
    min-width: 120px;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 0rem 0;
}

.news-date i {
    color: #666;
    font-size: 1rem;
}

.news-date time {
    font-size: 1rem;
    color: #5c5c5c;
    font-weight: normal;
}

.news-content {
    flex-grow: 1;
    position: relative;
    padding: 0;
}

.news-content h3 {
    font-size: 1.5rem;
    margin: 0;
    line-height: 1.5;
    text-align: left;
    max-width: calc(100% - 80px);
    position: relative;
    padding-left: 0rem;
    margin-bottom: 0.5rem;
}

.news-preview {
    color: #666;
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: calc(100% - 100px);
}

.news-content h3::before {
    /* content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1.5rem;
    height: 1.5rem;
    background-color: #0066cc; */
}

.news-content h3 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    /* 預設單行 */
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: normal;
    /* 移除 nowrap */
    /* padding-left: 0.5rem; */
}

.news-content h3 a:hover {
    color: #0066cc;
}

.news-more-link {
    position: absolute;
    bottom: 0.5rem;
    right: 0;
    transform: none;
    display: inline-flex;
    align-items: center;
    font-size: 1rem;
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    background-color: #fff;
    padding-left: 10px;
}

.more-icon {
    display: none;
}

.news-more-link .arrow {
    width: 8px;
    height: 8px;
    border-right: 2px solid #0066cc;
    border-bottom: 2px solid #0066cc;
    transform: rotate(-45deg);
    transition: transform 0.3s ease, margin-left 0.3s ease;
    margin-left: 3px;
    margin-top: 3px;
}

.news-more-link:hover .arrow {
    margin-left: 8px;
}

.news-more-link::after {
    display: none;
}

.news-more {
    text-align: center;
    margin-top: 4rem;
}

.btn-more {
    display: inline-block;
    padding: 1rem 5rem;
    background-color: #0066cc;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    transition: background-color 0.3s ease;
    font-size: 1.1rem;
    letter-spacing: 0.1rem;
}

.btn-more:hover {
    background-color: #0052a3;
}



.sponsor-section {
    padding: 4rem 1rem 2rem 1rem;
    text-align: center;
    background: #fff;
}
.sponsor-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #333;
}
.sponsor-section img {
    max-width: 1000px;
    width: 100%;
    height: auto;
    margin: 0 auto;
    display: block;
}

@media (max-width: 600px) {
    .sponsor-section {
        padding: 2rem 0.5rem 1rem 0.5rem;
    }
    .sponsor-section img {
        max-width: 100%;
    }
}


/* Notice section styles */
.notice-section {
    padding: 6rem 1rem;
    background-color: #fff;
}

.notice-container {
    max-width: 1200px;
    margin: 0 auto;
}

.notice-container h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.2rem;
    color: #333;
}

.notice-toggle-container {
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    overflow: hidden;
    border: none;

    /* 確保沒有邊框 */
}

.notice-toggle {
    width: 100%;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #eaeaea;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    font-size: 1.2rem;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    /* 移除邊框 */
    outline: none;
    /* 移除輪廓線 */
    letter-spacing: 0.1rem;
}

.notice-toggle:hover {
    color: #fff;
    background-color: #0066cc;
}

.notice-toggle:hover .arrow {
    color: #fff;

}

.notice-toggle.active {
    border-radius: 8px 8px 0 0;
    color: #fff;
    background-color: #0066cc;
}

.arrow {
    width: 12px;
    height: 12px;
    border-right: 2px solid #666;
    border-bottom: 2px solid #666;
    transform: rotate(45deg);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    margin-left: 10px;
}

.notice-toggle:hover .arrow {
    color: #fff;
    border-right: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
    transform: rotate(45deg);

}


.notice-toggle.active .arrow {
    transform: rotate(-135deg);
    border-right: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
}

.notice-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.215, 0.61, 0.355, 1);
    background-color: #fff;
    border-radius: 0 0 8px 8px;
    margin-top: 0;
    opacity: 0;
}

.notice-content.active {
    max-height: 3000px;
    padding: 4rem 3rem;
    opacity: 1;
    transition: max-height 0.6s cubic-bezier(0.215, 0.61, 0.355, 1),
        opacity 0.5s ease 0.1s;
}

.notice-list {
    list-style-position: outside;
    padding-left: 1.5rem;
}

.notice-list li {
    margin-bottom: 1.5rem;
    color: #666;
    line-height: 1.8;
    /* text-align: justify; */
    transform: translateY(10px);
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.notice-content.active .notice-list li {
    transform: translateY(0);
    opacity: 1;
}

.notice-content.active .notice-list li:nth-child(1) {
    transition-delay: 0.1s;
}

.notice-content.active .notice-list li:nth-child(2) {
    transition-delay: 0.15s;
}

.notice-content.active .notice-list li:nth-child(3) {
    transition-delay: 0.2s;
}

.notice-content.active .notice-list li:nth-child(4) {
    transition-delay: 0.25s;
}

.notice-content.active .notice-list li:nth-child(5) {
    transition-delay: 0.3s;
}

.notice-content.active .notice-list li:nth-child(6) {
    transition-delay: 0.35s;
}

.notice-content.active .notice-list li:nth-child(7) {
    transition-delay: 0.4s;
}

.notice-content.active .notice-list li:nth-child(8) {
    transition-delay: 0.45s;
}

.notice-list li:last-child {
    margin-bottom: 0;
}

/* Responsive design */
@media (max-width: 1280px) {

    .news-container,
    .service,
    .strengths,
    .video-container {
        max-width: 960px;
    }

    .news-card {
        flex-direction: column;
        height: auto;
    }

    .news-image {
        width: 100%;
        height: 180px;
    }

    .news-content {
        padding: 1rem 0 1.5rem 0;
    }

    .news-content h3 {
        font-size: 1.5rem;
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 1000px) {
    .hamburger {
        display: block;
    }

    .header-container {
        padding: 0.75rem 2rem;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: #fff;
        padding-top: 80px;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex;
        flex-direction: column;
    }

    .nav.active {
        right: 0;
    }

    .nav ul {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        width: 75%;
        padding: 5rem 0;
    }

    .nav li {
        width: 60%;
        text-align: center;
    }

    .nav a {
        display: block;
        padding: 1rem;
        font-size: 1.2rem;
        width: 100%;
        text-align: center;
        position: relative;
    }

    /* 恢復 PC 版的 hover 效果 */
    .nav a::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 2px;
        background-color: #0066cc;
        transform: scaleX(0);
        transform-origin: right;
        transition: transform 0.3s ease;
        display: block;
    }

    .nav a:hover {
        color: #0066cc;
        background-color: transparent;
        transform: none;
    }

    .nav a:hover::after {
        transform: scaleX(1);
        transform-origin: left;
    }

    /* 報名按鈕保持原有樣式 */
    .nav .signup-btn {
        width: 80%;
        margin: 1rem auto;
        padding: 1rem 2rem;
        text-align: center;
    }

    .nav .signup-btn::after {
        display: none;
    }

    .nav .signup-btn:hover {
        background-color: #fff;
        transform: translateY(-2px);
        border: 2px solid #0066cc;
        color: #0066cc;
    }

    .logo {
        position: relative;
        z-index: 1002;
    }

    .mobile-menu-logo {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero {
        height: auto;
        padding-top: calc(1160 / 750 * 100%);
    }

    .hero-video,
    .hero-image {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }


    .header-container {
        padding: 0.75rem 1.5rem;
    }

    .nav ul {
        gap: 2rem;
    }

    .nav a {
        font-size: 1.15rem;
    }

    .mobile-menu-logo {
        display: block;
        text-align: center;
        padding: 2rem;
        margin-top: auto;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
    }

    .mobile-menu-logo img {
        width: 200px;
        height: auto;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .service-steps {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 0 auto;
    }

    .step {
        padding: 1.5rem;
    }

    .step-description {
        max-width: 100%;
    }

    .strength-grid {
        grid-template-columns: 1fr;
    }

    .video-container h2 {
        font-size: 2rem;
    }

    .video-section {
        padding: 3rem 1rem;
    }

    .news-item {
        padding: 1rem;
    }

    .news-date {
        margin-bottom: 0.3rem;
    }

    .news-content h3 {
        font-size: 1.2rem;
        max-width: calc(100% - 70px);
    }

    .news-content h3 a {
        -webkit-line-clamp: 1;
        /* 手機版顯示兩行 */
        line-height: 1.4;
        max-height: 2.8em;
        /* line-height * 2 lines */
    }

    .news-more-link {
        font-size: 1rem;
        padding-left: 8px;
    }

    .notice-container h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .notice-toggle {
        padding: 1rem;
        font-size: 1rem;
    }

    .notice-content.active {
        padding: 1.25rem;
    }

    .notice-list {
        padding-left: 1.25rem;
    }

    .notice-list li {
        font-size: 1rem;
    }

    .nav a::after {
        display: block;
    }

    .nav li:nth-child(2) a {
        background: none;
    }

    .nav li:nth-child(4) a:hover {
        transform: none;
    }

    .nav a:hover {
        color: #0066cc;
    }

    .gotop {
        bottom: 2rem;
        right: 1rem;
        width: 60px;
        height: 60px;
    }

    .gotop::before {
        width: 10px;
        height: 10px;
    }

    .nav .signup-btn {
        margin-top: 1rem;
        display: inline-block;
        text-align: center;
        padding: 0.8rem 2rem;
        background-color: #0066cc;
        color: white;
    }

    .nav .signup-btn:hover {
        background-color: #fff;
        transform: translateY(-2px);
        border: 2px solid #0066cc;
        color: #0066cc;
    }

    .nav .signup-btn::after {
        display: none;
    }

    .btn-signup {
        padding: 1rem 5rem;
        font-size: 1rem;
        letter-spacing: 0.2rem;
    }

    .service-video {
        margin: 1.5rem auto;
        max-width: 100%;
    }

    .footer-horizontal .footer-content {
        gap: 1rem;
    }

    .footer-horizontal .footer-left img {
        max-width: 220px;
    }

    .footer-horizontal .copyright {

        /* padding-top: 1.5rem; */
    }

    .rules-list li h3::before {
        top: 0.8rem;
    }

    .skyblue-ripple {
        border-radius: 0;
    }

    .service-description {
        font-size: 1.15rem;
    }
   .service-description_pre {
        font-size: 1.15rem;
    }
    .news-preview {
        font-size: 0.95rem;
        max-width: calc(100% - 70px);
    }

    .video-wrapper {
        margin: 2rem auto !important;
    }

    .video-wrapper video {
        border-radius: 8px;
    }
}

@media (max-width: 480px) {
    h2 {
        font-size: 2rem;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .highlight {
        font-size: 1.5rem;
    }

    .footer-content {
        gap: 1.5rem;
    }

    .footer-logo img {
        max-width: 200px;
        width: 100%;
    }


    .sponsors-list {
        gap: 1.5rem;
    }

    .sponsor-item img {
        max-width: 130px;
    }

    .copyright {
        font-size: 0.85rem;
        padding-top: 1.5rem;
    }

    .video-container h2 {
        font-size: 2rem;
    }

    .video-section {
        padding: 2rem 1rem;
    }

    .news-date time {
        font-size: 0.85rem;
    }

    .news-content h3 {
        font-size: 1.3rem;
    }

    .btn-more {
        padding: 1rem 5rem;
        font-size: 1rem;
    }

    .notice-container h2 {
        font-size: 2rem;
    }

    .notice-toggle {
        padding: 0.875rem;
        font-size: 0.95rem;
    }

    .notice-content.active {
        padding: 2rem;
    }

    .notice-list {
        padding-left: 1rem;
    }

    .notice-list li {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .news-more-link {
        font-size: 1rem;
    }

    .gotop {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
    }

    .gotop::before {
        width: 10px;
        height: 10px;
    }

    .btn-signup {
        padding: 1rem 4rem;
        font-size: 1.2rem;
    }

    .service-video {
        margin: 1rem auto;
        max-width: 100%;
    }

    .rules-list li h3::before {
        top: 0.8rem;
    }

    .skyblue-ripple {
        border-radius: 0;
    }

    .news-content p,
    .news-content ul,
    .news-content li {
        font-size: 1rem;
    }
}

/* 回到頂部按鈕 */
.gotop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background-color: #0066cc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.gotop.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.gotop::before {
    content: '';
    width: 12px;
    height: 12px;
    border-top: 2px solid #fff;
    border-left: 2px solid #fff;
    transform: rotate(45deg) translate(2px, 2px);
}

.gotop:hover {
    background-color: #0052a3;
    transform: translateY(-2px);
}

/* 立即報名按鈕樣式 */
.nav .signup-btn {
    background-color: #0066cc;
    color: white;
    padding: 0.6rem 1.8rem;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    /* 添加透明邊框 */
}

.nav .signup-btn:hover {
    background-color: #fff;
    transform: translateY(-2px);
    border: 2px solid #0066cc;
    color: #0066cc;
}

.nav .signup-btn:active {
    transform: translateY(0) scale(0.95);
}

.nav .signup-btn::after {
    display: none;
}

/* 首頁立即報名按鈕 */
.signup-action {
    text-align: center;
    margin: 1.6rem auto 2rem;
}

.btn-signup {
    display: inline-block;
    padding: 1.25rem 5rem;
    background-color: #FF6B00;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.2rem;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
    position: relative;
    overflow: hidden;
    animation: buttonPulse 3s ease-in-out infinite;
    letter-spacing: 0.2rem;
}

/* 優化按鈕呼吸效果 */
@keyframes buttonPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
    }

    50% {
        transform: scale(1.03);
        box-shadow: 0 8px 25px rgba(255, 107, 0, 0.5);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
    }
}

/* 優化按鈕光暈效果 */
.btn-signup::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent,
            rgba(255, 255, 255, 0.2),
            transparent);
    transform: rotate(45deg);
    animation: shineEffect 4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes shineEffect {
    0% {
        left: -50%;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        left: 100%;
        opacity: 0;
    }
}

.btn-signup:hover {
    background-color: #FF5500;
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 25px rgba(255, 107, 0, 0.5);
}

/* 服務區塊中的影片 */
.service-video {
    max-width: 1000px;
    width: 100%;
    margin: 2rem auto;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    overflow: hidden;
}

/* 全局H2標籤樣式 */
h2 {
    font-size: 2rem;
    letter-spacing: 0.1rem;
}

/* News detail page styles */
.news-detail {
    max-width: 900px;
    margin: 3rem auto;
    padding: 0 1rem;
}

.news-detail-header {
    margin-bottom: 2rem;
}

.news-detail-header .news-date {
    margin-bottom: 1rem;
}

.news-detail-header h1 {
    font-size: 2rem;
    line-height: 1.3;
    color: #333;
}

.other-news {
    padding: 3rem 1rem;
    background-color: #f8f9fa;
}

.other-news h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.other-news .news-list {
    max-width: 800px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .news-detail-header h1 {
        font-size: 1.75rem;
    }

    .other-news {
        padding: 2rem 1rem;
    }
}

@media (max-width: 480px) {
    .news-detail-header h1 {
        font-size: 1.5rem;
    }

    .news-detail {
        margin: 2rem auto;
    }
}

/* 天藍色彩虹波紋效果 */
.skyblue-ripple {
    position: fixed;
    width: 0;
    height: 0;
    background-color: rgba(135, 206, 250, 0.8);
    /* 更亮的淺藍色 */
    pointer-events: none;
    border-radius: 0;
    z-index: 9999;
    transform: translate(-50%, -50%);
}

.skyblue-ripple::before,
.skyblue-ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    transform: translate(-50%, -50%);
}

.skyblue-ripple::before {
    background-color: rgba(30, 144, 255, 0.8);
    /* 更亮的藍色 */
}

.skyblue-ripple::after {
    background-color: rgba(0, 102, 255, 0.3);
    /* 更亮的深藍色 */
}

.skyblue-ripple {
    animation: ripple-1 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.skyblue-ripple::before {
    animation: ripple-2 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.1s forwards;
}

.skyblue-ripple::after {
    animation: ripple-3 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.1s forwards;
}

@keyframes ripple-1 {
    0% {
        width: 0;
        height: 0;
        opacity: 0.8;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        width: 30px;
        height: 30px;
        opacity: 0;
    }
}

@keyframes ripple-2 {
    0% {
        width: 0;
        height: 0;
        opacity: 0.5;
    }

    50% {
        opacity: 0.3;
    }

    100% {
        width: 70px;
        height: 70px;
        opacity: 0;
    }
}

@keyframes ripple-3 {
    0% {
        width: 0;
        height: 0;
        opacity: 0.5;
    }

    50% {
        opacity: 0.3;
    }

    100% {
        width: 90px;
        height: 90px;
        opacity: 0;
    }
}

/* 確保在所有尺寸下保持方形效果 */
@media (max-width: 768px) {

    .skyblue-ripple,
    .skyblue-ripple::before,
    .skyblue-ripple::after {
        border-radius: 0;
    }
}

.info-container {
    max-width: 1200px;
    margin: -40px auto 0;
    padding: 0 1rem;
    position: relative;
    z-index: 2;
}


.rules-list {
    counter-reset: rule-counter;
    /* 初始化計數器 */
    list-style: none;
    padding-left: 0;
}

.rules-list li {
    margin-bottom: 1.5rem;
    counter-increment: rule-counter;
    /* 增加計數器 */
}

.rules-list li p {
    position: relative;
    padding-left: 2rem;
    /* 為編號留出空間 */
    color: #666;
    line-height: 1.6;
}

.rules-list li p::before {
    content: counter(rule-counter) ".";
    /* 添加點號 */
    position: absolute;
    left: 0;
    top: 0;
    width: 1.5rem;
    text-align: left;
    /* 改為左對齊 */
    color: #0066cc;
    font-weight: 500;
}

.mobile-menu-logo {
    display: none;
}

@media screen and (max-width: 1000px) {
    .mobile-menu-logo {
        display: block;
    }

    .logo img {
        width: 185px;
        height: auto;
        vertical-align: middle;
    }

}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.news-card {
    position: relative;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    text-decoration: none;
    color: inherit;
    will-change: transform;
}

.news-card:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.news-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.news-card:hover img {
    transform: scale(1.2);
}

.news-card-content {
    padding: 1.5rem;
}

.news-card-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    color: #333;
}

.news-card-date {
    font-size: 0.9rem;
    color: #666;
}

@media (max-width: 1280px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto 2rem;
    }
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: #fff;

}

.schedule-table th {
    background: #333;
    color: #fff;
    padding: 1rem;
    text-align: center;
    font-weight: normal;
    font-size: 1.1rem;
}

.schedule-table td {
    padding: 1rem;
    border: 1px solid #eee;
    text-align: center;
    vertical-align: middle;
    line-height: 1.4;
}

.schedule-table tr:nth-child(even) {
    background-color: #f8f9fa;
}

.schedule-table .date-cell {
    font-weight: 500;
    color: #333;
    width: 25%;
    text-align: center;
}

.schedule-table .time-cell {
    width: 20%;
    color: #333;
    font-weight: 500;
    text-align: center;
}

.schedule-table .event-cell {
    text-align: left;
    color: #666;
}

@media (max-width: 768px) {
    .schedule-table {
        margin: 1.5rem 0;
    }

    .schedule-table th {
        font-size: 1rem;
        padding: 0.8rem;
    }

    .schedule-table td {
        padding: 0.8rem;
        font-size: 0.95rem;
    }

    .schedule-table .date-cell {
        width: 30%;
    }

    .schedule-table .time-cell {
        width: 25%;
    }
}

@media (max-width: 480px) {
    .schedule-table th {
        padding: 0.6rem;
        font-size: 0.9rem;
    }

    .schedule-table td {
        padding: 0.6rem;
        font-size: 0.9rem;
    }
}

.location-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.location-content h2 i {
    font-size: 5rem;
    color: #ffffff;
}

.location-content h3 {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.location-content .news-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 2rem;
    color: #bdbdbd;
}

.location-content .news-date i {
    font-size: 1.2rem;
    color: #c6c6c6;
}

@media screen and (max-width: 768px) {
    .location-content h2 {
        font-size: 2rem;
    }

    .location-content h2 i {
        font-size: 1.6rem;
    }

    .location-content h3 {
        font-size: 1.5rem;
    }

    .location-content .news-date {
        font-size: 1.1rem;
    }

    .location-content .news-date i {
        font-size: 1.1rem;
    }
}

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

.reward-item-inner {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    display: inline-block;
    /* 確保內容可以正確縮放 */
}

.reward-item:hover .reward-item-inner {
    transform: scale(1.2);
}

.reward-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.faq-item h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.faq-item h3::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    background-image: url('../images/v.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.orientation-warning {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 102, 204, 0.98); /* 蓝色半透明 */
    color: white;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 1.5rem;
    padding: 1rem;
}

.warning-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.warning-content i {
    font-size: 2rem;
    margin-bottom: 1rem;
    animation: icon-bounce 1s infinite;
}

@keyframes icon-bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}