/* ==========================================================================
   Jy Mold 鉅洋模型 - 亮麗企業現代版
   ========================================================================== */

/* --- 變數定義 --- */
:root {
    --primary: #8ca530;
    /* 經典展螢綠 (擷取自原站) */
    --primary-light: #a4c038;
    --primary-dark: #6e8226;
    --accent: #f04f5e;
    /* 展螢紅 (擷取自Logo) */
    --text-main: #333333;
    --text-muted: #666666;
    --bg-light: #fcfdf8;
    /* 微溫暖的淺底色 */
    --white: #ffffff;

    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;

    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Noto Sans TC', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.text-center {
    text-align: center;
}

/* --- 按鈕系統 --- */
.btn-primary,
.btn-outline-dark,
.btn-lg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    border: 2px solid var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn-outline-dark {
    border: 2px solid var(--white);
    color: var(--white);
    background: transparent;
    backdrop-filter: blur(5px);
}

.btn-outline-dark:hover {
    background: var(--white);
    color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 15px 35px;
    font-size: 1.1rem;
}

/* 失效連結特殊樣式 */
.disabled-link {
    color: #aaaaaa !important;
    cursor: not-allowed;
}

.disabled-link:hover {
    color: #aaaaaa !important;
    background: transparent !important;
}

/* --- 頂端聯絡區 --- */
.top-bar {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    padding: 8px 0;
}

.top-bar-inner {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    align-items: center;
}

.top-info {
    display: flex;
    align-items: center;
    gap: 5px;
}

.top-lang a {
    color: rgba(255, 255, 255, 0.6);
    padding: 0 5px;
}

.top-lang a.active,
.top-lang a:hover {
    color: var(--white);
    font-weight: bold;
}

/* --- 明亮現代導覽列 --- */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-text .badge {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 35px;
}

.nav-links>li>a {
    font-weight: 600;
    color: var(--text-main);
    font-size: 1rem;
}

.nav-links>li>a:hover,
.nav-links>li>a.active {
    color: var(--primary);
}

/* 簡單的下拉選單 */
.has-dropdown {
    position: relative;
    padding: 10px 0;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 220px;
    background: var(--white);
    box-shadow: var(--shadow-md);
    border-radius: 8px;
    padding: 15px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition-base);
    z-index: 100;
}

.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    font-weight: 500;
    color: var(--text-main);
    font-size: 0.95rem;
}

.dropdown li a:hover:not(.disabled-link) {
    background: var(--bg-light);
    color: var(--primary);
    padding-left: 25px;
}

/* --- 亮麗大氣主視覺 (Hero) --- */
.hero {
    position: relative;
    padding: 120px 0 100px;
    min-height: 80vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 58, 128, 0.9) 0%, rgba(0, 86, 179, 0.7) 100%);
    z-index: 2;
}

.hero-container {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-content {
    color: var(--white);
}

.hero-content .eyebrow {
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    display: block;
    color: #a3cfff;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 25px;
}

.text-highlight {
    color: #ffd700;
}

/* 金黃色點綴 */
.hero-content p {
    font-size: 1.15rem;
    opacity: 0.9;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

/* 右側裝飾卡片 */
.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    aspect-ratio: 1;
    max-width: 300px;
    margin: 0 auto;
    box-shadow: var(--shadow-lg);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

.stat-num {
    font-size: 4rem;
    font-weight: 900;
    color: var(--white);
    display: block;
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.2rem;
    color: #a3cfff;
    font-weight: 600;
}


/* --- 關於我們段落 (雜誌風排版) --- */
.about {
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 30px;
    border-bottom: 2px solid var(--primary-light);
    padding-bottom: 10px;
    display: inline-block;
}

.about-text .lead {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 25px;
}

.feature-list li {
    margin-bottom: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-list i {
    color: var(--primary);
    font-size: 1.2rem;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--primary);
    font-weight: 700;
    margin-top: 20px;
    font-size: 1.1rem;
}

.link-arrow:hover {
    gap: 12px;
    color: var(--primary-dark);
}

.about-gallery {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
}

.img-box {
    position: absolute;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(1.1) contrast(1.1);
}

.box-1 {
    width: 70%;
    right: 0;
    top: 0;
    z-index: 1;
    border: 5px solid var(--white);
}

.box-2 {
    width: 60%;
    left: 0;
    bottom: 0;
    z-index: 2;
    border: 5px solid var(--white);
}

.img-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px;
    background: rgba(110, 130, 38, 0.85);
    /* 半透明品牌暗綠 */
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
}

/* 展螢專屬：引言區塊與清單 */
.highlight-quote {
    background: #e6eeb2;
    /* 原站引言底色 */
    color: var(--primary-dark);
    padding: 20px 30px;
    border-radius: 8px;
    font-size: 1.15rem;
    font-weight: 700;
    margin: 40px 0;
    border-left: 6px solid var(--primary);
    position: relative;
}

.highlight-quote::before {
    content: "“";
    font-size: 3rem;
    color: rgba(140, 165, 48, 0.3);
    position: absolute;
    top: -10px;
    left: 10px;
    font-family: serif;
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.details-col {
    background: var(--white);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.details-header {
    background: #b0a07a;
    /* 原站標題背景色 */
    color: var(--white);
    padding: 12px 20px;
    font-weight: bold;
    text-align: center;
    letter-spacing: 2px;
}

.details-body {
    padding: 20px;
    font-size: 0.9rem;
}

.details-subtitle {
    color: #444;
    font-weight: bold;
    margin-bottom: 5px;
    margin-top: 15px;
}

.details-subtitle:first-child {
    margin-top: 0;
}

.details-list li {
    margin-bottom: 5px;
    color: #555;
}

/* --- 服務卡片區 --- */
.section-desc {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 60px;
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 50px 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    top: 0;
}

.service-card:hover,
.service-card.active {
    box-shadow: var(--shadow-lg);
    top: -10px;
    border-color: var(--primary-light);
}

.service-card.active {
    background: var(--primary-dark);
    color: var(--white);
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    border-radius: 50%;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--primary);
    transition: var(--transition-base);
}

.service-card.active .icon-wrapper {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.service-card:hover:not(.active) .icon-wrapper {
    background: var(--primary);
    color: var(--white);
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--primary-dark);
}

.service-card.active h3 {
    color: var(--white);
}

.service-card p {
    margin-bottom: 25px;
    color: var(--text-muted);
}

.service-card.active p {
    color: rgba(255, 255, 255, 0.8);
}

.card-link {
    font-weight: 700;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.service-card.active .card-link {
    color: #a3cfff;
}

.card-link:hover {
    gap: 10px;
}

/* --- 頁尾設計 --- */
.footer-modern {
    background: #222222;
    color: #dddddd;
    padding: 60px 0 30px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 40px;
    margin-bottom: 30px;
}

.footer-info h3 {
    color: var(--white);
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.footer-contact-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.contact-item i {
    color: var(--primary-light);
    font-size: 1.2rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.footer-nav {
    display: flex;
    gap: 20px;
}

.footer-nav a {
    color: #aaaaaa;
}

.footer-nav a:hover {
    color: var(--white);
    text-decoration: underline;
}

/* --- 動畫 --- */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease-out;
}

.active {
    opacity: 1;
    transform: translate(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

/* --- RWD --- */
@media (max-width: 900px) {

    .nav-links,
    .top-bar {
        display: none;
    }

    .hero-container,
    .about-grid {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .hero {
        text-align: center;
        padding-top: 15vh;
    }

    .hero-actions {
        justify-content: center;
    }

    .about-gallery {
        height: 400px;
        margin-top: 40px;
    }

    .service-cards {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}