/* 全局樣式 */
:root {
    --primary-color: #e83e8c;
    --secondary-color: #6f42c1;
    --accent-color: #fd7e14;
    --text-color: #212529;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --border-color: #dee2e6;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --font-family: 'Microsoft JhengHei', 'PingFang TC', 'Heiti TC', 'Apple LiGothic', sans-serif;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    line-height: 1.6;
    background-color: #fff;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 按鈕樣式 */
.btn {
    display: inline-block;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

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

.btn-primary:hover {
    background-color: #d5317c;
    border-color: #d5317c;
}

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

.btn-secondary:hover {
    background-color: #5e35a1;
    border-color: #5e35a1;
}

.btn-outline {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

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

/* 頭部樣式 */
.main-header {
    background-color: white;
    box-shadow: 0 2px 10px var(--shadow-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    max-height: 50px;
}

.main-nav {
    display: flex;
    align-items: center;
}

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

.nav-item {
    margin-left: 20px;
}

.nav-link {
    color: var(--text-color);
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 4px;
}

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

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-color);
    transition: all 0.3s ease;
}

/* 頁腳樣式 */
.main-footer {
    background-color: #2c3e50;
    color: #fff;
    padding: 40px 0 20px;
    margin-top: 50px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-logo {
    flex: 1;
    min-width: 200px;
}

.footer-logo-img {
    max-width: 150px;
    height: auto;
    margin-bottom: 15px;
}

.footer-slogan {
    color: #bdc3c7;
    font-size: 0.9em;
    margin: 0;
}

.footer-links {
    flex: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-nav, .footer-contact {
    flex: 1;
    min-width: 200px;
}

.footer-nav h3, .footer-contact h3 {
    color: #fff;
    font-size: 1.2em;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-nav h3:after, .footer-contact h3:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: #3498db;
}

.footer-nav ul, .footer-contact ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav ul li, .footer-contact ul li {
    margin-bottom: 12px;
}

.footer-nav ul li a, .footer-contact ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-nav ul li a:hover, .footer-contact ul li a:hover {
    color: #3498db;
}

.footer-contact ul li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #bdc3c7;
}

.footer-contact ul li i {
    width: 20px;
    color: #3498db;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    color: #bdc3c7;
    font-size: 0.9em;
}

.footer-bottom p {
    margin: 5px 0;
}

.powered-by a {
    color: #3498db;
    text-decoration: none;
}

.powered-by a:hover {
    text-decoration: underline;
}

/* 美容師卡片共用樣式 */
.beautician-cards {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.beautician-card {
    flex: 0 0 calc(33.333% - 30px);
    max-width: calc(33.333% - 30px);
    margin: 15px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 3px 10px var(--shadow-color);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.beautician-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px var(--shadow-color);
}

.beautician-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

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

.beautician-card:hover .beautician-image img {
    transform: scale(1.05);
}

.beautician-info {
    padding: 20px;
}

.beautician-info h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

.beautician-info p {
    margin-bottom: 5px;
    color: var(--dark-color);
    font-size: 0.95rem;
}

.view-more {
    display: inline-block;
    margin-top: 15px;
    color: var(--primary-color);
    font-weight: 500;
}

.view-more:hover {
    text-decoration: underline;
}

/* 聯絡按鈕 */
.contact-btn {
    display: inline-block;
    padding: 8px 15px;
    margin: 5px;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
    color: white;
}

.contact-btn.line {
    background-color: #00c300;
}

.contact-btn.telegram {
    background-color: #0088cc;
}

.contact-btn.phone {
    background-color: #28a745;
}

.contact-btn.custom {
    background-color: var(--secondary-color);
}

.contact-btn:hover {
    opacity: 0.9;
    color: white;
}

/* 廣告區塊 */
.promotion-section {
    background-color: #f8f9fa;
    padding: 40px 0;
    margin-top: 50px;
}

.promotion-section h2 {
    text-align: center;
    margin-bottom: 30px;
}

.promotion-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

/* 響應式設計 */
@media (max-width: 992px) {
    .beautician-card {
        flex: 0 0 calc(50% - 30px);
        max-width: calc(50% - 30px);
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 10px var(--shadow-color);
        padding: 20px 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-item {
        margin: 15px 0;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-nav, .footer-contact {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .beautician-card {
        flex: 0 0 calc(100% - 30px);
        max-width: calc(100% - 30px);
    }
}

.beautician-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

.beautician-card-link:hover {
    transform: translateY(-5px);
}

.beautician-card-vertical {
    position: relative;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.beautician-card-vertical:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.beautician-actions {
    padding: 15px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.btn-view {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 15px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-view:hover {
    background-color: #d5317c;
    transform: translateY(-2px);
}

.btn-subscribe {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 15px;
    background-color: #0088cc;
    color: white;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-subscribe:hover {
    background-color: #006699;
    transform: translateY(-2px);
}

.class-time {
    color: #666;
    font-size: 0.9em;
    margin: 5px 0 10px;
}

.beautician-class-time {
    margin: 5px 0;
    color: #666;
    font-size: 0.9em;
}

.beautician-class-time span {
    display: inline-block;
    padding: 2px 8px;
    background-color: #f8f9fa;
    border-radius: 4px;
} 