/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 颜色主题 - 基于logo的蓝色和绿色 */
:root {
    --primary-blue: #8B6A60;
    --primary-green: #5B3618;
    --secondary-blue: #A68A64;
    --secondary-green: #8B6A60;
    --light-bg: #F5F5F5;
    --dark-text: #333;
    --light-text: #666;
}

/* 导航栏 */
.navbar {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    width: 60px;
    height: 60px;
    margin-right: 15px;
}

.logo h1 {
    font-size: 35px;
    color: var(--primary-blue);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-text);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-blue);
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--dark-text);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-blue);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn:hover {
    background-color: var(--secondary-blue);
}

/* 首页横幅 */
.banner {
    background-color: var(--light-bg);
    padding: 150px 0 100px;
    text-align: center;
    background-image: linear-gradient(rgba(139, 106, 96, 0.1), rgba(139, 106, 96, 0.1));
}

.banner h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--primary-blue);
}

.banner p {
    font-size: 18px;
    margin-bottom: 30px;
    color: var(--light-text);
}

/* 关于我们 */
.about {
    padding: 100px 0;
}

.about h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 50px;
    color: var(--primary-blue);
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.about-text {
    flex: 1;
    min-width: 300px;
    margin-right: 50px;
}

.about-text p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-image {
    flex: 1;
    min-width: 300px;
}

.about-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 服务项目 */
.services {
    padding: 100px 0;
    background-color: var(--light-bg);
}

.services h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 50px;
    color: var(--primary-blue);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.service-icon {
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--primary-blue);
}

.service-card p {
    color: var(--light-text);
    line-height: 1.6;
}

/* 联系我们 */
.contact {
    padding: 100px 0;
}

.contact h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 50px;
    color: var(--primary-blue);
}

.contact-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.contact-info {
    flex: 1;
    min-width: 300px;
    margin-right: 50px;
}

.contact-item {
    margin-bottom: 30px;
}

.contact-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--primary-blue);
}

.contact-item p {
    color: var(--light-text);
}

.contact-form {
    flex: 1;
    min-width: 300px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--dark-text);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* 页脚 */
.footer {
    background-color: var(--primary-blue);
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 30px;
}

.footer-info {
    flex: 1;
    min-width: 300px;
    margin-right: 50px;
}

.footer-info h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.footer-links {
    flex: 1;
    min-width: 300px;
}

.footer-links h3 {
    font-size: 18px;
    margin-bottom: 15px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 14px;
}

/* 后台管理入口 */
.admin-entry {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.admin-link {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--primary-green);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.admin-link:hover {
    background-color: var(--secondary-green);
    transform: translateY(-2px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: white;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        transition: all 0.3s ease;
        pointer-events: none;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-links li {
        margin: 15px 0;
    }

    .banner h2 {
        font-size: 28px;
    }

    .banner p {
        font-size: 16px;
    }

    .about-content {
        flex-direction: column;
    }

    .about-text {
        margin-right: 0;
        margin-bottom: 30px;
    }

    .contact-content {
        flex-direction: column;
    }

    .contact-info {
        margin-right: 0;
        margin-bottom: 30px;
    }

    .footer-content {
        flex-direction: column;
    }

    .footer-info {
        margin-right: 0;
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 20px;
    }

    .logo img {
        width: 50px;
        height: 50px;
    }

    .banner h2 {
        font-size: 24px;
    }

    .about h2,
    .services h2,
    .contact h2 {
        font-size: 28px;
    }

    .service-card {
        padding: 20px;
    }

    .admin-entry {
        bottom: 20px;
        right: 20px;
    }

    .admin-link {
        padding: 10px 20px;
        font-size: 14px;
    }
}