/* ==========================================================================
   毛線球 - 手藝人的作品 (暖色系 RWD 樣式表)
   色調規劃: 暖紅 (#E65100, #D84315)、活力橙 (#FF7043, #FFA726)、溫潤暖黃 (#FFB300, #FFF8E1, #FFFDE7)
   ========================================================================== */

:root {
    /* 核心暖色調調色盤 */
    --primary-red: #D84315;
    --primary-coral: #E65100;
    --primary-orange: #FF7043;
    --primary-amber: #FFA726;
    --primary-yellow: #FFB300;
    
    /* 背景與底色 */
    --bg-cream: #FDFBF7;
    --bg-warm-card: #FFFFFF;
    --bg-soft-yellow: #FFF9E6;
    --bg-soft-orange: #FFF3E0;
    --bg-dark-warm: #2C1810;

    /* 文字色彩 */
    --text-primary: #3E2723;
    --text-secondary: #5D4037;
    --text-muted: #8D6E63;
    --text-light: #FFFFFF;

    /* 陰影與圓角 */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    --shadow-soft: 0 10px 25px rgba(216, 67, 21, 0.08);
    --shadow-hover: 0 18px 35px rgba(216, 67, 21, 0.16);
    --shadow-glow: 0 0 20px rgba(255, 167, 38, 0.4);

    /* 轉場動畫 */
    --transition-fast: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   (6) 時尚簡約客製化右邊卷軸 & (7) 防止下方水平卷軸
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden; /* (7) 確保無下方水平卷軸 */
}

body {
    font-family: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-cream);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden; /* (7) 所有頁面無下方卷軸 */
    position: relative;
    width: 100%;
}

/* (6) 右邊卷軸時尚簡約樣式 (Webkit Browsers: Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #FFF3E0;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-amber) 0%, var(--primary-orange) 50%, var(--primary-red) 100%);
    border-radius: 10px;
    border: 2px solid #FFF3E0;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--primary-orange) 0%, var(--primary-red) 100%);
}

/* Firefox 卷軸支援 */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-orange) #FFF3E0;
}

/* ==========================================================================
   通用版型 Utilities & Layout
   ========================================================================== */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section {
    padding: 90px 0;
    position: relative;
}

.section-title-wrap {
    text-align: center;
    margin-bottom: 55px;
}

.section-tag {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary-coral);
    background: rgba(255, 112, 67, 0.12);
    padding: 5px 16px;
    border-radius: var(--radius-full);
    margin-bottom: 12px;
}

.section-title {
    font-size: 2.3rem;
    font-weight: 700;
    color: var(--text-primary);
}

.section-title span {
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--primary-orange);
}

.title-underline {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-red), var(--primary-amber));
    margin: 15px auto 0;
    border-radius: 2px;
}

.section-subtext {
    margin-top: 15px;
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   (4) & (5) 導覽列與右上角動態按鈕
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(253, 251, 247, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 183, 77, 0.25);
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(62, 39, 35, 0.08);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* (5) 左上方 SVG LOGO */
.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: transform var(--transition-fast);
}

.brand-logo:hover {
    transform: scale(1.03);
}

.logo-svg {
    width: 46px;
    height: 46px;
    filter: drop-shadow(0 2px 4px rgba(216, 67, 21, 0.2));
    animation: rotateSlow 20s linear infinite paused;
}

.brand-logo:hover .logo-svg {
    animation-play-state: running;
}

@keyframes rotateSlow {
    100% { transform: rotate(360deg); }
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary-coral);
    line-height: 1.2;
    letter-spacing: 0.5px;
}

.brand-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

/* (4) 右上方動態導覽按鈕 */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 14px;
}

.nav-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-full);
    background: transparent;
    border: 1.5px solid transparent;
    transition: all var(--transition-fast);
    overflow: hidden;
    z-index: 1;
}

.nav-btn i {
    font-size: 0.9rem;
    color: var(--primary-orange);
    transition: transform var(--transition-fast), color var(--transition-fast);
}

/* 當滑鼠在按鈕上方時的動態效果 (Hover Dynamic Effect) */
.nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #FFE082, #FF7043);
    opacity: 0;
    transform: scale(0.6);
    border-radius: var(--radius-full);
    transition: all var(--transition-smooth);
    z-index: -1;
}

.nav-btn:hover {
    color: #FFFFFF;
    border-color: rgba(255, 112, 67, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(255, 112, 67, 0.3);
}

.nav-btn:hover::before {
    opacity: 1;
    transform: scale(1);
}

.nav-btn:hover i {
    color: #FFFFFF;
    transform: rotate(15deg) scale(1.2);
}

.nav-btn:active {
    transform: translateY(0) scale(0.96);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.6rem;
    color: var(--primary-coral);
    cursor: pointer;
    padding: 5px;
}

/* ==========================================================================
   (3) 首頁大圖輪播 Fullscreen Carousel
   ========================================================================== */
.hero-section {
    position: relative;
    width: 100vw;
    height: 100vh;
    min-height: 550px;
    overflow: hidden;
}

.carousel-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), transform 6s linear;
    transform: scale(1.08);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.slide-content {
    max-width: 860px;
    padding: 0 20px;
    color: var(--text-light);
    z-index: 2;
    animation: fadeInSlideUp 1s ease-out forwards;
}

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

.slide-content .badge {
    display: inline-block;
    padding: 7px 20px;
    background: rgba(255, 167, 38, 0.85);
    backdrop-filter: blur(5px);
    color: #FFF;
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
}

.slide-title {
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 20px;
    text-shadow: 0 3px 12px rgba(0,0,0,0.5);
}

.slide-desc {
    font-size: 1.25rem;
    color: #FFE0B2;
    margin-bottom: 35px;
    font-weight: 300;
    text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 34px;
    background: linear-gradient(135deg, var(--primary-amber) 0%, var(--primary-red) 100%);
    color: #FFF;
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    box-shadow: 0 8px 20px rgba(216, 67, 21, 0.4);
    transition: all var(--transition-fast);
}

.cta-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 26px rgba(216, 67, 21, 0.6);
}

.cta-btn i {
    transition: transform var(--transition-fast);
}

.cta-btn:hover i {
    transform: translateX(5px);
}

/* 輪播控制按鈕 */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #FFF;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    backdrop-filter: blur(6px);
    transition: all var(--transition-fast);
    z-index: 10;
}

.carousel-nav:hover {
    background: var(--primary-orange);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 15px rgba(255, 112, 67, 0.6);
}

.carousel-nav.prev { left: 25px; }
.carousel-nav.next { right: 25px; }

.carousel-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.dot.active {
    width: 32px;
    border-radius: 10px;
    background: var(--primary-amber);
    box-shadow: 0 0 8px rgba(255, 179, 0, 0.8);
}

/* ==========================================================================
   [毛毛自介] 區塊樣式
   ========================================================================== */
.about-section {
    background-color: #FFFDF9;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 50px;
    align-items: center;
}

.about-image-card .image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.about-img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-smooth);
}

.about-image-card:hover .about-img {
    transform: scale(1.03);
}

.about-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    padding: 12px 22px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-red);
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.about-heading {
    font-size: 1.6rem;
    color: var(--primary-coral);
    margin-bottom: 16px;
    line-height: 1.4;
}

.about-text {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 28px;
    line-height: 1.8;
}

.story-timeline {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.timeline-item {
    display: flex;
    gap: 16px;
    background: var(--bg-soft-yellow);
    padding: 16px 20px;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary-amber);
    transition: transform var(--transition-fast);
}

.timeline-item:hover {
    transform: translateX(6px);
    background: var(--bg-soft-orange);
}

.timeline-icon {
    font-size: 1.3rem;
    color: var(--primary-red);
    padding-top: 2px;
}

.timeline-body h4 {
    font-size: 1.05rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.timeline-body p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ==========================================================================
   [作品欣賞] 區塊樣式 (JSON Dynamic Grid)
   ========================================================================== */
.gallery-section {
    background: linear-gradient(180deg, #FFFDF9 0%, #FFF8F0 100%);
}

.filter-controls {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 9px 22px;
    border-radius: var(--radius-full);
    border: 1.5px solid #FFE0B2;
    background: #FFF;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
    background: linear-gradient(135deg, var(--primary-amber), var(--primary-orange));
    color: #FFF;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(255, 112, 67, 0.3);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 28px;
}

.gallery-card {
    background: #FFF;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all var(--transition-smooth);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    border: 1px solid rgba(255, 224, 178, 0.4);
}

.gallery-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-amber);
}

.card-image-box {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.card-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-smooth);
}

.gallery-card:hover .card-image-box img {
    transform: scale(1.08);
}

.card-category-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(216, 67, 21, 0.85);
    color: #FFF;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.card-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
    flex-grow: 1;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px dashed #FFE0B2;
}

.card-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-red);
}

.card-view-btn {
    font-size: 0.88rem;
    color: var(--primary-coral);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ==========================================================================
   [客製化說明] 區塊樣式
   ========================================================================== */
.custom-section {
    background: #FFFDF7;
}

.custom-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 45px;
}

.step-card {
    background: #FFFFFF;
    padding: 32px 24px;
    border-radius: var(--radius-md);
    border: 1.5px solid #FFE5B4;
    text-align: center;
    position: relative;
    box-shadow: var(--shadow-soft);
    transition: all var(--transition-smooth);
}

.step-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary-orange);
    box-shadow: var(--shadow-hover);
}

.step-number {
    position: absolute;
    top: 16px;
    right: 18px;
    font-size: 1.8rem;
    font-weight: 800;
    font-family: 'Quicksand', sans-serif;
    color: rgba(255, 112, 67, 0.18);
}

.step-icon {
    width: 66px;
    height: 66px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #FFE082, #FF7043);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #FFF;
    box-shadow: 0 6px 15px rgba(255, 112, 67, 0.3);
}

.step-title {
    font-size: 1.18rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.step-desc {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

.custom-notice-box {
    background: var(--bg-soft-yellow);
    border-radius: var(--radius-md);
    padding: 26px 30px;
    border: 1px solid #FFE082;
}

.notice-header {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-red);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.notice-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notice-list li {
    font-size: 0.95rem;
    color: var(--text-secondary);
    position: relative;
    padding-left: 22px;
}

.notice-list li::before {
    content: '✔';
    position: absolute;
    left: 0;
    color: var(--primary-orange);
    font-weight: bold;
}

/* ==========================================================================
   [聯絡我們] 區塊樣式 (JSON 留言系統)
   ========================================================================== */
.contact-section {
    background: linear-gradient(180deg, #FFFDF7 0%, #FFF3E0 100%);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 40px;
    margin-bottom: 50px;
}

.contact-info-card {
    background: linear-gradient(145deg, #FF7043, #D84315);
    color: #FFFFFF;
    padding: 38px 30px;
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 30px rgba(216, 67, 21, 0.25);
    display: flex;
    flex-direction: column;
}

.info-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.info-intro {
    font-size: 0.95rem;
    color: #FFE0B2;
    margin-bottom: 28px;
}

.info-item {
    display: flex;
    gap: 16px;
    margin-bottom: 22px;
}

.info-item i {
    font-size: 1.25rem;
    color: #FFE082;
    padding-top: 3px;
}

.info-item h4 {
    font-size: 1rem;
    margin-bottom: 3px;
}

.info-item p {
    font-size: 0.9rem;
    color: #FFECB3;
    line-height: 1.5;
}

.social-links {
    margin-top: auto;
    display: flex;
    gap: 12px;
    padding-top: 20px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFF;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.social-icon:hover {
    background: #FFF;
    color: var(--primary-red);
    transform: translateY(-3px);
}

/* 聯絡表單卡片 */
.contact-form-card {
    background: #FFFFFF;
    padding: 38px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    border: 1px solid #FFE0B2;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-group label i {
    color: var(--primary-orange);
    margin-right: 4px;
}

.required {
    color: var(--primary-red);
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 0.95rem;
    border: 1.5px solid #FFE0B2;
    border-radius: var(--radius-sm);
    background: #FFFDF9;
    color: var(--text-primary);
    font-family: inherit;
    transition: all var(--transition-fast);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-orange);
    background: #FFF;
    box-shadow: 0 0 0 3px rgba(255, 112, 67, 0.15);
}

.submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary-amber) 0%, var(--primary-coral) 100%);
    border: none;
    border-radius: var(--radius-full);
    color: #FFF;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 6px 18px rgba(230, 81, 0, 0.35);
    transition: all var(--transition-fast);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(230, 81, 0, 0.45);
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-red) 100%);
}

/* JSON 輸出展示框 */
.json-output-container {
    margin-top: 25px;
    background: #2B1E1A;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid #FFAB91;
    animation: fadeIn 0.4s ease;
}

.json-header {
    background: #3E2723;
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #FFE082;
    font-size: 0.85rem;
    font-weight: 600;
}

.copy-json-btn {
    background: rgba(255, 255, 255, 0.15);
    color: #FFF;
    border: none;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.copy-json-btn:hover {
    background: var(--primary-orange);
}

.json-code-box {
    padding: 16px;
    color: #81C784;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.88rem;
    line-height: 1.5;
    overflow-x: auto;
}

/* 歷史留言紀錄 */
.message-history-section {
    background: #FFFFFF;
    padding: 30px;
    border-radius: var(--radius-lg);
    border: 1px solid #FFE0B2;
    box-shadow: var(--shadow-soft);
}

.history-title-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #FFF3E0;
}

.history-title-wrap h3 {
    font-size: 1.2rem;
    color: var(--text-primary);
}

.history-title-wrap h3 i {
    color: var(--primary-coral);
    margin-right: 6px;
}

.clear-btn {
    background: none;
    border: 1px solid #FFAB91;
    color: var(--primary-red);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.clear-btn:hover {
    background: #FFEBEE;
}

.message-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.msg-item-card {
    background: var(--bg-soft-yellow);
    border: 1px solid #FFE082;
    padding: 18px;
    border-radius: var(--radius-md);
    position: relative;
    transition: transform var(--transition-fast);
}

.msg-item-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(255, 167, 38, 0.2);
}

.msg-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.msg-author {
    font-weight: 700;
    color: var(--primary-coral);
    font-size: 1rem;
}

.msg-tag {
    font-size: 0.75rem;
    background: #FFE082;
    color: #5D4037;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.msg-content {
    font-size: 0.92rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
    line-height: 1.5;
}

.msg-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
}

/* ==========================================================================
   燈箱彈窗 Modal
   ========================================================================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 24, 16, 0.75);
    backdrop-filter: blur(4px);
}

.modal-dialog {
    position: relative;
    background: #FFF;
    width: 90%;
    max-width: 680px;
    max-height: 90vh;
    border-radius: var(--radius-lg);
    overflow-y: auto;
    z-index: 2001;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    animation: scaleIn 0.3s ease;
}

@keyframes scaleIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 18px;
    background: rgba(0,0,0,0.1);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.5rem;
    color: #5D4037;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: var(--primary-red);
    color: #FFF;
}

.modal-body-content {
    padding: 0;
}

.modal-img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
}

.modal-text-wrap {
    padding: 26px;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.modal-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.modal-tag-item {
    background: #FFF3E0;
    color: var(--primary-coral);
    font-size: 0.85rem;
    padding: 3px 10px;
    border-radius: var(--radius-full);
}

.modal-desc-full {
    font-size: 0.98rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

/* ==========================================================================
   頁尾 Footer
   ========================================================================== */
.footer {
    background: var(--bg-dark-warm);
    color: #FFE0B2;
    padding: 60px 0 30px;
    border-top: 4px solid var(--primary-amber);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 224, 178, 0.15);
}

.footer-brand {
    max-width: 450px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.logo-svg-small {
    width: 32px;
    height: 32px;
}

.footer-logo span {
    font-size: 1.25rem;
    font-weight: 700;
    color: #FFF;
}

.footer-brand p {
    font-size: 0.9rem;
    color: #D7CCC8;
}

.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #FFE0B2;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary-amber);
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    font-size: 0.85rem;
    color: #A1887F;
}

/* ==========================================================================
   (1) RWD 響應式斷點設計 Responsive Design
   ========================================================================== */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-img {
        height: 380px;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .slide-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 250px;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        padding: 25px 20px;
        border-radius: var(--radius-md) 0 0 var(--radius-md);
        box-shadow: -6px 12px 25px rgba(0,0,0,0.15);
        transition: right var(--transition-smooth);
        border: 1px solid #FFE0B2;
        border-right: none;
    }

    .nav-menu.open {
        right: 0;
    }

    .nav-btn {
        width: 100%;
        justify-content: flex-start;
        padding: 12px 18px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .slide-title {
        font-size: 2rem;
    }

    .slide-desc {
        font-size: 1rem;
    }

    .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .contact-form-card {
        padding: 24px;
    }
}
