/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

a {
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
}

a:hover {
    color: #0066cc;
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    border: none;
}

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

.clearfix::after {
    content: '';
    display: block;
    clear: both;
}

/* 顶部信息 */
.top-bar {
    background: #f5f5f5;
    border-bottom: 1px solid #eee;
    padding: 8px 0;
    font-size: 12px;
    color: #666;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar .contact-top span {
    margin-left: 20px;
}

/* 头部 */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 999;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo a {
    display: flex;
    align-items: center;
}

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

.nav ul {
    display: flex;
}

.nav li {
    margin: 0 5px;
}

.nav li a {
    display: block;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 500;
    position: relative;
}

.nav li.active a,
.nav li a:hover {
    color: #0066cc;
}

.nav li.active a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: #0066cc;
    border-radius: 2px;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-menu span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: all 0.3s;
}

/* 轮播图 */
.banner {
    position: relative;
    overflow: hidden;
}

.banner-slider {
    display: flex;
    transition: transform 0.5s ease;
}

.banner-item {
    min-width: 100%;
    position: relative;
}

.banner-item img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.banner-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.banner-text h2 {
    font-size: 42px;
    margin-bottom: 15px;
}

.banner-text p {
    font-size: 18px;
}

.banner-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
}

.banner-dots span {
    width: 12px;
    height: 12px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
}

.banner-dots span.active {
    background: #fff;
}

/* 区块标题 */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 32px;
    color: #333;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

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

.section-title p {
    font-size: 14px;
    color: #999;
    margin-top: 15px;
}

/* 公司简介 */
.about-section {
    padding: 80px 0;
    background: #f9f9f9;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 28px;
    color: #333;
    margin-bottom: 20px;
}

.about-text p {
    font-size: 15px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 15px;
}

.about-btn {
    display: inline-block;
    padding: 12px 30px;
    background: #0066cc;
    color: #fff;
    border-radius: 5px;
    margin-top: 20px;
}

.about-btn:hover {
    background: #0052a3;
    color: #fff;
}

/* 产品展示 */
.products-section {
    padding: 80px 0;
}

.product-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.product-tabs a {
    display: inline-block;
    padding: 10px 25px;
    margin: 5px;
    background: #f5f5f5;
    border-radius: 25px;
    font-size: 14px;
}

.product-tabs a.active,
.product-tabs a:hover {
    background: #0066cc;
    color: #fff;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

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

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

.product-image {
    position: relative;
    overflow: hidden;
    padding-top: 75%;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-item:hover .product-image img {
    transform: scale(1.1);
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 16px;
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-info p {
    font-size: 13px;
    color: #999;
    line-height: 1.5;
}

/* 新闻动态 */
.news-section {
    padding: 80px 0;
    background: #f9f9f9;
}

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

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

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.news-image {
    width: 200px;
    flex-shrink: 0;
}

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

.news-content {
    flex: 1;
    padding: 20px;
}

.news-content h3 {
    font-size: 16px;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-content p {
    font-size: 13px;
    color: #999;
    line-height: 1.6;
    margin-bottom: 10px;
}

.news-meta {
    font-size: 12px;
    color: #999;
}

/* 页脚 */
.footer {
    background: #2c3e50;
    color: #fff;
    padding: 60px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo img {
    max-height: 50px;
    margin-bottom: 15px;
}

.footer-about p {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
}

.footer h3 {
    font-size: 16px;
    margin-bottom: 20px;
    color: #fff;
}

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

.footer-nav ul li a {
    color: rgba(255,255,255,0.7);
    font-size: 13px;
}

.footer-nav ul li a:hover {
    color: #fff;
}

.footer-contact ul li {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 12px;
}

.footer-qrcode img,
.qrcode-placeholder {
    width: 120px;
    height: 120px;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: rgba(255,255,255,0.5);
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    font-size: 12px;
    color: rgba(255,255,255,0.5);
}

/* 面包屑 */
.breadcrumb {
    background: #f5f5f5;
    padding: 15px 0;
    margin-bottom: 40px;
}

.breadcrumb .container {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #666;
}

.breadcrumb a {
    color: #666;
}

.breadcrumb span {
    margin: 0 10px;
}

/* 内容页 */
.page-content {
    padding: 60px 0;
    min-height: 500px;
}

.page-title {
    font-size: 28px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #0066cc;
}

.content-body {
    font-size: 15px;
    line-height: 1.8;
    color: #555;
}

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

/* 产品列表 */
.product-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.product-detail {
    display: flex;
    gap: 40px;
}

.product-gallery {
    flex: 1;
}

.product-gallery-main img {
    width: 100%;
    border-radius: 10px;
}

.product-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.product-thumbs img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    border: 2px solid transparent;
}

.product-thumbs img.active,
.product-thumbs img:hover {
    border-color: #0066cc;
}

.product-info-detail {
    flex: 1;
}

.product-info-detail h1 {
    font-size: 24px;
    margin-bottom: 15px;
}

.product-desc {
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
}

.product-btn {
    display: inline-block;
    padding: 12px 30px;
    background: #0066cc;
    color: #fff;
    border-radius: 5px;
}

/* 新闻列表 */
.news-list-item {
    display: flex;
    padding: 25px 0;
    border-bottom: 1px solid #eee;
    gap: 25px;
}

.news-list-item:last-child {
    border-bottom: none;
}

.news-list-image {
    width: 220px;
    flex-shrink: 0;
}

.news-list-image img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
}

.news-list-content {
    flex: 1;
}

.news-list-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.news-list-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 10px;
}

.news-list-meta {
    font-size: 12px;
    color: #999;
}

.news-detail-title {
    font-size: 26px;
    margin-bottom: 15px;
}

.news-detail-meta {
    font-size: 13px;
    color: #999;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.news-detail-content {
    font-size: 15px;
    line-height: 1.9;
    color: #555;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    gap: 5px;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.pagination a:hover {
    background: #0066cc;
    color: #fff;
    border-color: #0066cc;
}

.pagination span.active {
    background: #0066cc;
    color: #fff;
    border-color: #0066cc;
}

/* 联系我们 */
.contact-section {
    padding: 60px 0;
}

.contact-content {
    display: flex;
    gap: 50px;
}

.contact-info {
    flex: 1;
}

.contact-info h3 {
    font-size: 22px;
    margin-bottom: 25px;
}

.contact-info-item {
    display: flex;
    margin-bottom: 25px;
}

.contact-info-icon {
    width: 50px;
    height: 50px;
    background: #0066cc;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-right: 15px;
    flex-shrink: 0;
}

.contact-info-text h4 {
    font-size: 16px;
    margin-bottom: 5px;
}

.contact-info-text p {
    color: #666;
    font-size: 14px;
}

.contact-form {
    flex: 1;
}

.contact-form h3 {
    font-size: 22px;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0066cc;
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.form-btn {
    display: inline-block;
    padding: 12px 40px;
    background: #0066cc;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.3s;
}

.form-btn:hover {
    background: #0052a3;
}

/* 图标 */
.icon-phone::before { content: "📞"; }
.icon-email::before { content: "✉"; }
.icon-tel::before { content: "📱"; }
.icon-address::before { content: "📍"; }
