:root {
    --primary-blue: #004a9e;
    --secondary-green: #3bb598;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans TC', sans-serif;
    line-height: 1.6;
    color: #333;
    padding-top: 70px;
}

/* Header Styles */
.main-header {
    background: transparent;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    padding: 10px 0;
}

.navbar {
    padding: 0;
}

.navbar-brand img {
    height: 50px;
    width: auto;
}

.navbar-nav .nav-link {
    color: #1c1f27 !important;
    font-weight: 500;
    margin: 0 15px;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-blue) !important;
}

.navbar-nav .nav-link.active {
    color: var(--primary-blue) !important;
    font-weight: 600;
}

.language-btn {
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.language-btn:hover {
    background: #003d82;
    transform: translateY(-1px);
}

/* Hero Section */
.hero-section {
    min-height: calc(60vh - 70px);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    margin-top: -70px;
    padding-top: 70px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 100vw;
    height: 100%;
    background: url('../img/top_bg.png') center/cover no-repeat;
    background-size: cover;
    transform: translateX(-50%);
    transition: transform 0.6s ease-out;
    z-index: -1;
}

.hero-section:hover::before {
    transform: translateX(-50%) scale(1.1);
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-blue);
    animation: fadeInUp 1s ease-out;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--secondary-green);
    animation: fadeInUp 1s ease-out 0.3s both;
}

/* Hero Animation Area */
.hero-animation {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.hero-lines {
    position: absolute;
    width: 100%;
    height: 100%;
}

.line {
    position: absolute;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    height: 2px;
    width: 200px;
    animation: moveLine 4s linear infinite;
}

.line:nth-child(1) {
    top: 20%;
    animation-delay: 0s;
}

.line:nth-child(2) {
    top: 40%;
    animation-delay: 1s;
}

.line:nth-child(3) {
    top: 60%;
    animation-delay: 2s;
}

.line:nth-child(4) {
    top: 80%;
    animation-delay: 3s;
}

.pulse-circle {
    position: absolute;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: pulse 3s ease-in-out infinite;
}

.pulse-circle:nth-child(5) {
    width: 60px;
    height: 60px;
    top: 30%;
    right: 30%;
    animation-delay: 0s;
}

.pulse-circle:nth-child(6) {
    width: 40px;
    height: 40px;
    top: 70%;
    right: 60%;
    animation-delay: 1.5s;
}

.pulse-circle:nth-child(7) {
    width: 80px;
    height: 80px;
    top: 50%;
    right: 80%;
    animation-delay: 2.5s;
}

/* News Section */
.news-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.section-title {
    color: var(--primary-blue);
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
}

.news-image {
    border-radius: 0 55px 0 55px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.news-image:hover {
    transform: translateY(-5px);
}

.news-item {
    border-bottom: 1px solid #e9ecef;
    padding: 15px 0;
    transition: all 0.3s ease;
}

.news-item:hover {
    background: rgba(59, 181, 152, 0.05);
    padding-left: 15px;
}

.news-date {
    color: var(--secondary-green);
    font-weight: 600;
    font-size: 0.9rem;
}

.news-title {
    color: #333;
    margin-top: 5px;
    font-weight: 500;
}

.btn-more {
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-more:hover {
    background: #003d82;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 74, 158, 0.3);
}

/* Research Section */
.research-section {
    padding: 80px 0;
}

.research-container {
    background: url('../img/bg_01.png') center/cover no-repeat;
    border-radius: 20px;
    padding: 60px 40px;
    position: relative;
    overflow: visible;
    min-height: 400px;
    display: flex;
    align-items: flex-end;
}

.research-content {
    color: var(--white);
}

.research-content h2 {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 30px;
}

.btn-outline-white {
    border: 2px solid var(--white);
    color: var(--white);
    background: transparent;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline-white:hover {
    background: var(--white);
    color: var(--primary-blue);
    transform: translateY(-2px);
}

.research-image {
    position: absolute;
    top: -80px;
    right: 40px;
    z-index: 2;
    display: flex;
    align-items: flex-end;
}

.research-image img {
    height: 480px;
    width: auto;
    object-fit: contain;
}

/* CSR Section */
.csr-section {
    padding: 80px 0;
    background: var(--white);
}

.csr-title {
    color: var(--primary-blue);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 30px;
}

.csr-description {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
}

.csr-image {
    border-radius: 55px 0 55px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Page Hero Section */
.page-hero {
    background: url('../img/top_bg.png') center/cover no-repeat;
    height: 350px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 100vw;
    height: 100%;
    background: url('../img/top_bg.png') center/cover no-repeat;
    background-size: cover;
    transform: translateX(-50%);
    transition: transform 0.6s ease-out;
    z-index: -1;
}

.page-hero:hover::before {
    transform: translateX(-50%) scale(1.1);
}

/* Breadcrumb */
.breadcrumb-section {
    background: #f8f9fa;
    padding: 20px 0;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb {
    background: none;
    padding: 0;
    margin: 0;
}

.breadcrumb-item a {
    color: var(--primary-blue);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #6c757d;
}

/* Content Section */
.content-section {
    padding: 60px 0;
    background: var(--white);
}

/* Sidebar */
.sidebar {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 30px 20px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.sidebar-title {
    color: var(--primary-blue);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--secondary-green);
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    margin-bottom: 15px;
}

.sidebar-menu a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 15px;
    display: block;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateX(5px);
}

.sidebar-menu a::before {
    content: '■';
    color: var(--secondary-green);
    margin-right: 10px;
    font-weight: bold;
}

.sidebar-menu a:hover::before,
.sidebar-menu a.active::before {
    color: var(--white);
}

/* Main Content */
.main-content {
    padding-left: 40px;
}

.content-title {
    color: var(--primary-blue);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    position: relative;
}

.content-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--secondary-green);
    border-radius: 2px;
}

.content-text {
    color: #555;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* News List Styles */
.news-list-container {
    margin-top: 30px;
}

.news-item-detail {
    border-bottom: 1px solid #e9ecef;
    padding: 25px 0;
    transition: all 0.3s ease;
}

.news-item-detail:hover {
    background: rgba(59, 181, 152, 0.02);
    padding-left: 15px;
    border-radius: 8px;
}

.news-thumbnail {
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.news-item-detail:hover .news-thumbnail {
    transform: scale(1.05);
}

.news-meta {
    margin-bottom: 10px;
}

.news-date {
    color: var(--secondary-green);
    font-weight: 600;
    font-size: 0.9rem;
    margin-right: 15px;
}

.news-category {
    background: var(--primary-blue);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.news-item-title {
    color: #333;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
    transition: color 0.3s ease;
}

.news-item-detail:hover .news-item-title {
    color: var(--primary-blue);
}

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

.news-item-link:hover {
    text-decoration: none;
    color: inherit;
}

/* Mobile News List Spacing */
@media (max-width: 768px) {
    .news-item-detail {
        margin-bottom: 30px;
        padding: 20px 0;
    }
    
    .news-item-detail .row {
        flex-direction: column;
    }
    
    .news-item-detail .col-md-3 {
        margin-bottom: 20px;
    }
    
    .news-item-detail .col-md-9 {
        padding-left: 0;
    }
    
    .news-meta {
        margin-bottom: 15px;
    }
    
    .news-item-title {
        font-size: 1.1rem;
        line-height: 1.5;
    }
}

/* Pagination Styles */
.news-pagination {
    margin-top: 50px;
}

.pagination .page-link {
    color: var(--primary-blue);
    border: 1px solid #dee2e6;
    padding: 10px 15px;
    margin: 0 2px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
    transform: translateY(-2px);
}

.pagination .page-item.active .page-link {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: var(--white);
}

.pagination .page-item.disabled .page-link {
    color: #6c757d;
    background: #f8f9fa;
    border-color: #dee2e6;
}

/* News Detail Styles */
.news-detail-meta {
    margin-bottom: 20px;
}

.news-detail-date {
    color: var(--secondary-green);
    font-weight: 600;
    font-size: 1rem;
    margin-right: 20px;
}

.news-detail-category {
    background: var(--primary-blue);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.news-detail-title {
    color: var(--primary-blue);
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 30px;
    position: relative;
}

.news-detail-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--secondary-green);
    border-radius: 2px;
}

.news-detail-content {
    color: #555;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 40px;
}

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

.news-detail-actions {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e9ecef;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    background: var(--primary-blue);
    color: var(--white);
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background: #003d82;
    color: var(--white);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 74, 158, 0.3);
}

.btn-back i {
    margin-right: 8px;
    font-size: 0.9rem;
}

/* Contact Page Styles */
.contact-info {
    margin-top: 30px;
}

.company-info {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.company-name {
    color: #333;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 30px;
    text-align: left;
    line-height: 1.6;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.contact-item i {
    color: var(--primary-blue);
    font-size: 1.5rem;
    margin-top: 5px;
    flex-shrink: 0;
}

.contact-text strong {
    color: var(--primary-blue);
    font-size: 1.2rem;
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
}

.contact-text p {
    color: #555;
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.6;
}

/* Mobile Contact Styles */
@media (max-width: 768px) {
    .company-info {
        padding: 30px 20px;
    }
    
    .company-name {
        font-size: 1.2rem;
        margin-bottom: 25px;
        text-align: center;
    }
    
    .contact-details {
        gap: 20px;
    }
    
    .contact-item {
        padding: 20px;
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .contact-item i {
        font-size: 1.8rem;
        margin-top: 0;
    }
    
    .contact-text strong {
        font-size: 1.1rem;
    }
    
    .contact-text p {
        font-size: 1rem;
    }
}

/* Footer */
.main-footer {
    background: var(--primary-blue);
    color: var(--white);
    padding: 50px 0 30px;
}

.footer-logo img {
    height: 60px;
    margin-bottom: 30px;
}

.footer-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--white);
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 30px;
    padding-top: 20px;
    text-align: right;
    color: rgba(255, 255, 255, 0.6);
}

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

@keyframes moveLine {
    0% {
        transform: translateX(-300px);
        opacity: 0;
    }
    25% {
        opacity: 1;
    }
    75% {
        opacity: 1;
    }
    100% {
        transform: translateX(100vw);
        opacity: 0;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.3;
    }
    100% {
        transform: scale(1);
        opacity: 0.7;
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

/* Research Page Styles */
.research-section-content {
    margin-bottom: 50px;
    padding: 30px;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.08);
}

.section-subtitle {
    color: var(--primary-blue);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.section-subtitle::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--secondary-green);
    border-radius: 2px;
}

.subsection-title {
    color: var(--primary-blue);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.subtitle-highlight {
    color: var(--secondary-green);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 25px;
    text-align: center;
    background: rgba(59, 181, 152, 0.1);
    padding: 15px;
    border-radius: 10px;
    border-left: 5px solid var(--secondary-green);
}

.highlight-text {
    color: var(--secondary-green);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.research-description h4,
.research-components h4,
.treatment-features h4 {
    color: var(--primary-blue);
    font-weight: 600;
    margin: 20px 0 15px 0;
}

.component-formula {
    background: var(--primary-blue);
    color: var(--white);
    padding: 15px 20px;
    border-radius: 10px;
    text-align: center;
    margin: 15px 0;
    font-size: 1.1rem;
}

.component-list,
.feature-list,
.structure-list {
    list-style: none;
    padding: 0;
}

.component-list li,
.feature-list li,
.structure-list li {
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
    position: relative;
    padding-left: 25px;
}

.component-list li::before,
.feature-list li::before,
.structure-list li::before {
    content: '■';
    color: var(--secondary-green);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.treatment-features {
    background: rgba(0, 74, 158, 0.05);
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
}

.comparison-table {
    margin: 30px 0;
    overflow-x: auto;
}

.comparison-table .table {
    margin-bottom: 0;
}

.comparison-table .table th {
    background: var(--primary-blue);
    color: var(--white);
    font-weight: 600;
    text-align: center;
    vertical-align: middle;
}

.comparison-table .table td {
    vertical-align: middle;
    padding: 15px;
}

.comparison-table .table td strong {
    color: var(--primary-blue);
}

.production-process {
    margin: 30px 0;
}

.process-step {
    background: var(--white);
    padding: 25px;
    margin: 20px 0;
    border-radius: 10px;
    border-left: 5px solid var(--secondary-green);
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
}

.process-step h4 {
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 15px;
}

.process-step ul {
    margin: 15px 0;
    padding-left: 20px;
}

.process-step li {
    margin: 8px 0;
    line-height: 1.6;
}

.publication-item {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    margin: 25px 0;
}

.publication-item h3 {
    color: var(--primary-blue);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.publication-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

.publication-info p {
    margin: 8px 0;
    line-height: 1.6;
}

.research-findings {
    margin: 25px 0;
}

.research-findings h4 {
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 15px;
}

.future-applications {
    background: rgba(59, 181, 152, 0.1);
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    border-left: 5px solid var(--secondary-green);
}

.future-applications h4 {
    color: var(--secondary-green);
    font-weight: 600;
    margin-bottom: 15px;
}

.future-applications p {
    margin: 10px 0;
    font-weight: 500;
}

/* Mobile Research Styles */
@media (max-width: 768px) {
    .research-section-content {
        padding: 20px 15px;
        margin-bottom: 30px;
    }
    
    .section-subtitle {
        font-size: 1.6rem;
    }
    
    .subsection-title {
        font-size: 1.3rem;
    }
    
    .component-formula {
        font-size: 1rem;
        padding: 12px 15px;
    }
    
    .comparison-table {
        font-size: 0.9rem;
    }
    
    .comparison-table .table td {
        padding: 10px 8px;
    }
    
    .process-step {
        padding: 20px 15px;
    }
    
    .publication-item {
        padding: 20px 15px;
    }
}

/* Responsive */
@media (max-width: 991px) {
    /* Mobile Navigation for tablets and smaller */
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        border-radius: 10px;
        padding: 20px;
        margin-top: 10px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    }
    
    .navbar-nav .nav-link {
        padding: 10px 0;
        border-bottom: 1px solid rgba(28, 31, 39, 0.1);
    }
    
    .navbar-nav .nav-item:last-child .nav-link {
        border-bottom: none;
    }
    
    .language-btn {
        margin-top: 15px;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 100vh;
        margin-top: -70px;
        padding-top: 70px;
    }
    
    .hero-section::before {
        background-position: right center;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .research-content h2 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .research-container {
        padding: 40px 20px;
        min-height: 300px;
    }
    
    .research-image {
        position: absolute;
        bottom: 0;
        right: 0;
        margin-top: 0;
        width: 50%;
        text-align: right;
    }
    
    .research-image img {
        height: 300px;
        width: 100%;
        object-fit: cover;
        object-position: right center;
    }
    
    .page-hero {
        height: 250px;
    }
    
    .main-content {
        padding-left: 0;
        margin-top: 30px;
    }
    
    .content-title {
        font-size: 2rem;
    }
    
    .sidebar {
        position: static;
        margin-bottom: 30px;
    }
    
    .page-hero::before {
        background-position: right center;
    }
    
    /* CSR Section Mobile */
    .csr-section .col-lg-6:first-child {
        margin-bottom: 35px;
    }
    
    /* Footer Mobile */
    .main-footer .col-lg-3:first-child {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .main-footer .col-lg-2,
    .main-footer .col-lg-3:last-child {
        flex: 0 0 50%;
        max-width: 50%;
    }
}
