/* 架構頁面樣式 */

/* 頁面英雄區域 */
.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/about-img.jpg') center/cover;
    opacity: 0.6;
}

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

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

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
    line-height: 1.6;
}

.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;
}

/* 主體內容區域 */
.main-container {
    padding: 0;
}

.leadership-section,
.structure-section,
.departments-section,
.join-section {
    padding: 80px 0;
}

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

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

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

/* 領導團隊 */
.leadership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.leader-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;

    display: flex;
    flex-direction: column;

}

.leader-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.leader-image {
    position: relative;
    height: 350px;
    overflow: hidden;
}

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

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

.leader-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: flex-end;
    padding: 20px;
}

.leader-badge {
    background: var(--white);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.leader-content {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.leader-content h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
    margin-top: 0;
}

.leader-content p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    margin-bottom: 10px;
    flex: 1;
}

.leader-responsibilities h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.leader-responsibilities ul {
    list-style: none;
    padding: 0;
}

.leader-responsibilities li {
    padding: 5px 0;
    position: relative;
    padding-left: 20px;
    font-size: 14px;
    color: var(--text-dark);
}

.leader-responsibilities li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* 組織架構圖 */
.structure-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.structure-chart {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.org-level-1,
.org-level-2,
.org-level-3 {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.org-connector {
    width: 2px;
    height: 30px;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    margin: 0 auto;
}

.org-item {
    background: var(--white);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    min-width: 200px;
}

.org-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.main-org {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 30px;
    min-width: 300px;
}

.org-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.org-icon svg {
    width: 25px;
    height: 25px;
    color: var(--white);
}

.main-org h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 5px;
}

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

.leadership-item {
    /* background: linear-gradient(135deg, var(--secondary-color), var(--accent-color)); */
    background: var(--primary-color);
    color: var(--white);
}

.leadership-item h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.leadership-item p {
    font-size: 12px;
    opacity: 0.9;
}

.department-item {
    background: var(--white);
    border: 1px solid #e9ecef;
}

.dept-icon {
    width: 40px;
    height: 40px;
    /* 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;
    margin: 0 auto 10px;
}

.dept-icon svg {
    width: 20px;
    height: 20px;
    color: var(--white);
}

.department-item h5 {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.department-item p {
    font-size: 11px;
    color: var(--text-light);
}

/* 部門職責 */
.departments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.department-card {
    background: var(--white);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.department-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.dept-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.dept-header .dept-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;
    margin: 0;
}

.dept-header .dept-icon svg {
    width: 25px;
    height: 25px;
    color: var(--white);
}

.dept-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
}

.department-card p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.dept-functions {
    list-style: none;
    padding: 0;
}

.dept-functions li {
    padding: 8px 0;
    position: relative;
    padding-left: 25px;
    font-size: 14px;
    color: var(--text-dark);
}

.dept-functions li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* 活動報名模塊 */
.activity-signup-section {
    margin-top: 50px;
    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;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .leadership-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .join-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .org-level-2,
    .org-level-3 {
        /* flex-direction: column; */
        align-items: center;
        gap: 20px;
    }

    .org-chart{
        gap: 10px;
    }

    .org-item {
        min-width: 250px;
    }

    .main-org {
        min-width: 280px;
    }

    .section-header{
        margin-bottom: 30px;
    }

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

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

    .activity-signup-section{
        margin-top: 0;
        padding: 0;
        padding-bottom: 30px;
    }
    .signup-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

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

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

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

@media (max-width: 480px) {
    .page-hero {
        padding: 100px 0 80px;
    }

    .hero-title {
        font-size: 28px;
    }

    .leadership-section,
    .structure-section,
    .departments-section,
    .join-section {
        padding: 40px 0;
    }

    .leader-content,
    .department-card,
    .join-card {
        padding: 20px;
    }

    .org-item {
        min-width: 110px;
        padding: 12px;
    }

    .main-org {
        min-width: 250px;
        padding: 20px;
    }
}