@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;1,400&family=Lato:wght@300;400;700&family=Noto+Serif+TC:wght@400;600&display=swap');

/* 根變數 */
:root {
    --primary: #9F8189;
    --secondary: #4A5568;
    --dark: #1a1a1a;
    --light: #F9F9F9;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', 'Noto Sans TC', sans-serif;
    background-color: #FDFBF9;
    color: #4a5568;
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', 'Noto Serif TC', serif;
    font-weight: 600;
    line-height: 1.2;
}

/* 導覽列 */
nav.fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-logo-circle {
    width: 40px;
    height: 40px;
    background-color: var(--dark);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    transition: background-color 0.3s ease;
}

.nav-logo:hover .nav-logo-circle {
    background-color: var(--primary);
}

.nav-logo-text h2 {
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 0.1em;
    color: var(--gray-800);
    margin: 0;
    line-height: 1.2;
}

.nav-logo-text p {
    font-size: 10px;
    color: var(--gray-400);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 0;
}

.nav-menu {
    display: none;
    gap: 32px;
    align-items: center;
}

@media (min-width: 768px) {
    .nav-menu {
        display: flex;
    }
}

.nav-menu a {
    text-decoration: none;
    color: var(--gray-800);
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--primary);
}

.nav-btn {
    background-color: var(--dark);
    color: var(--white);
    padding: 10px 28px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 0.1em;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    transform: translateY(0);
}

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


@media (min-width: 768px) {
    .nav-toggle {
        display: none;
    }
}

/* 英雄區塊 */
.hero {
    position: relative;
    height: 600px;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    margin-top: 80px;
}

@media (min-width: 1024px) {
    .hero {
        height: 700px;
    }
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.85) 45%, rgba(255,255,255,0.2) 100%);
    z-index: 10;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 20;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

@media (min-width: 768px) {
    .hero-content {
        flex-direction: row;
        align-items: center;
    }
}

.hero-text {
    width: 100%;
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.8s ease-out forwards;
}

@media (min-width: 768px) {
    .hero-text {
        width: 50%;
    }
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid var(--white);
    padding: 6px 16px;
    border-radius: 9999px;
    margin-bottom: 32px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--primary);
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero-badge span {
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 0.05em;
    color: var(--gray-800);
    text-transform: uppercase;
}

.hero-title {
    font-size: 48px;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--gray-900);
    font-family: 'Playfair Display', serif;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 56px;
    }
}

.hero-title-primary {
    font-style: italic;
    color: var(--primary);
}

.hero-subtitle {
    font-size: 18px;
    color: var(--gray-600);
    margin-bottom: 32px;
    line-height: 1.6;
    max-width: 500px;
    font-weight: 300;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 40px;
}

.hero-tag {
    padding: 8px 12px;
    background-color: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: 4px;
    font-size: 12px;
    color: var(--gray-500);
    letter-spacing: 0.05em;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 85px !important;
}

.btn {
    padding: 16px 32px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.btn-primary {
    background-color: var(--dark);
    color: var(--white);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background-color: var(--primary);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    color: var(--dark);
    border: 1px solid var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
}

/* 區塊 */
section {
    padding: 96px 24px;
}

@media (min-width: 768px) {
    section {
        padding: 96px 0;
    }
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (min-width: 768px) {
    .container {
        padding: 0 48px;
    }
}

/* 關於區塊 */
.about {
    background-color: var(--white);
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 64px;
    align-items: center;
}

@media (min-width: 768px) {
    .about-content {
        flex-direction: row;
    }
}

.about-image {
    width: 100%;
    position: relative;
}

@media (min-width: 768px) {
    .about-image {
        width: 41.666%;
    }
}

.about-image-border {
    position: absolute;
    top: -16px;
    left: -16px;
    width: 100%;
    height: 100%;
    border: 2px solid rgba(159, 129, 137, 0.3);
    border-radius: 0 48px 0 0;
}

.about-image img {
    position: relative;
    z-index: 10;
    width: 100%;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border-radius: 0 48px 0 0;
    filter: grayscale(100%);
    transition: filter 0.7s ease;
}

.about-image:hover img {
    filter: grayscale(0%);
}

.about-text {
    width: 100%;
}

@media (min-width: 768px) {
    .about-text {
        width: 58.333%;
    }
}

.about-label {
    color: var(--primary);
    font-weight: bold;
    letter-spacing: 0.2em;
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 12px;
    display: block;
}

.about-title {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 24px;
    color: var(--dark);
}

.about-text p {
    color: var(--gray-600);
    font-weight: 300;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 24px;
}

.about-text p.quote {
    border-left: 4px solid var(--primary);
    padding-left: 16px;
    font-style: italic;
    color: var(--gray-700);
}

/* 流程區塊 */
.process {
    background-color: var(--light);
}

.process-header {
    text-align: center;
    margin-bottom: 64px;
}

.process-header-label {
    color: var(--primary);
    font-weight: bold;
    letter-spacing: 0.2em;
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 12px;
    display: block;
}

.process-header-title {
    font-size: 32px;
    font-weight: bold;
    color: var(--dark);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    position: relative;
}

.process-item {
    text-align: center;
    position: relative;
    z-index: 10;
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.8s ease-out forwards;
}

.process-item:nth-child(2) {
    animation-delay: 100ms;
}

.process-item:nth-child(3) {
    animation-delay: 200ms;
}

.process-item:nth-child(4) {
    animation-delay: 300ms;
}

.process-icon {
    width: 64px;
    height: 64px;
    background-color: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.process-item:hover .process-icon {
    background-color: var(--primary);
    color: var(--white);
}

.process-title {
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 8px;
}

.process-desc {
    font-size: 12px;
    color: var(--gray-500);
    line-height: 1.6;
    padding: 0 16px;
}

/* 材質區塊 */
.materials {
    background-color: var(--white);
}

.materials-header {
    text-align: center;
    margin-bottom: 64px;
}

.materials-header-label {
    color: var(--primary);
    font-weight: bold;
    letter-spacing: 0.2em;
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 12px;
    display: block;
}

.materials-header-title {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 24px;
    color: var(--gray-900);
}

.materials-header-desc {
    color: var(--gray-500);
    font-weight: 300;
}

.materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-bottom: 48px;
}

.material-card {
    background-color: var(--white);
    border-radius: 16px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.5s ease;
    border: 1px solid var(--gray-100);
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.8s ease-out forwards;
}

.material-card:nth-child(2) {
    animation-delay: 100ms;
}

.material-card:nth-child(3) {
    animation-delay: 200ms;
}

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

.material-card.dark {
    background-color: var(--dark);
    color: var(--white);
    border-color: var(--gray-800);
}

.material-image {
    height: 192px;
    overflow: hidden;
    background-color: #f0f0f0;
}

.material-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: transform 0.7s ease;
}

.material-card:hover .material-image img {
    transform: scale(1.1);
}

.material-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background-color: var(--primary);
    color: var(--white);
    font-size: 10px;
    font-weight: bold;
    padding: 6px 12px;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.material-card.dark .material-badge {
    background-color: var(--white);
    color: var(--dark);
}

.material-content {
    padding: 32px;
    position: relative;
}

.material-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.material-title {
    font-size: 24px;
    font-weight: bold;
    font-family: 'Playfair Display', serif;
}

.material-icon {
    width: 32px;
    height: 32px;
    background-color: rgba(159, 129, 137, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 16px;
}

.material-card.dark .material-icon {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.material-desc {
    font-size: 12px;
    line-height: 1.6;
    margin-bottom: 24px;
    min-height: 40px;
}

.material-card.dark .material-desc {
    color: var(--gray-400);
}

.material-stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.material-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.material-stat-header {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: var(--gray-400);
    margin-bottom: 4px;
}

.material-card.dark .material-stat-header {
    color: var(--gray-500);
}

.material-stat-bar {
    width: 100%;
    height: 4px;
    background-color: var(--gray-100);
    border-radius: 9999px;
    overflow: hidden;
}

.material-card.dark .material-stat-bar {
    background-color: var(--gray-700);
}

.material-stat-fill {
    height: 100%;
    background-color: var(--primary);
    border-radius: 9999px;
}

.material-stat-fill.secondary {
    background-color: var(--gray-400);
}

.material-card.dark .material-stat-fill.secondary {
    background-color: var(--white);
}

.materials-cta {
    text-align: center;
}

.btn-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: bold;
    font-size: 14px;
    border-bottom: 1px solid var(--primary);
    padding-bottom: 4px;
    text-decoration: none;
    cursor: pointer;
    background: none;
    border: none;
    transition: opacity 0.3s ease;
}

.btn-link:hover {
    opacity: 0.8;
}

/* FAQ 區塊 */
.faq {
    background-color: var(--light);
}

.faq-header {
    text-align: center;
    margin-bottom: 48px;
}

.faq-header-label {
    color: var(--primary);
    font-weight: bold;
    letter-spacing: 0.2em;
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 12px;
    display: block;
}

.faq-header-title {
    font-size: 32px;
    font-weight: bold;
    color: var(--dark);
}

.faq-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 1024px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    overflow: hidden;
    background-color: var(--white);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.8s ease-out forwards;
}

.faq-item:nth-child(2) {
    animation-delay: 100ms;
}

.faq-item:nth-child(3) {
    animation-delay: 200ms;
}

.faq-question {
    width: 100%;
    padding: 24px;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
    font-weight: bold;
    color: var(--gray-800);
}

.faq-question:hover {
    background-color: var(--gray-50);
}

.faq-icon {
    color: var(--primary);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    opacity: 1;
}

.faq-answer-content {
    padding: 0 24px 24px;
    color: var(--gray-600);
    line-height: 1.8;
    font-size: 14px;
    border-top: 1px solid var(--gray-100);
    padding-top: 24px;
}

/* 模態框 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: var(--white);
    border-radius: 16px;
    padding: 32px;
    max-width: 500px;
    width: 100%;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #9a8a91;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: var(--dark);
}

/* 表單 */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark);
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(159, 129, 137, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.error-message {
    color: #EF4444;
    font-size: 12px;
    margin-top: 4px;
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #EF4444;
}

.modal-title {
    font-size: 28px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 8px;
    font-family: 'Playfair Display', serif;
}

.modal-subtitle {
    text-align: center;
    color: var(--gray-600);
    margin-bottom: 24px;
    font-size: 14px;
}

.btn-submit {
    width: 100%;
    background-color: var(--primary);
    color: var(--white);
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.btn-submit:hover:not(:disabled) {
    background-color: #8a6f77;
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-notice {
    font-size: 12px;
    color: var(--gray-600);
    text-align: center;
    margin-top: 16px;
}

/* 成功訊息 */
.success-message {
    text-align: center;
    padding: 32px;
}

.success-icon {
    width: 64px;
    height: 64px;
    background-color: #22C55E;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 32px;
    color: var(--white);
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.success-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 16px;
    color: var(--dark);
}

.success-desc {
    color: var(--gray-600);
    margin-bottom: 24px;
    line-height: 1.6;
}

.success-info {
    background-color: rgba(159, 129, 137, 0.1);
    border: 1px solid rgba(159, 129, 137, 0.3);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
    text-align: left;
}

.success-info-title {
    font-weight: bold;
    color: var(--dark);
    margin-bottom: 12px;
    font-size: 14px;
}

.success-info-item {
    font-size: 13px;
    color: var(--gray-600);
    line-height: 1.8;
}

.success-note {
    font-size: 12px;
    color: var(--gray-600);
}

/* 部落格區塊 */
.blog {
    background-color: var(--white);
}

.blog-header {
    text-align: center;
    margin-bottom: 64px;
}

.blog-header-label {
    color: var(--primary);
    font-weight: bold;
    letter-spacing: 0.2em;
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 12px;
    display: block;
}

.blog-header-title {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 24px;
    color: var(--gray-900);
}

.blog-header-desc {
    color: var(--gray-500);
    font-weight: 300;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.blog-card {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.5s ease;
    border: 1px solid var(--gray-100);
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.8s ease-out forwards;
}

.blog-card:nth-child(2) {
    animation-delay: 100ms;
}

.blog-card:nth-child(3) {
    animation-delay: 200ms;
}

.blog-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: translateY(-8px);
}

.blog-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: #f0f0f0;
}

.blog-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.blog-card:hover .blog-thumbnail {
    transform: scale(1.1);
}

.blog-content {
    padding: 24px;
}

.blog-date {
    color: var(--primary);
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 0.05em;
}

.blog-title {
    font-size: 18px;
    font-weight: bold;
    margin: 12px 0;
    line-height: 1.4;
}

.blog-title a {
    color: var(--dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-title a:hover {
    color: var(--primary);
}

.blog-excerpt {
    color: var(--gray-600);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
    min-height: 40px;
}

.blog-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: bold;
    font-size: 14px;
    text-decoration: none;
    border-bottom: 1px solid var(--primary);
    padding-bottom: 4px;
    transition: opacity 0.3s ease;
}

.blog-link:hover {
    opacity: 0.8;
}

/* 單篇文章 */
.single-post {
    padding: 80px 0 64px;
}

.single-header {
    text-align: center;
    margin-bottom: 48px;
}

.single-title {
    font-size: 42px;
    font-weight: bold;
    margin-bottom: 24px;
    color: var(--dark);
    font-family: 'Playfair Display', serif;
}

.single-meta {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.single-date,
.single-author {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray-500);
    font-size: 14px;
}

.single-featured-image {
    margin-bottom: 48px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.single-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* 電腦版首圖高度限制 */
@media (min-width: 769px) {
    .single-featured-image {
        max-height: 150px;
    }
    
    .single-featured-image img {
        object-fit: cover;
        max-height: 150px;
    }
}

.single-content {
    max-width: 900px;
    margin: 0 auto 64px;
    line-height: 1.8;
    font-size: 16px;
    color: var(--gray-700);
    overflow-x: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.single-content h2,
.single-content h3 {
    font-family: 'Playfair Display', serif;
    margin: 32px 0 16px;
    color: var(--dark);
}

.single-content h2 {
    font-size: 28px;
}

.single-content h3 {
    font-size: 22px;
}

.single-content p {
    margin-bottom: 16px;
}

.single-content ul,
.single-content ol {
    margin-left: 24px;
    margin-bottom: 16px;
}

.single-content li {
    margin-bottom: 8px;
}

.single-content img {
    max-width: 100%;
    height: auto;
    max-height: 500px;
    margin: 24px 0;
    border-radius: 8px;
    display: block;
    object-fit: cover;
}

/* 電腦版文章內容圖片高度限制 */
@media (min-width: 769px) {
    .single-content img {
        max-height: 450px;
    }
}

.single-content iframe {
    max-width: 100%;
    width: 100%;
    height: auto;
    margin: 24px 0;
}

.single-content .wp-block-embed {
    max-width: 100%;
    margin: 24px 0;
}

.single-content blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 24px;
    margin: 24px 0;
    font-style: italic;
    color: var(--gray-600);
}

.single-footer {
    max-width: 800px;
    margin: 0 auto;
    padding-top: 32px;
    border-top: 1px solid var(--gray-200);
}

.single-tags {
    margin-bottom: 32px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.tags-label {
    font-weight: bold;
    color: var(--dark);
}

.tag-link {
    display: inline-block;
    padding: 6px 12px;
    background-color: var(--gray-100);
    color: var(--primary);
    border-radius: 20px;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
}

.tag-link:hover {
    background-color: var(--primary);
    color: var(--white);
}

.single-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

.nav-prev,
.nav-next {
    display: flex;
}

.nav-next {
    justify-content: flex-end;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background-color: var(--gray-50);
    border-radius: 8px;
    text-decoration: none;
    color: var(--primary);
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s ease;
    max-width: 100%;
}

.nav-link:hover {
    background-color: var(--primary);
    color: var(--white);
}

.nav-link span {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-word;
}

/* 相關文章 */
.related-posts {
    background-color: var(--light);
    padding: 96px 0;
}

.related-title {
    text-align: center;
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 48px;
    color: var(--dark);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.related-card {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.related-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.related-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.related-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.related-card:hover .related-image img {
    transform: scale(1.1);
}

.related-content {
    padding: 24px;
}

.related-date {
    color: var(--primary);
    font-size: 12px;
    font-weight: bold;
}

.related-title {
    font-size: 18px;
    font-weight: bold;
    margin: 12px 0;
    line-height: 1.4;
}

.related-title a {
    color: var(--dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-title a:hover {
    color: var(--primary);
}

.related-excerpt {
    color: var(--gray-600);
    font-size: 14px;
    margin-bottom: 16px;
    line-height: 1.6;
}

.related-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: bold;
    text-decoration: none;
    border-bottom: 1px solid var(--primary);
    padding-bottom: 4px;
    transition: opacity 0.3s ease;
}

.related-link:hover {
    opacity: 0.8;
}

/* 響應式 */
@media (max-width: 768px) {
    .hero {
        height: auto;
        padding-top: 80px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-buttons {
        margin-top: 65px !important;
    }

    .about-content {
        gap: 32px;
    }

    section {
        padding: 64px 16px;
    }

    .container {
        padding: 0 16px;
    }

    .single-title {
        font-size: 28px;
    }

    .single-meta {
        flex-direction: column;
        gap: 12px;
    }

    .single-navigation {
        grid-template-columns: 1fr;
    }

    .nav-next {
        justify-content: flex-start;
    }
}


/* 頁尾 */
.footer {
    background-color: var(--dark);
    color: var(--white);
    padding: 80px 0 40px;
    margin-top: 120px;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 48px;
    margin-bottom: 48px;
}

.footer-section h3,
.footer-section h4 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 16px;
    color: var(--white);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    font-size: 14px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 14px;
}

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

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 18px;
}

.footer-social a:hover {
    background-color: var(--primary);
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    margin: 0;
}

@media (max-width: 768px) {
    .footer {
        padding: 48px 0 24px;
        margin-top: 80px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .footer-section {
        text-align: center;
    }

    .footer-section h3,
    .footer-section h4 {
        font-size: 16px;
        text-align: center;
    }

    .footer-section p {
        text-align: center;
    }

    .footer-links {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-social {
        justify-content: center !important;
    }

    .footer-bottom p {
        text-align: center;
    }
}

/* 修復手機版選單樣式 */
@media (max-width: 767px) {
    .nav-menu {
        display: none !important;
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background-color: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 24px;
        gap: 0;
        z-index: 9997;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
        border-bottom: 1px solid var(--gray-200);
        width: 100%;
    }

    .nav-menu.active {
        display: flex !important;
    }

    .nav-menu-items {
        flex-direction: column;
        gap: 0;
        width: 100%;
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .nav-menu-items li {
        width: 100%;
        border-bottom: 1px solid var(--gray-100);
    }

    .nav-menu-items li:last-child {
        border-bottom: none;
    }

    .nav-menu-items a {
        display: block;
        padding: 16px 0;
        font-size: 16px;
        color: var(--gray-800);
        text-decoration: none;
        transition: color 0.3s ease;
    }

    .nav-menu-items a:hover {
        color: var(--primary);
    }

    .nav-btn {
        display: none;
    }

    .nav-toggle {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        font-size: 24px;
        color: var(--gray-800);
        padding: 8px;
    }

    .nav-toggle:hover {
        color: var(--primary);
    }
}

@media (min-width: 768px) {
    .nav-menu {
        display: flex !important;
    }

    .nav-toggle {
        display: none !important;
    }
}

/* 手機版導覽列修復 */
@media (max-width: 767px) {
    .nav-btn {
        display: none !important;
    }

    .nav-toggle {
        display: block !important;
        background: none;
        border: none;
        font-size: 24px;
        color: var(--gray-800);
        cursor: pointer;
        padding: 8px;
        z-index: 9998;
    }

    .nav-toggle:hover {
        color: var(--primary);
    }
}

@media (min-width: 768px) {
    .nav-toggle {
        display: none !important;
    }

    .nav-btn {
        display: block !important;
    }
}

/* 手機版底部優化 */
@media (max-width: 767px) {
    footer {
        padding: 32px 0 !important;
    }
    
    footer .max-w-7xl {
        padding: 0 16px !important;
    }
    
    footer .grid {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
        text-align: center !important;
        margin-bottom: 24px !important;
    }
    
    footer h3,
    footer h4 {
        font-size: 18px !important;
        margin-bottom: 16px !important;
    }
    
    footer p {
        font-size: 14px !important;
        line-height: 1.6 !important;
    }
    
    footer ul {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }
    
    footer ul li {
        margin: 8px 0 !important;
    }
    
    footer .flex {
        justify-content: center !important;
    }
    
    footer .border-t {
        margin-top: 24px !important;
        padding-top: 24px !important;
    }
    
    footer .border-t p {
        font-size: 12px !important;
    }
}

/* 驗證勾勾樣式 */
.verified-badge {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 6px;
    vertical-align: middle;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .verified-badge {
        width: 20px;
        height: 20px;
        margin-left: 6px;
    }
}


/* ========== 浮動按鈕樣式 ========== */
.fixed {
    position: fixed;
}

.bottom-8 {
    bottom: 2rem;
}

.right-8 {
    right: 2rem;
}

.z-40 {
    z-index: 40;
}

.z-50 {
    z-index: 50;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.gap-4 {
    gap: 1rem;
}

.w-14 {
    width: 3.5rem;
}

.h-14 {
    height: 3.5rem;
}

.w-10 {
    width: 2.5rem;
}

.h-10 {
    height: 2.5rem;
}

.rounded-full {
    border-radius: 9999px;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.text-white {
    color: #ffffff;
}

.text-2xl {
    font-size: 1.5rem;
}

.text-xl {
    font-size: 1.25rem;
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.shadow-xl {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.hover\:scale-110:hover {
    transform: scale(1.1);
}

.transition {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
}

.duration-300 {
    transition-duration: 300ms;
}

.border {
    border-width: 1px;
}

.border-white\/20 {
    border-color: rgba(255, 255, 255, 0.2);
}

.bg-gradient-to-tr {
    background-image: linear-gradient(to top right, var(--tw-gradient-stops));
}

.from-yellow-400 {
    --tw-gradient-from: #facc15;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(250, 204, 21, 0));
}

.via-red-500 {
    --tw-gradient-stops: var(--tw-gradient-from), #ef4444, var(--tw-gradient-to, rgba(239, 68, 68, 0));
}

.to-purple-500 {
    --tw-gradient-to: #a855f7;
}

.animate-bounce {
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
        animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
    }
    50% {
        transform: translateY(-0.5rem);
        animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }
}

.bg-dark {
    background-color: var(--dark);
}

.hover\:bg-primary:hover {
    background-color: var(--primary);
}

/* 預約模態框 */
.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.bg-black\/50 {
    background-color: rgba(0, 0, 0, 0.5);
}

.hidden {
    display: none;
}

.p-4 {
    padding: 1rem;
}

.p-8 {
    padding: 2rem;
}

.max-w-md {
    max-width: 28rem;
}

.w-full {
    width: 100%;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.top-4 {
    top: 1rem;
}

.right-4 {
    right: 1rem;
}

.text-gray-400 {
    color: #9ca3af;
}

.hover\:text-gray-600:hover {
    color: #4b5563;
}

.text-2xl {
    font-size: 1.5rem;
}

.text-xl {
    font-size: 1.25rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.space-y-4 > * + * {
    margin-top: 1rem;
}

.block {
    display: block;
}

.text-sm {
    font-size: 0.875rem;
}

.font-bold {
    font-weight: 700;
}

.text-red-500 {
    color: #ef4444;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.border-gray-300 {
    border-color: #d1d5db;
}

.focus\:outline-none:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
}

.focus\:border-primary:focus {
    border-color: var(--primary);
}

.text-gray-500 {
    color: #6b7280;
}

.text-center {
    text-align: center;
}

.text-xs {
    font-size: 0.75rem;
}

.text-gray-300 {
    color: #d1d5db;
}

/* 手機版適配 */
@media (max-width: 640px) {
    .fixed.bottom-8.right-8 {
        bottom: 1rem;
        right: 1rem;
    }
    
    .w-14 {
        width: 3rem;
    }
    
    .h-14 {
        height: 3rem;
    }
}


/* ========== 浮動按鈕新樣式 ========== */

/* 右下角 Instagram 按鈕（在預約按鈕上方） */
.instagram-btn-left {
    position: fixed;
    bottom: 104px;
    right: 32px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 40;
    border: none;
    cursor: pointer;
}

.instagram-btn-left:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* 右下角預約按鈕 */
.reservation-btn {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    border: none;
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 40;
    cursor: pointer;
    animation: bounce 2s infinite;
}

.reservation-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* 手機版浮動按鈕調整 */
@media (max-width: 640px) {
    .instagram-btn-left,
    .reservation-btn {
        width: 48px;
        height: 48px;
        font-size: 20px;
        right: 24px;
    }
    
    .instagram-btn-left {
        bottom: 96px;
    }
    
    .reservation-btn {
        bottom: 24px;
    }
}


/* 客戶推薦 */
.testimonials {
    padding: 80px 0;
    background: #FDFBF9;
}

.testimonials-header {
    text-align: center;
    margin-bottom: 60px;
}

.testimonials-header-label {
    color: var(--primary);
    font-weight: bold;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.testimonials-header-title {
    font-size: 36px;
    font-weight: 700;
    margin: 10px 0;
    color: #1a1a1a;
}

.testimonials-header-desc {
    color: #666;
    font-size: 18px;
    margin-top: 10px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.testimonial-stars {
    display: flex;
    gap: 5px;
    margin-bottom: 15px;
    color: #FFB800;
}

.testimonial-text {
    color: #666;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    gap: 15px;
    align-items: center;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-name {
    font-weight: bold;
    font-size: 14px;
    margin: 0;
    color: #1a1a1a;
}

.testimonial-title {
    color: #999;
    font-size: 12px;
    margin: 0;
}

.testimonials-cta {
    text-align: center;
}

.testimonials-cta .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

@media (max-width: 768px) {
    .testimonials {
        padding: 60px 0;
    }

    .testimonials-header-title {
        font-size: 24px;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .testimonial-card {
        padding: 20px;
    }

    /* 文章圖片手機版修正 */
    .single-featured-image {
        margin-bottom: 32px;
        width: 100%;
    }

    .single-featured-image img {
        width: 100%;
        height: auto;
        display: block;
    }

    .single-content {
        max-width: 100%;
        padding: 0;
        overflow-x: hidden;
    }

    .single-content img {
        max-width: 100%;
        height: auto;
        margin: 16px 0;
        display: block;
    }

    .single-content iframe {
        max-width: 100% !important;
        width: 100% !important;
    }

    .single-content .wp-block-embed {
        max-width: 100%;
    }

    .single-content table {
        width: 100%;
        overflow-x: auto;
    }

    .single-content pre {
        overflow-x: auto;
        max-width: 100%;
    }
}


/* 英雄區塊授權聲明 */
.hero-authorization {
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    margin: 16px 0 80px 0;
    text-align: center;
}

.hero-authorization-text {
    color: #d1d5db !important;
    font-size: 8px !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    font-weight: 400 !important;
}

@media (max-width: 768px) {
    .hero-authorization {
        margin: 12px 0 60px 0;
    }
    
    .hero-authorization-text {
        font-size: 7px !important;
    }
}


/* 分享按鈕 */
/* 文章標題下方的分享按鈕 */
.single-share-bar {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-200);
}

.share-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.share-icon {
    color: var(--primary);
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.share-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: var(--gray-50);
    border-radius: 50%;
    text-decoration: none;
    color: var(--dark);
    font-size: 16px;
    transition: all 0.3s ease;
    border: 1px solid var(--gray-200);
}

.share-btn-icon:hover {
    transform: scale(1.15) translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.share-facebook {
    color: #1877F2;
}

.share-facebook:hover {
    background-color: #1877F2;
    color: var(--white);
    border-color: #1877F2;
}

.share-line {
    color: #00B900;
}

.share-line:hover {
    background-color: #00B900;
    color: var(--white);
    border-color: #00B900;
}

/* 響應式 - 分享按鈕 */
@media (max-width: 768px) {
    .single-share-bar {
        margin-top: 12px;
        padding-top: 12px;
    }
    
    .share-wrapper {
        gap: 10px;
    }
    
    .share-btn-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
}
