/* Base Styles */
:root {
    --primary: #2C7DB9;
    --primary-dark: #1d5a86;
    --secondary: #46BFE2;
    --accent: #FFA656;
    --text: #333333;
    --text-light: #666666;
    --light-bg: #F5F9FC;
    --border: #e0e0e0;
    --white: #ffffff;
    --success: #42B883;
    --warning: #FFC73C;
    --error: #FF6B6B;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

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

body {
    font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--white);
}

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

a:hover {
    color: var(--primary-dark);
}

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

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 0.5em;
    font-weight: 600;
    line-height: 1.2;
    color: var(--text);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

ul {
    list-style: none;
}

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

section {
    padding: 80px 0;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

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

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

.btn.secondary:hover {
    background-color: var(--light-bg);
}

.btn.outline {
    background-color: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
    padding: 8px 16px;
    font-size: 0.9rem;
}

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

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header p {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Header */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--white);
    box-shadow: var(--shadow);
    padding: 15px 0;
    min-height: 106.7px;
}

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

.logo img {
    height: 70px;
}

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

.main-menu li {
    margin: 0 15px;
    position: relative;
}

.main-menu li a {
    color: var(--text);
    font-weight: 500;
}

.main-menu li a:hover {
    color: var(--primary);
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: -20px;
    background-color: var(--white);
    box-shadow: var(--shadow);
    border-radius: 4px;
    min-width: 650px;
    display: none;
    padding: 20px;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    z-index: 1000;
}

.dropdown:hover .dropdown-content {
    display: grid;
}

.dropdown-section h4 {
    margin-bottom: 10px;
    color: var(--primary);
}

.dropdown-section ul li {
    margin: 8px 0;
}

.dropdown-section ul li a {
    font-weight: 400;
    font-size: 0.9rem;
}

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

.dropdown-section h4 a:hover {
    color: var(--primary-dark);
}

.language a {
    display: flex;
    align-items: center;
}

.language i {
    margin-right: 5px;
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 20px 0;
    background-color: #f8f9fa;
    font-size: 0.9rem;
}

.breadcrumbs .container {
    display: flex;
    align-items: center;
}

.breadcrumbs a {
    color: var(--primary);
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs span {
    color: var(--text-light);
}

.breadcrumbs i {
    margin: 0 10px;
    color: var(--text-light);
}

/* Hero Section */
.hero {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.hero-slider {
    height: 100%;
}

.slide {
    height: 100%;
    position: relative;
    display: none;
}

.slide.active {
    display: block;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -1;
    filter: brightness(0.85);
}

.hero-content {
    padding-top: 150px;
    max-width: 600px;
    color: var(--white);
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--white);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.hero-controls {
    position: absolute;
    bottom: 30px;
    right: 50px;
    display: flex;
    gap: 15px;
}

.hero-controls button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.hero-controls button:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Services Overview */
.services-overview {
    background-color: var(--light-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background-color: var(--white);
    border-radius: 8px;
    padding: 30px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card .icon {
    width: 70px;
    height: 70px;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.learn-more {
    font-weight: 500;
    display: flex;
    align-items: center;
}

.learn-more i {
    margin-left: 5px;
    transition: all 0.3s ease;
}

.learn-more:hover i {
    transform: translateX(5px);
}

/* About Brief */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text {
    padding-right: 30px;
}

.about-image img {
    border-radius: 8px;
    box-shadow: var(--shadow);
}

/* Featured Treatments */
.featured-treatments {
    background-color: var(--light-bg);
}

.treatments-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.treatment-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.treatment-image {
    height: 200px;
    overflow: hidden;
}

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

.treatment-card:hover .treatment-image img {
    transform: scale(1.1);
}

.treatment-info {
    padding: 25px;
}

.treatment-info h3 {
    margin-bottom: 10px;
}

.treatment-info p {
    color: var(--text-light);
    margin-bottom: 20px;
}

/* Testimonials */
.testimonial-slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.testimonial-slide {
    display: none;
    text-align: center;
}

.testimonial-slide.active {
    display: block;
}

.testimonial-content {
    background-color: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.quote {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 20px;
}

.testimonial-content p {
    font-size: 1.1rem;
    font-style: italic;
}

.patient-info {
    margin-top: 20px;
}

.name {
    font-weight: 600;
    margin-bottom: 5px;
}

.stars {
    color: var(--accent);
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.testimonial-controls button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background-color: var(--white);
    color: var(--primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.testimonial-controls button:hover {
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* CTA Section */
.cta {
    background-color: var(--primary);
    color: var(--white);
    text-align: center;
    padding: 60px 0;
}

.cta h2 {
    color: var(--white);
    margin-bottom: 15px;
}

.cta p {
    margin-bottom: 30px;
    font-size: 1.1rem;
}

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

.cta .btn.primary:hover {
    background-color: var(--light-bg);
}

/* Blog Preview */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.blog-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

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

.blog-image {
    height: 200px;
    overflow: hidden;
}

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

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

.blog-info {
    padding: 25px;
}

.category {
    display: inline-block;
    background-color: var(--light-bg);
    color: var(--primary);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.blog-info h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.blog-info p {
    color: var(--text-light);
    margin-bottom: 15px;
}

.read-more {
    font-weight: 500;
    font-size: 0.9rem;
}

.view-all-link {
    text-align: center;
    margin-top: 40px;
}

.view-all-link a {
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}

.view-all-link a i {
    margin-left: 5px;
    transition: all 0.3s ease;
}

.view-all-link a:hover i {
    transform: translateX(5px);
}

/* Footer */
footer {
    background-color: #222;
    color: var(--white);
    padding: 80px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo img {
    height: 160px;
    margin-bottom: 20px;
    background-color: var(--white);
    padding: 5px;
    border-radius: 3px;
}

.logo-column p {
    margin-bottom: 20px;
    opacity: 0.8;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--primary);
}

.footer-column h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.footer-column ul li a:hover {
    color: var(--white);
}

.contact-column ul li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.contact-column ul li i {
    margin-right: 10px;
    margin-top: 5px;
}

.business-hours {
    margin-top: 20px;
}

.business-hours h5 {
    color: var(--white);
    margin-bottom: 10px;
    font-size: 1rem;
}

.business-hours p {
    margin-bottom: 5px;
    opacity: 0.7;
    font-size: 0.9rem;
}

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

.footer-bottom p {
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    section {
        padding: 60px 0;
    }

    .services-grid,
    .treatments-grid,
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dropdown-content {
        min-width: 500px;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .main-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        padding: 20px;
        flex-direction: column;
        align-items: flex-start;
        transform: translateY(-10px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 1000;
    }
    
    .main-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .main-menu li {
        margin: 10px 0;
        width: 100%;
    }
    
    .dropdown-content {
        position: static;
        box-shadow: none;
        min-width: 100%;
        padding: 10px 0 0 15px;
        display: none;
        grid-template-columns: 1fr;
    }
    
    .dropdown:hover .dropdown-content {
        display: block;
    }
    
    .dropdown-section {
        margin-bottom: 15px;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-text {
        padding-right: 0;
        order: 2;
    }

    .about-image {
        order: 1;
    }

    .hero {
        height: 500px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    section {
        padding: 40px 0;
    }

    .hero {
        height: 400px;
    }

    .hero-content {
        padding-top: 100px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }

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

/* Typography */
:root {
    --primary: #007AFF;
    --primary-dark: #0056b3;
    --text: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

body {
    font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
    line-height: 1.6;
    color: var(--text);
    margin: 0;
    padding: 0;
}

/* Adjust line height for Chinese text */
.zh {
    line-height: 1.8;
    letter-spacing: 0.05em;
}

/* About Page Styles */
.our-story {
    padding: 80px 0;
    background-color: var(--white);
}

.story-content {
    max-width: 800px;
    margin: 0 auto;
}

.story-content h2 {
    text-align: center;
    margin-bottom: 40px;
}

.story-text.zh {
    font-size: 1.1rem;
    line-height: 2;
    letter-spacing: 0.05em;
}

.story-text.zh p {
    margin-bottom: 1.5em;
    text-align: justify;
}

.mission-vision {
    background-color: var(--light-bg);
    padding: 80px 0;
}

.mission-content {
    max-width: 800px;
    margin: 0 auto;
}

.mission-content h2 {
    text-align: center;
    margin-bottom: 40px;
}

.mission-box, .vision-box {
    background-color: var(--white);
    padding: 40px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.mission-box h3, .vision-box h3 {
    color: var(--primary);
    margin-bottom: 20px;
}

.mission-box p, .vision-box p {
    margin-bottom: 0;
}

/* Services Page Styles */
.services-section {
    padding: 60px 0;
    background-color: var(--white);
}

.services-section:nth-child(even) {
    background-color: var(--light-bg);
}

.service-category.zh {
    margin-bottom: 40px;
}

.service-category.zh h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary);
    font-size: 2rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.service-card {
    background-color: var(--white);
    border-radius: 8px;
    padding: 30px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

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

.service-card .icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text);
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.6;
}

.service-card ul {
    list-style: none;
    padding: 0;
}

.service-card ul li {
    margin-bottom: 10px;
}

.service-card ul li a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.service-card ul li a:hover {
    color: var(--primary);
}

.service-card ul li a:before {
    content: "→";
    margin-right: 8px;
    color: var(--primary);
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        padding: 20px;
    }
}

/* Services Listing Page */
.page-header {
    text-align: center;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px;
    text-align: left;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.service-icon {
    font-size: 36px;
    color: var(--primary);
    background-color: #EAF2F8;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.service-card ul {
    margin-bottom: 20px;
    padding-left: 0;
    flex-grow: 1;
}

.service-card ul li {
    margin-bottom: 10px;
    line-height: 1.5;
}

.service-card ul li a {
    color: var(--text-light);
    font-weight: 400;
}

.service-card ul li a:hover {
    color: var(--primary);
}

.learn-more {
    font-weight: 600;
    color: var(--primary);
    display: inline-block;
    align-self: flex-start;
}

.learn-more i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.learn-more:hover i {
    transform: translateX(5px);
}

/* Responsive */
@media (max-width: 1024px) {
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .service-grid {
        grid-template-columns: 1fr;
    }
} 