/* 
  古月美工設計 - 核心設計系統
  Core Design System for Guyue Graphic Design
*/

:root {
    /* 品牌色彩 */
    --primary-brown: #8B5E3C;
    --primary-pink: #FFC6C7;
    --bg-cream: #FEF6E4;
    --accent-gold: #F9D423;
    --text-dark: #4A3728;
    --text-light: #8E7A6B;
    --white: #FFFFFF;

    /* 字體 */
    --font-main: 'Noto Sans TC', sans-serif;
    --font-cute: 'Zen Maru Gothic', serif;
    /* 圓潤可愛體 */
    --font-hand: 'Klee One', cursive;
    /* 硬筆手寫體 */
    --font-playful: 'ZCOOL KuaiLe', cursive;
    /* 活潑體 */

    /* 間距與圓角 */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 32px;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;

    /* 陰影 */
    --shadow: 0 4px 20px rgba(139, 94, 60, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-cream);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-md);
}

.section-title h2 {
    font-family: var(--font-cute);
    font-size: 3.5rem;
    color: var(--primary-brown);
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 10%;
    width: 80%;
    height: 12px;
    background-color: var(--primary-pink);
    opacity: 0.3;
    z-index: -1;
    border-radius: 10px;
}

img {
    max-width: 100%;
    height: auto;
}

/* 導覽列高度與樣式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 0;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    /* 增加兩側邊距，讓內容往中間/右邊靠一點 */
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.nav-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 50%;
}

.logo-text {
    font-family: var(--font-cute);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 3rem;
    align-items: center;
    font-weight: 500;
}

.nav-links a {
    color: var(--text-dark);
    font-size: 1rem;
    letter-spacing: 0.5px;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary-brown);
}

.nav-links a.active {
    color: #F8B600;
    /* 參考圖中的黃橙色 */
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #F8B600;
}

/* Hero 區塊 */
.hero {
    padding: 12rem 0 6rem;
    background: linear-gradient(135deg, var(--bg-cream) 0%, #fff 100%);
    overflow: hidden;
}

.hero-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    padding-left: 10%;
    /* 將內容推往右邊一點 */
}

.hero-text {
    flex: 0 1 auto;
    text-align: left;
}

.hero-text h1 {
    font-family: var(--font-cute);
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
}

.hero-text .highlight {
    color: var(--primary-brown);
    position: relative;
    z-index: 1;
}

.hero-text .highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 15px;
    background-color: var(--primary-pink);
    opacity: 0.3;
    z-index: -1;
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
}

.hero-btns {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-line {
    background-color: #06C755;
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-family: var(--font-cute);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    box-shadow: 0 8px 20px rgba(6, 199, 85, 0.3);
    transition: var(--transition);
}

.btn-line:hover {
    transform: translateY(-3px) scale(1.05);
    background-color: #05b34c;
    box-shadow: 0 12px 25px rgba(6, 199, 85, 0.4);
    color: white;
}

.btn-icon {
    width: 24px;
    height: 24px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-logo {
    max-width: 450px;
    width: 100%;
    height: auto;
    border-radius: 50%;
    border: 10px solid var(--white);
    box-shadow: var(--shadow);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* 服務項目 */
.section {
    padding: var(--spacing-lg) 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.service-card {
    background-color: var(--white);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    border-bottom: 5px solid var(--primary-brown);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-brown);
}

/* 作品展示 */
.portfolio-showcase {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 8px solid white;
    transition: var(--transition);
}

.portfolio-showcase:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.services-banner {
    width: 100%;
    height: auto;
    display: block;
}

/* 關於我們 */
/* 關於我們 */
.about-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    background: #fff;
    padding: 3.5rem;
    border-radius: 50px;
    box-shadow: 0 10px 40px rgba(139, 94, 60, 0.05);
    position: relative;
    border: 2px solid rgba(139, 94, 60, 0.05);
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.about-circle {
    width: 320px;
    height: 320px;
    background: var(--primary-pink);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 15px 35px rgba(255, 198, 199, 0.4);
    animation: blob-morph 8s ease-in-out infinite;
    overflow: hidden;
}

@keyframes blob-morph {
    0% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }

    50% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }

    100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
}

.about-circle span {
    font-family: var(--font-cute);
    font-size: 2.5rem;
    color: white;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}

.about-image::after {
    content: '🐾';
    position: absolute;
    bottom: -10px;
    right: 20px;
    font-size: 3.5rem;
    transform: rotate(15deg);
    filter: drop-shadow(2px 2px 5px rgba(0, 0, 0, 0.1));
}

.about-text {
    flex: 1.5;
}

.about-text h2 {
    font-family: var(--font-cute);
    font-size: 2.5rem;
    color: var(--primary-brown);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.about-text h2::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 12px;
    background-color: var(--primary-pink);
    opacity: 0.3;
    z-index: -1;
    border-radius: 10px;
}

.about-text p {
    font-size: 1.15rem;
    line-height: 2;
    color: var(--text-dark);
    margin-bottom: 1.2rem;
}

.about-text .btn-primary {
    border-radius: 50px;
    padding: 1rem 3rem;
    font-family: var(--font-cute);
    font-size: 1.2rem;
    background-color: #f8b600;
    border: none;
    box-shadow: 0 8px 20px rgba(248, 182, 0, 0.3);
    margin-top: 1rem;
}

.about-text .btn-primary:hover {
    transform: scale(1.05) rotate(-2deg);
    background-color: #ffc222;
}

/* 頁尾 */
.footer {
    background-color: var(--primary-brown);
    color: var(--bg-cream);
    padding: 5rem 0 3rem;
    margin-top: 5rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

.footer-main {
    display: flex;
    justify-content: center;
    gap: 4rem;
    width: 100%;
    max-width: 1000px;
    flex-wrap: wrap;
}

.footer-links {
    text-align: left;
}

.footer-links h3 {
    font-family: var(--font-cute);
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: white;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links a {
    color: var(--bg-cream);
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--primary-pink);
    padding-left: 5px;
}

.footer-info {
    text-align: left;
    background: rgba(255, 255, 255, 0.05);
    padding: 2.5rem 3rem;
    border-radius: 40px;
    border: 2px dashed rgba(254, 246, 228, 0.15);
    flex: 1;
    max-width: 600px;
}

.footer-info h3 {
    font-family: var(--font-cute);
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: white;
    letter-spacing: 2px;
}

.footer-details {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    text-align: center;
}

.footer-details p {
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.6;
}

.footer-bottom {
    border-top: 1px solid rgba(254, 246, 228, 0.1);
    padding-top: 2.5rem;
    width: 100%;
    max-width: 1000px;
    text-align: center;
    font-size: 0.95rem;
    opacity: 0.6;
}

/* 響應式優化 */
@media (max-width: 992px) {
    .nav-toggle-label {
        display: block;
        cursor: pointer;
        z-index: 1001;
        position: relative;
        height: 100%;
        padding: 1rem;
    }

    .nav-toggle-label span,
    .nav-toggle-label span::before,
    .nav-toggle-label span::after {
        display: block;
        background: var(--primary-brown);
        height: 3px;
        width: 2rem;
        border-radius: 2px;
        position: relative;
        transition: all .3s ease-in-out;
    }

    .nav-toggle-label span::before,
    .nav-toggle-label span::after {
        content: '';
        position: absolute;
    }

    .nav-toggle-label span::before {
        bottom: 8px;
    }

    .nav-toggle-label span::after {
        top: 8px;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        gap: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
        z-index: 1000;
    }

    .nav-links li {
        width: 100%;
        border-top: 1px solid var(--bg-cream);
    }

    .nav-links a {
        display: block;
        padding: 1.5rem 5%;
        width: 100%;
        text-align: left;
    }

    .nav-toggle:checked~.nav-links {
        max-height: 500px;
    }

    .nav-toggle:checked~.nav-toggle-label span {
        background: transparent;
    }

    .nav-toggle:checked~.nav-toggle-label span::before {
        transform: rotate(45deg);
        top: 0;
    }

    .nav-toggle:checked~.nav-toggle-label span::after {
        transform: rotate(-45deg);
        top: 0;
    }

    .hero-content,
    .about-content {
        flex-direction: column;
        text-align: center;
        padding-top: 2rem;
    }

    .section {
        padding: var(--spacing-md) 0;
    }

    .hero-text {
        text-align: center;
        padding-left: 0;
    }

    .hero-text h1 {
        font-size: 2.8rem;
    }

    .hero-btns {
        justify-content: center;
    }

    .about-circle {
        width: 250px;
        height: 250px;
    }

    .footer-main {
        flex-direction: column;
        gap: 4rem;
        align-items: center;
    }

    .footer-links,
    .footer-info {
        text-align: center;
        width: 100%;
    }

    .footer-links ul {
        align-items: center;
    }

    .footer-info {
        padding: 2.5rem 1.5rem;
    }

    .footer-links h3,
    .footer-info h3 {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }

    .footer-details p {
        justify-content: center;
        font-size: 1rem;
    }
}

.nav-toggle {
    display: none;
}