/* 首頁專用樣式 */

.main-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.main-container {
    padding: 0 0 0px 0;
}

/* 關於我們模塊 */
.about-section {
    margin: 80px 0;
    padding: 60px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    /* border-radius: 20px; */
    position: relative;
    overflow: hidden;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/about-bg.jpg') repeat;
    opacity: 0.05;
    z-index: 1;
}

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

.about-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    /* transform: perspective(1000px) rotateY(-5deg); */
    transform: perspective(1000px) rotateY(5deg);
    transition: all 0.5s ease;
}

.about-image:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.about-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    filter: brightness(0.9) contrast(1.1);
}

.about-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(2, 52, 90, 0.3) 0%, rgba(2, 52, 90, 0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.about-icon-symbol {
    font-size: 2rem;
    color: var(--primary-color);
    font-style: normal;
}

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

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

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

.about-subtitle {
    font-size: 20px;
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 30px;
}

.about-description {
    margin-bottom: 30px;
}

.about-description p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 0;
}

.about-principles {
    margin-bottom: 40px;
}

.principle-item {
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.principle-item:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.principle-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.principle-icon {
    width: 22px;
    height: 22px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.principle-item h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
    margin-top: 0;
    margin-bottom: 0;
}

.principle-item p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-dark);
    margin: 0;
}

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

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

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

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

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

.about-btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(2, 52, 90, 0.4);
}

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

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

/* 內容網格佈局 */
.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
    margin-top: 40px;
}

/* 主內容區域 */
.main {
    position: relative;
    z-index: 3;
    background: var(--white);
    margin-top: 80vh;
    min-height: 100vh;
}

.main-content {
    display: flex;
    flex-direction: column;
    padding: 15px 20px 30px 20px;
    border-radius: 5px;
    background-color: var(--white);
    box-shadow: 0 7px 14px rgba(50, 50, 93, 0.1),
        0 3px 6px rgba(0, 0, 0, 0.08);
}

/* 特色卡片 */
.featured-card {
    background: var(--white);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    display: flex;
    border: 1px solid #e5e5e5;
    margin: 15px 0 50px 0;
}

.featured-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.featured-img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.featured-content {
    padding: 25px;
    text-align: left;
}

.featured-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.featured-content p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 15px;
}

.featured-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.featured-meta span {
    color: var(--text-light);
    font-size: 14px;
}

.featured-btn {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 5px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 15px;
}

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

/* 活動網格 */
.activity-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    row-gap: 30px;
}

.activity-card {
    background: var(--white);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.activity-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

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

.activity-link:hover {
    text-decoration: none;
    color: inherit;
}

.activity-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.activity-content {
    padding: 15px;
    text-align: left;
}

.activity-content h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-dark);
    margin-top: 0;
}

.activity-content p {
    color: var(--text-light);
    font-size: 13px;
    margin-bottom: 15px;
    line-height: 1.5;
}

.activity-time {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

.time-icon {
    width: 16px;
    height: 16px;
    color: var(--accent-color);
    flex-shrink: 0;
}

.time-text {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 500;
}

.activity-tag {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
}

/* 側邊欄 */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* 新聞區域 */
.news-section {
    background: var(--white);
    border-radius: 5px;
    padding: 15px 20px;
    box-shadow: var(--shadow);
}


.news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 15px;
}

.news-item {
    display: flex;
    gap: 15px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
    text-align: left;
}

.news-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.news-link {
    display: flex;
    gap: 15px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    width: 100%;
}

.news-link:hover {
    text-decoration: none;
    color: inherit;
    transform: translateX(5px);
}

.news-img {
    width: 30%;
    height: auto;
    object-fit: cover;
    border-radius: 5px;
    flex-shrink: 0;
}

.news-content h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.news-content p {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 8px;
    line-height: 1.4;
}

.news-date {
    color: var(--accent-color);
    font-size: 13px;
    font-weight: 500;
}

/* 青年項目 */
.youth-projects {
    background: var(--white);
    border-radius: 5px;
    padding: 15px 20px;
    box-shadow: var(--shadow);
}

.project-buttons {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.video-container {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.video-container:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.video-container video {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px 5px 0 0;
}

.video-info {
    padding: 10px 15px 15px 15px;
    text-align: left;
}

.video-info h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-dark);
    margin-top: 0;
    line-height: 22px;
}

.video-info p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
}

/* 精彩回顧區域 */
.highlight-section {
    margin-top: 60px;
    text-align: center;
}

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

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

.highlight-swiper {
    width: 100%;
    height: 700px;
}

.swiper-slide {
    width: 100%;
    height: 100%;
    transition: all 0.3s ease;
    border-radius: 10px;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.slide-description {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 20px;
    transform: translateY(0);
    transition: transform 0.3s ease;
    border-radius: 0 0 10px 10px;
}


.slide-description h4 {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
}

.slide-description p {
    margin: 0;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
}

.swiper-pagination .swiper-pagination-bullet {
    width: 13px;
    height: 13px;
    background-color: var(--primary-color);
}

.partner-logo img {
    max-width: 100%;
    max-height: 60px;
    object-fit: contain;
}

.swiper-pagination{
    bottom: 90px !important;
}

/* 聯繫與加入我們模塊 */
.contact-section {
    margin-top: 50px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.contact-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%); */
    /* background: linear-gradient(135deg, #1e293b 0%, #334155 100%); */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.contact-bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 8rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.02);
    white-space: nowrap;
    letter-spacing: 0.1em;
    z-index: 1;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 80px 0;
    position: relative;
    z-index: 3;
}

.contact-left {
    display: flex;
    justify-content: center;
}

.qr-card {
    background: var(--white);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: relative;
    overflow: hidden;
    width: 230px;
}

.qr-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(2, 52, 90, 0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.qr-code {
    position: relative;
    z-index: 2;
}

.qr-icon {
    /* width: 150px;
    height: 150px; */
    /* background: linear-gradient(135deg, var(--primary-color), var(--accent-color)); */
    /* border-radius: 50%; */
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    /* box-shadow: 0 10px 30px rgba(2, 52, 90, 0.3); */
    margin-bottom: 20px;
}

.qr-icon img {
    width: 100%;
    height: auto;
    object-fit: cover;
    /* box-shadow: 0 10px 30px rgba(2, 52, 90, 0.3); */
}

.qr-text {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 6px;
}

.qr-desc {
    font-size: 13px;
    color: var(--text-light);
}

.contact-right {
    color: var(--white);
}

.contact-header h2 {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
}

.contact-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

.contact-motto {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
    margin-bottom: 40px;
}

.contact-info {
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateX(10px);
    border-color: rgba(255, 255, 255, 0.2);
}

.contact-icon {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    vertical-align: middle;
    flex-shrink: 0;
}

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

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.contact-label {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.contact-value {
    font-size: 15px;
    color: var(--white);
    font-weight: 600;
}

.contact-actions {
    text-align: center;
}

.join-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-color), #f59e0b);
    color: var(--white);
    padding: 10px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.3);
    position: relative;
    overflow: hidden;
}

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

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

.join-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(245, 158, 11, 0.4);
}

/* 響應式設計 */
@media (max-width: 768px) {
    .main {
        margin-top: 100vh;
    }

    /* 內容網格響應式 */
    .content-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .activity-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 20px;
    }

    .highlight-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .activity-img {
        height: 220px;
    }

    .featured-content {
        padding: 20px;
    }

    .featured-content h3 {
        font-size: 18px;
        margin-top: 0;
    }

    .activity-content {
        padding: 15px;
    }

    .activity-content h4 {
        font-size: 18px;
    }

    .activity-content p {
        font-size: 15px;
    }

    .activity-content .time-text {
        font-size: 15px;
    }

    .news-section,
    .youth-projects {
        padding: 20px;
    }

    .news-item {
        gap: 12px;
    }

    .project-btn {
        padding: 12px 16px;
        font-size: 0.9rem;
    }

    .highlight-section h2 {
        font-size: 30px;
    }

    .highlight-section p {
        font-size: 17px;
        margin-bottom: 40px;
    }

    .highlight-content {
        padding: 20px;
    }

    .highlight-swiper {
        height: 300px;
    }

    .swiper-slide{
        border-radius: 5px;
    }

    .swiper-slide img{
        border-radius: 5px;
    }

    .slide-description{
        border-radius: 0 0 5px 5px;
    }

    .slide-description {
        padding: 15px;
        transform: translateY(0);
    }

    .slide-description h4 {
        font-size: 16px;
    }

    .slide-description p {
        font-size: 12px;
        margin-bottom: 0;
    }
    .swiper-pagination{
        display: none;
    }
    .swiper-pagination .swiper-pagination-bullet {
        width: 10px;
        height: 10px;
    }

    .about-section {
        padding: 30px 0;
    }

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

    .about-image {
        transform: none;
        width: 100%;
        height: auto;
        border-radius: 10px;
    }

    .about-image img {
        width: 100%;
        height: auto;
    }

    .about-image:hover {
        transform: none;
    }

    .about-header h2 {
        font-size: 2.5rem;
    }

    .title-wrapper {
        gap: 10px;
    }

    .title-wrapper .title {
        font-size: 20px;
        flex: 1;
    }

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

    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 60px 0;
    }

    .contact-bg-text {
        font-size: 4rem;
    }

    .contact-header h2 {
        font-size: 2rem;
    }

    .qr-card {
        padding: 20px;
        width: 70%;
    }

    .contact-item {
        gap: 15px;
        padding: 12px;
    }

    .contact-icon svg {
        width: 20px;
        height: 20px;
    }
}