/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #FF6B9D;
    --secondary-color: #FFA07A;
    --accent-color: #FFD700;
    --text-dark: #2C3E50;
    --text-light: #7F8C8D;
    --bg-light: #FFF5F7;
    --bg-white: #FFFFFF;
    --border-color: #E8E8E8;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft JhengHei', 'PingFang TC', 'Noto Sans TC', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header and Navigation */
header {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    text-decoration: none;
    color: var(--primary-color);
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    white-space: nowrap;
}

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

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #FFE5EC 0%, #FFF5F7 50%, #FFE5F1 100%);
    padding: 4rem 0;
    text-align: center;
}

.hero-title {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-title .subtitle {
    font-size: 1.5rem;
    color: var(--primary-color);
    display: block;
    margin-top: 0.5rem;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto;
}

/* Section Styles */
section {
    padding: 4rem 0;
}

.section-title {
    font-size: 2rem;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 700;
}

/* Categories Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.category-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

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

.category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.category-card h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.category-subtitle {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    font-style: italic;
}

.category-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Buttons */
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    background-color: #FF5286;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.blog-card h3 {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.blog-subtitle {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    font-style: italic;
}

.blog-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* SEO Content Section */
.seo-content {
    background-color: var(--bg-light);
}

.seo-text {
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
}

.seo-text h2 {
    font-size: 1.75rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.seo-text h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin: 2rem 0 1rem;
    font-weight: 600;
}

.seo-text p {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.seo-text ul {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.seo-text li {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.seo-text strong {
    color: var(--primary-color);
}

/* Wishes List */
.wishes-list {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.wish-item {
    padding: 1.5rem;
    border-left: 4px solid var(--primary-color);
    background: var(--bg-light);
    margin-bottom: 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.wish-item:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
}

.wish-chinese {
    font-size: 1.125rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

.wish-english {
    font-size: 1rem;
    color: var(--text-light);
    font-style: italic;
    line-height: 1.6;
}

/* Blog Article Styles */
.article-header {
    text-align: center;
    padding: 3rem 0;
    background: linear-gradient(135deg, #FFE5EC 0%, #FFF5F7 100%);
}

.article-title {
    font-size: 2.25rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.article-subtitle {
    font-size: 1.25rem;
    color: var(--primary-color);
    font-style: italic;
}

.article-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 0;
}

.article-content h2 {
    font-size: 1.75rem;
    color: var(--text-dark);
    margin: 2.5rem 0 1rem;
    font-weight: 600;
}

.article-content h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin: 2rem 0 1rem;
    font-weight: 600;
}

.article-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.article-content ul,
.article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.tips-box {
    background: linear-gradient(135deg, #FFF5F7 0%, #FFE5F1 100%);
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 8px;
}

.tips-box h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

/* Contact Page */
.contact-info {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-white);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.contact-icon {
    font-size: 2rem;
}

.contact-details h3 {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.contact-details p {
    color: var(--text-light);
}

.contact-email {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.125rem;
}

.contact-email:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    background-color: var(--text-dark);
    color: white;
    padding: 3rem 0 1rem;
}

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

.footer-section h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.footer-section p {
    color: #BDC3C7;
    margin-bottom: 0.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #BDC3C7;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    border-top: 1px solid #34495E;
    padding-top: 1.5rem;
    text-align: center;
    color: #BDC3C7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        width: 100%;
    }

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

    .hero-title .subtitle {
        font-size: 1.25rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .category-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .article-title {
        font-size: 1.75rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 2rem 0;
    }

    section {
        padding: 2rem 0;
    }

    .category-card,
    .blog-card {
        padding: 1.5rem;
    }

    .contact-info {
        padding: 2rem 1.5rem;
    }
}

/* Accessibility */
a:focus,
button:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Copy Button */
.copy-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    margin-top: 0.75rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.copy-btn:hover {
    background-color: #FF5286;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.copy-btn.copied {
    background-color: #28a745;
}

/* Share Buttons */
.share-buttons {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.share-btn.whatsapp {
    background-color: #25D366;
    color: white;
}

.share-btn.whatsapp:hover {
    background-color: #20BA5A;
    transform: translateY(-2px);
}

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

.share-btn.facebook:hover {
    background-color: #1665D8;
    transform: translateY(-2px);
}

/* Search Box */
.search-box {
    max-width: 600px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.search-box input {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.1);
}

.search-box input::placeholder {
    color: var(--text-light);
}

/* Print Button */
.print-btn {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.print-btn:hover {
    background-color: #FF8C5A;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Back to Top Button */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

#back-to-top:hover {
    background-color: #FF5286;
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* Loading Animation */
body {
    opacity: 0;
    animation: fadeIn 0.3s ease forwards;
}

body.loaded {
    opacity: 1;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Enhanced Wish Item with Buttons */
.wish-item {
    position: relative;
    padding: 1.5rem;
    padding-bottom: 3.5rem;
    border-left: 4px solid var(--primary-color);
    background: var(--bg-light);
    margin-bottom: 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

/* Image Placeholder Support */
.hero-image,
.article-image,
.category-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: var(--shadow-sm);
}

.hero-image {
    max-height: 400px;
    margin-bottom: 2rem;
}

.article-image {
    max-height: 300px;
    margin: 2rem 0;
}

.category-image {
    max-height: 200px;
    margin-bottom: 1rem;
}

.image-placeholder {
    background: linear-gradient(135deg, #FFE5EC 0%, #FFF5F7 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 4rem;
    min-height: 200px;
}

/* Enhanced Responsive for Mobile Menu */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        background: var(--bg-white);
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
        transition: left 0.3s ease;
        z-index: 1000;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }

    body.menu-open {
        overflow: hidden;
    }

    .navbar .container {
        flex-direction: row;
        position: relative;
    }

    #back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }

    .wish-item {
        padding-bottom: 3rem;
    }

    .copy-btn,
    .share-btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

@media (max-width: 480px) {
    .share-buttons {
        flex-direction: column;
    }

    .share-btn {
        width: 100%;
        text-align: center;
    }

    .search-box {
        padding: 0;
    }
}

/* Print Styles */
@media print {
    header,
    footer,
    .btn-primary,
    .btn-secondary,
    .copy-btn,
    .share-buttons,
    .print-btn,
    #back-to-top,
    .mobile-menu-toggle,
    .search-box {
        display: none !important;
    }

    body {
        color: black;
        background: white;
    }

    .wish-item {
        page-break-inside: avoid;
        border: 1px solid #ccc;
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .wishes-list {
        box-shadow: none;
    }
}
