/**
 * 前台样式表
 */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #764ba2;
}

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

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

/* ========== 按钮样式 ========== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
    color: white;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    color: white;
}

.btn-outline {
    background: transparent;
    border: 2px solid #667eea;
    color: #667eea;
}

.btn-outline:hover {
    background: #667eea;
    color: white;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 18px;
}

/* ========== 头部导航 ========== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

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

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

.logo img {
    height: 40px;
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-list li a {
    color: #333;
    font-weight: 500;
    padding: 10px 0;
    position: relative;
}

.nav-list li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s;
}

.nav-list li a:hover::after,
.nav-list li.active a::after {
    width: 100%;
}

.nav-list li.active a {
    color: #667eea;
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

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

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

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

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

/* 移动端导航 */
.mobile-nav {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
}

.mobile-nav.active {
    display: block;
}

.mobile-nav-list {
    list-style: none;
    padding: 20px;
}

.mobile-nav-list li {
    margin-bottom: 15px;
}

.mobile-nav-list a {
    display: block;
    padding: 10px;
    color: #333;
    font-weight: 500;
}

.mobile-nav-list a:hover {
    color: #667eea;
    background: #f8f9fa;
}

/* ========== 主内容区 ========== */
.main-content {
    margin-top: 70px;
}

/* ========== Banner轮播 ========== */
.banner-section {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.banner-slider {
    position: relative;
    height: 100%;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s;
}

.banner-slide.active {
    opacity: 1;
}

.banner-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-color: #667eea;
}

.banner-content {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    color: white;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
}

.banner-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s;
}

.banner-content p {
    font-size: 20px;
    margin-bottom: 30px;
    animation: fadeInUp 0.8s 0.2s backwards;
}

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

.banner-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.banner-dots .dot.active {
    background: white;
    width: 30px;
    border-radius: 6px;
}

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

/* ========== 页面Banner ========== */
.page-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.page-banner-small {
    padding: 60px 0;
}

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

.page-subtitle {
    font-size: 18px;
    opacity: 0.9;
}

.breadcrumb {
    margin-top: 20px;
    font-size: 14px;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumb a:hover {
    color: white;
}

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

.section.bg-gray {
    background: #f8f9fa;
}

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

.section-title {
    font-size: 36px;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 18px;
    color: #666;
}

.section-footer {
    text-align: center;
    margin-top: 50px;
}

/* ========== 关于我们 ========== */
.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-text {
    font-size: 18px;
    line-height: 2;
    color: #666;
    margin-bottom: 30px;
}

/* ========== 产品服务 ========== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.product-image {
    height: 200px;
    overflow: hidden;
    background: #f8f9fa;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.placeholder-image {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    background: #f0f0f0;
}

.product-info {
    padding: 25px;
}

.product-name {
    font-size: 20px;
    margin-bottom: 10px;
}

.product-category {
    font-size: 14px;
    color: #667eea;
    margin-bottom: 10px;
}

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

.product-features {
    margin-bottom: 15px;
}

.product-features h4 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #333;
}

.product-features ul {
    list-style: none;
}

.product-features li {
    padding: 5px 0;
    padding-left: 20px;
    position: relative;
    color: #666;
}

.product-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #667eea;
}

.product-price {
    font-size: 20px;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 15px;
}

.product-content {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    color: #666;
    line-height: 1.8;
}

/* ========== 成功案例 ========== */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.case-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.case-card:hover {
    transform: translateY(-10px);
}

.case-image {
    height: 200px;
    overflow: hidden;
    background: #f8f9fa;
}

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

.case-info {
    padding: 25px;
}

.case-title {
    font-size: 20px;
    margin-bottom: 10px;
}

.case-client,
.case-category {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.case-desc {
    color: #666;
    margin: 15px 0;
    line-height: 1.6;
}

.case-tech,
.case-date {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.case-tech .label,
.case-date .label {
    color: #333;
    font-weight: 500;
}

.case-content {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    color: #666;
    line-height: 1.8;
}

.case-gallery {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

.case-gallery img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
}

/* ========== 新闻动态 ========== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.news-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-image {
    height: 180px;
    overflow: hidden;
}

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

.news-info {
    padding: 20px;
}

.news-meta {
    display: flex;
    gap: 15px;
    font-size: 14px;
    color: #999;
    margin-bottom: 10px;
}

.news-category {
    color: #667eea;
}

.news-title {
    font-size: 18px;
    line-height: 1.5;
}

.news-title a {
    color: #333;
}

.news-title a:hover {
    color: #667eea;
}

/* 新闻列表页 */
.news-list {
    max-width: 900px;
    margin: 0 auto;
}

.news-item {
    display: flex;
    gap: 30px;
    padding: 30px;
    background: white;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s;
}

.news-item:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.news-thumb {
    flex-shrink: 0;
    width: 250px;
    height: 160px;
    border-radius: 8px;
    overflow: hidden;
}

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

.news-content {
    flex: 1;
}

.news-content .news-meta {
    margin-bottom: 15px;
}

.news-content .news-title {
    font-size: 22px;
    margin-bottom: 15px;
}

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

.read-more {
    color: #667eea;
    font-weight: 500;
}

.news-top {
    background: #667eea;
    color: white;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
}

/* 新闻详情页 */
.news-detail {
    max-width: 900px;
    margin: 0 auto;
}

.article-header {
    text-align: center;
    margin-bottom: 40px;
}

.article-title {
    font-size: 32px;
    margin-bottom: 20px;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    color: #999;
    font-size: 14px;
}

.article-thumbnail {
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
}

.article-content {
    line-height: 2;
    color: #333;
    font-size: 17px;
}

.article-content p {
    margin-bottom: 20px;
}

.article-keywords {
    margin-top: 40px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.article-keywords .label {
    font-weight: bold;
}

.article-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.nav-item {
    flex: 1;
}

.nav-item.prev {
    text-align: left;
}

.nav-item.next {
    text-align: right;
}

.nav-label {
    display: block;
    color: #999;
    font-size: 14px;
    margin-bottom: 5px;
}

.related-news {
    margin-top: 50px;
}

.related-title {
    font-size: 24px;
    margin-bottom: 30px;
}

.related-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.related-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.related-thumb {
    height: 120px;
    overflow: hidden;
}

.related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-info {
    padding: 15px;
}

.related-info h4 {
    font-size: 16px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.related-info h4 a {
    color: #333;
}

.related-info h4 a:hover {
    color: #667eea;
}

.related-date {
    font-size: 12px;
    color: #999;
}

/* ========== 联系我们 ========== */
.contact-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
    max-width: 900px;
    margin: 0 auto;
}

.contact-info {
    flex: 1;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-icon {
    font-size: 32px;
}

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

.contact-text p {
    color: #666;
}

.contact-actions {
    flex-shrink: 0;
}

/* 联系页面 */
.contact-grid {
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 30px;
}

.contact-card {
    background: white;
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.contact-card:hover {
    transform: translateY(-10px);
}

.contact-card .contact-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.contact-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.contact-card p {
    color: #666;
}

/* 留言表单 */
.contact-form-wrapper {
    max-width: 700px;
    margin: 0 auto;
    background: white;
    padding: 50px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.contact-form .form-row {
    margin-bottom: 20px;
}

.contact-form .form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

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

.contact-form .required {
    color: #dc3545;
}

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

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #667eea;
}

.contact-form textarea {
    resize: vertical;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

/* ========== 分类筛选 ========== */
.filter-section {
    padding: 30px 0;
    background: white;
    border-bottom: 1px solid #eee;
}

.filter-tabs {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-tabs a {
    padding: 10px 25px;
    border-radius: 25px;
    background: #f8f9fa;
    color: #666;
    transition: all 0.3s;
}

.filter-tabs a:hover,
.filter-tabs a.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

/* ========== 内容页面 ========== */
.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.content-title {
    font-size: 28px;
    text-align: center;
    margin-bottom: 30px;
}

.content-text {
    font-size: 17px;
    line-height: 2;
    color: #666;
}

.contact-info-list {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
}

.info-item {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

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

.info-label {
    font-weight: bold;
    color: #333;
    margin-right: 10px;
}

.info-value {
    color: #666;
}

/* ========== 分页 ========== */
.pagination-wrapper {
    margin-top: 50px;
    text-align: center;
}

.pagination {
    display: inline-flex;
    gap: 5px;
}

.page-link {
    display: inline-block;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    color: #666;
    transition: all 0.3s;
}

.page-link:hover:not(.disabled):not(.active) {
    background: #667eea;
    border-color: #667eea;
    color: white;
}

.page-link.active {
    background: #667eea;
    border-color: #667eea;
    color: white;
}

.page-link.disabled {
    color: #ccc;
    cursor: not-allowed;
}

/* ========== 提示信息 ========== */
.alert {
    padding: 15px 20px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.empty-text {
    text-align: center;
    color: #999;
    padding: 50px 0;
    font-size: 18px;
}

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

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-company h3 {
    color: white;
    font-size: 24px;
    margin-bottom: 20px;
}

.footer-company p {
    line-height: 1.8;
}

.footer-contact h4,
.footer-links h4 {
    color: white;
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-contact ul,
.footer-links ul {
    list-style: none;
}

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

.footer-contact .label {
    color: #a0aec0;
}

.footer-links a {
    color: #cbd5e0;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #4a5568;
    color: #a0aec0;
    font-size: 14px;
}

.footer-bottom p {
    margin-bottom: 8px;
}

.footer-bottom p:last-child {
    margin-bottom: 0;
}

.icp-number {
    margin-top: 8px;
}

.icp-number a {
    color: #a0aec0;
    font-size: 13px;
    transition: color 0.3s;
}

.icp-number a:hover {
    color: #cbd5e0;
}

/* ========== 返回顶部 ========== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    font-size: 24px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

/* ========== 响应式设计 ========== */
@media (max-width: 992px) {
    .nav-list {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .banner-section {
        height: 450px;
    }

    .banner-content h1 {
        font-size: 36px;
    }

    .banner-content p {
        font-size: 16px;
    }

    .products-grid,
    .cases-grid,
    .news-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-content {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 32px;
    }

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

    .news-item {
        flex-direction: column;
    }

    .news-thumb {
        width: 100%;
        height: 200px;
    }

    .contact-form-wrapper {
        padding: 30px 20px;
    }

    .contact-form .form-row-2 {
        grid-template-columns: 1fr;
    }

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

    .article-nav {
        flex-direction: column;
        gap: 20px;
    }

    .nav-item.prev,
    .nav-item.next {
        text-align: left;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }

    .section {
        padding: 50px 0;
    }

    .banner-section {
        height: 350px;
    }

    .banner-content h1 {
        font-size: 28px;
    }

    .products-grid,
    .cases-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }

    .filter-tabs {
        gap: 10px;
    }

    .filter-tabs a {
        padding: 8px 15px;
        font-size: 14px;
    }
}