/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: "Helvetica Neue", "Microsoft YaHei", sans-serif;
    color: #444;
    line-height: 1.6;
    background: #f5f5f5;
}

/* 头部样式 */
.header {
    background: #333;
    color: #fff;
    padding: 15px 0;
}
.header-container {
    width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 1px;
}
.logo a {
    color: #fff;
    text-decoration: none;
}
.top-contact {
    font-size: 14px;
    color: #ccc;
}
.top-contact span {
    margin-left: 20px;
}

/* 导航菜单 */
.nav {
    background: #444;
    border-bottom: 1px solid #555;
}
.nav-container {
    width: 1200px;
    margin: 0 auto;
}
.nav-list {
    display: flex;
    list-style: none;
}
.nav-item {
    position: relative;
}
.nav-link {
    display: block;
    color: #ddd;
    text-decoration: none;
    padding: 15px 25px;
    font-size: 16px;
    transition: all 0.3s;
}
.nav-link:hover {
    background: #222;
    color: #fff;
}
.nav-link.active {
    background: #222;
    color: #fff;
    border-bottom: 3px solid #999;
}

/* 主视觉区域 */
.hero {
    height: 400px;
    background: #555;
    position: relative;
    overflow: hidden;
}
.hero-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: center;
    padding: 0 20px;
    background: rgba(0,0,0,0.5);
}
.hero h1 {
    font-size: 42px;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.hero p {
    font-size: 18px;
    max-width: 800px;
    opacity: 0.9;
}

/* 主体容器 */
.main-container {
    width: 1200px;
    margin: 30px auto;
    display: flex;
    gap: 30px;
}

/* 侧边栏 */
.sidebar {
    width: 280px;
    flex-shrink: 0;
}
.sidebar-block {
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 25px;
    overflow: hidden;
}
.sidebar-title {
    background: #666;
    color: #fff;
    padding: 12px 15px;
    font-size: 16px;
    font-weight: 500;
}
.sidebar-content {
    padding: 15px;
}
.sidebar-menu {
    list-style: none;
}
.sidebar-menu li {
    border-bottom: 1px dashed #eee;
}
.sidebar-menu a {
    display: block;
    padding: 10px 5px;
    color: #555;
    text-decoration: none;
    transition: color 0.3s;
}
.sidebar-menu a:hover {
    color: #222;
    padding-left: 10px;
}
.sidebar-menu a.active {
    color: #222;
    font-weight: bold;
    background: #f0f0f0;
}
.contact-info {
    line-height: 2;
}
.contact-info p {
    margin-bottom: 10px;
}

/* 主内容区 */
.content {
    flex-grow: 1;
}
.page-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}
.page-title {
    font-size: 24px;
    color: #333;
    margin-bottom: 5px;
}
.breadcrumb {
    font-size: 14px;
    color: #888;
}
.breadcrumb a {
    color: #888;
    text-decoration: none;
}
.breadcrumb a:hover {
    color: #333;
    text-decoration: underline;
}

/* 首页内容区 */
.home-sections {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 30px;
}
.home-section {
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    overflow: hidden;
}
.section-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.section-title {
    font-size: 18px;
    color: #333;
    font-weight: 500;
}
.section-more {
    font-size: 14px;
    color: #888;
    text-decoration: none;
}
.section-more:hover {
    color: #333;
    text-decoration: underline;
}
.section-content {
    padding: 20px;
}

/* 关于我们 */
.about-content {
    line-height: 1.8;
}
.about-content p {
    margin-bottom: 15px;
}
.about-img {
    width: 100%;
    height: 200px;
    background: #ddd;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    overflow:hidden
}

/* 新闻列表 */
.news-list {
    list-style: none;
}
.news-item {
    padding: 12px 0;
    border-bottom: 1px dashed #eee;
    display: flex;
    align-items: center;
}
.news-item:last-child {
    border-bottom: none;
}
.news-date {
    width: 70px;
    height: 70px;
    background: #f0f0f0;
    color: #666;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}
.news-day {
    font-size: 20px;
    font-weight: bold;
    line-height: 1;
}
.news-month {
    font-size: 12px;
    text-transform: uppercase;
}
.news-title {
    flex-grow: 1;
}
.news-title a {
    color: #444;
    text-decoration: none;
    transition: color 0.3s;
}
.news-title a:hover {
    color: #222;
    text-decoration: underline;
}

/* 产品展示 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}
.product-item {
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}
.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.product-img {
    height: 140px;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
}
.product-name {
    padding: 10px 15px;
    text-align: center;
    font-size: 14px;
}
.product-name a {
    color: #555;
    text-decoration: none;
}
.product-name a:hover {
    color: #222;
    text-decoration: underline;
}

/* 列表页样式 */
.list-container {
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    padding: 25px;
}
.list-item {
    padding: 15px 0;
    border-bottom: 1px dashed #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.list-item:last-child {
    border-bottom: none;
}
.list-item a {
    color: #444;
    text-decoration: none;
    transition: color 0.3s;
    position: relative;
    padding-left: 15px;
}
.list-item a:before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #999;
}
.list-item a:hover {
    color: #222;
    padding-left: 20px;
}
.list-date {
    color: #888;
    font-size: 14px;
    white-space: nowrap;
}

/* 详情页样式 */
.article-container {
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    padding: 30px;
}
.article-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}
.article-title {
    font-size: 26px;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.3;
}
.article-meta {
    color: #888;
    font-size: 14px;
}
.article-content {
    font-size: 16px;
    line-height: 2;
    color: #555;
}
.article-content p {
    margin-bottom: 20px;
}
.article-img {
    width: 100%;
    height: 300px;
    background: #eee;
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    overflow:hidden
}
.article-nav {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}
.article-nav a {
    color: #666;
    text-decoration: none;
}
.article-nav a:hover {
    color: #222;
    text-decoration: underline;
}
.back-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 8px 15px;
    background: #666;
    color: #fff;
    text-decoration: none;
    border-radius: 3px;
    transition: background 0.3s;
}
.back-btn:hover {
    background: #333;
}

/* 底部样式 */
.footer {
    background: #333;
    color: #ccc;
    padding: 40px 0 20px;
    margin-top: 50px;
}
.footer-container {
    width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}
.footer-column h3 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #555;
}
.footer-links {
    list-style: none;
}
.footer-links li {
    margin-bottom: 10px;
}
.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}
.footer-links a:hover {
    color: #fff;
    padding-left: 5px;
}
.footer-contact p {
    margin-bottom: 10px;
    line-height: 1.8;
}
.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #555;
    font-size: 14px;
}
.copyright a {
    color: #ccc;
    text-decoration: none;
}
.copyright a:hover {
    color: #fff;
    text-decoration: underline;
}