/* ==========================================
   德誉堂中医诊所 - 样式表
   ========================================== */

:root {
    --primary-color: #8B0000;
    --primary-dark: #6B0000;
    --secondary-color: #D4AF37;
    --text-color: #333333;
    --text-light: #666666;
    --bg-color: #FFFFFF;
    --bg-light: #F8F5F0;
    --bg-cream: #FDF8F3;
    --border-color: #E5E5E5;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

/* ==========================================
   Buttons
   ========================================== */

.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
}

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

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

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

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

/* ==========================================
   Header
   ========================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: white;
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

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

.logo a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    text-decoration: none;
    transition: opacity 0.3s;
}

.logo a:hover {
    opacity: 0.8;
}

.logo-icon {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
}

.logo-text {
    font-size: 18px;
    color: var(--text-color);
}

.nav-menu {
    display: flex;
    gap: 40px;
}

.nav-menu a {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-color);
    padding: 8px 0;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

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

.header-phone a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 18px;
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

/* ==========================================
   Hero Section
   ========================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--bg-cream) 0%, var(--bg-light) 100%);
    padding-top: 80px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="%238B0000" stroke-width="0.5" opacity="0.1"/><circle cx="50" cy="50" r="30" fill="none" stroke="%238B0000" stroke-width="0.5" opacity="0.1"/><circle cx="50" cy="50" r="20" fill="none" stroke="%238B0000" stroke-width="0.5" opacity="0.1"/></svg>') center/cover no-repeat;
    opacity: 0.3;
}

.hero-content {
    max-width: 700px;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 56px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 24px;
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-weight: 500;
}

.hero-desc {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 40px;
    line-height: 1.8;
}

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

/* ==========================================
   Features Section
   ========================================== */

.features {
    padding: 80px 0;
    background-color: white;
    margin-top: -50px;
    position: relative;
    z-index: 2;
}

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

.feature-card {
    text-align: center;
    padding: 40px 30px;
    background-color: var(--bg-light);
    border-radius: 12px;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.feature-icon i {
    font-size: 32px;
    color: white;
}

.feature-card h3 {
    font-size: 20px;
    color: var(--text-color);
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

/* ==========================================
   Section Headers
   ========================================== */

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

.section-header h2 {
    font-size: 40px;
    color: var(--text-color);
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
}

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

/* ==========================================
   Services Preview Section
   ========================================== */

.services-preview {
    padding: 100px 0;
    background-color: var(--bg-light);
}

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

.service-card {
    background-color: white;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.service-icon i {
    font-size: 28px;
    color: white;
}

.service-card h3 {
    font-size: 22px;
    color: var(--text-color);
    margin-bottom: 16px;
}

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

.service-link {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.service-link:hover {
    color: var(--primary-dark);
    gap: 12px;
}

.section-footer {
    text-align: center;
    margin-top: 50px;
}

/* ==========================================
   Doctor Introduction Section
   ========================================== */

.doctor-intro {
    padding: 100px 0;
    background-color: white;
}

.doctor-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: center;
}

.doctor-image {
    position: relative;
}

.doctor-placeholder {
    width: 100%;
    aspect-ratio: 3/4;
    background: linear-gradient(135deg, var(--bg-light), var(--bg-cream));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--secondary-color);
}

.doctor-placeholder i {
    font-size: 120px;
    color: var(--primary-color);
    opacity: 0.3;
}

.doctor-info h2 {
    font-size: 36px;
    color: var(--text-color);
    margin-bottom: 8px;
}

.doctor-title {
    font-size: 18px;
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 30px;
}

.doctor-credentials {
    margin-bottom: 30px;
}

.doctor-credentials li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 16px;
    color: var(--text-color);
}

.doctor-credentials i {
    color: var(--primary-color);
    margin-top: 4px;
}

.doctor-desc {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 30px;
}

/* ==========================================
   Specialties Section
   ========================================== */

.specialties {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

.specialties .section-header h2 {
    color: white;
}

.specialties .section-header h2::after {
    background-color: var(--secondary-color);
}

.specialties .section-header p {
    color: rgba(255, 255, 255, 0.8);
}

.specialties-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.specialty-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: var(--transition);
}

.specialty-item:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

.specialty-item i {
    color: var(--secondary-color);
    font-size: 20px;
}

.specialty-item span {
    color: white;
    font-size: 16px;
    font-weight: 500;
}

/* ==========================================
   CTA Section
   ========================================== */

.cta {
    padding: 80px 0;
    background-color: var(--bg-cream);
}

.cta-content {
    text-align: center;
}

.cta h2 {
    font-size: 36px;
    color: var(--text-color);
    margin-bottom: 16px;
}

.cta p {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 40px;
}

.cta-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.cta-phone {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
}

.cta-phone i {
    font-size: 28px;
}

.cta-phone:hover {
    color: var(--primary-dark);
}

.cta-divider {
    color: var(--text-light);
    font-size: 18px;
}

/* ==========================================
   Footer
   ========================================== */

.footer {
    background-color: #1a1a1a;
    color: white;
    padding: 80px 0 30px;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.footer-logo .logo-icon {
    color: var(--secondary-color);
}

.footer-logo .logo-text {
    color: white;
}

.footer-info p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.8;
}

.footer h4 {
    font-size: 18px;
    margin-bottom: 24px;
    color: white;
    position: relative;
    padding-bottom: 12px;
}

.footer h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-links ul li,
.footer-services ul li {
    margin-bottom: 12px;
}

.footer-links a,
.footer-services a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.footer-links a:hover,
.footer-services a:hover {
    color: var(--secondary-color);
}

.footer-contact ul li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.footer-contact i {
    color: var(--secondary-color);
    margin-top: 4px;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
}

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

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

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    margin-bottom: 8px;
}

.footer-credit a {
    color: var(--secondary-color);
}

.footer-credit a:hover {
    text-decoration: underline;
}

/* ==========================================
   Services Page
   ========================================== */

.page-hero {
    padding: 150px 0 80px;
    background: linear-gradient(135deg, var(--bg-cream) 0%, var(--bg-light) 100%);
    text-align: center;
}

.page-hero h1 {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.page-hero p {
    font-size: 18px;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.service-detail {
    padding: 80px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.service-detail:last-child {
    border-bottom: none;
}

.service-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.service-detail:nth-child(even) .service-detail-content {
    direction: rtl;
}

.service-detail:nth-child(even) .service-detail-content > * {
    direction: ltr;
}

.service-detail-image {
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--bg-light), var(--bg-cream));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--border-color);
}

.service-detail-image i {
    font-size: 80px;
    color: var(--primary-color);
    opacity: 0.4;
}

.service-detail-info h2 {
    font-size: 32px;
    color: var(--text-color);
    margin-bottom: 20px;
}

.service-detail-info > p {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 24px;
}

.service-features h4 {
    font-size: 18px;
    color: var(--text-color);
    margin-bottom: 16px;
}

.service-features ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: var(--text-color);
}

.service-features i {
    color: var(--primary-color);
    font-size: 14px;
}

/* ==========================================
   About Page
   ========================================== */

.about-intro {
    padding: 100px 0;
    background-color: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    font-size: 36px;
    color: var(--text-color);
    margin-bottom: 24px;
}

.about-text p {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-image {
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--bg-light), var(--bg-cream));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--secondary-color);
}

.about-image i {
    font-size: 100px;
    color: var(--primary-color);
    opacity: 0.3;
}

.philosophy {
    padding: 100px 0;
    background-color: var(--bg-light);
}

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

.philosophy-card {
    background-color: white;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
}

.philosophy-card i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.philosophy-card h3 {
    font-size: 22px;
    color: var(--text-color);
    margin-bottom: 16px;
}

.philosophy-card p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.7;
}

/* ==========================================
   Contact Page
   ========================================== */

.contact-section {
    padding: 100px 0;
    background-color: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h2 {
    font-size: 32px;
    color: var(--text-color);
    margin-bottom: 24px;
}

.contact-info > p {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 40px;
}

.contact-details {
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 24px;
}

.contact-item-icon {
    width: 50px;
    height: 50px;
    background-color: var(--bg-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-item-icon i {
    font-size: 20px;
    color: var(--primary-color);
}

.contact-item-text h4 {
    font-size: 16px;
    color: var(--text-color);
    margin-bottom: 4px;
}

.contact-item-text p,
.contact-item-text a {
    font-size: 15px;
    color: var(--text-light);
}

.contact-item-text a:hover {
    color: var(--primary-color);
}

.business-hours h3 {
    font-size: 20px;
    color: var(--text-color);
    margin-bottom: 16px;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 15px;
}

.hours-list li:last-child {
    border-bottom: none;
}

.hours-list .day {
    color: var(--text-color);
}

.hours-list .time {
    color: var(--text-light);
}

.contact-form-wrapper {
    background-color: var(--bg-light);
    padding: 40px;
    border-radius: 16px;
}

.contact-form-wrapper h3 {
    font-size: 24px;
    color: var(--text-color);
    margin-bottom: 24px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    font-size: 14px;
    color: var(--text-color);
    margin-bottom: 8px;
    font-weight: 500;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: white;
    transition: var(--transition);
    font-family: inherit;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(139, 0, 0, 0.1);
}

.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-form button {
    width: 100%;
}

.map-section {
    height: 400px;
    background-color: var(--bg-light);
}

.map-section iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ==========================================
   Responsive Design
   ========================================== */

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

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

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

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

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

    .service-detail:nth-child(even) .service-detail-content {
        direction: ltr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background-color: white;
        flex-direction: column;
        padding: 30px;
        gap: 0;
        box-shadow: var(--shadow);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-menu li {
        margin: 15px 0;
    }

    .nav-toggle {
        display: flex;
    }

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

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

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

    .header-phone {
        display: none;
    }

    .hero {
        padding-top: 100px;
        text-align: center;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 20px;
    }

    .hero-buttons {
        justify-content: center;
    }

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

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

    .doctor-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .doctor-credentials li {
        justify-content: center;
    }

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

    .cta-phone {
        font-size: 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .page-hero h1 {
        font-size: 36px;
    }

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

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

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

    .service-features ul {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .btn {
        padding: 12px 24px;
        font-size: 14px;
    }

    .feature-card {
        padding: 30px 20px;
    }

    .service-card {
        padding: 30px 20px;
    }

    .contact-form-wrapper {
        padding: 30px 20px;
    }
}
