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

:root {
    /* 專業新聞媒體配色 - 傳達專業與信任感 */
    --primary-color: #1e3a5f;        /* 深海軍藍 - 專業可信 */
    --primary-light: #2d5a8c;        /* 中等海軍藍 */
    --primary-dark: #0d1f3a;         /* 極深藍 */
    --accent-color: #d32f2f;         /* 新聞紅 - 重要資訊 */
    --accent-hover: #b71c1c;         /* 深紅 - 懸停狀態 */
    --accent-secondary: #0277bd;     /* 資訊藍 - 次要強調 */
    --text-primary: #212121;         /* 純黑 - 主文字 */
    --text-secondary: #616161;       /* 深灰 - 次要文字 */
    --text-light: #9e9e9e;           /* 淺灰 - 輔助文字 */
    --bg-primary: #ffffff;           /* 純白背景 */
    --bg-secondary: #fafafa;         /* 極淺灰背景 */
    --bg-accent: #f5f5f5;            /* 淺灰背景 */
    --border-color: #e0e0e0;         /* 邊框灰 */
    --border-light: #eeeeee;         /* 淺邊框 */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 8px 32px rgba(0, 0, 0, 0.15);
    --transition-smooth: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease-out;
}

/* 防複製保護 */
body {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

/* 允許輸入框可選擇 */
input, textarea {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
    font-family: inherit;
}

/* 表單元素樣式 */
input:focus, textarea:focus {
    outline: none;
}

/* 自定義滾動條 */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--accent-color), var(--primary-color));
    border-radius: 6px;
    border: 2px solid var(--bg-secondary);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--primary-color), var(--primary-dark));
}

/* 禁用右鍵選單 */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft JhengHei', 'PingFang TC', 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-primary);
    background: var(--bg-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Header 導航欄 */
.header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 3px solid var(--accent-color);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
    transition: var(--transition-fast);
}

.header::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--primary-color) 20%, 
        var(--primary-color) 80%, 
        transparent);
    opacity: 0.3;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 76px;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 60px;
}

.logo {
    display: inline-block;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 24px;
    font-weight: normal;
    white-space: nowrap;
    transition: var(--transition-smooth);
}

.logo:hover {
    transform: scale(1.02);
}

.logo img {
    height: 60px;
    width: auto;
    max-height: 60px;
    display: block;
    transition: var(--transition-smooth);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.logo:hover img {
    filter: drop-shadow(0 4px 8px rgba(211, 47, 47, 0.2));
}

.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 1001;
    transition: var(--transition-fast);
    border-radius: 4px;
}

.hamburger-menu:hover {
    background: var(--bg-secondary);
}

.hamburger-menu span {
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.25s ease;
    transform-origin: center;
}

.hamburger-menu.active span {
    background: var(--accent-color);
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* 手機版增強點擊區域 */
@media (max-width: 768px) {
    .hamburger-menu {
        width: 44px;
        height: 44px;
        padding: 10px;
    }
}

.nav-menu {
    display: flex;
    gap: 30px;
    justify-content: flex-end;
    width: 100%;
    margin-top: 8px;
    min-height: 40px;
    align-items: center;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: auto;
}

.nav-item {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: var(--transition-fast);
    position: relative;
    padding: 10px 0;
    letter-spacing: 0.5px;
}

.nav-item:hover {
    color: var(--accent-color);
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.25s ease-out;
}

.nav-item:hover::after {
    width: 100%;
}

/* 手機版增強點擊區域 */
@media (max-width: 768px) {
    .nav-item {
        padding: 18px 0;
        font-size: 16px;
        display: block;
        width: 100%;
    }
}

.search-icon {
    cursor: pointer;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    padding: 10px;
    transition: var(--transition-fast);
    margin-left: 0;
    border-radius: 4px;
    background: transparent;
    border: 1px solid transparent;
}

.search-icon:hover {
    background: var(--bg-secondary);
    color: var(--accent-color);
    border-color: var(--border-color);
}

/* 手機版增強點擊區域 */
@media (max-width: 768px) {
    .search-icon {
        padding: 12px;
    }
}

/* 搜尋彈窗 */
.search-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 54, 93, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.search-modal.active {
    display: flex;
}

.search-modal-content {
    background: var(--bg-primary);
    padding: 50px 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: var(--shadow-xl);
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.search-prompt {
    color: var(--text-primary);
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 20px;
    text-align: center;
    letter-spacing: 0.5px;
}

.search-input {
    width: 100%;
    padding: 18px 24px;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    font-size: 16px;
    color: var(--text-primary);
    outline: none;
    transition: var(--transition-smooth);
    background: var(--bg-secondary);
}

.search-input:focus {
    border-color: var(--accent-color);
    background: var(--bg-primary);
    box-shadow: 0 0 0 4px rgba(49, 130, 206, 0.1);
}

.search-input::placeholder {
    color: var(--text-light);
}

.search-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--bg-accent);
    border: none;
    font-size: 28px;
    color: var(--text-secondary);
    cursor: pointer;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.search-close:hover {
    background: var(--primary-color);
    color: white;
    transform: rotate(90deg);
}

/* 搜尋輸入框容器 */
.search-input-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.search-submit-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.search-submit-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-50%) scale(1.1);
}

.search-submit-btn svg {
    color: white;
}

/* 搜尋結果 */
.search-results {
    max-height: 500px;
    overflow-y: auto;
    margin-top: 20px;
}

.search-results-header {
    padding: 10px 0;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 15px;
}

.search-results-count {
    color: var(--text-secondary);
    font-size: 14px;
}

.search-results-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.search-result-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: var(--bg-secondary);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.search-result-item:hover {
    background: var(--bg-accent);
    border-color: var(--primary-color);
    transform: translateX(5px);
}

.search-result-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-accent);
}

.search-result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-result-info {
    flex: 1;
    min-width: 0;
}

.search-result-category {
    display: inline-block;
    padding: 4px 12px;
    background: var(--primary-color);
    color: white;
    border-radius: 12px;
    font-size: 12px;
    margin-bottom: 8px;
}

.search-result-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.search-result-excerpt {
    font-size: 14px;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

.search-result-date {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 6px;
}

/* 搜尋載入中 */
.search-loading {
    text-align: center;
    padding: 40px 20px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.search-loading p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* 搜尋無結果 */
.search-no-results {
    text-align: center;
    padding: 60px 20px;
}

.search-no-results p:first-child {
    font-size: 24px;
    margin-bottom: 10px;
}

.search-no-results p:last-child {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Banner 輪播 */
.banner-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    padding: 0;
    position: relative;
    overflow: hidden;
}

.banner-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.4) 0%, rgba(13, 31, 58, 0.3) 100%);
    z-index: 0;
}

.banner-section .container {
    position: relative;
    z-index: 1;
}

.banner-carousel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
}

.banner-wrapper {
    position: relative;
    width: 100%;
    max-width: 1500px;
    aspect-ratio: 20/10.4; /* 高度增加 30% (原 20/8) */
    overflow: hidden;
    margin: 0 auto;
}

.banner-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none; /* 隱藏的 Banner 不攔截點擊事件 */
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.banner-item.active {
    opacity: 1;
    pointer-events: auto; /* 啟用的 Banner 可以接收點擊事件 */
}

.banner-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1);
    transition: transform 8s ease-out;
}

.banner-item.active img {
    transform: scale(1.05);
}

.banner-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, 
        rgba(26, 54, 93, 0.95) 0%,
        rgba(26, 54, 93, 0.7) 50%,
        transparent 100%);
    padding: 50px 40px;
    color: #ffffff;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.banner-caption h2 {
    font-size: 32px;
    margin-bottom: 12px;
    color: #ffffff;
    font-weight: 600;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
}

.banner-caption p {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

.banner-prev,
.banner-next {
    cursor: pointer;
    color: white;
    padding: 10px;
    transition: var(--transition-fast);
    flex-shrink: 0;
    position: absolute;
    z-index: 10;
    background: rgba(30, 58, 95, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 50%;
    transform: translateY(-50%);
}

.banner-prev {
    left: 20px;
}

.banner-next {
    right: 20px;
}

.banner-prev:hover,
.banner-next:hover {
    background: var(--accent-color);
    border-color: white;
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 4px 16px rgba(211, 47, 47, 0.4);
}

/* 手機版增強點擊區域 */
@media (max-width: 968px) {
    .banner-prev,
    .banner-next {
        width: 44px;
        height: 44px;
        padding: 8px;
    }
    
    .banner-prev {
        left: 10px;
    }
    
    .banner-next {
        right: 10px;
    }
}

/* Banner 指示器 */
.banner-indicators {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
    padding: 8px 16px;
    background: rgba(30, 58, 95, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.banner-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition-fast);
    border: none;
}

.banner-indicator:hover {
    background-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.15);
}

.banner-indicator.active {
    background-color: var(--accent-color);
    width: 28px;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(211, 47, 47, 0.5);
}

/* 特別企劃 */
.special-feature {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    position: relative;
}

.special-feature-title {
    font-size: 30px;
    color: var(--text-primary);
    margin-bottom: 30px;
    text-align: left;
    font-weight: 800;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    flex-wrap: wrap;
    position: relative;
    padding-bottom: 15px;
    flex-shrink: 0;
}

.special-feature-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}

.feature-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    padding: 6px 14px;
    background: var(--accent-color);
    color: #ffffff;
    border-radius: 4px;
    font-weight: 700;
    letter-spacing: 1.5px;
    box-shadow: 0 2px 8px rgba(211, 47, 47, 0.25);
    transition: var(--transition-smooth);
    border: 2px solid var(--accent-color);
}

.feature-badge svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: currentColor;
    animation: star-pulse 2s ease-in-out infinite;
}

@keyframes star-pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
    50% {
        opacity: 0.85;
        transform: scale(1.1) rotate(5deg);
    }
}

.special-feature-content {
    display: flex;
    gap: 50px;
    align-items: stretch;
    max-width: 1500px;
    margin: 0 auto;
    position: relative;
}

/* 在左右區塊之間添加一條裝飾線 */
.special-feature-content::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 59.4%;
    width: 1px;
    background: linear-gradient(180deg, 
        transparent 0%, 
        var(--border-color) 10%, 
        var(--border-color) 90%, 
        transparent 100%);
    transform: translateX(-25px);
}

@media (max-width: 968px) {
    .special-feature-content::before {
        display: none;
    }
}

.special-feature-left {
    width: calc(59.4% - 25px);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.special-feature-right {
    width: calc(40.6% - 25px);
    flex-shrink: 0;
    padding-top: 0;
    display: flex;
    flex-direction: column;
    gap: 30px;
    position: relative;
    height: auto;
}

@media (min-width: 969px) {
    .special-feature-right::before {
        content: '';
        position: absolute;
        top: -15px;
        bottom: -15px;
        left: -15px;
        right: -15px;
        background: linear-gradient(135deg, 
            rgba(49, 130, 206, 0.02) 0%, 
            rgba(26, 54, 93, 0.02) 100%);
        border-radius: 20px;
        z-index: -1;
        opacity: 0.5;
    }
}

.special-feature-row {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0;
    margin-bottom: 0;
}

/* 分類頁面：第一張大圖與下方小區塊的間距 */
.tech-content-left .special-feature-row {
    margin-bottom: 60px;
    position: relative;
}

/* 在第一張大圖下方添加微妙的陰影效果 */
.tech-content-left .special-feature-row::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--border-color) 20%, 
        var(--border-color) 80%, 
        transparent);
    opacity: 0.5;
}

/* 平板版：適度減少間距 */
@media (max-width: 1200px) and (min-width: 969px) {
    .tech-content-left .special-feature-row {
        margin-bottom: 50px;
    }
    
    .tech-content-left .special-feature-row::after {
        bottom: -25px;
    }
}

.news-card.special-feature-card {
    width: 100%;
    max-width: 100%;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-color);
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: var(--shadow-md);
}

.news-card.special-feature-card::before {
    width: 0;
    background: var(--accent-color);
}

.news-card.special-feature-card .news-image {
    aspect-ratio: 16/11;
    flex: 1;
    min-height: 455px; /* 高度增加 30% (原 350px) */
    max-height: none;
}

.news-card.special-feature-card .news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-card.special-feature-card .news-card-content {
    flex-shrink: 0;
}

.news-card.special-feature-card .news-excerpt {
    flex-shrink: 0;
}

/* 桌面版：讓特別企劃卡片高度與右側總和一致 */
@media (min-width: 969px) {
    .news-card.special-feature-card .news-image {
        aspect-ratio: auto;
        /* 讓圖片自動填滿剩餘空間 */
        min-height: 585px; /* 高度增加 30% (原 450px) */
    }
    
    .news-card.special-feature-card .news-card-content {
        padding-top: 5px;
    }
    
    .news-card.special-feature-card .news-excerpt {
        display: block;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        padding-bottom: 5px;
    }
}

.news-card.special-feature-card:hover {
    border-left-width: 6px;
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.news-card.special-feature-card:hover::before {
    width: 0;
}

@media (max-width: 640px) {
    .news-card.special-feature-card {
        height: auto;
        flex-direction: row;
    }
    
    .news-card.special-feature-card .news-image {
        aspect-ratio: 4/3;
        flex: none;
        min-height: auto;
    }
}

/* 即時熱門文章 */
.hot-articles {
    background: white;
    border-radius: 8px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    border-left: 4px solid var(--accent-color);
    transition: var(--transition-smooth);
}

.hot-articles:hover {
    box-shadow: var(--shadow-md);
    border-left-width: 6px;
}

.special-feature-right .hot-articles {
    margin: 0;
}

.hot-articles-title {
    font-size: 20px;
    color: var(--text-primary);
    margin-bottom: 20px;
    font-weight: 700;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
    letter-spacing: 0.3px;
    position: relative;
    display: flex;
    align-items: center;
}

.hot-articles-title::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 10px;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23d32f2f" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M8.5 14.5A2.5 2.5 0 0 0 11 12c0-1.38-.5-2-1-3-1.072-2.143-.224-4.054 2-6 .5 2.5 2 4.9 4 6.5 2 1.6 3 3.5 3 5.5a7 7 0 1 1-14 0c0-1.153.433-2.294 1-3a2.5 2.5 0 0 0 2.5 2.5z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: middle;
    animation: pulse-icon 2s ease-in-out infinite;
}

@keyframes pulse-icon {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1);
    }
    50% { 
        opacity: 0.85; 
        transform: scale(1.05);
    }
}

.hot-articles-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hot-articles-list li {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    padding-left: 20px;
}

.hot-articles-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 4px;
    height: 4px;
    background: var(--text-light);
    border-radius: 50%;
    transition: var(--transition-fast);
}

.hot-articles-list li:hover::before {
    width: 6px;
    height: 6px;
    top: 7px;
    background: var(--accent-color);
}

.hot-articles-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.hot-articles-list li a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 15px;
    line-height: 1.7;
    display: block;
    transition: var(--transition-fast);
    padding: 2px 0;
}

.hot-articles-list li a:hover {
    color: var(--accent-color);
    padding-left: 8px;
}

/* 手機版增強點擊區域 */
@media (max-width: 968px) {
    .hot-articles-list li {
        padding: 18px 0 18px 20px;
    }
    
    .hot-articles-list li a {
        font-size: 16px;
        line-height: 1.6;
    }
}

/* 廣告區塊 */
.ad-section {
    width: 100%;
    pointer-events: auto;
    user-select: auto;
    -webkit-user-select: auto;
    -moz-user-select: auto;
    -ms-user-select: auto;
}

.special-feature-right .ad-section {
    margin-top: 0;
}

.ad-label {
    font-size: 11px;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 12px;
    letter-spacing: 2.5px;
    font-weight: 600;
    text-transform: uppercase;
}

.ad-content {
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    overflow: hidden;
    display: block;
    min-height: 200px;
    pointer-events: auto;
    box-shadow: var(--shadow-sm);
}

.ad-content * {
    pointer-events: auto;
}

.ad-video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 比例 */
    height: 0;
    overflow: visible;
    background-color: #000000;
    min-height: 200px;
}

.ad-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    user-select: auto;
    -webkit-user-select: auto;
    -moz-user-select: auto;
    -ms-user-select: auto;
    z-index: 1;
}

/* 桌機版AD影片寬度與文字區塊對齊 */
@media (min-width: 969px) {
    .ad-content {
        overflow: hidden;
    }
    
    .ad-video-wrapper {
        width: 100%;
        margin-left: 0;
    }
}

/* 追蹤我們 */
.follow-us {
    margin-top: 45px;
    background: white;
    border-radius: 16px;
    padding: 28px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.follow-us-title {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 24px;
    font-weight: 600;
    border-bottom: 3px solid var(--accent-color);
    padding-bottom: 12px;
    letter-spacing: 0.5px;
}

.social-icons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.social-icon {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-accent);
    border-radius: 50%;
    border: 2px solid var(--border-color);
}

.social-icon:hover {
    color: var(--accent-color);
    background: var(--bg-primary);
    border-color: var(--accent-color);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 6px 15px rgba(49, 130, 206, 0.3);
}

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

/* 最新消息 */
.latest-news {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    border-top: none;
    position: relative;
}

.latest-news::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    border-radius: 2px;
}

.section-title {
    font-size: 36px;
    color: var(--text-primary);
    margin-bottom: 50px;
    text-align: center;
    font-weight: 800;
    border-bottom: none;
    padding-bottom: 0;
    letter-spacing: 0.5px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}

.section-title-icon {
    display: inline-block;
    width: 32px;
    height: 32px;
    margin-right: 12px;
    vertical-align: middle;
    color: var(--accent-color);
}

.section-title-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    animation: icon-float 3s ease-in-out infinite;
}

@keyframes icon-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.tech-page-title {
    font-size: 32px;
    color: #000000;
    margin-bottom: 40px;
    text-align: left;
    font-weight: bold;
    border-bottom: none;
    padding-bottom: 0;
}

.news-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
    position: relative;
}

.news-row::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--border-color) 20%, 
        var(--border-color) 80%, 
        transparent);
}

.news-row:last-child::after {
    display: none;
}

.news-row.gray-background {
    background: linear-gradient(180deg, 
        var(--bg-accent) 0%, 
        var(--bg-secondary) 50%, 
        var(--bg-accent) 100%);
    padding: 60px 20px;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    width: 100vw;
    margin-top: 0;
    margin-bottom: 60px;
    max-width: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    position: relative;
}

.news-row.gray-background::after {
    display: none;
}

@media (min-width: 1240px) {
    .news-row.gray-background {
        padding-left: calc((100vw - 1200px) / 2 + 20px);
        padding-right: calc((100vw - 1200px) / 2 + 20px);
    }
}

.news-card {
    background-color: var(--bg-primary);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition-smooth);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    position: relative;
}

.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--accent-color);
    transition: height 0.3s ease;
    z-index: 2;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-color);
}

.news-card:hover::before {
    height: 100%;
}

.news-card:hover .news-title {
    color: var(--primary-color);
}

/* 手機版增強點擊區域 */
@media (max-width: 968px) {
    .news-card {
        padding: 8px;
        min-height: 80px;
    }
    
    .news-card:active {
        transform: scale(0.98);
        box-shadow: var(--shadow-md);
    }
}

.news-image {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-accent), var(--bg-secondary));
    position: relative;
    z-index: 1;
}

.news-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(26, 54, 93, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.news-card:hover .news-image::after {
    opacity: 1;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* 圖片載入淡入效果 */
.news-image img {
    animation: fadeInImage 0.4s ease-out;
}

@keyframes fadeInImage {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.news-image-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    width: 100%;
    aspect-ratio: 4/3;
}

.news-image-group img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-category {
    display: inline-block;
    margin: 15px 20px 10px;
    padding: 4px 12px;
    background: var(--bg-secondary);
    color: var(--accent-color);
    font-size: 11px;
    font-weight: 700;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-left: 3px solid var(--accent-color);
    position: relative;
    z-index: 1;
    transition: var(--transition-fast);
}

.news-card:hover .news-category {
    background: var(--accent-color);
    color: white;
    transform: translateX(3px);
}

.news-card-content {
    position: relative;
    z-index: 1;
}

@media (max-width: 640px) {
    .news-card .news-category,
    .special-feature-card .news-category {
        display: block;
        margin: 0 0 8px 0;
        padding: 3px 8px;
    }
}

.news-title {
    font-size: 18px;
    color: var(--text-primary);
    margin: 0 20px 15px;
    line-height: 1.6;
    font-weight: 700;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    letter-spacing: 0.2px;
    position: relative;
    z-index: 1;
    transition: color 0.2s ease;
}

.news-card:hover .news-title {
    letter-spacing: 0.3px;
}

@media (max-width: 640px) {
    .news-card .news-title,
    .special-feature-card .news-title {
        margin: 0;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }
}

.news-excerpt {
    font-size: 15px;
    color: var(--text-secondary);
    margin: 0 20px 20px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

/* 平滑滾動 */
html {
    scroll-behavior: smooth;
}

/* 頁面載入動畫 */
body {
    animation: pageLoad 0.5s ease-out;
}

@keyframes pageLoad {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 漸層文字效果 */
.gradient-text {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 滾動動畫由 JavaScript 控制 */

/* 隱藏最新消息的內文 */
.latest-news .news-excerpt {
    display: none;
}

.news-card.featured {
    grid-column: 1 / -1;
}

.featured-row {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.news-card.featured-half {
    grid-column: auto;
}

/* Footer */
.footer {
    background: var(--primary-dark);
    padding: 50px 0 25px;
    border-top: 3px solid var(--accent-color);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, 
        rgba(30, 58, 95, 0.3) 0%, 
        transparent 100%);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.footer-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: var(--transition-smooth);
    position: relative;
    padding: 5px 0;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.footer-link:hover {
    color: #ffffff;
    transform: translateY(-2px);
}

.footer-link:hover::after {
    width: 100%;
}

.footer-info {
    text-align: center;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 15px;
    position: relative;
    z-index: 1;
}

.footer-info p {
    margin: 8px 0;
}

.footer-info a {
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition-smooth);
    font-weight: 500;
}

.footer-info a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-follow {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.footer-follow-title {
    font-size: 20px;
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.footer-social-icons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-social-icons .social-icon {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-social-icons .social-icon:hover {
    color: #ffffff;
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.4);
}

/* 手機版增強點擊區域 */
@media (max-width: 640px) {
    .footer-social-icons .social-icon {
        width: 48px;
        height: 48px;
    }
}

.footer-social-icons .social-icon svg {
    width: 20px;
    height: 20px;
}

.footer-copyright {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
    z-index: 1;
}

/* 響應式設計 */
@media (max-width: 968px) {
    .banner-item.prev-banner,
    .banner-item.next-banner {
        display: none;
    }
    
    .banner-item.active {
        flex: 0 0 100%;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 10px 0;
    }
    
    .header-top {
        justify-content: space-between;
        min-height: 56px;
    }
    
    .logo {
        flex-shrink: 0;
    }
    
    .logo img {
        height: 52px;
        max-height: 52px;
    }
    
    .header-right {
        display: flex;
        align-items: center;
        gap: 15px;
    }
    
    .hamburger-menu {
        display: flex;
        flex-shrink: 0;
    }
    
    .nav-menu {
        position: fixed;
        top: 76px;
        left: 0;
        width: 100%;
        max-width: 100%;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        box-shadow: var(--shadow-lg);
        border-top: 1px solid var(--border-color);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1000;
        gap: 0;
        flex: none;
        justify-content: flex-start;
        display: flex;
        margin-top: 0;
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    .nav-item {
        width: 100%;
        padding: 15px 0;
        border-bottom: 1px solid #e0e0e0;
        font-size: 16px;
    }
    
    .nav-item:last-child {
        border-bottom: 1px solid #e0e0e0;
    }
    
    .nav-item::after {
        display: none;
    }
    
}

@media (max-width: 968px) {
    .special-feature-content {
        flex-direction: column;
        align-items: stretch;
    }
    
    .special-feature-left,
    .special-feature-right {
        width: 100%;
        min-height: auto;
    }
    
    .special-feature-title {
        font-size: 28px;
        margin-bottom: 25px;
    }
    
    .special-feature-row {
        flex: none;
    }
    
    .news-card.special-feature-card {
        height: auto;
    }
    
    .news-card.special-feature-card .news-image {
        flex: none;
        min-height: auto;
        aspect-ratio: 16/11;
    }
    
    .banner-wrapper {
        width: 100%;
        left: 0;
    }
}

@media (max-width: 640px) {
    .nav-menu {
        gap: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        box-shadow: var(--shadow-lg);
    }
    
    /* Banner 高度減少15% */
    .banner-wrapper {
        aspect-ratio: 20/17;
    }
    
    .banner-caption {
        padding: 30px 20px;
    }
    
    .banner-caption h2 {
        font-size: 22px;
    }
    
    .banner-caption p {
        font-size: 15px;
    }
    
    .banner-prev,
    .banner-next {
        width: 44px;
        height: 44px;
    }
    
    .banner-prev {
        left: 15px;
    }
    
    .banner-next {
        right: 15px;
    }
    
    .section-title {
        font-size: 28px;
        margin-bottom: 35px;
    }
    
    .section-title::after {
        bottom: -12px;
        width: 50px;
    }
    
    .hot-articles {
        padding: 20px;
        border-radius: 12px;
    }
    
    .hot-articles-list li a {
        font-size: 14px;
    }
    
    /* Banner 區塊間距減少50% */
    .banner-section {
        margin-bottom: 0;
    }
    
    /* 特別企劃區塊間距減少50% */
    .special-feature {
        padding: 30px 0 !important;
    }
    
    /* 手機版右側區塊間距調整 */
    .special-feature-right {
        margin-top: 30px !important;
        gap: 20px;
    }
    
    .special-feature-right .hot-articles {
        margin-bottom: 0 !important;
        padding: 20px;
    }
    
    .hot-articles-title {
        margin-bottom: 15px !important;
        font-size: 18px;
    }
    
    .hot-articles-title::before {
        font-size: 18px;
        margin-right: 6px;
    }
    
    /* 最新消息區塊間距減少50% */
    .latest-news {
        padding: 30px 0 !important;
    }
    
    .section-title {
        margin-bottom: 20px !important;
    }
    
    /* 廣告區塊手機版樣式 */
    .special-feature-right .ad-section {
        margin-top: 0 !important;
    }
    
    /* 特別企劃手機版樣式 - 與最新消息一致 */
    .news-card.special-feature-card {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: flex-start;
        gap: 12px;
        padding: 12px 0;
        border-bottom: 1px solid #e0e0e0;
        margin: 0;
    }
    
    .news-card.special-feature-card .news-image {
        width: 40% !important;
        flex-shrink: 0;
        aspect-ratio: 4/3 !important;
        margin: 0;
        order: 1;
    }
    
    .news-card.special-feature-card .news-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    /* 特別企劃右側文字區塊 - 上下排列 */
    .news-card.special-feature-card .news-card-content {
        order: 2;
        flex: 1;
        display: flex;
        flex-direction: column;
        min-width: 0;
    }
    
    .news-card.special-feature-card .news-category {
        margin: 0 0 8px 0;
        font-size: 14px;
        padding: 3px 8px;
        display: block;
        width: auto;
        max-width: fit-content;
    }
    
    .news-card.special-feature-card .news-title {
        margin: 0;
        font-size: 18px;
        line-height: 1.4;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        width: 100%;
        min-width: 0;
    }
    
    .news-card.special-feature-card .news-excerpt {
        display: none;
    }
    
    /* 最新消息手機版樣式：圖片40%在右側，標題在左側放大，字體放大2級 */
    .latest-news .news-row {
        grid-template-columns: 1fr;
        gap: 0;
        margin-bottom: 0;
    }
    
    .latest-news .news-row.gray-background {
        grid-template-columns: 1fr;
        padding: 0;
        margin-left: 0;
        margin-right: 0;
        margin-bottom: 0;
        width: 100%;
        background-color: transparent;
    }
    
    .latest-news .news-card {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        gap: 12px;
        padding: 15px 0;
        border-bottom: 1px solid #000000;
        margin: 0;
    }
    
    .news-card .news-image {
        width: 40%;
        flex-shrink: 0;
        aspect-ratio: 4/3;
        margin: 0;
        order: 1;
    }
    
    .news-card .news-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .news-card .news-card-content {
        order: 2;
        flex: 1;
        display: flex;
        flex-direction: column;
        min-width: 0;
    }
    
    .news-card .news-category {
        margin: 0 0 8px 0;
        font-size: 14px;
        padding: 3px 8px;
        display: block;
        width: auto;
        max-width: fit-content;
    }
    
    .news-card .news-title {
        margin: 0;
        font-size: 18px;
        line-height: 1.4;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        width: 100%;
        min-width: 0;
    }
    
    .news-row.featured-row {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    
    .footer-social-icons .social-icon {
        width: 48px;
        height: 48px;
    }
    
    .container {
        padding: 0 16px;
    }
    
    .special-feature-title {
        font-size: 24px;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
        margin-bottom: 20px;
        padding-bottom: 12px;
    }
    
    .special-feature-title::after {
        width: 80px;
        height: 3px;
    }
    
    .feature-badge {
        font-size: 11px;
        padding: 5px 10px;
    }
    
    .section-title-icon {
        width: 28px;
        height: 28px;
        margin-right: 8px;
    }
    
    .news-card {
        border-radius: 8px;
        margin-bottom: 4px;
    }
    
    /* 手機版點擊反饋 */
    .news-card:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
    
    /* 加大標題字體增強可讀性 */
    .news-title {
        font-size: 17px;
        line-height: 1.5;
    }
    
    /* 手機版按鈕增強觸控反饋 */
    .banner-prev:active,
    .banner-next:active {
        transform: translateY(-50%) scale(0.92);
    }
    
    .back-to-top:active {
        transform: scale(0.9);
    }
}

/* 禁用右鍵選單的JavaScript輔助樣式 */
.no-context-menu {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* 返回頂部按鈕 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    color: white;
    border: 2px solid white;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition-fast);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(211, 47, 47, 0.4);
}

.back-to-top:active {
    transform: translateY(-1px) scale(0.95);
}

/* 手機版增強點擊區域 */
@media (max-width: 640px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 52px;
        height: 52px;
    }
}

/* 科技分類頁面布局 */
.tech-content-wrapper {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: flex-start;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    gap: 70px;
}

.tech-content-left {
    flex: 0 0 calc((100% - 70px) * 0.6);
    width: calc((100% - 70px) * 0.6);
    max-width: calc((100% - 70px) * 0.6);
    min-width: 0;
    box-sizing: border-box;
    overflow: visible;
}

/* 確保 article.html 中的 .article-content 正確限制寬度 */
.tech-content-left .article-content {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-wrap: break-word;
    overflow: visible;
}

.tech-content-left .article-content p {
    max-width: 100%;
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.tech-content-left .article-content-image {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
}

.tech-content-left .article-content-image img {
    max-width: 100% !important;
    height: auto !important;
    box-sizing: border-box;
}

.tech-content-left .article-featured-image {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
}

.tech-content-left .article-featured-image img {
    max-width: 100% !important;
    height: auto !important;
    box-sizing: border-box;
}

.tech-content-left .article-main-title {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.tech-content-left .article-promo-link {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
}

.tech-sidebar {
    flex: 0 0 calc((100% - 70px) * 0.4);
    width: calc((100% - 70px) * 0.4);
    max-width: calc((100% - 70px) * 0.4);
    min-width: 0;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    box-sizing: border-box;
    overflow: visible;
    flex-shrink: 0 !important;
}

/* 大螢幕寬度時調整間距（1400px以下） */
@media (max-width: 1400px) and (min-width: 1301px) {
    .tech-content-wrapper {
        gap: 60px;
    }
    
    .tech-content-left {
        flex: 0 0 calc((100% - 60px) * 0.6) !important;
        width: calc((100% - 60px) * 0.6) !important;
        max-width: calc((100% - 60px) * 0.6) !important;
    }
    
    .tech-sidebar {
        flex: 0 0 calc((100% - 60px) * 0.4) !important;
        width: calc((100% - 60px) * 0.4) !important;
        max-width: calc((100% - 60px) * 0.4) !important;
    }
}

/* 中等螢幕寬度時調整間距（1300px以下） */
@media (max-width: 1300px) and (min-width: 1201px) {
    .tech-content-wrapper {
        gap: 55px;
    }
    
    .tech-content-left {
        flex: 0 0 calc((100% - 55px) * 0.6) !important;
        width: calc((100% - 55px) * 0.6) !important;
        max-width: calc((100% - 55px) * 0.6) !important;
    }
    
    .tech-sidebar {
        flex: 0 0 calc((100% - 55px) * 0.4) !important;
        width: calc((100% - 55px) * 0.4) !important;
        max-width: calc((100% - 55px) * 0.4) !important;
    }
}

/* 中等螢幕寬度時調整間距（1200px以下） */
@media (max-width: 1200px) and (min-width: 1101px) {
    .tech-content-wrapper {
        gap: 50px;
    }
    
    .tech-content-left {
        flex: 0 0 calc((100% - 50px) * 0.6) !important;
        width: calc((100% - 50px) * 0.6) !important;
        max-width: calc((100% - 50px) * 0.6) !important;
    }
    
    .tech-sidebar {
        flex: 0 0 calc((100% - 50px) * 0.4) !important;
        width: calc((100% - 50px) * 0.4) !important;
        max-width: calc((100% - 50px) * 0.4) !important;
    }
}

/* 較小桌面螢幕時進一步調整（1100px以下） */
@media (max-width: 1100px) and (min-width: 1001px) {
    .tech-content-wrapper {
        gap: 45px;
    }
    
    .tech-content-left {
        flex: 0 0 calc((100% - 45px) * 0.6) !important;
        width: calc((100% - 45px) * 0.6) !important;
        max-width: calc((100% - 45px) * 0.6) !important;
    }
    
    .tech-sidebar {
        flex: 0 0 calc((100% - 45px) * 0.4) !important;
        width: calc((100% - 45px) * 0.4) !important;
        max-width: calc((100% - 45px) * 0.4) !important;
    }
}

/* 較小桌面螢幕時進一步調整（1000px以下） */
@media (max-width: 1000px) and (min-width: 969px) {
    .tech-content-wrapper {
        gap: 40px;
    }
    
    .tech-content-left {
        flex: 0 0 calc((100% - 40px) * 0.6) !important;
        width: calc((100% - 40px) * 0.6) !important;
        max-width: calc((100% - 40px) * 0.6) !important;
    }
    
    .tech-sidebar {
        flex: 0 0 calc((100% - 40px) * 0.4) !important;
        width: calc((100% - 40px) * 0.4) !important;
        max-width: calc((100% - 40px) * 0.4) !important;
    }
}

.tech-sidebar .hot-articles {
    display: block;
    visibility: visible;
}

.tech-sidebar .ad-section {
    display: block;
    visibility: visible;
}

@media (max-width: 968px) {
    .tech-content-wrapper {
        flex-direction: column !important;
        gap: 0 !important;
    }
    
    .tech-content-left {
        width: 100%;
        max-width: 100%;
    }
    
    .tech-sidebar {
        width: 100%;
        max-width: 100%;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        margin-top: 30px;
    }
    
    .tech-sidebar .hot-articles {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .tech-sidebar .ad-section {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* tech.html手機版：文章區塊樣式與最新消息一致 */
    .tech-content-left .news-row {
        grid-template-columns: 1fr;
        gap: 0;
        margin-bottom: 0;
    }
    
    /* 手機版：第一張大圖與下方小區塊的間距 */
    .tech-content-left .special-feature-row {
        margin-bottom: 30px;
    }
    
    /* 手機版：隱藏分隔線 */
    .tech-content-left .special-feature-row::after {
        display: none;
    }
    
    /* 第一個新聞卡片（special-feature-card）樣式與其他新聞卡片一致 - 圖片在左側，文字在右側 */
    .tech-content-left .special-feature-row .news-card.special-feature-card,
    .tech-content-left .news-card.special-feature-card {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: flex-start !important;
        gap: 12px !important;
        padding: 15px 0 !important;
        border-bottom: 1px solid #000000 !important;
        margin: 0 !important;
        background-color: transparent !important;
        border-radius: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .tech-content-left .special-feature-row .news-card.special-feature-card .news-image,
    .tech-content-left .news-card.special-feature-card .news-image {
        width: 40% !important;
        flex-shrink: 0 !important;
        flex-grow: 0 !important;
        aspect-ratio: 4/3 !important;
        margin: 0 !important;
        order: 1 !important;
        max-width: 40% !important;
        min-width: 0 !important;
    }
    
    .tech-content-left .special-feature-row .news-card.special-feature-card .news-image img,
    .tech-content-left .news-card.special-feature-card .news-image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
    
    .tech-content-left .special-feature-row .news-card.special-feature-card .news-card-content,
    .tech-content-left .news-card.special-feature-card .news-card-content {
        order: 2 !important;
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        min-width: 0 !important;
        width: auto !important;
    }
    
    .tech-content-left .special-feature-row .news-card.special-feature-card .news-category,
    .tech-content-left .news-card.special-feature-card .news-category {
        margin: 0 0 8px 0 !important;
        font-size: 14px !important;
        padding: 3px 8px !important;
        display: block !important;
        width: auto !important;
        max-width: fit-content !important;
        order: 0 !important;
    }
    
    .tech-content-left .special-feature-row .news-card.special-feature-card .news-title,
    .tech-content-left .news-card.special-feature-card .news-title {
        margin: 0 !important;
        font-size: 18px !important;
        line-height: 1.4 !important;
        -webkit-line-clamp: 3 !important;
        line-clamp: 3 !important;
        display: -webkit-box !important;
        -webkit-box-orient: vertical !important;
        width: 100% !important;
        min-width: 0 !important;
    }
    
    .tech-content-left .special-feature-row .news-card.special-feature-card .news-excerpt,
    .tech-content-left .news-card.special-feature-card .news-excerpt {
        display: none !important;
        order: 999 !important;
    }
    
    .tech-content-left .news-card {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        gap: 12px;
        padding: 15px 0;
        border-bottom: 1px solid #000000;
        margin: 0;
        background-color: transparent;
        border-radius: 0;
    }
    
    .tech-content-left .news-card .news-image {
        width: 40%;
        flex-shrink: 0;
        aspect-ratio: 4/3;
        margin: 0;
        order: 1;
    }
    
    .tech-content-left .news-card .news-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .tech-content-left .news-card .news-card-content {
        order: 2;
        flex: 1;
        display: flex;
        flex-direction: column;
        min-width: 0;
    }
    
    .tech-content-left .news-card .news-category {
        margin: 0 0 8px 0;
        font-size: 14px;
        padding: 3px 8px;
        display: block;
        width: auto;
        max-width: fit-content;
    }
    
    .tech-content-left .news-card .news-title {
        margin: 0;
        font-size: 18px;
        line-height: 1.4;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        width: 100%;
        min-width: 0;
    }
}

/* 文章內頁樣式 */
.article-page {
    padding: 40px 0 60px;
    background-color: #ffffff;
}

.article-featured-image {
    width: 100%;
    margin-bottom: 30px;
}

.article-featured-image img {
    width: 100%;
    height: auto;
    min-height: 400px;
    max-height: 600px;
    object-fit: cover;
    border-radius: 8px;
}

.article-category {
    display: inline-block;
    margin-bottom: 15px;
    padding: 5px 12px;
    background-color: #f0f0f0;
    color: #000000;
    font-size: 12px;
    font-weight: normal;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.article-main-title {
    font-size: 36px;
    color: #000000;
    line-height: 1.3;
    font-weight: normal;
    margin: 0 0 40px 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.article-content-wrapper {
    display: flex;
    gap: 70px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.article-content {
    width: 100%;
    max-width: 100%;
    flex-shrink: 1;
    min-width: 0;
    box-sizing: border-box;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

.article-content p {
    font-size: 18px;
    line-height: 1.8;
    color: #000000;
    margin-bottom: 30px;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

.article-content-image {
    width: 100%;
    max-width: 100%;
    margin: 40px 0;
    box-sizing: border-box;
}

.article-content-image img {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    box-sizing: border-box;
}

.article-promo-link {
    margin-top: 40px;
    padding: 20px;
    background-color: #f5f5f5;
    border-left: 4px solid #000000;
    font-size: 18px;
    line-height: 1.8;
}

.article-promo-link a {
    color: #000000;
    text-decoration: underline;
    transition: color 0.3s;
}

.article-promo-link a:hover {
    color: #666666;
}

.article-sidebar {
    width: 40%;
    flex-shrink: 0;
}

@media (max-width: 968px) {
    .article-header {
        flex-direction: column;
    }
    
    .article-header-image {
        width: 100%;
    }
    
    .article-content-wrapper {
        flex-direction: column;
    }
    
    .article-content {
        width: 100%;
    }
    
    .article-sidebar {
        width: 100%;
    }
    
    .article-main-title {
        font-size: 28px;
    }
}
