/* 全局樣式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft JhengHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

/* 導航欄 */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: block;
    text-decoration: none;
}

.logo img {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

.logo span {
    font-family: 'Arial', sans-serif;
    letter-spacing: 1px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #ff69b4;
}

/* 主要內容 */
main {
    margin-top: 80px;
    padding: 2rem 5%;
    min-height: calc(100vh - 180px);
}

h1 {
    text-align: center;
    margin-bottom: 2rem;
    color: #ff69b4;
}

/* 商品網格 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.product-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    position: relative;
    padding-bottom: 50px; /* 為固定按鈕留出空間 */
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.product-card h3 {
    padding: 1rem;
    font-size: 1.1rem;
}

.price {
    color: #ff69b4;
    font-weight: bold;
    padding: 0 1rem 1rem;
}

.product-card .contact-btn {
    position: absolute;
    left: 15px;
    bottom: 15px;
    background-color: #ff69b4;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.product-card .contact-btn:hover {
    background-color: #ff1493;
    transform: translateY(-2px);
}

/* 聯繫區域 */
.contact-section {
    text-align: center;
    margin: 3rem 0;
    padding: 2rem;
    background-color: #fff8f8;
    border-radius: 10px;
}

.contact-section .contact-btn {
    display: inline-block;
    background-color: #ff69b4;
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    margin-top: 20px;
}

.contact-section .contact-btn:hover {
    background-color: #ff1493;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

/* 頁腳 */
footer {
    background-color: #333;
    color: white;
    padding: 2rem 5%;
    margin-top: 3rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info {
    text-align: center;
}

.contact-info h3 {
    color: #ff69b4;
    margin-bottom: 1rem;
}

.contact-info p {
    margin: 0.5rem 0;
}

.contact-info a {
    color: #ff69b4;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #ff1493;
    text-decoration: underline;
}

/* 關於我們頁面樣式 */
.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.policy-section {
    margin: 2rem 0;
}

.policy-item {
    margin-bottom: 2rem;
}

.policy-item h3 {
    color: #ff69b4;
    margin-bottom: 0.5rem;
}

.notice-section {
    background-color: #fff8f8;
    padding: 1.5rem;
    border-radius: 10px;
    margin: 2rem 0;
}

.notice-section ol {
    padding-left: 1.5rem;
}

.notice-section li {
    margin: 0.5rem 0;
}

/* 公告頁面樣式 */
.notice-content {
    max-width: 800px;
    margin: 0 auto;
}

.notice-list {
    margin-top: 2rem;
}

.notice-item {
    background: #fff;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.notice-item h2 {
    color: #ff69b4;
    margin-bottom: 0.5rem;
}

.notice-item .date {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* 聯絡頁面樣式 */
.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-form {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
}

.submit-btn {
    background-color: #ff69b4;
    color: white;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #ff1493;
}

.contact-info-section {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.contact-method {
    text-align: center;
}

.contact-method h3 {
    color: #ff69b4;
    margin-bottom: 0.5rem;
}

/* 響應式設計 */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        padding: 1rem;
    }

    nav ul {
        margin-top: 1rem;
    }

    nav ul li {
        margin: 0 1rem;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-methods {
        grid-template-columns: 1fr;
    }

    .header {
        padding: 10px;
    }

    .logo {
        font-size: 1.2rem;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .mobile-menu {
        display: block;
    }

    /* 添加 padding-top 避免內容被固定頁首遮擋 */
    main {
        padding-top: 60px;
    }

    .product-card {
        padding-bottom: 45px;
    }

    .product-card img {
        height: 150px;
    }

    .product-card h3 {
        font-size: 0.9rem;
    }

    .product-card p {
        font-size: 0.8rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-section {
        margin-bottom: 20px;
    }

    .social-links {
        justify-content: center;
    }

    .product-card .contact-btn {
        left: 10px;
        bottom: 10px;
        padding: 6px 12px;
        font-size: 0.8em;
    }

    .contact-section .contact-btn {
        padding: 10px 25px;
        font-size: 1em;
        margin-top: 15px;
    }
}

.error-message {
    text-align: center;
    padding: 20px;
    color: #ff0000;
    background-color: #fff5f5;
    border: 1px solid #ffcccc;
    border-radius: 5px;
    margin: 20px auto;
    max-width: 500px;
}

.product-description {
    padding: 10px;
    margin: 10px 0;
    background-color: #f9f9f9;
    border-radius: 5px;
    font-size: 0.9em;
    line-height: 1.5;
    color: #666;
}

.product-description p {
    margin: 0;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
    padding: 5px 10px;
    border-radius: 5px;
    background-color: #f8f8f8;
}

.social-links a:hover {
    color: #ff6b6b;
    background-color: #f0f0f0;
}

.social-links i {
    margin-right: 8px;
    font-size: 1.2em;
}

.social-links .fa-line {
    color: #00B900;
}

.social-links .fa-instagram {
    color: #E1306C;
}

.social-links .fa-facebook {
    color: #1877F2;
}

.contact-info a i {
    margin-right: 5px;
}

.copyright {
    text-align: center;
    padding: 15px 0;
    font-size: 0.8em;
}

.copyright p {
    margin: 5px 0;
} 