/* Reset and Base Styles */
* {
    position: relative;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans TC', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

body > * {
    overflow: hidden !important;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 102, 102, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo .logo {
    height: 40px;
    width: auto;
    display: block;
    max-width: 200px;
}

.company-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
}

.nav-link:hover {
    color: var(--primary-color);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 1rem 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    list-style: none;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.5rem 1.5rem;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.dropdown-menu a:hover {
    background-color: var(--gray-50);
    color: var(--primary-color);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section with Owl Carousel */
.hero {
    position: relative;
    height: 80vh;
    overflow: hidden;
    margin-top: 80px;
}

.hero-carousel {
    height: 100%;
}

.hero-carousel .btn-primary {
    background: transparent;
}

.hero-slide {
    position: relative;
    width: 100%;
    height: 80vh;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 102, 102, 0.8), rgba(0, 102, 102, 0.6));
    z-index: 2;
}

.slide-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    align-items: center;
    color: #fff;
}

.slide-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.slide-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.slide-description {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 600px;
}

/* 自定義 Owl Carousel 導航按鈕 */
.hero-carousel .owl-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    z-index: 4;
}

.hero-carousel .owl-nav .owl-prev,
.hero-carousel .owl-nav .owl-next {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.15) !important;
    color: #fff !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 1.5rem !important;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    outline: none;
}

.hero-carousel .owl-nav .owl-prev {
    left: 30px;
}

.hero-carousel .owl-nav .owl-next {
    right: 30px;
}

.hero-carousel .owl-nav .owl-prev:hover,
.hero-carousel .owl-nav .owl-next:hover {
    background-color: rgba(255, 255, 255, 0.25) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    transform: scale(1.1);
}

/* 自定義 Owl Carousel 圓點導航 */
.hero-carousel .owl-dots {
    position: absolute !important;
    bottom: 30px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 10 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 15px !important;
    margin: 0 !important;
    padding: 10px 20px !important;
    background-color: rgba(0, 0, 0, 0.3) !important;
    border-radius: 25px !important;
    backdrop-filter: blur(10px) !important;
}

.hero-carousel .owl-dots .owl-dot {
    width: 14px !important;
    height: 14px !important;
    border-radius: 50% !important;
    background-color: rgba(255, 255, 255, 0.5) !important;
    border: 2px solid rgba(255, 255, 255, 0.8) !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    margin: 0 !important;
    padding: 0 !important;
    outline: none !important;
    display: inline-block !important;
    position: relative !important;
}

.hero-carousel .owl-dots .owl-dot:hover {
    background-color: rgba(255, 255, 255, 0.8) !important;
    border-color: #fff !important;
    transform: scale(1.1) !important;
}

.hero-carousel .owl-dots .owl-dot.active {
    background-color: #fff !important;
    border-color: #fff !important;
    transform: scale(1.3) !important;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.6) !important;
}

.hero-carousel .owl-dots .owl-dot span {
    display: none !important;
}

/* 確保 owl-dots 不會被其他元素覆蓋 */
.hero-carousel .owl-dots::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    z-index: -1;
}

/* 重置 Owl Carousel 預設樣式，避免衝突 */
.hero-carousel .owl-dots .owl-dot button {
    display: none !important;
}

.hero-carousel .owl-dots .owl-dot:focus {
    outline: none !important;
}

/* 確保圓點容器不會與其他元素重疊 */
.hero-carousel {
    position: relative;
    overflow: hidden;
}

.hero-carousel .owl-stage-outer {
    position: relative;
    z-index: 1;
}

.hero-carousel .owl-dots {
    pointer-events: auto !important;
}

/* Section Styles */
.section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Technology Section */
.technology-section {
    background-color: var(--gray-50);
}

.tech-timeline {
    max-width: 1000px;
    margin: 0 auto;
}

.timeline-header {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.timeline-stage {
    text-align: center;
    font-size: 0.9rem;
    font-weight: 500;
    color: #666;
    padding: 0.5rem;
}

.timeline-progress {
    background-color: var(--gray-300);
    height: 4px;
    border-radius: 2px;
    margin-bottom: 3rem;
    position: relative;
}

.progress-bar {
    background: var(--gradient-primary);
    height: 100%;
    border-radius: 2px;
    transition: width 0.8s ease;
}

.timeline-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.timeline-item {
    background-color: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 102, 102, 0.1);
    border-left: 4px solid var(--primary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 102, 102, 0.15);
}

.timeline-item h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.tech-type {
    background-color: var(--primary-color);
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 1rem;
}

.timeline-item p {
    color: #666;
    line-height: 1.6;
}

/* Offer Section */
.offer-section {
    background-color: #fff;
}

.offer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.offer-card {
    text-align: center;
    padding: 2.5rem 2rem;
    background-color: var(--gray-50);
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.offer-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 102, 102, 0.15);
}

.offer-icon {
    margin-bottom: 1.5rem;
}

.offer-icon img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
}

.offer-card h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.offer-card p {
    color: #666;
    line-height: 1.6;
}

/* Why Choose Section */
.why-choose-section {
    background-color: var(--gray-50);
}

.why-choose-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.highlight-title {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.features {
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.feature-icon {
    background-color: var(--primary-color);
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 0.8rem;
    font-weight: bold;
}

.why-choose-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

/* News Section */
.news-section {
    background-color: #fff;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.news-card {
    background-color: var(--gray-50);
    padding: 2rem;
    border-radius: 12px;
    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.1);
}

.news-date {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.news-title {
    color: #333;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.news-summary {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.news-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.news-link:hover {
    color: var(--primary-light);
}

.news-more {
    text-align: center;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow-medium);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color) !important;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* Contact Section */
.contact-section {
    background-color: var(--gray-50);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-details {
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-icon {
    font-size: 1.2rem;
    margin-right: 1rem;
    margin-top: 0.2rem;
}

.contact-item p {
    color: #666;
    line-height: 1.6;
}

/* Form Styles */
.contact-form {
    background-color: #fff;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--gray-300);
    border-radius: 6px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Footer */
.footer {
    background-color: #333;
    color: #fff;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1.5rem;
}

.footer-logo .logo {
    height: 40px;
    width: auto;
    display: block;
    max-width: 200px;
}

.footer-logo .company-name {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 600;
}

.footer-contact p {
    color: #ccc;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.footer-menu {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-column ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid #555;
    padding-top: 1rem;
    text-align: center;
}

.footer-bottom p {
    color: #ccc;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: #fff;
        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;
    }

    .nav-toggle {
        display: flex;
    }

    .slide-title {
        font-size: 2rem;
    }

    .slide-subtitle {
        font-size: 1.2rem;
    }

    .hero-carousel .owl-nav {
        display: none;
    }

    .hero-carousel .owl-nav .owl-prev,
    .hero-carousel .owl-nav .owl-next {
        width: 50px;
        height: 50px;
        font-size: 1.2rem !important;
    }

    .hero-carousel .owl-nav .owl-prev {
        left: 20px;
    }

    .hero-carousel .owl-nav .owl-next {
        right: 20px;
    }

    .hero-carousel .owl-dots {
        bottom: 20px !important;
        padding: 8px 16px !important;
        gap: 12px !important;
    }

    .hero-carousel .owl-dots .owl-dot {
        width: 12px !important;
        height: 12px !important;
    }

    .section-title {
        font-size: 2rem;
    }

    .timeline-header {
        grid-template-columns: repeat(6, 1fr);
        gap: 0.5rem;
    }

    .timeline-stage {
        font-size: 0.8rem;
    }

    .why-choose-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-menu {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }


}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .section {
        padding: 3rem 0;
    }

    .slide-title {
        font-size: 1.5rem;
    }

    .slide-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .offer-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .hero-carousel .owl-dots {
        bottom: 15px !important;
        padding: 6px 12px !important;
        gap: 10px !important;
    }

    .hero-carousel .owl-dots .owl-dot {
        width: 10px !important;
        height: 10px !important;
        border-width: 1px !important;
    }
}

/* 統計計數器樣式 */
.stats-counter {
    margin-top: 1rem;
    text-align: center;
    padding: 1rem 0;
    border-top: 2px solid var(--gray-300);
}

.counter {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stats-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

/* AOS 樣式現在由標準套件提供 */

/* 載入動畫 */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--gray-100);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 錯誤訊息樣式 */
.error-message {
    text-align: center;
    padding: 2rem;
    color: var(--danger-color);
}

.error-message button {
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.error-message button:hover {
    background-color: var(--primary-dark);
}

/* 技術比較表格樣式 */
.tech-comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.tech-comparison-table th,
.tech-comparison-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.tech-comparison-table th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
}

.tech-comparison-table tr:hover {
    background-color: rgba(0, 102, 102, 0.05);
    transform: scale(1.02);
    transition: all 0.3s ease;
}

/* 產品規格卡片 */
.spec-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    animation: specCardFadeIn 0.6s ease forwards;
}

.spec-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 15px 30px rgba(0,102,102,0.3);
}

@keyframes specCardFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 圖表容器 */
.chart-container {
    position: relative;
    height: 400px;
    margin: 2rem 0;
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* 回到頂部按鈕 */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 102, 102, 0.3);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.scroll-top-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(0) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 102, 102, 0.4);
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:active {
    transform: scale(0.95);
}

/* 響應式圖表 */
@media (max-width: 768px) {
    .chart-container {
        height: 300px;
        padding: 0.5rem;
    }
    
    .counter {
        font-size: 1.5rem;
    }
    
    .stats-counter {
        padding: 0.5rem 0;
    }
    
    .scroll-top-btn {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
} 

/* ===== 統一設計系統 ===== */
/* 品牌色彩 - 嚴格遵守README.md規範 */
:root {
    /* 主要色彩 - 按照README.md規範 */
    --primary-color: #006666;      /* 深青綠色 - 主色 */
    --primary-light: #008080;      /* 青色 - 次色 */
    --primary-dark: #004d4d;
    --accent-color: #008080;       /* 青色 - 與次色相同 */
    --secondary-color: #f8f9fa;
    
    /* 狀態色彩 - 按照README.md規範 */
    --success-color: #28a745;      /* 綠色 - 成功色 */
    --warning-color: #ffc107;      /* 黃色 - 警告色 */
    --danger-color: #dc3545;       /* 紅色 - 危險色 */
    --info-color: #17a2b8;         /* 藍色 - 資訊色 */
    
    /* 文字色彩 */
    --text-dark: #333;
    --text-medium: #666;
    --text-light: #999;
    --white: #ffffff;
    
    /* 中性色彩 */
    --gray-50: #f8f9fa;
    --gray-100: #f3f3f3;
    --gray-200: #e9ecef;
    --gray-300: #e0e0e0;
    --gray-400: #f0f0f0;
    --gray-light: #e8f8f8;
    
    /* 陰影色彩 - 使用主色 */
    --shadow-light: rgba(0, 102, 102, 0.1);
    --shadow-medium: rgba(0, 102, 102, 0.15);
    --shadow-heavy: rgba(0, 102, 102, 0.25);
    
    /* 漸變色彩 - 使用主色和次色 */
    --gradient-primary: linear-gradient(135deg, #006666, #008080);
    --gradient-bg: linear-gradient(135deg, #f8ffff 0%, #ffffff 50%, #f0fffe 100%);
    
    /* 其他設計變數 */
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 20px;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* 統一的頁面標題樣式 */
.page-hero {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 6rem 0 4rem;
    margin-top: 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="white" opacity="0.1"/><circle cx="80" cy="80" r="1" fill="white" opacity="0.1"/><circle cx="40" cy="60" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.page-hero .container {
    position: relative;
    z-index: 1;
}

.page-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, var(--white), var(--gray-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.page-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 400;
}

/* 統一的區塊樣式 */
.section {
    padding: 5rem 0;
    position: relative;
}

.section:nth-child(even) {
    background: var(--gradient-bg);
}

.section:nth-child(odd) {
    background: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.3rem);
    font-weight: 700;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.section-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-medium);
    line-height: 1.7;
    margin-top: 2rem;
}

/* 統一的卡片樣式 */
.card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 8px 24px var(--shadow-light);
    transition: all var(--transition-normal);
    overflow: hidden;
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px var(--shadow-medium);
}

.card:hover::before {
    opacity: 1;
}

.card-content {
    padding: 2.5rem;
}

.card-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    color: var(--white);
    font-size: 1.5rem;
}

.card-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
}

.card-description {
    color: var(--text-medium);
    line-height: 1.6;
    text-align: center;
}

/* 統一的按鈕樣式 */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: var(--border-radius-xl);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition-normal);
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--shadow-medium);
}

/* 統一的網格系統 */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* 統一的動畫 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.animate-slide-in-left {
    animation: slideInFromLeft 0.8s ease-out;
}

.animate-slide-in-right {
    animation: slideInFromRight 0.8s ease-out;
}

/* 統一的表單樣式 */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius-md);
    font-size: 1rem;
    transition: all var(--transition-normal);
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(0, 163, 163, 0.1);
}

/* 統一的進度條樣式 */
.progress-bar {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 4px;
    transition: width 1s ease-in-out;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.6) 50%, transparent 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* 響應式設計 */
@media (max-width: 1200px) {
    .container {
        max-width: 95%;
        padding: 0 2rem;
    }
}

@media (max-width: 768px) {
    /* 頁面標題響應式 */
    .page-hero {
        padding: 3rem 0;
        margin-top: 70px;
    }
    
    .page-title {
        font-size: clamp(1.8rem, 5vw, 2.5rem);
    }
    
    .page-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    /* 確保技術發展時間軸保持 6 欄顯示 */
    .timeline-header {
        grid-template-columns: repeat(6, 1fr);
        gap: 0.5rem;
    }
    
    .timeline-stage {
        font-size: 0.75rem;
        padding: 0.3rem;
    }
    
    /* 統一卡片響應式 */
    .overview-cards,
    .stats-grid,
    .projects-grid,
    .research-grid,
    .vision-mission-grid,
    .team-grid,
    .links-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* 雙欄布局改為單欄 */
    .tech-content,
    .intro-content,
    .product-showcase,
    .future-content,
    .featured-article,
    .newsletter-content,
    .kpi-dashboard,
    .update-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* 表格響應式 */
    .comparison-header,
    .comparison-row {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .comparison-item {
        padding: 1rem !important;
        border-bottom: 1px solid var(--gray-400) !important;
        border-right: none !important;
    }
    
    /* 時間軸響應式 */
    .timeline-item {
        margin-left: 0;
    }
    
    .timeline-marker {
        position: relative;
        left: auto;
        top: auto;
        margin: 0 auto 1rem;
    }
    
    .timeline-content {
        padding: 2rem;
    }
    
    /* 圖表響應式 */
    .chart-section {
        padding: 2rem;
        margin-top: 2rem;
    }
    
    .chart-legend {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    /* 表單響應式 */
    .subscription-form .form-group,
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .tab-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    /* 分頁響應式 */
    .page-numbers {
        display: none;
    }
    
    .pagination {
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    /* 極小螢幕優化 */
    .container {
        padding: 0 1rem;
    }
    
    .page-hero {
        padding: 2rem 0;
    }
    
    .page-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
        margin-bottom: 0.8rem;
    }
    
    /* 確保技術發展時間軸在極小螢幕也保持 6 欄 */
    .timeline-header {
        grid-template-columns: repeat(6, 1fr);
        gap: 0.3rem;
    }
    
    .timeline-stage {
        font-size: 0.65rem;
        padding: 0.2rem;
        line-height: 1.2;
    }
    
    /* 卡片內距縮小 */
    .overview-card,
    .stat-card,
    .news-card .news-content,
    .project-card .project-content,
    .research-card,
    .vision-card,
    .mission-card,
    .values-card,
    .team-member,
    .link-card {
        padding: 1.5rem !important;
    }
    
    /* 圖表進一步優化 */
    .chart-section {
        padding: 1.5rem;
    }
    
    .chart-container {
        padding: 1rem;
    }
    
    /* 時間軸內容縮小 */
    .timeline-content {
        padding: 1.5rem;
    }
    
    /* 按鈕尺寸調整 */
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .cta-buttons .btn {
        min-width: auto;
        width: 100%;
    }
    
    /* 標題字體調整 */
    .section-title {
        font-size: clamp(1.8rem, 5vw, 2.2rem);
    }
    
    h2 {
        font-size: clamp(1.5rem, 4vw, 1.8rem);
    }
    
    h3 {
        font-size: clamp(1.3rem, 3.5vw, 1.5rem);
    }
}

/* 高解析度螢幕優化 */
@media (min-width: 1400px) {
    .container {
        max-width: 1300px;
    }
    
    .page-hero {
        padding: 5rem 0;
    }
    
    .section {
        padding: 7rem 0;
    }
    
    .chart-section {
        padding: 4rem;
    }
} 