/* 新聞內頁樣式 */
.news-detail {
    margin-top: 80px;
    padding-bottom: 4rem;
}

.news-banner {
    position: relative;
    /* background-color: #0066cc; */
    width: 100%;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 80px;
    background-image: url(../images/1920x300.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.news-banner-content {
    text-align: center;
    color: white;
    z-index: 2;
    letter-spacing: 0.2rem;
}

.news-banner h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.news-banner img {
    width: 100%;
    height: auto;
    object-fit: cover;
    max-height: 500px;
    display: block;
}

.news-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    background-color: #fff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
    margin-top: -60px;
    position: relative;
    border-radius: 8px;
}

.news-detail-container img {
    width: 100%;
    height: auto;
}

@media (min-width: 769px) {
    .news-detail-container {
        padding: 2rem;
    }
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.news-meta time {
    font-size: 1rem;
    color: #666;
    font-weight: 500;
}

.back-button {
    display: inline-flex;
    align-items: center;
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;

}

.back-button::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-left: 2px solid #0066cc;
    border-bottom: 2px solid #0066cc;
    transform: rotate(45deg);
    margin-right: 8px;
    transition: transform 0.3s ease;
}

.back-button:hover {
    color: #0052a3;
}

.back-button:hover::before {
    transform: translateX(-10px) rotate(45deg);
}

.news-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 1rem;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    height: calc(1.2rem * 1.4);
}

.news-content {
    line-height: 1.8;
    color: #444;
}

.news-content p {
    margin: 0.2rem 0 2rem;
}

.news-content h2 {
    font-size: 1.2rem;
    color: #333;
    margin: 0rem 0 0.5rem;
}

.news-content ul {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.news-content li {
    margin-bottom: 0.75rem;
}

.news-content a {
    /* color: #ffffff; */
    text-decoration: none;
    transition: color 0.3s ease;
    letter-spacing: 0.1rem;
}

.news-content a:hover {
    color: #0052a3;
    text-decoration: underline;
}

.news-content img {
    max-width: 90%;
    margin: 1rem auto;
    border-radius: 8px;
    overflow: hidden;
}

.news-content video {
    max-width: 90%;
    margin: 1rem auto;
    border-radius: 8px;
    overflow: hidden;
}

.news-actions {
    margin: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.action-button {
    display: inline-block;
    padding: 0.875rem 4rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
}

.back-button.action-button {
    background-color: #cfcfcf;
    color: #444;
}

.back-button.action-button:hover {
    background-color: #e9e9e9;
    color: #333;
}

.back-button.action-button::before {
    display: none;
}

.signup-button {
    box-sizing: border-box;
    background-color: #0066cc;
    color: #fff;
}

.signup-button:hover {

    border: 2px solid #0066cc;
    background-color: #ffffff;
    color: #0066cc;
    text-decoration: none;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .news-banner {
        height: 200px;
    }

    .news-banner h1 {
        font-size: 2rem;
    }

    .news-banner img {
        max-height: 300px;
    }

    .news-detail-container {
        margin-top: -40px;
        padding: 1.5rem 1rem;
    }

    .news-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    .news-content h2 {
        font-size: 1.3rem;
    }

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

    .action-button {
        width: 100%;
    }

    .news-banner {
        margin-top: 60px;
    }

    .news-content {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .news-banner {
        height: 160px;
    }

    .news-banner h1 {
        font-size: 1.75rem;
    }

    .news-banner img {
        max-height: 200px;
    }

    .news-detail-container {
        margin-top: -30px;
        padding: 1.25rem 1rem;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    }

    .news-meta {
        flex-direction: row;
        align-items: flex-start;
        gap: 1rem;
    }

    .news-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .news-content p,
    .news-content ul,
    .news-content li {
        font-size: 1rem;
    }

    .news-banner {
        margin-top: 50px;
    }
}

/* 新聞列表頁面樣式 */
.news-list-container {
    max-width: 1200px;
    margin: 4rem auto 4rem;
    padding: 2rem;
    position: relative;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.news-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    display: flex;
    flex-direction: column;
}



.news-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.news-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

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

.news-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-date {
    display: block;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.news-excerpt {
    color: #666;
    font-size: 1rem;
    line-height: 1.4;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    height: calc(1rem * 1.4 * 2);
    margin-bottom: 4rem;
}

.news-more {
    position: absolute;
    bottom: 1.25rem;
    right: 1.5rem;
    color: #0066cc;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.news-more:hover {
    color: #0052a3;
}

.news-more::after {
    content: '>';
    margin-left: 4px;
    transition: transform 0.3s ease;
}

.news-more:hover::after {
    transform: translateX(3px);
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin: 3rem 0;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    border-radius: 4px;
    background: #fff;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}

@media (max-width: 1200px) {
    .news-list-container {
        margin: 4rem 2rem 0;
    }
}

@media (max-width: 992px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .news-list-container {
        margin: 2rem 1rem 0;
        padding: 1.5rem;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .news-image {
        height: 200px;
    }

    .news-content {
        padding: 1.5rem 1.5rem;
    }

    .news-title {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
        height: calc(1.2rem * 1.4);
    }

    .pagination {
        margin: 2rem 0;
    }

    .news-more {
        bottom: 1.25rem;
        right: 1.25rem;
    }
}

@media (max-width: 480px) {
    .news-list-container {
        margin: 2rem 1rem 0;
        padding: 1rem;
    }

    .news-image {
        height: 180px;
    }
}

/* 新聞詳情頁面樣式 */
.news-detail-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.news-detail-header {
    margin-bottom: 2rem;
}

.news-detail-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.news-detail-meta {
    color: #666;
    font-size: 0.9rem;
}

.news-detail-content {
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
}

@media (max-width: 768px) {
    .news-detail-container {
        padding: 1rem;
        margin: 1rem;
    }

    .news-detail-title {
        font-size: 1.5rem;
    }
}

/* 移除所有底線 */
a {
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

.news-content a:hover,
.back-button:hover,
.action-button:hover {
    text-decoration: none;
}

.agreement-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.agreement-title {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.agreement-intro {
    margin-bottom: 3rem;
    line-height: 1.8;
}

.agreement-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
    color: #333;
}

.agreement-content p {
    line-height: 1.8;
    margin-bottom: 1rem;
    color: #444;
}

.agreement-content ul {
    list-style-type: none;
    /* padding-left: 1rem;
    margin-bottom: 1.5rem; */

}

.agreement-content ul li {
    margin-bottom: 0.8rem;
    line-height: 1.6;
    position: relative;
    /* padding-left: 1rem; */
}

.agreement-content ul li::before {
    content: "•";
    position: absolute;
    left: -1rem;
    color: #666;
}

.agreement-notice {
    margin: 2rem 0 0;
    /*  padding: 1.5rem; */
    /* background-color: #f8f9fa;
    border-radius: 8px; */
}

.agreement-confirmation {
    margin: 2rem 0 0 2rem;
    padding: 1.5rem;
    background-color: #e9ecef;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
}

.agreement-confirmation p {
    margin: 2rem 1rem;
    vertical-align: middle;
}

.agreement-note {
    margin: 2rem 0 0 2rem;

    /* border-left: 4px solid #dee2e6;
    background-color: #f8f9fa; */
    font-size: 0.8rem;
    color: #666;
}

@media (max-width: 768px) {
    .agreement-section {
        padding: 1rem;
    }

    .agreement-title {
        font-size: 1.3rem;
    }

    .agreement-content h3 {
        font-size: 1.1rem;
    }
}

.agreement-title {
    margin-bottom: 4rem;
}

.agreement-tt {
    color: #000;
    letter-spacing: 0rem;
}
.agreement-user{color: #000;}   
.agreement-personal{color: #000;}