:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --primary-color-dark: #1e2a36;
    --border-color: #e9ecef;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.5;
    color: #333;
    background: #f8f9fa;
}

.site-main {
    min-height: calc(100vh - 60px - 100px);
    padding: 1rem 0;
}

/* 為首頁添加特定的樣式 */
body.home .site-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.site-footer {
    background: var(--primary-color);
    padding: 3rem 0 1rem;
}

/* 根據背景亮度自動調整文字顏色 */
.site-footer,
.site-footer p,
.site-footer a,
.site-footer h3,
.footer-section p,
.footer-section a,
.footer-bottom p,
.admin-link {
    color: var(--primary-color, #2c3e50);
}

/* 當背景是深色時使用白色文字 */
.site-footer[style*="background-color: rgb(44, 62, 80)"],
.site-footer[style*="background-color: #2c3e50"] {
    color: white;
}

.site-footer[style*="background-color: rgb(44, 62, 80)"] p,
.site-footer[style*="background-color: rgb(44, 62, 80)"] .footer-section p,
.site-footer[style*="background-color: rgb(44, 62, 80)"] .footer-bottom p,
.site-footer[style*="background-color: #2c3e50"] p,
.site-footer[style*="background-color: #2c3e50"] .footer-section p,
.site-footer[style*="background-color: #2c3e50"] .footer-bottom p {
    color: rgba(255,255,255,0.8);
}

.site-footer[style*="background-color: rgb(44, 62, 80)"] h3,
.site-footer[style*="background-color: #2c3e50"] h3 {
    color: white;
}

.site-footer[style*="background-color: rgb(44, 62, 80)"] a,
.site-footer[style*="background-color: rgb(44, 62, 80)"] .footer-section a,
.site-footer[style*="background-color: rgb(44, 62, 80)"] .admin-link,
.site-footer[style*="background-color: #2c3e50"] a,
.site-footer[style*="background-color: #2c3e50"] .footer-section a,
.site-footer[style*="background-color: #2c3e50"] .admin-link {
    color: rgba(255,255,255,0.8);
}

.site-footer[style*="background-color: rgb(44, 62, 80)"] a:hover,
.site-footer[style*="background-color: rgb(44, 62, 80)"] .footer-section a:hover,
.site-footer[style*="background-color: rgb(44, 62, 80)"] .admin-link:hover,
.site-footer[style*="background-color: #2c3e50"] a:hover,
.site-footer[style*="background-color: #2c3e50"] .footer-section a:hover,
.site-footer[style*="background-color: #2c3e50"] .admin-link:hover {
    color: white;
}

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

.footer-section h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

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

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

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

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

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 35px;
    height: 35px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.social-links a:hover {
    background: rgba(255,255,255,0.2);
}

.admin-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(0,0,0,0.1);
    border-radius: 5px;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.admin-link:hover {
    background: rgba(0,0,0,0.2);
}

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

.footer-bottom p {
    font-size: 0.9rem;
    margin: 0.3rem 0;
}

/* 深色背景時的邊框顏色 */
.site-footer[style*="background-color: rgb(44, 62, 80)"] .footer-bottom,
.site-footer[style*="background-color: #2c3e50"] .footer-bottom {
    border-top-color: rgba(255,255,255,0.1);
}

/* 設計師連結樣式 */
.designer-link {
    text-decoration: none;
    transition: color 0.3s;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* 通用容器 */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* 通用按鈕樣式 */
.button {
    display: inline-block;
    padding: 0.7rem 1.4rem;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
}

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

.button.primary:hover {
    background: var(--primary-color-dark);
}

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

.button.secondary:hover {
    background: #2980b9;
}

/* 篩選器側邊欄 */
/* .filter-sidebar {
    width: 100%;
    max-width: 300px;
} */

.filter-form {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

/* 篩選區塊 */
.filter-section {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.filter-section h3 {
    margin: 0 0 0.6rem 0;
    font-size: 1.1rem;
    color: var(--primary-color);
}

/* 下拉選單 */
.filter-select {
    width: 100%;
    padding: 0.4rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.9rem;
    color: #333;
    background-color: white;
    margin-bottom: 0.5rem;
}

.filter-select:last-child {
    margin-bottom: 0;
}

/* 範圍輸入框 */
.price-range,
.size-range {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    box-sizing: border-box;
}

.price-range input,
.size-range input {
    width: calc(50% - 1rem);
    padding: 0.4rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.9rem;
    box-sizing: border-box;
}

.price-range span,
.size-range span {
    flex-shrink: 0;
    padding: 0 0.3rem;
    color: #666;
    width: 2rem;
    text-align: center;
}

/* 按鈕 */
.filter-submit {
    width: 100%;
    padding: 0.6rem;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.3s;
    margin-bottom: 0.5rem;
}

.filter-submit:hover {
    background: #2980b9;
}

.filter-reset {
    width: 100%;
    padding: 0.5rem;
    background: transparent;
    color: #666;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.9rem;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    display: block;
}

.filter-reset:hover {
    background: #f8f9fa;
    color: #333;
} 