/* 活動列表頁面樣式 */
.main-container {
    padding: 0;
}

.activity-signup-section {
    margin-top: 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.section-header p {
    font-size: 20px;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* 頁面英雄區域 */
.page-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 150px 0 110px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/activity-bg.jpg') repeat;
    background-size: cover;
    background-position: center;
    opacity: 0.7;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 16px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-breadcrumb {
    font-size: 15px;
    opacity: 0.8;
}

.hero-breadcrumb a {
    color: var(--white);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.hero-breadcrumb a:hover {
    opacity: 1;
}

/* 活動報名模塊 */
.activity-signup-section {
    padding: 50px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

.activity-signup-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background: url('/assets/images/pattern-bg.png') repeat; */
    opacity: 0.05;
    z-index: 1;
}

.signup-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.signup-content {
    padding: 20px 0;
}

.signup-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    position: relative;
}

.signup-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.signup-header p {
    font-size: 18px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 40px;
}

.signup-features {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 40px;
}

.signup-features .feature-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-color);
}

.signup-features .feature-card:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.signup-features .feature-icon {
    width: 50px;
    height: 50px;
    /* background: linear-gradient(135deg, var(--primary-color), var(--accent-color)); */
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(2, 52, 90, 0.3);
}

.signup-features .feature-icon svg {
    width: 24px;
    height: 24px;
    color: var(--white);
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0px;
    margin-top: 0;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-dark);
    line-height: 1.5;
    margin: 0;
}

.signup-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.signup-btn {
    padding: 12px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.signup-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.signup-btn:hover::before {
    left: 100%;
}

.signup-btn.primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    box-shadow: 0 8px 25px rgba(2, 52, 90, 0.3);
}

.signup-btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(2, 52, 90, 0.4);
    color: var(--white);
}

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

.signup-btn.secondary:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

.signup-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.signup-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.signup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(2, 52, 90, 0.8) 0%, rgba(2, 52, 90, 0.6) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.overlay-content h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
}

.overlay-content p {
    font-size: 16px;
    opacity: 0.9;
    line-height: 1.5;
}

/* 活動列表容器 */
.activities-list-section {
    margin-bottom: 20px;
    padding: 50px 0;
}

.activities-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* 活動卡片 */
.activity-card {
    display: flex;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.activity-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* 活動圖片 */
.activity-image {
    flex: 0 0 400px;
    position: relative;
    overflow: hidden;
    padding: 20px;
}

.activity-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.activity-card:hover .activity-img {
    transform: scale(1.05);
}

/* 活動內容 */
.activity-content {
    flex: 1;
    padding: 30px 30px 30px 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.activity-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.activity-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    margin: 0;
    flex: 1;
    margin-right: 20px;
}

/* 狀態標籤 */
.activity-status {
    margin-top: 3px;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
}

.status-badge.closed {
    background: #f5f5f5;
    color: #999;
    border: 1px solid #e0e0e0;
}

.status-badge.open {
    background: #e8f5e8;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
    cursor: pointer;
    transition: all 0.3s ease;
}

.status-badge.open:hover {
    background: #c8e6c9;
    color: #1b5e20;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(46, 125, 50, 0.3);
}

/* 活動詳情 */
.activity-details {
    margin-bottom: 20px;
}

.detail-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 15px;
    color: #666;
}

.detail-icon {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    color: #999;
}

/* 活動特色標籤 */
.activity-features {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.feature-tag {
    padding: 4px 8px;
    background: #f8f9fa;
    color: #666;
    border-radius: 4px;
    font-size: 13px;
    border: 1px solid #e9ecef;
}

/* 日曆顯示 */
.activity-calendar {
    flex: 0 0 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-left: 1px solid #e9ecef;
    padding: 20px 15px;
}

.calendar-month {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
    font-weight: 500;
}

.calendar-day {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 4px;
}

.calendar-weekday {
    font-size: 11px;
    color: #999;
}

/* 報名表格彈窗 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(1px);
}

.modal-content {
    background-color: #fff;
    margin: 7% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    padding: 25px 30px 20px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close:hover {
    color: #333;
}

.modal-body {
    padding: 30px;
}

/* 表單樣式 */
.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn-primary,
.btn-secondary {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

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

.btn-primary:hover {
    background: var(--primary-color);
    transform: translateY(-1px);
}

.btn-secondary {
    background: #f8f9fa;
    color: #666;
    border: 1px solid #ddd;
}

.btn-secondary:hover {
    background: #e9ecef;
    color: #333;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .activity-card {
        flex-direction: column;
    }

    .activity-image {
        flex: none;
        height: 220px;
        padding: 15px;
    }

    .activity-calendar {
        flex: none;
        flex-direction: row;
        justify-content: center;
        gap: 20px;
        padding: 15px;
        display: none;
    }

    .activity-content {
        padding: 20px;
    }

    .activity-header {
        flex-direction: column;
        gap: 10px;
    }

    .activity-header h3 {
        margin-right: 0;
        font-size: 17px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .modal-content {
        width: 95%;
        margin: 10% auto;
    }

    .modal-header,
    .modal-body {
        padding: 20px;
    }

    .activities-list-section {
        padding: 50px 15px;
    }

    .section-header {
        /* padding: 0 15px; */
        margin-bottom: 30px;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .section-header p {
        font-size: 16px;
    }

    .signup-container {
        grid-template-columns: 1fr;
        gap: 0px;
    }

    .signup-content {
        padding: 0;
    }

    .signup-header h2 {
        font-size: 28px;
    }

    .signup-header p {
        font-size: 16px;
    }

    .signup-actions {
        flex-direction: column;
    }

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

    .calendar-month {
        margin-bottom: 0;
    }

    .calendar-day {
        margin-bottom: 2px;
    }


}

@media (max-width: 480px) {
    .activities-container {
        gap: 20px;
    }

    .activity-content {
        padding: 15px;
    }

    .activity-features {
        gap: 6px;
    }

    .feature-tag {
        /* font-size: 10px; */
        padding: 3px 6px;
    }
}

/* Layui分頁容器樣式 */
.layui-pagination-container {
    margin: 20px 0 40px 0;
    text-align: center;
}

/* 自定義分頁樣式 */
.layui-laypage {
    display: inline-block;
    vertical-align: middle;
}

.layui-laypage a,
.layui-laypage span {
    border-radius: 6px;
    margin: 0 2px;
    transition: all 0.3s ease;
    font-size: 15px;
}

.layui-laypage a:hover {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.layui-laypage .layui-laypage-curr .layui-laypage-em {
    background-color: var(--primary-color) !important;
    border-radius: 6px;
}

@media (max-width: 768px) {
    .layui-laypage{
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        row-gap: 10px;
    }
    .layui-pagination-container {
        margin: 0;
        padding: 0 15px 20px 15px;
    }

    .layui-laypage-count{
        display: none !important;
    }
}

.pagination {
    list-style: none;
    display: flex;
    justify-content: center;
    padding: 0;
}

.pagination li {
    margin: 0 5px;
}

.pagination li a,
.pagination li span {
    display: block;
    padding: 5px 10px;
    border: 1px solid #ccc;
    text-decoration: none;
    color: #333;
}

.pagination li.active a,
.pagination li.active span {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
}

.pagination li.disabled a,
.pagination li.disabled span {
    color: #ccc;
    pointer-events: none;
}