/* Hero Section 相關樣式 */
.hero-section {
    position: relative;
    width: calc(100% - 40px);
    margin: 0 auto 60px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(46,139,87,0.1) 0%, rgba(46,139,87,0.05) 100%);
    border-radius: 20px;
    padding: 60px 40px;
    box-shadow: 0 10px 30px rgba(46,139,87,0.1);
    text-align: center;
    box-sizing: border-box;
}

/* 圓球效果 */
.hero-section::before,
.hero-section::after {
    content: '';
    position: absolute;
    background: linear-gradient(45deg, rgba(46,139,87,0.2) 0%, rgba(46,139,87,0.1) 100%);
    border-radius: 50%;
    z-index: 0;
}

.hero-section::before {
    width: 300px;
    height: 300px;
    top: -100px;
    left: -100px;
    animation: float 6s ease-in-out infinite;
}

.hero-section::after {
    width: 200px;
    height: 200px;
    bottom: -50px;
    right: -50px;
    animation: float 8s ease-in-out infinite alternate;
}

/* 背景圖片相關樣式 */
.hero-section.with-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-section.with-image::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.85);
    z-index: 1;
}

/* 內容區塊 */
.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 標題樣式 */
.hero-title {
    font-size: 36px;
    color: #2E8B57;
    margin-bottom: 30px;
    line-height: 1.4;
    font-weight: 700;
    position: relative;
    display: inline-block;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    padding-bottom: 20px;
}

.hero-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        #2E8B57 20%, 
        #2E8B57 80%, 
        transparent 100%
    );
}

/* 描述文字 */
.hero-description {
    font-size: 20px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(20px);
    animation: floatUp 0.8s ease-out forwards;
    animation-delay: 0.3s;
}

/* 動畫效果 */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes floatUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 新聞詳細頁面特定樣式 */
.news-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.news-content {
    max-width: 800px;
    margin: 0 auto 60px;
    padding: 0 20px;
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.news-content p {
    margin-bottom: 20px;
}

.news-date {
    text-align: center;
    color: #888;
    font-size: 14px;
    margin-bottom: 40px;
}

.news-images {
    max-width: 800px;
    margin: 0 auto 60px;
    padding: 0 20px;
}

.news-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    margin-top: 30px;
    justify-content: center;
}

.news-image-item {
    position: relative;
    width: 100%;
    padding-top: 66.67%;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.news-image-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-image-item:hover img {
    transform: scale(1.05);
}

.back-button {
    position: relative;
    display: inline-block;
    margin: 20px 0;
    padding: 10px 28px;
    background: #fff;
    color: #2E8B57;
    border: 2px solid #2E8B57;
    border-radius: 6px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    overflow: hidden;
    transition: color 0.2s;
    box-shadow: 0 2px 8px rgba(46,139,87,0.08);
    letter-spacing: 1px;
    z-index: 1;
}

.back-button::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 0;
    background: #2E8B57;
    z-index: -1;
    transition: width 0.4s cubic-bezier(.4,0,.2,1);
}

.back-button:hover {
    color: #fff;
}

.back-button:hover::before {
    width: 100%;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .hero-section {
        padding: 40px 20px;
        width: calc(100% - 20px);
    }

    .hero-section::before {
        width: 150px;
        height: 150px;
        top: -30px;
        left: -30px;
    }

    .hero-section::after {
        width: 100px;
        height: 100px;
        bottom: -20px;
        right: -20px;
    }

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

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

    .news-content {
        font-size: 15px;
    }

    .news-images-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .hero-section {
        padding: 30px 15px;
        width: calc(100% - 15px);
    }
}

/* 確保所有內容都在容器內 */
* {
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
} 
