/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.5;
    color: #333;
    background-color: #f5f5f5;
}

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

/* 头部样式 */
.main-header {
    background: #1f2937 url('../img/bf-header.jpg') center/cover;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    position: relative;
}

.main-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
    position: relative;
    z-index: 2;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

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

.main-nav a, .main-nav .dropbtn {
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.2s;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.main-nav a:hover, .main-nav .dropbtn:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-1px);
}

.dropdown {
    position: relative;
}

.dropbtn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: inherit;
    font-family: inherit;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    min-width: 120px;
    z-index: 1000;
}

.dropdown-menu a {
    color: #333;
    padding: 0.75rem 1rem;
    display: block;
    text-decoration: none;
    text-shadow: none;
}

.dropdown-menu a:hover {
    background: #f3f4f6;
    color: #089164;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background-color: #089164;
    color: #fff;
}

.btn-primary:hover {
    background-color: #10b981;
    transform: translateY(-1px);
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 2rem 0;
}

.pagination a,
.pagination span {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s;
}

.pagination a {
    background: #fff;
    color: #333;
}

.pagination a:hover {
    background: #089164;
    color: #fff;
    transform: translateY(-1px);
}

.pagination span.current,
.pagination a.active {
    background: #089164;
    color: #fff;
}

/* 页脚样式 */
.main-footer {
    background: #1f2937 url('../img/bf-footer.jpg') center/cover;
    padding: 2rem 0;
    margin-top: 4rem;
    text-align: center;
    color: #fff;
    position: relative;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.main-footer .container {
    position: relative;
    z-index: 2;
}

/* 移动端菜单按钮 */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff; /* 改为白色以配合header背景 */
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 2;
}

/* 移动端适配样式 */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        padding: 1rem 0;
        z-index: 1000;
    }

    .main-nav.active {
        display: flex;
        flex-direction: column;
    }

    .main-nav a {
        color: #4b5563 !important; /* 覆盖默认的白色文本 */
        text-shadow: none !important; /* 移除文字阴影 */
        padding: 0.75rem 1.5rem;
        border-bottom: 1px solid #f3f4f6;
    }

    .main-nav a:last-child {
        border-bottom: none;
    }

    .main-nav a:hover {
        background: #f3f4f6;
        color: #089164 !important;
        transform: none;
    }

    /* 移动端下拉菜单样式 */
    .dropdown {
        width: 100%;
    }

    .dropdown .dropbtn {
        width: 100%;
        text-align: left;
        padding: 0.75rem 1.5rem;
        border-bottom: 1px solid #f3f4f6;
        color: #4b5563;
        text-shadow: none;
        background: #fff;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        background: #f8f9fa;
        display: block;
    }

    .dropdown-menu a {
        padding-left: 2.5rem;
    }

    /* 移动端覆盖默认的下拉菜单悬停效果 */
    .dropdown:hover .dropdown-menu {
        display: block;
    }
} 