:root {

    /* 主色系：亮藍紫系 */

    --primary: #3359E1;

    --primary-hover: #2140B4;

    --primary-light: #EEF2FF;



    /* 輔助色 */

    --success: #22C55E;

    --success-light: #DCFCE7;

    --warning: #F59E0B;

    --warning-light: #FEF3C7;

    --danger: #EF4444;

    --danger-light: #FEE2E2;

    --info: #3B82F6;



    /* 中性色 (亮色主題) */

    --bg-body: #F8FAFC;

    --bg-surface: #FFFFFF;

    --bg-sidebar: #FFFFFF;

    --text-main: #0F172A;

    --text-muted: #64748B;

    --text-light: #94A3B8;

    --border-color: #E2E8F0;



    /* 漸層色 */

    --gradient-hero: linear-gradient(135deg, #EEF2FF 0%, #FFFFFF 100%);

    --gradient-btn: linear-gradient(90deg, #4F46E5 0%, #3B82F6 100%);



    /* 排版與陰影 */

    --radius-sm: 8px;

    --radius-md: 12px;

    --radius-lg: 16px;

    --radius-xl: 24px;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);

    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);

    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.03);



    /* 側邊欄寬度 */

    --sidebar-width: 250px;

}



* {

    margin: 0;

    padding: 0;

    box-sizing: border-box;

}



body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    font-size: 15px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
    /* 防止版面被未知的多餘寬度撐開 */
}



a {

    color: var(--primary);

    text-decoration: none;

    transition: color 0.2s;

}



a:hover {

    color: var(--primary-hover);

}



/* Typography */

h1,

h2,

h3,

h4,

h5,

h6 {

    font-weight: 700;

    color: var(--text-main);

    line-height: 1.2;

}



/* Layout System */

.app-container {

    display: flex;

    min-height: 100vh;

}



/* Sidebar Layout */

.sidebar {

    width: var(--sidebar-width);

    background: var(--bg-sidebar);

    border-right: 1px solid var(--border-color);

    display: flex;

    flex-direction: column;

    position: fixed;

    height: 100vh;

    left: 0;

    top: 0;

    z-index: 100;

}



.sidebar-logo {

    padding: 1.5rem 1.5rem;

    font-size: 1.2rem;

    font-weight: 800;

    color: var(--primary);

    border-bottom: 1px solid var(--border-color);

    display: flex;

    align-items: center;

    gap: 0.5rem;

}



.sidebar-nav {

    flex: 1;

    padding: 1.5rem 1rem;

    overflow-y: auto;

}



.sidebar-nav-label {

    font-size: 0.85rem;

    color: var(--text-light);

    text-transform: uppercase;

    letter-spacing: 1px;

    margin-bottom: 0.6rem;

    margin-left: 0.5rem;

    font-weight: 600;

}



.sidebar-link {

    display: flex;

    align-items: center;

    gap: 0.8rem;

    padding: 0.9rem 1.2rem;

    color: var(--text-muted);

    border-radius: var(--radius-sm);

    font-weight: 500;

    margin-bottom: 0.4rem;

    font-size: 1.15rem;

    transition: all 0.2s;

}



.sidebar-link:hover {

    background: var(--bg-body);

    color: var(--text-main);

}



.sidebar-link.active {

    background: var(--primary-light);

    color: var(--primary);

    font-weight: 600;

}



.sidebar-user {

    padding: 1rem;

    border-top: 1px solid var(--border-color);

    display: flex;

    align-items: center;

    gap: 0.8rem;

}



.user-avatar {

    width: 36px;

    height: 36px;

    border-radius: 50%;

    background: var(--primary);

    color: white;

    display: flex;

    align-items: center;

    justify-content: center;

    font-weight: bold;

    font-size: 14px;

    overflow: hidden;

    object-fit: cover;

}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}



/* Main Content Area */

.main-content {

    flex: 1;

    margin-left: 260px;
    /* Space for sidebar */

    padding: 0;

    min-height: 100vh;

    display: flex;

    flex-direction: column;

}



.main-content.full-width {

    margin-left: 0;

    width: 100%;

    max-width: 100vw;

}



/* Top Navbar (For full width pages) */

.topbar {

    height: 64px;

    background: var(--bg-surface);

    border-bottom: 1px solid var(--border-color);

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 0 2rem;

    position: sticky;

    top: 0;

    z-index: 100;

    width: 100%;

    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);

    box-sizing: border-box;

}



.topbar-nav {

    display: flex;

    align-items: center;

    gap: 2rem;

}



.topbar-link {

    color: var(--text-muted);

    font-weight: 500;

    font-size: 1.15rem;

}



.topbar-link:hover {

    color: var(--text-main);

}



.page-header {

    background: var(--bg-surface);

    border-bottom: 1px solid var(--border-color);

    padding: 1.5rem 2rem;

    display: flex;

    align-items: center;

    justify-content: space-between;

}



/* Container */

.container {

    width: 100%;

    max-width: 1200px;

    margin: 0 auto;

    padding: 0 1rem;

}



.content-pad {

    padding: 2rem;

}



/* Cards */

.card {

    background: var(--bg-surface);

    border: 1px solid var(--border-color);

    border-radius: var(--radius-md);

    box-shadow: var(--shadow-sm);

    overflow: hidden;

}



/* Buttons */

.btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 0.6rem 1.2rem;

    border-radius: var(--radius-sm);

    font-weight: 600;

    cursor: pointer;

    transition: all 0.2s;

    border: 1px solid transparent;

    font-size: 0.95rem;

    gap: 0.5rem;

}



.btn-primary {

    background: var(--primary);

    color: white;

    box-shadow: 0 4px 6px rgba(51, 89, 225, 0.2);

}



.btn-primary:hover {

    background: var(--primary-hover);

    color: white;

}



.btn-outline {

    background: transparent;

    border-color: var(--border-color);

    color: var(--text-main);

}



.btn-outline:hover {

    background: var(--bg-body);

    border-color: var(--text-light);

}



.btn-ghost {

    background: transparent;

    color: var(--text-muted);

}



.btn-ghost:hover {

    background: var(--bg-body);

    color: var(--text-main);

}



.btn-sm {

    padding: 0.4rem 0.8rem;

    font-size: 0.85rem;

}



/* Form Elements */

.form-group {

    margin-bottom: 1.2rem;

}



.form-label {

    display: block;

    font-weight: 600;

    margin-bottom: 0.4rem;

    color: var(--text-main);

    font-size: 0.9rem;

}



.form-control {

    width: 100%;

    padding: 0.6rem 1rem;

    border: 1px solid var(--border-color);

    border-radius: var(--radius-sm);

    background: var(--bg-surface);

    color: var(--text-main);

    font-family: inherit;

    font-size: 0.95rem;

    transition: all 0.2s;

}



.form-control:focus {

    outline: none;

    border-color: var(--primary);

    box-shadow: 0 0 0 3px var(--primary-light);

}



.search-input-wrap {

    position: relative;

    display: flex;

    align-items: center;

}



.search-icon {

    position: absolute;

    left: 1rem;

    color: var(--text-muted);

}



.search-input {

    padding-left: 2.5rem;

    border-radius: 30px;

}



/* Badges / Pills */

.badge {

    display: inline-flex;

    align-items: center;

    padding: 0.2rem 0.6rem;

    border-radius: 20px;

    font-size: 0.75rem;

    font-weight: 600;

}



.badge-warning {

    background: var(--warning-light);

    color: var(--warning);

}



.badge-success {

    background: var(--success-light);

    color: var(--success);

}



.badge-danger {

    background: var(--danger-light);

    color: var(--danger);

}



.badge-primary {

    background: var(--primary-light);

    color: var(--primary);

}



.badge-gray {

    background: var(--bg-body);

    color: var(--text-muted);

    border: 1px solid var(--border-color);

}



/* Utility */

.d-flex {

    display: flex;

}



.align-items-center {

    align-items: center;

}



.justify-content-between {

    justify-content: space-between;

}

.justify-content-center {
    justify-content: center;
}




.text-center {

    text-align: center;

}



.mb-1 {

    margin-bottom: 0.5rem;

}



.mb-2 {

    margin-bottom: 1rem;

}



.mb-3 {

    margin-bottom: 1.5rem;

}



.mb-4 {

    margin-bottom: 2rem;

}



.mt-4 {

    margin-top: 2rem;

}



.gap-2 {

    gap: 1rem;

}



.gap-3 {

    gap: 1.5rem;

}



.w-100 {

    width: 100%;

}



/* Alerts */

.alert {

    padding: 1rem;

    border-radius: var(--radius-sm);

    margin-bottom: 1.5rem;

}



.alert-green {

    background: var(--success-light);

    color: var(--success);

    border: 1px solid rgba(34, 197, 94, 0.2);

}



.alert-red {

    background: var(--danger-light);

    color: var(--danger);

    border: 1px solid rgba(239, 68, 68, 0.2);

}



.alert-blue {

    background: var(--primary-light);

    color: var(--primary);

    border: 1px solid rgba(51, 89, 225, 0.2);

}



.alert-success-large {

    background: var(--success-light);

    color: #166534;
    /* darker green for text */

    border: 2px solid var(--success);

    padding: 1.5rem;

    font-size: 1.1rem;

    border-radius: var(--radius-md);

    text-align: center;

    box-shadow: var(--shadow-md);

}



/* Animation */

@keyframes fadeIn {

    from {

        opacity: 0;

        transform: translateY(10px);

    }



    to {

        opacity: 1;

        transform: translateY(0);

    }

}



.animate-fade-in {

    animation: fadeIn 0.4s ease forwards;

}



/* Progress Steps */

.step-container {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 1rem;

    margin-bottom: 2rem;

}



.step-item {

    display: flex;

    align-items: center;

    gap: 0.5rem;

    color: var(--text-light);

    font-size: 0.9rem;

    font-weight: 500;

}



.step-circle {

    width: 24px;

    height: 24px;

    border-radius: 50%;

    background: var(--bg-body);

    border: 1px solid var(--border-color);

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 0.75rem;

}



.step-item.active {

    color: var(--text-main);

    font-weight: 600;

}



.step-item.active .step-circle {

    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.step-line {
    width: 40px;
    height: 1px;
    background: var(--border-color);
}

/* =========================================
   Responsive Web Design (RWD) 
   ========================================= */

/* Mobile Menu Button - Topbar */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    padding: 0.5rem;
}

.topbar-collapse {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: space-between;
}

/* Mobile Sidebar Header */
.sidebar-mobile-header {
    display: none;
    background: var(--bg-surface);
    height: 60px;
    padding: 0 1.5rem;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 90;
    width: 100%;
}

.sidebar-mobile-btn {
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    padding: 0.5rem;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 95;
    opacity: 0;
    transition: opacity 0.3s;
}

@media (max-width: 991px) {
    .app-container {
        flex-direction: column;
    }

    /* Topbar RWD */
    .mobile-menu-btn {
        display: block;
    }

    .topbar {
        position: sticky;
    }

    /* LOGO 水平絕對置中 */
    .topbar-logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        /* 確保不被擋住，但仍能被點擊 */
        z-index: 10;
    }

    .mobile-menu-btn {
        margin-left: auto;
        position: relative;
        z-index: 20;
    }

    .topbar-collapse {
        display: none;
        /* hidden by default on mobile */
        flex-direction: column;
        position: absolute;
        top: 64px;
        left: 0;
        width: 100%;
        background: var(--bg-surface);
        box-shadow: var(--shadow-md);
        padding: 1rem 2rem 2rem 2rem;
        gap: 1.5rem;
        align-items: flex-start;
        border-bottom: 1px solid var(--border-color);
    }

    .topbar-collapse.show {
        display: flex;
    }

    .topbar-nav {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        width: 100%;
    }

    .topbar-link {
        display: block;
        width: 100%;
        padding: 0.5rem 0;
        text-align: center;
    }

    .topbar-actions {
        width: 100%;
        flex-direction: column;
        align-items: center !important;
        gap: 0.8rem;
    }

    .topbar-actions .btn {
        width: auto;
        text-align: center;
    }

    .topbar-actions .login-btn,
    .topbar-actions .submit-btn {
        width: 100% !important;
        margin: 0 !important;
    }

    /* Submit Step Responsive */
    .step-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .step-line {
        width: 2px;
        height: 20px;
        margin-left: 11px;
    }

    /* Sidebar RWD */
    .sidebar-mobile-header {
        display: flex;
    }

    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 110;
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .sidebar-overlay {
        z-index: 105;
    }

    .sidebar-overlay.show {
        display: block;
        opacity: 1;
    }

    .main-content {
        margin-left: 0 !important;
        width: 100%;
        min-width: 0;
        /* 防止 flex 子元素超出邊界 */
    }

    .sidebar-mobile-header {
        width: 100%;
        flex-shrink: 0;
        box-sizing: border-box;
    }

    .page-header {
        flex-wrap: wrap;
        padding: 1rem;
        gap: 0.5rem;
    }

    .content-pad {
        padding: 1rem;
    }

    .filter-bar-wrap {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-bar-wrap form {
        max-width: 100% !important;
    }

    .filter-bar-actions {
        justify-content: space-around;
        width: 100%;
        overflow-x: auto;
        flex-wrap: wrap;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =========================================
   Additional RWD Utilities
   ========================================= */

/* Base Layout Classes (Desktop First) */
.hero-section {
    background: var(--gradient-hero);
    padding: 6rem 1rem 4rem;
    text-align: center;
    border-radius: 0 0 40px 40px;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.hero-title-main {
    font-size: 2.8rem;
    letter-spacing: -1px;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.hero-title {
    font-size: 3.5rem;
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
    color: var(--primary);
    font-family: 'Outfit', sans-serif;
}

.hero-subtitle {
    font-size: 1.55rem;
    font-weight: 500;
    letter-spacing: 1px;
    max-width: 750px;
    margin: 0 auto 3.5rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.criteria-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.recent-works-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.filter-bar-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    gap: 1rem;
}

.filter-bar-actions {
    display: flex;
    gap: 0.5rem;
    background: var(--bg-surface);
    padding: 0.3rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.prize-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
}

.cta-section-box {
    background: var(--gradient-hero);
    border: 1px solid var(--primary-light);
    border-radius: 24px;
    padding: 4rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

/* Tablet Adaptations */
@media (max-width: 991px) {
    .hero-section {
        padding: 4rem 1rem 3rem;
    }

    .hero-title-main {
        font-size: 2.2rem;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .recent-works-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .prize-layout {
        gap: 2rem;
    }

    .filter-bar-wrap {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-bar-wrap form {
        max-width: 100% !important;
    }

    .filter-bar-actions {
        justify-content: space-between;
        width: 100%;
    }

    .filter-bar-actions .btn {
        flex: 1;
        text-align: center;
    }
}

/* Mobile Adaptations */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .topbar {
        padding: 0 1rem;
    }

    .hero-title-main {
        font-size: 1.6rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .criteria-grid {
        grid-template-columns: 1fr;
    }

    .cta-section-box {
        padding: 2rem 1rem;
    }
}

/* Small Mobile Adaptations */
@media (max-width: 480px) {
    .hero-section {
        padding: 3rem 1rem 2rem;
    }

    .hero-title-main {
        font-size: 1.4rem;
        word-wrap: break-word;
        letter-spacing: -0.5px;
    }

    .hero-title {
        font-size: 1.7rem;
        word-wrap: break-word;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .recent-works-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .card {
        padding: 1.2rem !important;
        overflow-wrap: break-word;
        /* 防止太長標題爆出版面 */
    }

    .prize-layout>div {
        min-width: 100% !important;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
    }
}

/* Privacy Policy Responsive Padding */
.privacy-container-wrap {
    padding: 4rem 2rem;
}

.privacy-card-box {
    padding: 3rem 4rem;
}

@media (max-width: 768px) {
    .privacy-container-wrap {
        padding: 2rem 1rem;
    }

    .privacy-card-box {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .privacy-container-wrap {
        padding: 1.5rem 0.5rem;
    }

    .privacy-card-box {
        padding: 1.25rem 1rem;
    }
}