/* ========================================
   北京博达办公家具 - 全局样式
   现代简约、商务大气、高端质感
   ======================================== */

/* CSS Reset & 基础设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

a:hover {
    color: #b8860b;
}

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

ul, ol {
    list-style: none;
}

p {
    margin-bottom: 1rem;
}

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

/* ========================================
   顶部导航栏
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.header.scrolled {
    background-color: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 50px;
    width: auto;
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
}

.logo-text span {
    color: #b8860b;
}

/* 导航菜单 */
.nav-menu {
    display: flex;
    gap: 35px;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: block;
    padding: 10px 0;
    font-size: 16px;
    font-weight: 500;
    color: #2c3e50;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #b8860b;
    transition: width 0.3s ease;
}

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

.nav-link:hover,
.nav-link.active {
    color: #b8860b;
}

/* 汉堡菜单 */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #2c3e50;
    transition: all 0.3s ease;
}

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

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

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

/* 移动端菜单 */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: #fff;
        flex-direction: column;
        align-items: center;
        padding-top: 40px;
        gap: 25px;
        transition: left 0.3s ease;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        font-size: 18px;
    }
}

/* ========================================
   页脚
   ======================================== */
.footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #b8860b;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: #b8860b;
}

.footer-section p,
.footer-section a {
    color: #bdc3c7;
    margin-bottom: 10px;
    display: block;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #b8860b;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #34495e;
    color: #95a5a6;
    font-size: 14px;
}

/* ========================================
   Banner 区域
   ======================================== */
.banner {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/banner-bg.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.3;
}

.banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    max-width: 800px;
    padding: 0 20px;
}

.banner-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
}

.banner-subtitle {
    font-size: 24px;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease 0.3s forwards;
}

.banner-btn {
    display: inline-block;
    padding: 15px 40px;
    background-color: #b8860b;
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    border-radius: 5px;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease 0.6s forwards;
}

.banner-btn:hover {
    background-color: #d4a017;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(184, 134, 11, 0.3);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   通用区块样式
   ======================================== */
.section {
    padding: 80px 0;
}

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

.section-title {
    font-size: 36px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

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

.section-subtitle {
    font-size: 18px;
    color: #7f8c8d;
    margin-top: 20px;
}

/* ========================================
   卡片样式
   ======================================== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

.card.show {
    opacity: 1;
    transform: translateY(0);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-body {
    padding: 25px;
}

.card-title {
    font-size: 20px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 10px;
}

.card-text {
    color: #7f8c8d;
    margin-bottom: 15px;
    line-height: 1.8;
}

.card-link {
    display: inline-block;
    color: #b8860b;
    font-weight: 500;
    transition: all 0.3s ease;
}

.card-link:hover {
    color: #d4a017;
    padding-left: 10px;
}

/* ========================================
   优势板块
   ======================================== */
.features {
    background-color: #f8f9fa;
}

.feature-card {
    text-align: center;
    padding: 40px 30px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background-color: #b8860b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #fff;
}

.feature-title {
    font-size: 22px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 15px;
}

.feature-text {
    color: #7f8c8d;
    line-height: 1.8;
}

/* ========================================
   快速入口
   ======================================== */
.quick-links {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    padding: 60px 0;
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.quick-link-item {
    text-align: center;
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.quick-link-item:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.quick-link-icon {
    font-size: 40px;
    color: #b8860b;
    margin-bottom: 15px;
}

.quick-link-title {
    font-size: 18px;
    font-weight: bold;
    color: #fff;
}

/* ========================================
   新闻列表
   ======================================== */
.news-section {
    background-color: #f8f9fa;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.news-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.news-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.news-body {
    padding: 20px;
}

.news-date {
    font-size: 14px;
    color: #95a5a6;
    margin-bottom: 10px;
}

.news-title {
    font-size: 18px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-excerpt {
    color: #7f8c8d;
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 15px;
}

.news-link {
    color: #b8860b;
    font-weight: 500;
    transition: all 0.3s ease;
}

.news-link:hover {
    color: #d4a017;
    padding-left: 10px;
}

/* ========================================
   内页 Banner
   ======================================== */
.page-banner {
    height: 400px;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.page-banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/banner-bg.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
}

.page-banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
}

.page-banner-title {
    font-size: 42px;
    font-weight: bold;
    margin-bottom: 15px;
}

.page-banner-subtitle {
    font-size: 18px;
    color: #bdc3c7;
}

/* ========================================
   面包屑导航
   ======================================== */
.breadcrumb {
    padding: 20px 0;
    background-color: #f8f9fa;
}

.breadcrumb-list {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.breadcrumb-item {
    color: #7f8c8d;
    font-size: 14px;
}

.breadcrumb-item a {
    color: #7f8c8d;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: #b8860b;
}

.breadcrumb-separator {
    color: #bdc3c7;
}

.breadcrumb-item.active {
    color: #b8860b;
}

/* ========================================
   内容页面布局
   ======================================== */
.content-wrapper {
    padding: 60px 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
}

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

/* 侧边栏 */
.sidebar {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.sidebar-title {
    font-size: 20px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #b8860b;
}

.sidebar-menu li {
    margin-bottom: 10px;
}

.sidebar-link {
    display: block;
    padding: 12px 15px;
    color: #2c3e50;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.sidebar-link:hover,
.sidebar-link.active {
    background-color: #b8860b;
    color: #fff;
}

/* ========================================
   产品/案例详情
   ======================================== */
.detail-page {
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.detail-title {
    font-size: 32px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 20px;
}

.detail-meta {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ecf0f1;
    color: #7f8c8d;
    font-size: 14px;
}

.detail-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-content {
    line-height: 2;
    color: #333;
}

.detail-content img {
    max-width: 100%;
    margin: 20px 0;
    border-radius: 5px;
}

.detail-content h2 {
    font-size: 24px;
    color: #2c3e50;
    margin: 30px 0 15px;
}

.detail-content h3 {
    font-size: 20px;
    color: #2c3e50;
    margin: 25px 0 12px;
}

.detail-content p {
    margin-bottom: 15px;
}

.detail-content ul,
.detail-content ol {
    margin: 15px 0;
    padding-left: 25px;
}

.detail-content li {
    margin-bottom: 8px;
}

/* ========================================
   相关新闻
   ======================================== */
.related-news {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid #ecf0f1;
}

.related-news-title {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 25px;
}

/* ========================================
   表单样式
   ======================================== */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2c3e50;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #b8860b;
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #b8860b;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #d4a017;
    transform: translateY(-2px);
}

/* ========================================
   响应式调整
   ======================================== */
@media (max-width: 768px) {
    .banner-title {
        font-size: 32px;
    }

    .banner-subtitle {
        font-size: 18px;
    }

    .section-title {
        font-size: 28px;
    }

    .page-banner {
        height: 300px;
    }

    .page-banner-title {
        font-size: 32px;
    }

    .detail-page {
        padding: 25px;
    }

    .detail-title {
        font-size: 24px;
    }

    .detail-meta {
        flex-direction: column;
        gap: 10px;
    }
}

/* ========================================
   滚动动画
   ======================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.show {
    opacity: 1;
    transform: translateY(0);
}
