/* 全局樣式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4A90E2;
    --secondary-color: #50E3C2;
    --dark-color: #2C3E50;
    --light-color: #F8F9FA;
    --text-color: #333;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

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

/* 導航欄 */
.navbar {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo h1 {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a.active {
    color: var(--primary-color);
    font-weight: 600;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section / Slider */
.hero-section {
    margin-top: 70px;
    position: relative;
}

.slider-container {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
}

.slide-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    padding: 0 20px;
}

.slide-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s;
}

.slide-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s 0.2s both;
}

.btn-primary {
    display: inline-block;
    padding: 15px 40px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    animation: fadeInUp 0.8s 0.4s both;
}

.btn-primary:hover {
    background: #357ABD;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(74, 144, 226, 0.3);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--primary-color);
    transition: all 0.3s;
    z-index: 10;
}

.slider-btn:hover {
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.slider-btn.prev {
    left: 20px;
}

.slider-btn.next {
    right: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: white;
    width: 30px;
    border-radius: 6px;
}

/* 特色功能 */
.features-section {
    padding: 100px 0;
    background: var(--light-color);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--dark-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.feature-card .icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.feature-card:nth-child(2) .icon {
    background: var(--gradient-2);
}

.feature-card:nth-child(3) .icon {
    background: var(--gradient-3);
}

.feature-card:nth-child(4) .icon {
    background: var(--gradient-1);
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--dark-color);
}

/* 團隊介紹 */
.team-section {
    padding: 100px 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.team-member {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 5px solid var(--light-color);
}

.team-member h3 {
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.team-member .role {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.team-member p {
    color: #666;
    font-size: 0.9rem;
}

/* 聯絡我們 */
.contact-section {
    padding: 100px 0;
    background: var(--light-color);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.info-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-top: 0.3rem;
}

.info-item h3 {
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--primary-color);
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* 動畫 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* APP 區塊 */
.app-section {
    padding: 100px 0;
    background: white;
}

.app-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 3rem;
}

.app-image img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.app-info h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.app-info p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.app-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.app-feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.app-feature-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.download-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 12px 24px;
    background: var(--dark-color);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s;
}

.download-btn:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(74, 144, 226, 0.3);
}

.download-btn i {
    font-size: 2rem;
}

.download-btn small {
    display: block;
    font-size: 0.7rem;
}

.download-btn strong {
    display: block;
    font-size: 1rem;
}

/* 讀書會區塊 */
.study-group-section {
    padding: 100px 0;
    background: var(--light-color);
}

.section-subtitle {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    margin-top: -1.5rem;
    margin-bottom: 3rem;
}

.study-group-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.study-group-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.study-group-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.study-group-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.study-group-content {
    padding: 1.5rem;
}

.study-group-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.study-group-date {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.study-group-description {
    color: #666;
    margin-bottom: 1rem;
}

.study-group-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #999;
}

/* Instagram 區塊 */
.instagram-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.instagram-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.instagram-feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.instagram-feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.instagram-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 50%, #fcb045 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.instagram-icon i {
    font-size: 2rem;
    color: white;
}

.instagram-feature-card h3 {
    text-align: center;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}

.instagram-feature-card ul {
    list-style: none;
    padding: 0;
}

.instagram-feature-card ul li {
    padding: 0.75rem 0;
    color: #666;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.instagram-feature-card ul li i {
    color: var(--primary-color);
    font-size: 1rem;
}

.btn-instagram {
    background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 50%, #fcb045 100%);
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
}

.btn-instagram:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(131, 58, 180, 0.4);
}

/* 團隊預覽區塊 */
.team-preview-section {
    padding: 100px 0;
    background: var(--light-color);
}

/* 團隊輪播容器 */
.team-carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 40px 0;
}

.team-carousel-wrapper {
    flex: 1;
    overflow: hidden;
    padding: 20px 0;
}

.team-carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 20px;
}

.team-member-slide {
    flex: 0 0 calc(25% - 15px);
    min-width: calc(25% - 15px);
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.team-member-slide:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.3);
}

.team-member-slide img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 4px solid var(--primary-color);
}

.team-member-slide h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.team-member-slide .role {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.team-member-slide p {
    color: var(--text-color);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* 輪播按鈕 */
.carousel-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.carousel-btn:hover:not(:disabled) {
    background: var(--secondary-color);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.carousel-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.5;
}

/* 響應式設計 */
@media (max-width: 1200px) {
    .team-member-slide {
        flex: 0 0 calc(33.333% - 14px);
        min-width: calc(33.333% - 14px);
    }
}

@media (max-width: 768px) {
    .team-member-slide {
        flex: 0 0 calc(50% - 10px);
        min-width: calc(50% - 10px);
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .team-carousel-container {
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .team-member-slide {
        flex: 0 0 100%;
        min-width: 100%;
    }
    
    .team-member-slide img {
        width: 120px;
        height: 120px;
    }
}

.mt-4 {
    margin-top: 2rem;
}

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

/* 頁面標題 */
.page-header {
    margin-top: 70px;
    padding: 80px 0 60px;
    background: var(--gradient-1);
    color: white;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.3rem;
    opacity: 0.9;
}

/* 團隊篩選區塊 */
.team-filter-section {
    padding: 3rem 0;
    background: var(--light-color);
}

.filter-controls {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.search-input,
.role-filter {
    padding: 12px 20px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    min-width: 250px;
    transition: border-color 0.3s;
}

.search-input:focus,
.role-filter:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* 所有團隊成員區塊 */
.all-team-section {
    padding: 60px 0 100px;
    background: white;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .slide-content h2 {
        font-size: 2rem;
    }

    .slide-content p {
        font-size: 1rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .slider-btn.prev {
        left: 10px;
    }

    .slider-btn.next {
        right: 10px;
    }

    .app-content {
        grid-template-columns: 1fr;
    }

    .download-buttons {
        flex-direction: column;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .filter-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .search-input,
    .role-filter {
        min-width: 100%;
    }
}
