/* Reset & Base Styles */

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

body {
    font-family: "Microsoft JhengHei", "微軟正黑體", "Heiti TC", "儷黑 Pro", sans-serif;
    background: #fff;
    min-height: 100vh;
    overflow-x: hidden;
}


/* Main Container */

.main-container {
    width: 100%;
    min-height: 100vh;
    position: relative;
    background: url('../images/top_bg.jpg') no-repeat center top;
    background-size: cover;
}


/* Header Styles */

.header {
    padding: 20px 40px;
    display: flex;
    align-items: center;
    gap: 40px;
}

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

.logo {
    width: 300px;
}

.logo img {
    width: 100%;
    height: auto;
}

.org-text {
    color: #000;
}

.org-name {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
}

.org-name-en {
    font-size: 16px;
    margin-bottom: 10px;
}

.org-sponsor {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.sponsor-logo {
    height: 20px;
    width: auto;
}

.page-title {
    width: 100%;
    text-align: center;
}

.title-image {
    max-width: 800px;
    width: 100%;
    height: auto;
    position: relative;
    top: 30px;
    left: -35px;
}


/* Navigation Menu */

.main-nav {
    position: fixed;
    right: 30px;
    top: 63%;
    transform: translateY(-50%);
    z-index: 100;
}

.main-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.main-nav .nav-item {
    display: block;
    width: 120px;
    transition: transform 0.3s ease;
}

.main-nav .nav-item:hover {
    transform: scale(1.1);
}

.main-nav .nav-item img {
    width: 100%;
    height: auto;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
}


/* Hero Section */

.hero-section {
    position: relative;
    height: calc(100vh - 250px);
    overflow: hidden;
}

.victory-silhouettes {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 300px;
    background: url('../images/inner_border_image.png') no-repeat center bottom;
    background-size: contain;
}


/* Content Area */

.content-area {
    position: relative;
    z-index: 1;
    margin-right: 100px;
}


/* Footer Styles */

.site-footer {
    background: #850303;
    color: #fff;
    /* margin-top: 50px; */
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    position: relative;
}

.footer-inner::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 20px;
    bottom: 20px;
    width: 2px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.6) 20%, rgba(255, 255, 255, 0.8) 50%, rgba(255, 255, 255, 0.6) 80%, rgba(255, 255, 255, 0.1) 100%);
    transform: translateX(-50%);
    border-radius: 1px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3), 0 0 20px rgba(255, 255, 255, 0.1);
    animation: dividerGlow 3s ease-in-out infinite;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.brand-row {
    display: flex;
    align-items: center;
    gap: 20px;
}

.brand-logo {
    width: 300px;
    height: auto;
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.brand-name {
    font-size: 24px;
    font-weight: bold;
    line-height: 1.2;
}

.brand-en {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.brand-org {
    font-size: 14px;
    opacity: 0.9;
}

.footer-divider {
    display: none;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
}

.icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.icon-location::before {
    content: "📍";
    font-size: 18px;
}

.icon-phone::before {
    content: "📞";
    font-size: 18px;
}

.icon-fax::before {
    content: "📠";
    font-size: 18px;
}

.icon-mail::before {
    content: "✉️";
    font-size: 18px;
}

.contact-text {
    flex: 1;
}

.spacer {
    width: 20px;
    flex-shrink: 0;
}

.footer-bottom {
    background: #550000;
    padding: 20px;
    text-align: center;
}

.footer-bottom-inner {
    max-width: 1200px;
    margin: 0 auto;
    font-size: 14px;
    opacity: 0.9;
}


/* Responsive Design */

@media (max-width: 768px) {
    .header {
        padding: 10px;
    }
    .logo-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .main-nav {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        margin-top: 20px;
    }
    .main-nav ul {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }
    .content-area {
        margin-right: 0;
    }
    /* Footer Responsive */
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 30px 20px;
    }
    .footer-inner::after {
        display: none;
    }
    .footer-divider {
        display: block;
        height: 1px;
        background: rgba(255, 255, 255, 0.3);
        margin: 20px 0;
    }
    .brand-row {
        justify-content: center;
        text-align: center;
    }
    .brand-text {
        align-items: center;
    }
    .contact-list li {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        gap: 10px;
    }
    .spacer {
        display: none;
    }
}

@media (max-width: 480px) {
    .footer-inner {
        padding: 20px 15px;
    }
    .brand-logo {
        width: 200px;
    }
    .brand-name {
        font-size: 20px;
    }
    .brand-en {
        font-size: 14px;
    }
    .contact-list {
        gap: 20px;
    }
    .contact-list li {
        gap: 5px;
    }
    .icon {
        width: 16px;
        height: 16px;
    }
    .icon-location::before,
    .icon-phone::before,
    .icon-fax::before,
    .icon-mail::before {
        font-size: 16px;
    }
}


/* Registration Page Styles */

.registration-page {
    width: 100%;
    min-height: 100vh;
    background: url('../images/reg_bg.png') no-repeat top right;
    background-size: cover;
    position: relative;
    padding-bottom: 100px;
}

.registration-header {
    text-align: center;
    padding: 40px 20px 20px;
    /* background: #fff; */
    position: relative;
}

.reg-title {
    /* max-width: 800px; */
    margin-top: 110px;
    width: 100%;
    max-width: 1024px;
    height: auto;
    margin-bottom: 80px;
}

.wavy-border {
    height: 20px;
    background: url('../images/section_bg.png') no-repeat center center;
    background-size: cover;
    margin: 0 -20px;
}

.registration-content {
    /* background: #f8e8e8; */
    padding: 40px 20px;
    min-height: 600px;
}

.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

.text-content {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.description-section h2 {
    color: #850303;
    font-size: 24px;
    margin-bottom: 20px;
    line-height: 1.4;
}

.description-section p {
    color: #333;
    line-height: 1.8;
    margin-bottom: 30px;
    text-align: justify;
}

.guidelines-section h3 {
    color: #850303;
    font-size: 20px;
    margin-bottom: 20px;
}

.guidelines-list {
    color: #333;
    line-height: 1.8;
    padding-left: 20px;
}

.guidelines-list li {
    margin-bottom: 15px;
    text-align: justify;
}

.contact-info {
    margin-top: 30px;
    padding: 20px;
    background: #f8f8f8;
    border-radius: 8px;
    border-left: 4px solid #850303;
}

.contact-info p {
    color: #333;
    line-height: 1.6;
    margin: 0;
}

.contact-info strong {
    color: #850303;
}

.interactive-section {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
}

.qr-code-container {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.qr-code {
    width: 200px;
    height: auto;
}

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

.reg-button {
    width: 250px;
    height: auto;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.reg-button:hover {
    transform: scale(1.05);
}

.thematic-section {
    background: #550000;
    padding: 40px 20px;
    text-align: center;
}

.thematic-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    height: 200px;
}

.victory-silhouettes {
    width: 100%;
    height: 100%;
    background: url('../images/inner_border_image.png') no-repeat center center;
    background-size: contain;
}


/* Registration Page Responsive Design */

@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .interactive-section {
        flex-direction: row;
        justify-content: center;
        gap: 40px;
        margin-top: 20px;
    }
    .qr-code {
        width: 180px;
    }
    .reg-button {
        width: 220px;
    }
    .reg-title {
        margin-top: 80px;
        margin-bottom: 60px;
    }
}

@media(max-width: 1280px) {
    .main-nav {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        margin-top: 20px;
        width: 100%;
    }
    .main-nav ul {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    .main-nav .nav-item {
        width: 80px;
    }
}

@media (max-width: 768px) {
    .title-image {
        width: 85%;
        height: auto;
        position: unset;
    }
    .header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    .logo-section {
        justify-content: center;
    }
    .main-nav {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        margin-top: 20px;
        width: 100%;
    }
    .main-nav ul {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    .main-nav .nav-item {
        width: 80px;
    }
    .registration-header {
        padding: 20px 15px 15px;
    }
    .reg-title {
        max-width: 100%;
        margin-top: 60px;
        margin-bottom: 40px;
    }
    .registration-content {
        padding: 30px 15px;
    }
    .text-content {
        padding: 20px;
    }
    .description-section h2 {
        font-size: 20px;
    }
    .guidelines-section h3 {
        font-size: 18px;
    }
    .interactive-section {
        flex-direction: column;
        gap: 20px;
        margin-top: 0;
    }
    .qr-code {
        width: 160px;
    }
    .reg-button {
        width: 200px;
    }
    .thematic-section {
        padding: 30px 15px;
    }
    .thematic-content {
        height: 150px;
    }
    .content-area {
        margin-right: 0;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 15px 10px;
    }
    .title-image {
        width: 95%;
        height: auto;
        position: unset;
    }
    .logo-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .logo {
        /* width: 80px; */
        margin-bottom: 15px;
    }
    .main-nav ul {
        gap: 10px;
    }
    .main-nav .nav-item {
        width: 70px !important;
    }
    .registration-header {
        padding: 15px 10px 10px;
    }
    .reg-title {
        margin-top: 40px;
        margin-bottom: 30px;
    }
    .registration-content {
        padding: 20px 10px;
    }
    .text-content {
        padding: 15px;
    }
    .description-section h2 {
        font-size: 18px;
    }
    .guidelines-list {
        padding-left: 15px;
    }
    .guidelines-list li {
        font-size: 14px;
        margin-bottom: 12px;
    }
    .contact-info {
        padding: 15px;
        margin-top: 20px;
    }
    .qr-code {
        width: 140px;
    }
    .reg-button {
        width: 180px;
    }
    .thematic-content {
        height: 120px;
    }
    .footer-inner {
        padding: 20px 15px;
        gap: 10px !important;
    }
    .brand-logo {
        width: 250px;
    }
    .contact-list li {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        gap: 10px;
    }
    .registration-page {
        padding-bottom: 30px;
        background-position: top right !important;
    }
}


/* Resource Download Page Styles */

.resource-download-page {
    width: 100%;
    min-height: 80vh;
    background-image: url('/victory/images/教材/bg.png');
    background-size: 100% auto;
    background-position: left bottom;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}


/* 主要橫向橫幅 */

.download-banner {
    width: 100%;
    /* max-width: 1200px; */
    min-height: 500px;
    /* border-radius: 20px; */
    position: relative;
    overflow: hidden;
    /* box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3); */
}

.download-banner::after {
    content: '';
    display: table;
    clear: both;
}


/* 頂部標題 */

.banner-title {
    position: relative;
    text-align: center;
    padding: 20px 0;
    z-index: 10;
}

.download-title-image {
    max-width: 300px;
    height: auto;
    display: block;
    margin: 0 auto;
}


/* 垂直分隔線 */

.banner-divider {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60%;
}

.divider-image {
    height: 70%;
    width: auto;
    max-width: 10px;
}


/* 橫幅區域 */

.banner-section {
    position: relative;
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.primary-section {
    float: left;
}

.secondary-section {
    float: right;
}


/* 背景山脈和剪影 */

.section-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}


/* .mountain-silhouette {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70%;
    background: linear-gradient(to top, rgba(139, 69, 19, 0.9) 0%, rgba(160, 82, 45, 0.7) 20%, rgba(205, 133, 63, 0.5) 40%, rgba(255, 228, 196, 0.3) 60%, rgba(255, 228, 196, 0.1) 80%, transparent 100%);
    clip-path: polygon(0 100%, 15% 70%, 30% 85%, 45% 60%, 60% 80%, 75% 50%, 90% 70%, 100% 60%, 100% 100%);
} */

.figure-silhouette {
    position: absolute;
    bottom: 25%;
    height: 100px;
    width: 60px;
}

.primary-figure {
    left: 15%;
}

.secondary-figure {
    right: 15%;
}


/* 舉旗人物剪影 */

.flag-person {
    width: 100%;
    height: 100%;
    background: rgba(139, 69, 19, 0.8);
    clip-path: polygon(30% 100%, 35% 60%, 40% 70%, 45% 50%, 50% 60%, 55% 40%, 60% 50%, 65% 30%, 70% 40%, 75% 20%, 80% 30%, 85% 10%, 90% 20%, 95% 0%, 100% 10%, 100% 100%);
    position: relative;
}

.flag-person::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 60%;
    width: 30px;
    height: 2px;
    background: rgba(139, 69, 19, 0.8);
    transform: rotate(-15deg);
}

.flag-person::after {
    content: '';
    position: absolute;
    top: 15%;
    left: 75%;
    width: 15px;
    height: 10px;
    background: rgba(139, 69, 19, 0.8);
    clip-path: polygon(0 0, 100% 0, 80% 100%, 0 100%);
}


/* 慶祝群體剪影 */

.celebration-group {
    width: 100%;
    height: 100%;
    background: rgba(139, 69, 19, 0.8);
    clip-path: polygon(20% 100%, 25% 70%, 30% 80%, 35% 60%, 40% 70%, 45% 50%, 50% 60%, 55% 40%, 60% 50%, 65% 30%, 70% 40%, 75% 20%, 80% 30%, 85% 10%, 90% 20%, 95% 0%, 100% 10%, 100% 100%);
    position: relative;
}

.celebration-group::before {
    content: '';
    position: absolute;
    top: 15%;
    left: 30%;
    width: 20px;
    height: 2px;
    background: rgba(139, 69, 19, 0.8);
    transform: rotate(45deg);
}

.celebration-group::after {
    content: '';
    position: absolute;
    top: 10%;
    left: 60%;
    width: 20px;
    height: 2px;
    background: rgba(139, 69, 19, 0.8);
    transform: rotate(-45deg);
}


/* 內容區域 */

.section-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 30px 20px;
    height: 100%;
    justify-content: center;
}


/* QR碼容器 */

.qr-code-container {
    text-align: center;
    margin-bottom: 15px;
}

.qr-code-placeholder {
    width: 100px;
    height: 100px;
    background: #fff;
    border: 2px solid #d2691e;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.qr-code-text {
    color: #d2691e;
    font-size: 24px;
    font-weight: bold;
}

.qr-code-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 6px;
}


/* 標題容器 */

.section-title-container {
    text-align: center;
    margin-bottom: 10px;
}

.section-title-image {
    /* max-width: 360px; */
    width: auto;
    height: 51px;
    display: block;
}

.section-title-ss-image {
    /* max-width: 140px; */
    /* height: auto; */
    width: auto;
    height: 51px;
    display: block;
}

.section-small-title-image {
    max-width: 200px;
    height: auto;
    display: block;
}


/* 下載按鈕容器 */

.download-button-container {
    margin: 10px 0;
    text-align: center;
}

.download-button-image {
    max-width: 180px;
    height: auto;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    margin: 0 auto;
}

.download-button-image:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}


/* 下載連結樣式 */

.download-link {
    display: block;
    text-decoration: none;
    transition: all 0.3s ease;
}

.download-link:hover {
    text-decoration: none;
}

.download-link:hover .download-button-image {
    transform: scale(1.05);
    filter: brightness(1.1);
}


/* 版本標籤 */

.version-labels {
    text-align: center;
    color: #850303;
    margin-top: 5px;
}

.main-label {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 4px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.sub-labels {
    font-size: 11px;
    font-weight: bold;
}

.sub-label {
    color: #850303;
}

.separator {
    margin: 0 5px;
    color: #850303;
}


/* Resource Download Responsive Design */

@media (max-width: 1200px) {
    .download-banner {
        max-width: 1000px;
        height: 350px;
    }
    .title-image {
        max-width: 250px;
    }
    /* .section-title-image {
        max-width: 140px;
    } */
    .download-button-image {
        max-width: 150px;
    }
    .qr-code-placeholder {
        width: 90px;
        height: 90px;
    }
    .main-label {
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .resource-download-page {
        padding: 10px;
    }
    .download-banner {
        height: auto;
        min-height: 600px;
    }
    .banner-title {
        padding: 15px 0;
    }
    .title-image {
        max-width: 200px;
    }
    .banner-divider {
        display: none;
    }
    .banner-section {
        position: relative;
        width: 100%;
        height: auto;
        min-height: 280px;
        margin-bottom: 20px;
        float: none;
        padding: 10px;
    }
    .primary-section {
        float: none;
    }
    .secondary-section {
        float: none;
    }
    .section-content {
        gap: 15px;
        padding: 15px 10px;
    }
    .section-title-image {
        /* height: 41px; */
        /* max-width: 140px; */
    }
    .section-title-ss-image {
        /* max-width: 120px; */
    }
    .section-small-title-image {
        max-width: 150px;
    }
    .download-button-image {
        max-width: 150px;
    }
    .qr-code-placeholder {
        width: 90px;
        height: 90px;
    }
    .main-label {
        font-size: 10px;
    }
    .sub-labels {
        font-size: 8px;
    }
    /* 手機版橫向排列調整 */
    .section-content>div[style*="flex"] {
        gap: 15px !important;
        flex-wrap: wrap !important;
    }
    .section-content>div[style*="flex"]>div {
        flex: 1 1 calc(50% - 7.5px) !important;
        min-width: 140px !important;
        max-width: calc(50% - 7.5px) !important;
    }
}

@media (max-width: 480px) {
    .resource-download-page {
        padding: 8px;
    }
    .download-banner {
        height: auto;
        min-height: 500px;
    }
    .title-image {
        max-width: 150px;
    }
    .section-content {
        gap: 12px;
        padding: 12px 8px;
    }
    /* .section-title-image {
        max-width: 120px;
    } */
    .section-title-ss-image {
        max-width: 100px;
    }
    .section-small-title-image {
        max-width: 140px;
    }
    .download-button-image {
        max-width: 140px;
    }
    .qr-code-placeholder {
        width: 110px;
        height: 110px;
    }
    .main-label {
        font-size: 8px;
    }
    .sub-labels {
        font-size: 6px;
    }
    /* 小螢幕橫向排列調整 */
    .section-content>div[style*="flex"] {
        gap: 12px !important;
        flex-wrap: wrap !important;
    }
    .section-content>div[style*="flex"]>div {
        flex: 1 1 calc(50% - 6px) !important;
        min-width: 120px !important;
        max-width: calc(50% - 6px) !important;
    }
}

@media (max-width: 360px) {
    .resource-download-page {
        padding: 5px;
    }
    .download-banner {
        min-height: 450px;
    }
    .title-image {
        max-width: 120px;
    }
    .section-content {
        gap: 10px;
        padding: 10px 5px;
    }
    /* .section-title-image {
        max-width: 100px;
    } */
    .section-title-ss-image {
        max-width: 80px;
    }
    .section-small-title-image {
        max-width: 100px;
    }
    .download-button-image {
        max-width: 100px;
    }
    .qr-code-placeholder {
        width: 70px;
        height: 70px;
    }
    /* 超小螢幕橫向排列調整 */
    .section-content>div[style*="flex"] {
        gap: 10px !important;
        flex-wrap: wrap !important;
    }
    .section-content>div[style*="flex"]>div {
        flex: 1 1 calc(50% - 5px) !important;
        min-width: 100px !important;
        max-width: calc(50% - 5px) !important;
    }
}

@media (max-width: 320px) {
    .resource-download-page {
        padding: 5px;
    }
    .download-banner {
        min-height: 400px;
    }
    .title-image {
        max-width: 100px;
    }
    .section-content {
        gap: 8px;
        padding: 10px;
    }
    .section-title-image {
        max-width: 60px;
    }
    .section-title-ss-image {
        max-width: 50px;
    }
    .section-small-title-image {
        max-width: 40px;
    }
    .download-button-image {
        max-width: 80px;
    }
    .qr-code-placeholder {
        width: 55px;
        height: 55px;
    }
    /* 超小螢幕改為垂直排列 */
    .section-content>div[style*="flex"] {
        flex-direction: column !important;
        gap: 15px !important;
    }
    .section-content>div[style*="flex"]>div {
        flex: 1 1 auto !important;
        min-width: auto !important;
        max-width: 100% !important;
        width: 100% !important;
    }
}