/* News Page Specific Styles */

/* Page Hero */
.page-hero {
    background: linear-gradient(135deg, #006666, #00a3a3);
    color: white;
    padding: 8rem 0 4rem;
    margin-top: 80px;
    text-align: center;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* News Categories */
.news-categories {
    padding: 2rem 0;
    background: #f8f9fa;
}

.category-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.tab-btn {
    background: #fff;
    border: 2px solid #e9ecef;
    color: #666;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
}

.tab-btn:hover,
.tab-btn.active {
    background: #006666;
    color: white;
    transform: translateY(-2px);
}

/* Featured News */
.featured-news {
    padding: 5rem 0;
    background: #fff;
}

.featured-article {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.featured-image {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.featured-image img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

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

.news-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: #006666;
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.news-badge.featured {
    background: #dc3545;
}

.news-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.news-category {
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.news-category.company {
    background: #d4edda;
    color: #155724;
}

.news-category.product {
    background: #cce5ff;
    color: #004085;
}

.news-category.media {
    background: #fff3cd;
    color: #856404;
}

.news-category.events {
    background: #f8d7da;
    color: #721c24;
}

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

.featured-content h2 {
    color: #006666;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.news-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.read-more-btn {
    display: inline-block;
    background: #006666;
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    background: #00a3a3;
    transform: translateY(-2px);
}

/* Search Section */
.news-search {
    background: #f8f9fa;
    padding: 3rem 0;
    text-align: center;
}

.search-container {
    max-width: 600px;
    margin: 0 auto;
}

.search-box {
    position: relative;
    width: 100%;
}

.search-input {
    width: 100%;
    padding: 1rem 3rem 1rem 1.5rem;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.search-input:focus {
    border-color: #006666;
}

.search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: #006666;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    background: #005555;
}

.search-results {
    margin-top: 1rem;
    color: #666;
    font-size: 0.9rem;
}

/* News Grid */
.news-grid {
    padding: 5rem 0;
    background: #f8f9fa;
}

.news-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.news-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 102, 102, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 102, 102, 0.15);
}

.news-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

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

.news-content {
    padding: 2rem;
}

.news-content .news-meta {
    margin-bottom: 0.8rem;
}

.reading-time {
    color: #999;
    font-size: 0.8rem;
}

.news-content h3 {
    color: #006666;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.news-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    color: #006666;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #00a3a3;
}

/* 空狀態樣式 */
.no-news {
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
    font-size: 1.1rem;
    grid-column: 1 / -1;
}

.no-news p {
    margin: 0;
    font-style: italic;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.page-btn {
    background: #fff;
    border: 1px solid #ddd;
    color: #666;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.page-btn:hover:not(:disabled) {
    background: #006666;
    border-color: #006666;
    color: white;
}

.page-btn.active {
    background: #006666;
    border-color: #006666;
    color: white;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-numbers {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.page-dots {
    color: #666;
    padding: 0 0.5rem;
}

/* Newsletter Signup */
.newsletter-signup {
    padding: 5rem 0;
    background: linear-gradient(135deg, #006666, #00a3a3);
    color: white;
}

.newsletter-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.newsletter-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.newsletter-text p {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.6;
}

.subscription-form {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 12px;
}

.form-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group input {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
}

.subscribe-btn {
    background: white;
    color: #006666;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.subscribe-btn:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
}

.privacy-notice {
    margin-top: 1rem;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    opacity: 0.9;
}

.checkbox-container input {
    margin: 0;
    padding: 0;
    width: auto;
}

.checkmark {
    width: 18px;
    height: 18px;
    background: white;
    border-radius: 3px;
    position: relative;
    flex-shrink: 0;
}

.checkbox-container input:checked + .checkmark {
    background: #006666;
}

.checkbox-container input:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

/* Related Links */
.related-links {
    padding: 5rem 0;
    background: #fff;
}

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

.link-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 102, 102, 0.15);
}

.link-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.link-card h4 {
    color: #006666;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.link-card p {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Navigation Active State */
.nav-link.active {
    color: #006666;
    font-weight: 600;
}

/* Filter Animation */
.news-card.hide {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.news-card.show {
    opacity: 1;
    transform: scale(1);
    animation: fadeInUp 0.5s ease forwards;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }
    
    .page-subtitle {
        font-size: 1.1rem;
    }
    
    .category-tabs {
        gap: 0.5rem;
        padding: 0 1rem;
    }
    
    .tab-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .featured-article {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .featured-content h2 {
        font-size: 1.8rem;
    }
    
    .news-list {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .newsletter-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .newsletter-text h2 {
        font-size: 2rem;
    }
    
    .form-group {
        flex-direction: column;
        gap: 1rem;
    }
    
    .links-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .pagination {
        flex-wrap: wrap;
        gap: 0.25rem;
    }
}

@media (max-width: 480px) {
    .page-hero {
        padding: 6rem 0 3rem;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
    
    .news-content {
        padding: 1.5rem;
    }
    
    .subscription-form {
        padding: 1.5rem;
    }
    
    .newsletter-text h2 {
        font-size: 1.8rem;
    }
    
    .link-card {
        padding: 1.5rem;
    }
    
    .links-grid {
        grid-template-columns: 1fr;
    }
    
    .page-numbers {
        display: none;
    }
} 