/* Basic Styles */
body {
    font-family: 'Noto Sans TC', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.8;
    margin: 0;
    padding: 0;
    background: #f9f9f9;
    color: #333;
    transition: background 0.3s, color 0.3s;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Utility to hide nav */
body.hide-nav header {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

/* Header and Navigation */
header {
    background: rgba(255, 255, 255, 0.95);
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    margin: 0 auto;
}

.logo a {
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 900;
    /* Flowing Pastel Gradient matching the user's background snippet */
    background: linear-gradient(to right,
            #ff9aa2, #ffb7b2, #ffdac1, #e2f0cb, #a2e4ff, #c9afff, #ffb7b2, #ff9aa2);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    animation: flowText 5s linear infinite;
}

@keyframes flowText {
    to {
        background-position: 200% center;
    }
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav ul li a {
    text-decoration: none;
    color: #555;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

nav ul li a:hover,
nav ul li a.active {
    background-color: #ff6347;
    color: #fff;
}

/* --- Hero Section - 夢幻粉彩動態光暈 (Adapted from Uiverse.io by ariba_9087) --- */
.hero {
    position: relative;
    width: 100%;
    height: 70vh;
    /* 維持原本的首頁視覺高度 */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    overflow: hidden;

    /* 柔和粉彩漸層背景 */
    background: linear-gradient(135deg, #ffe8f3, #d9f3ff);

    /* 文字改為深色以利閱讀 */
    color: #333;
}

/* 確保文字內容浮在背景動畫之上 */
.hero-content {
    position: relative;
    z-index: 10;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.8);
    /* 白色光暈讓字更清楚 */
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

/* 背景動畫層 */
.hero::before,
.hero::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg,
            #ff9aa2,
            /* Soft pink */
            #ffb7b2,
            /* Light peach */
            #ffdac1,
            /* Pastel yellow */
            #e2f0cb,
            /* Mint green */
            #a2e4ff,
            /* Baby blue */
            #c9afff,
            /* Lavender */
            #ffb7b2,
            #ff9aa2);
    transform: translate(-50%, -50%);
    animation: rotate 8s linear infinite;
    filter: blur(50px);
    /* 柔和光暈效果 */
    opacity: 0.8;
    z-index: 1;
    /* 在文字之下 */
}

/* 第二層旋轉增加層次感 */
.hero::after {
    width: 180%;
    height: 180%;
    animation: rotate-reverse 10s linear infinite;
    opacity: 0.6;
}

/* 動畫關鍵影格 */
@keyframes rotate {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes rotate-reverse {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(-360deg);
    }
}

/* CTA 按鈕樣式 */
.cta-button {
    background: #ff6347;
    color: #fff;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.3s;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(255, 99, 71, 0.4);
    /* 增加按鈕陰影讓它更突出 */
}

.cta-button:hover {
    background: #e5533d;
    transform: translateY(-3px);
}

/* Featured Products Section */
.featured-products,
.latest-posts,
.about-me {
    padding: 4rem 0;
    text-align: center;
}

.featured-products h2,
.latest-posts h2,
.about-me h2,
.products h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.featured-products h2::after,
.latest-posts h2::after,
.about-me h2::after,
.products h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #ff6347;
    border-radius: 2px;
}


.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    width: 90%;
    margin: 0 auto;
}

.product-card,
.post-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: left;
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover,
.post-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.12);
}

.product-card img,
.post-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-info,
.post-info {
    padding: 20px;
}

.product-info h3,
.post-info h3 {
    margin-top: 0;
    font-size: 1.2rem;
}

.product-info p,
.post-info p {
    color: #666;
    font-size: 0.9rem;
}

.price {
    font-size: 1.1rem;
    font-weight: bold;
    color: #ff6347;
    margin: 10px 0;
}

.buy-button {
    background: #333;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s;
}

.buy-button:hover {
    background: #555;
}

/* Latest Posts Section */
.latest-posts {
    padding: 4rem 0;
    background: #fff;
}

.posts-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    width: 90%;
    margin: 0 auto;
}

/* About Me Section */
.about-me {
    width: 90%;
    margin: 0 auto;
    max-width: 1200px;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 80px;
    text-align: left;
}

.about-item {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-item.reverse {
    flex-direction: row-reverse;
}

.about-item img {
    max-width: 450px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-text {
    max-width: 600px;
}

.about-text h3 {
    font-size: 2rem;
    color: #ff6347;
    margin-bottom: 1rem;
}

.about-text ul {
    list-style: none;
    padding-left: 0;
}

.about-text ul li {
    padding-left: 1.5em;
    position: relative;
    margin-bottom: 10px;
}

.about-text ul li::before {
    content: '✔';
    position: absolute;
    left: 0;
    color: #ff6347;
}

/* Shop Page */
.shop-container {
    display: flex;
    width: 90%;
    margin: 2rem auto;
    gap: 20px;
}

.sidebar {
    width: 20%;
    background: #fff;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    align-self: flex-start;
}

.sidebar h3 {
    margin-top: 0;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar ul li a {
    text-decoration: none;
    color: #555;
    display: block;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

.sidebar ul li a:hover,
.sidebar ul li a.active {
    color: #007bff;
    font-weight: bold;
}

.products {
    width: 80%;
}

/* Sparkle Button Styles from Uiverse.io by MuhammadHasann */
.button {
    --black-700: hsla(0 0% 12% / 1);
    --border_radius: 9999px;
    --transtion: 0.3s ease-in-out;
    --offset: 2px;

    /* Default Purple Theme */
    --theme-hue: 260;
    --theme-sat: 97%;
    --theme-light: 61%;
    --glow-color: hsl(var(--theme-hue) var(--theme-sat) 50% / 0.75);

    cursor: pointer;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transform-origin: center;
    padding: 1rem 2rem;
    background-color: transparent;
    border: none;
    border-radius: var(--border_radius);
    transform: scale(calc(1 + (var(--active, 0) * 0.1)));
    transition: transform var(--transtion);
    text-decoration: none;
    /* Ensure link underline is removed */
}

/* Color Variations */
.button-orange {
    --theme-hue: 15;
    /* Tomato/Orange */
    --theme-sat: 90%;
    --theme-light: 60%;
}

.button-green {
    --theme-hue: 140;
    /* Green */
    --theme-sat: 80%;
    --theme-light: 50%;
}

.button-blue {
    --theme-hue: 210;
    /* Blue */
    --theme-sat: 90%;
    --theme-light: 60%;
}

.button::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background-color: var(--black-700);
    border-radius: var(--border_radius);
    box-shadow: inset 0 0.5px hsl(0, 0%, 100%), inset 0 -1px 2px 0 hsl(0, 0%, 0%),
        0px 4px 10px -4px hsla(0 0% 0% / calc(1 - var(--active, 0))),
        0 0 0 calc(var(--active, 0) * 0.375rem) var(--glow-color);
    transition: all var(--transtion);
    z-index: 0;
}

.button::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background-color: hsl(var(--theme-hue) var(--theme-sat) var(--theme-light) / 0.75);
    background-image: radial-gradient(at 51% 89%,
            hsl(var(--theme-hue), 45%, 74%, 1) 0px,
            transparent 50%),
        radial-gradient(at 100% 100%, hsl(var(--theme-hue), 36%, 60%, 1) 0px, transparent 50%),
        radial-gradient(at 22% 91%, hsl(var(--theme-hue), 36%, 60%, 1) 0px, transparent 50%);
    background-position: top;
    opacity: var(--active, 0);
    border-radius: var(--border_radius);
    transition: opacity var(--transtion);
    z-index: 2;
}

.button:is(:hover, :focus-visible) {
    --active: 1;
}

.button:active {
    transform: scale(1);
}

.button .dots_border {
    --size_border: calc(100% + 2px);
    overflow: hidden;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: var(--size_border);
    height: var(--size_border);
    background-color: transparent;
    border-radius: var(--border_radius);
    z-index: -10;
}

.button .dots_border::before {
    content: "";
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    transform-origin: left;
    transform: rotate(0deg);
    width: 100%;
    height: 2rem;
    background-color: white;
    mask: linear-gradient(transparent 0%, white 120%);
    -webkit-mask: linear-gradient(transparent 0%, white 120%);
    animation: rotate 2s linear infinite;
}

@keyframes rotate {
    to {
        transform: rotate(360deg);
    }
}

.button .sparkle {
    position: relative;
    z-index: 10;
    width: 1.75rem;
}

.button .sparkle .path {
    fill: currentColor;
    stroke: currentColor;
    transform-origin: center;
    color: hsl(0, 0%, 100%);
}

.button:is(:hover, :focus) .sparkle .path {
    animation: path 1.5s linear 0.5s infinite;
}

.button .sparkle .path:nth-child(1) {
    --scale_path_1: 1.2;
}

.button .sparkle .path:nth-child(2) {
    --scale_path_2: 1.2;
}

.button .sparkle .sparkle .path:nth-child(3) {
    --scale_path_3: 1.2;
}

@keyframes path {

    0%,
    34%,
    71%,
    100% {
        transform: scale(1);
    }

    17% {
        transform: scale(var(--scale_path_1, 1));
    }

    49% {
        transform: scale(var(--scale_path_2, 1));
    }

    83% {
        transform: scale(var(--scale_path_3, 1));
    }
}

.button .text_button {
    position: relative;
    z-index: 10;
    background-image: linear-gradient(90deg,
            hsla(0 0% 100% / 1) 0%,
            hsla(0 0% 100% / var(--active, 0)) 120%);
    background-clip: text;
    -webkit-background-clip: text;
    font-size: 1rem;
    color: white;
    /* Fallback */
    color: transparent;
    font-weight: 700;
}

/* Integrated Home Page Styles */

body {
    background: linear-gradient(to bottom, #fff8f5, #ffffff);
}

.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 2rem;
    background: linear-gradient(135deg, #ffe8f3, #d9f3ff);
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, #ff9aa2, #ffb7b2, #ffdac1, #e2f0cb, #a2e4ff, #c9afff, #ffb7b2, #ff9aa2);
    transform: translate(-50%, -50%);
    animation: rotate 8s linear infinite;
    filter: blur(50px);
    opacity: 0.8;
    z-index: 1;
}

.hero::after {
    width: 180%;
    height: 180%;
    animation: rotate-reverse 10s linear infinite;
    opacity: 0.6;
}

@keyframes rotate {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes rotate-reverse {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(-360deg);
    }
}

.hero-content {
    text-align: center;
    z-index: 10;
    max-width: 1000px;
    padding: 3rem 2rem;
}

.hero-content h1 {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    font-weight: 900;
    color: #2c3e50;
    text-shadow: 0 3px 6px rgba(255, 255, 255, 0.95);
    animation: fadeInUp 1s ease-out;
    line-height: 1.2;
    white-space: nowrap;
}

.hero-content .subtitle {
    font-size: 1.6rem;
    margin-bottom: 3rem;
    line-height: 1.9;
    color: #34495e;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.9);
    animation: fadeInUp 1s ease-out 0.2s both;
}

.emoji-large {
    font-size: 2rem;
    display: inline-block;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cta-buttons {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.cta-button {
    padding: 18px 45px;
    background: linear-gradient(135deg, #ff6347, #ff7f5c);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.15rem;
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(255, 99, 71, 0.4);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cta-button:hover::before {
    width: 300px;
    height: 300px;
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(255, 99, 71, 0.6);
}

.cta-button.secondary {
    background: white;
    color: #ff6347;
    border: 3px solid #ff6347;
    box-shadow: 0 10px 30px rgba(255, 99, 71, 0.2);
}

.cta-button.secondary:hover {
    background: linear-gradient(135deg, #ff6347, #ff7f5c);
    color: white;
    border-color: transparent;
}

.features {
    padding: 6rem 2rem;
    background: linear-gradient(to bottom, white, #fafafa);
}

.features h2 {
    text-align: center;
    font-size: 3rem;
    color: #2c3e50;
    margin-bottom: 4rem;
    font-weight: 900;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 50px;
    max-width: 1300px;
    margin: 0 auto;
}

.feature-card {
    text-align: center;
    padding: 3.5rem 2.5rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    border: 1px solid rgba(255, 99, 71, 0.1);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #ff6347, #ff8c69, #ffa07a);
    transform: scaleX(0);
    transition: transform 0.5s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(255, 99, 71, 0.25);
    border-color: rgba(255, 99, 71, 0.3);
}

.feature-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    display: block;
}

.feature-card h3 {
    font-size: 1.7rem;
    color: #333;
    margin-bottom: 1.2rem;
    font-weight: 800;
}

.feature-card p {
    color: #666;
    line-height: 1.9;
    font-size: 1.05rem;
}

.cta-section {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, #ff6347 0%, #ff8c69 50%, #ffa07a 100%);
    text-align: center;
    color: white;
}

.cta-section h2 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    font-weight: 900;
}

.cta-section p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

.cta-section .cta-button {
    background: white;
    color: #ff6347;
}

.cta-section .cta-button:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-5px) scale(1.08);
}

@media (max-width: 768px) {

    /* 1. 縮小標題字體，避免過於擁擠 */
    .hero-content h1 {
        font-size: 2.2rem;
        /* 原本 3rem 改為 2.2rem */
        line-height: 1.3;
    }

    /* 2. 調整副標題大小 */
    .hero-content .subtitle {
        font-size: 1.1rem;
        /* 原本 1.3rem 微調 */
        margin-bottom: 2rem;
    }

    /* 3. 按鈕寬度與內距調整，避免按鈕過肥 */
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .cta-button {
        width: 80%;
        /* 不用 85%，稍微留點邊 */
        max-width: 280px;
        padding: 12px 30px;
        /* 減少內距，原本 18px 45px 太高了 */
        font-size: 1rem;
    }

    .cta-button:hover {
        transform: translateY(-2px) scale(1.02);
    }

    /* 4. 減少區塊上下留白，避免滑動太久 */
    .hero-content {
        padding: 2rem 1rem;
        /* 減少左右 padding */
    }

    .features {
        padding: 3rem 1rem;
        /* 原本 6rem 2rem 改小 */
    }

    .features h2 {
        font-size: 2rem;
        /* 縮小單元標題 */
        margin-bottom: 2rem;
    }

    .cta-section {
        padding: 4rem 1.5rem;
        /* 底部 CTA 區塊也縮小間距 */
    }

    .cta-section h2 {
        font-size: 1.8rem;
    }
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem 0;
    background: #333;
    color: #aaa;
    margin-top: 4rem;
}

.remove-item {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #ff6347;
    cursor: pointer;
    margin-left: 20px;
}

/* Contact Page */
.contact-section {
    width: 90%;
    margin: 2rem auto;
    max-width: 1000px;
}

.contact-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-section p {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 1.1rem;
    color: #666;
}

.contact-container {
    display: flex;
    gap: 40px;
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.contact-info,
.contact-form {
    flex: 1;
}

.contact-info h3,
.contact-form h3 {
    margin-top: 0;
    font-size: 1.8rem;
    color: #ff6347;
    margin-bottom: 20px;
}

.contact-info p {
    text-align: left;
    font-size: 1.1rem;
    line-height: 1.8;
}

.contact-form form {
    display: flex;
    flex-direction: column;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}

.contact-form button {
    align-self: flex-start;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 10px;
    }

    nav ul {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        text-align: center;
    }

    .hero {
        height: 50vh;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .about-item,
    .about-item.reverse {
        flex-direction: column;
        text-align: center;
    }

    .about-item img {
        max-width: 80%;
    }

    .shop-container {
        flex-direction: column;
    }

    .sidebar,
    .products {
        width: 100%;
    }
}

/* 手機版音符選單 */
.mobile-menu-btn {
    display: none;
    position: fixed;
    top: 20px;
    right: 50px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff6347, #ff7f5c);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 4px 15px rgba(255, 99, 71, 0.4);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.mobile-menu-btn:active {
    transform: scale(0.95);
}

.mobile-menu-btn.active {
    transform: rotate(360deg) scale(1.1);
}

.mobile-menu-btn .note-icon {
    font-size: 2rem;
}

/* Old radial menu styles removed to fix conflicts */

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    nav ul {
        display: none !important;
    }
}

/* 隱藏滾動條但保留滾動功能 */
* {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

*::-webkit-scrollbar {
    display: none;
}

/* =========================================
   手機版介面重設計 (Minimalist Luxury)
   ========================================= */

/* Default hidden on desktop */
.mobile-menu-overlay,
.mobile-menu-btn {
    display: none;
}

/* --- 電腦版維持不變，僅針對手機版進行徹底修正 --- */
/* --- 電腦版維持不變，僅針對手機版進行徹底修正 --- */
@media (max-width: 768px) {

    /* 1. 修正 Header 重疊問題 */
    header {
        height: 65px;
        padding: 0 15px !important;
        display: flex;
        align-items: center;
    }

    .logo {
        max-width: 60% !important;
        font-size: 1.2rem !important;
    }

    .desktop-nav {
        display: none !important;
    }

    /* 2. 漢堡按鈕優化 */
    .mobile-menu-btn {
        display: flex !important;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 20px;
        background: none;
        border: none;
        padding: 0;
        z-index: 9999;
    }

    .mobile-menu-btn span {
        width: 100%;
        height: 3px;
        background-color: #ff6347;
        border-radius: 4px;
        transition: 0.3s;
    }

    /* 漢堡轉叉叉動畫 */
    .mobile-menu-btn.active span:nth-child(1) {
        transform: translateY(8.5px) rotate(45deg);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: translateY(-8.5px) rotate(-45deg);
    }

    /* 3. 全螢幕選單優化 (音符風格) */
    .mobile-menu-overlay {
        display: block !important;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(255, 250, 248, 0.98);
        backdrop-filter: blur(15px);
        z-index: 9998;
        opacity: 0;
        visibility: hidden;
        transition: 0.4s ease;
        padding-top: 80px;
        overflow-y: auto;
    }

    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .mobile-menu-container {
        padding: 0 25px 50px 25px;
    }

    .menu-category h3 {
        font-size: 0.85rem;
        color: #ff8c69;
        text-transform: uppercase;
        letter-spacing: 2px;
        margin: 25px 0 12px 10px;
        border-left: 3px solid #ff6347;
        padding-left: 10px;
    }

    /* 選單項目卡片化 */
    .mobile-menu-item {
        display: flex;
        align-items: center;
        background: white;
        padding: 15px 20px;
        margin-bottom: 10px;
        border-radius: 15px;
        text-decoration: none;
        color: #333;
        font-weight: 600;
        font-size: 1.05rem;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
        opacity: 0;
        /* JS 動畫會負責顯示 */
        transform: translateX(-20px);
    }

    .mobile-menu-item .icon {
        margin-right: 15px;
        font-size: 1.3rem;
    }

    .active-contact {
        background: linear-gradient(135deg, #ff6347, #ff8c69) !important;
        color: white !important;
    }

    /* 4. 效能優化: 手機版 Hero 動畫減負 */
    .hero::before,
    .hero::after {
        animation: breath 6s ease-in-out infinite !important;
        filter: blur(25px) !important;
        width: 150% !important;
        height: 150% !important;
    }

    @keyframes breath {

        0%,
        100% {
            opacity: 0.4;
            transform: translate(-50%, -50%) scale(1);
        }

        50% {
            opacity: 0.7;
            transform: translate(-50%, -50%) scale(1.1);
        }
    }

    /* 選單項目的音樂飛入動畫 */
    @keyframes noteAppear {
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    /* 5. 橫向螢幕 (Landscape) 適配 */
    @media (orientation: landscape) {
        .mobile-menu-container {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 15px;
        }

        .hero {
            min-height: 100vh;
        }
    }
}