:root {
    --primary-color: #8B4513;
    --secondary-color: #D2B48C;
    --accent-color: #CD853F;
    --light-color: #F5F5DC;
    --dark-color: #3C2A1E;
    --text-color: #333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    color: var(--text-color);
    line-height: 1.6;
    background-color: #f9f9f9;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background: white;
    color: var(--text-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-bottom: 1px solid #eee;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 40px;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--primary-color);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 15px;
    border-radius: 5px;
}

nav a:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
}

nav a.active {
    background-color: var(--primary-color);
    color: white;
}

nav a[target="_blank"] {
    position: relative;
}

nav a[target="_blank"]:after {
    content: "↗";
    font-size: 0.8rem;
    margin-left: 4px;
    opacity: 0.7;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(60, 42, 30, 0.85), rgba(60, 42, 30, 0.9)), 
                url('https://images.unsplash.com/photo-1481627834876-b7833e8f5570?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80') center/cover no-repeat;
    padding: 3rem 1rem;
    margin-bottom: 3rem;
}

.hero-title {
    text-align: center;
    color: white;
    margin-bottom: 3rem;
}

.hero-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 400;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-title p {
    font-size: 1.2rem;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.hero-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.card-header {
    background: var(--primary-color);
    color: white;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-header i {
    font-size: 1.5rem;
}

.card-header h3 {
    font-size: 1.3rem;
    margin: 0;
}

.card-content {
    padding: 1.5rem;
    color: var(--text-color);
}

/* 最新公告卡片样式 */
.announcement-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.announcement-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.announcement-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.announcement-item .date {
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.announcement-item p:last-child {
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

/* 開館時間卡片样式 */
.hours-schedule {
    margin-bottom: 1.5rem;
}

.schedule-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px solid #eee;
    position: relative;
}

.schedule-item:last-child {
    border-bottom: none;
}

.schedule-item.current {
    background-color: rgba(139, 69, 19, 0.1);
    border-radius: 8px;
    padding: 0.8rem 1rem;
    margin: 0.2rem 0;
}

.day {
    font-weight: 500;
}

.today-badge {
    background: var(--primary-color);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.time {
    font-weight: 600;
    color: var(--primary-color);
}

.time.closed {
    color: #999;
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 0.9rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.contact-info i {
    color: var(--primary-color);
}

/* Core Services Section */
.core-services {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.services-header {
    text-align: center;
    margin-bottom: 3rem;
}

.services-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.services-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-item {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border-top: 4px solid var(--primary-color);
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.service-icon i {
    font-size: 2rem;
    color: white;
}

.service-item h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.service-item p {
    color: #666;
    line-height: 1.6;
}

/* Main Sections */
.section {
    padding: 4rem 0;
    border-bottom: 1px solid #eee;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--dark-color);
    position: relative;
}

.section-title h2 {
    font-size: 2.2rem;
    font-weight: 500;
    display: inline-block;
    background-color: var(--light-color);
    padding: 0 1rem;
    position: relative;
    z-index: 2;
}

.section-title::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 2px;
    background-color: var(--accent-color);
    z-index: 1;
}

.section-content {
    display: flex;
    gap: 3rem;
    align-items: center;
    margin-top: 2rem;
}

.section-img {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    min-height: 350px;
    background: linear-gradient(45deg, var(--secondary-color), var(--light-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-color);
    font-size: 2rem;
    font-weight: bold;
}

.section-text {
    flex: 1;
}

.section-text h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-text p {
    margin-bottom: 1.5rem;
}

/* Programs Section */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.program-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.program-card:hover {
    transform: translateY(-10px);
}

.program-header {
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    color: white;
    padding: 1.5rem;
    text-align: center;
}

.program-header i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.program-body {
    padding: 1.5rem;
}

.program-body ul {
    list-style: none;
    margin: 1.5rem 0;
}

.program-body li {
    padding: 0.5rem 0;
    border-bottom: 1px dashed #eee;
    display: flex;
    align-items: center;
}

.program-body li i {
    margin-right: 10px;
    color: var(--accent-color);
}

.btn {
    display: inline-block;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

/* Contact Section */
.contact-info {
    text-align: center;
    margin: 2rem 0;
    padding: 2rem;
    background-color: var(--light-color);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.contact-info h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.address {
    font-size: 1.1rem;
    margin: 1.5rem 0;
    line-height: 1.8;
}

.address i {
    color: var(--primary-color);
    margin-right: 10px;
}

/* Forms Section */
.forms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
}

.form-category h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-color);
}

.form-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-link {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    background-color: white;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border-left: 4px solid var(--accent-color);
}

.form-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    border-left-color: var(--primary-color);
}

.form-link i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-right: 1rem;
    min-width: 50px;
}

.form-link h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.form-link p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

/* Plugin Section Styles */
.plugin-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
}

.plugin-section h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.plugin-note {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.plugin-note a {
    color: var(--primary-color);
    text-decoration: none;
}

.plugin-note a:hover {
    text-decoration: underline;
}

.plugin-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.plugin-link {
    display: inline-flex;
    align-items: center;
    padding: 0.8rem 1.2rem;
    background-color: white;
    border: 2px solid var(--accent-color);
    border-radius: 25px;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    transition: all 0.3s ease;
}

.plugin-link:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.plugin-link i {
    margin-right: 0.5rem;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .plugin-links {
        flex-direction: column;
    }
    
    .plugin-link {
        justify-content: center;
    }
}

/* Detailed Services */
.detailed-services {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid var(--light-color);
}

.detailed-services h3 {
    text-align: center;
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
}

.service-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.service-category {
    background-color: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border-left: 4px solid var(--accent-color);
    transition: all 0.3s ease;
}

.service-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-left-color: var(--primary-color);
}

.service-category h4 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-category h4 i {
    font-size: 1.2rem;
    color: var(--accent-color);
}

.service-category ul {
    list-style: none;
    padding: 0;
}

.service-category li {
    padding: 0.8rem 0;
    border-bottom: 1px dashed #eee;
    color: #555;
    line-height: 1.6;
    position: relative;
    padding-left: 1.5rem;
}

.service-category li:before {
    content: "•";
    color: var(--accent-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.service-category li:last-child {
    border-bottom: none;
}

@media (max-width: 768px) {
    .service-categories {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-category {
        padding: 1.5rem;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
}

.back-to-top:active {
    transform: translateY(-1px);
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--dark-color), var(--primary-color));
    color: white;
    padding: 3rem 0 1.5rem;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.social-icons {
    margin: 1.5rem 0;
    display: flex;
    gap: 1.5rem;
}

.social-icons a {
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    color: var(--light-color);
    transform: translateY(-5px);
}

.copyright {
    margin-top: 1.5rem;
    opacity: 0.8;
}

/* Service Resources Section */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

@media (max-width: 1200px) {
    .resources-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .resources-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.resource-category {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.resource-category h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--light-color);
}

.resource-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.resource-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    border-left: 4px solid var(--accent-color);
}

.resource-link:hover {
    background: var(--light-color);
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.resource-link i {
    font-size: 1.5rem;
    color: var(--primary-color);
    min-width: 30px;
}

.resource-link h4 {
    color: var(--primary-color);
    margin-bottom: 0.3rem;
    font-size: 1rem;
}

.resource-link p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    nav ul {
        gap: 1rem;
    }
    
    .hero {
        padding: 2rem 1rem;
    }
    
    .hero-title h2 {
        font-size: 2rem;
    }
    
    .hero-title p {
        font-size: 1rem;
    }
    
    .hero-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .services-header h2 {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .section-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .programs-grid {
        grid-template-columns: 1fr;
    }
}