/* 内页专用样式 - 与首页风格一致 */

/* 页面Banner */
.page-banner {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    background-size: cover;
    background-position: center;
    text-align: center;
    padding-top: 80px;
}

.page-banner h1 {
    font-size: 42px;
    color: #ffffff;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-banner .breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
}

.page-banner .breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s;
}

.page-banner .breadcrumb .sep {
    color: rgba(255, 255, 255, 0.4);
}

.page-banner .breadcrumb .current {
    color: var(--primary-color);
}

/* 内容区域 */
.page-content {
    padding: 60px 0;
    background: #f8f9fa;
}

.content-wrapper {
    display: flex;
    gap: 30px;
}

/* 侧边栏 */
.sidebar {
    width: 280px;
    flex-shrink: 0;
}

.sidebar-menu,
.sidebar-contact {
    background: #ffffff;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.sidebar-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
}

.menu-list {
    list-style: none;
}

.menu-list li {
    margin-bottom: 5px;
}

.menu-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    color: #666;
    border-radius: 6px;
    transition: all 0.3s;
}

.menu-list a i {
    font-size: 12px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s;
}

.menu-list a.active,
.menu-list a:hover {
    background: linear-gradient(135deg, #ff0050, #ff4081);
    color: #ffffff;
}

.menu-list a.active i,
.menu-list a:hover i {
    opacity: 1;
    transform: translateX(0);
}

.contact-info .info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    color: #666;
    font-size: 14px;
}

.contact-info .info-item i {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 0, 80, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
}

/* 主内容区 */
.main-content {
    flex: 1;
    min-width: 0;
}

.content-header h2 {
    font-size: 28px;
    color: #333;
    padding-bottom: 20px;
    margin-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.content-body {
    background: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.article-content {
    line-height: 1.8;
    color: #555;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 15px 0;
}

.article-content p {
    margin-bottom: 15px;
}

.article-content h3, .article-content h4 {
    margin: 25px 0 15px;
    color: #333;
}

/* 图片画廊 */
.content-gallery {
    margin-top: 30px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.gallery-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s;
}

.gallery-item img:hover {
    transform: scale(1.05);
}

/* 视频 */
.content-video video {
    width: 100%;
    max-width: 800px;
    border-radius: 10px;
    margin-top: 20px;
}

/* 新闻列表 */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-item {
    display: flex;
    gap: 25px;
    background: #ffffff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.news-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.news-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ff0050, #ff4081);
    color: #ffffff;
    border-radius: 10px;
    flex-shrink: 0;
}

.news-date .day {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
}

.news-date .month {
    font-size: 12px;
    margin-top: 5px;
}

.news-body {
    flex: 1;
}

.news-body h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.news-body h3 a {
    color: #333;
    transition: color 0.3s;
}

.news-body h3 a:hover {
    color: var(--primary-color);
}

.news-desc {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    color: var(--primary-color);
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.read-more i {
    transition: transform 0.3s;
}

.read-more:hover i {
    transform: translateX(5px);
}

/* 文章详情 */
.article-detail {
    background: #ffffff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.article-header h1 {
    font-size: 28px;
    color: #333;
    margin-bottom: 15px;
}

.article-meta {
    display: flex;
    gap: 20px;
    color: #999;
    font-size: 14px;
    padding-bottom: 20px;
    margin-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.article-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-footer {
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid #eee;
}

.article-nav {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.article-nav .nav-prev,
.article-nav .nav-next {
    max-width: 45%;
}

.article-nav .label {
    display: block;
    color: #999;
    font-size: 12px;
    margin-bottom: 5px;
}

.article-nav a {
    color: #333;
    font-size: 14px;
    transition: color 0.3s;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-nav a:hover {
    color: var(--primary-color);
}

.article-nav .none {
    color: #999;
    font-size: 14px;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 25px;
    background: #f5f5f5;
    color: #666;
    border-radius: 25px;
    transition: all 0.3s;
}

.btn-back:hover {
    background: var(--primary-color);
    color: #ffffff;
}

/* 产品列表 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.product-grid.small {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.product-card {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.product-image {
    display: block;
    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-card:hover .product-image img {
    transform: scale(1.1);
}

.product-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.view-btn {
    padding: 10px 20px;
    background: var(--primary-color);
    color: #ffffff;
    border-radius: 25px;
    font-size: 14px;
}

.product-info {
    padding: 20px;
}

.product-info h3,
.product-info h4 {
    font-size: 16px;
    margin-bottom: 10px;
}

.product-info h3 a,
.product-info h4 a {
    color: #333;
    transition: color 0.3s;
}

.product-info h3 a:hover,
.product-info h4 a:hover {
    color: var(--primary-color);
}

.product-actions {
    display: flex;
    gap: 10px;
}

.product-actions .btn-inquiry,
.product-actions .btn-detail {
    flex: 1;
    padding: 8px;
    text-align: center;
    font-size: 13px;
    border-radius: 5px;
    transition: all 0.3s;
}

.btn-inquiry {
    background: var(--primary-color);
    color: #ffffff;
}

.btn-detail {
    background: #f5f5f5;
    color: #666;
}

.btn-inquiry:hover {
    background: #d90047;
    color: #ffffff;
}

.btn-detail:hover {
    background: #333;
    color: #ffffff;
}

/* 产品详情 */
.product-detail-wrapper {
    flex-direction: column;
}

.product-showcase {
    display: flex;
    gap: 40px;
    background: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.product-gallery {
    width: 450px;
    flex-shrink: 0;
}

.main-image {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
}

.main-image img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.thumb-list {
    display: flex;
    gap: 10px;
}

.thumb-item {
    width: 70px;
    height: 70px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.thumb-item.active,
.thumb-item:hover {
    border-color: var(--primary-color);
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info-detail {
    flex: 1;
}

.product-info-detail h1 {
    font-size: 28px;
    color: #333;
    margin-bottom: 15px;
}

.product-desc {
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
}

.product-meta {
    margin-bottom: 25px;
}

.product-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #999;
    font-size: 14px;
    margin-bottom: 8px;
}

.product-btns {
    display: flex;
    gap: 15px;
}

.product-btns .btn-primary,
.product-btns .btn-secondary {
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.product-btns .btn-primary {
    background: linear-gradient(135deg, #ff0050, #ff4081);
    color: #ffffff;
}

.product-btns .btn-secondary {
    background: #f5f5f5;
    color: #666;
}

.product-btns .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 0, 80, 0.3);
}

.product-btns .btn-secondary:hover {
    background: #333;
    color: #ffffff;
}

/* 产品Tab */
.product-content-tabs {
    margin-top: 30px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.tabs-header {
    display: flex;
    border-bottom: 1px solid #eee;
}

.tab-item {
    padding: 18px 35px;
    font-size: 16px;
    color: #666;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.tab-item.active,
.tab-item:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tabs-content {
    padding: 30px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* 相关产品 */
.related-products {
    margin-top: 40px;
}

.related-products .section-title {
    font-size: 22px;
    color: #333;
    margin-bottom: 25px;
    padding-left: 15px;
    border-left: 4px solid var(--primary-color);
}

/* 联系我们 */
.contact-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 50px;
}

.contact-card {
    background: #ffffff;
    padding: 30px 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.card-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ff0050, #ff4081);
    color: #ffffff;
    font-size: 28px;
    border-radius: 50%;
}

.contact-card h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
}

.contact-card p {
    color: #666;
    font-size: 14px;
}

.contact-card p.sub {
    color: #999;
    font-size: 12px;
    margin-top: 5px;
}

.contact-card a {
    color: #666;
    transition: color 0.3s;
}

.contact-card a:hover {
    color: var(--primary-color);
}

/* 表单 */
.contact-form-section,
.gbook-form-section {
    background: #ffffff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
}

.section-title {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
}

.section-desc {
    color: #666;
    margin-bottom: 30px;
}

.contact-form,
.gbook-form {
    max-width: 800px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
}

.form-group.full {
    width: 100%;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
}

.form-group label i {
    color: var(--primary-color);
    margin-right: 5px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 0, 80, 0.1);
}

.form-submit {
    margin-top: 25px;
}

.form-submit .btn-primary {
    padding: 14px 40px;
    background: linear-gradient(135deg, #ff0050, #ff4081);
    color: #ffffff;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}

.form-submit .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 0, 80, 0.3);
}

/* 地图 */
.contact-map {
    background: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.map-container {
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* 下载中心 */
.download-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.download-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #ffffff;
    padding: 20px 25px;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.download-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.download-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 0, 80, 0.1);
    color: var(--primary-color);
    font-size: 22px;
    border-radius: 10px;
}

.download-info {
    flex: 1;
}

.download-info h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
}

.download-meta {
    display: flex;
    gap: 20px;
    color: #999;
    font-size: 13px;
}

.download-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.download-desc {
    color: #666;
    font-size: 14px;
    margin-top: 8px;
}

.btn-download {
    padding: 10px 25px;
    background: linear-gradient(135deg, #ff0050, #ff4081);
    color: #ffffff;
    border-radius: 25px;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 0, 80, 0.3);
    color: #ffffff;
}

/* 留言板 */
.gbook-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.gbook-list-section {
    background: #ffffff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.gbook-list {
    margin-top: 25px;
}

.gbook-item {
    display: flex;
    gap: 20px;
    padding: 25px 0;
    border-bottom: 1px solid #eee;
}

.gbook-item:last-child {
    border-bottom: none;
}

.gbook-avatar {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    color: #ccc;
    font-size: 35px;
    border-radius: 50%;
    flex-shrink: 0;
}

.gbook-content {
    flex: 1;
}

.gbook-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.gbook-name {
    font-weight: bold;
    color: #333;
}

.gbook-time {
    color: #999;
    font-size: 13px;
}

.gbook-title {
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
}

.gbook-text {
    color: #666;
    line-height: 1.6;
}

.gbook-reply {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
}

.gbook-reply .reply-label {
    color: var(--primary-color);
    font-size: 13px;
    margin-bottom: 8px;
}

.gbook-reply p {
    color: #666;
    font-size: 14px;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.page-link {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    color: #666;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-link:hover {
    background: var(--primary-color);
    color: #ffffff;
}

.page-link.current {
    background: var(--primary-color);
    color: #ffffff;
}

.page-link.page-arrow {
    padding: 0 15px;
}

/* 响应式 */
@media (max-width: 992px) {
    .content-wrapper {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        display: flex;
        gap: 20px;
        overflow-x: auto;
    }
    
    .sidebar-menu,
    .sidebar-contact {
        min-width: 250px;
        margin-bottom: 0;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .product-showcase {
        flex-direction: column;
    }
    
    .product-gallery {
        width: 100%;
    }
    
    .contact-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .page-banner {
        min-height: 200px;
    }
    
    .page-banner h1 {
        font-size: 28px;
    }
    
    .news-item {
        flex-direction: column;
        gap: 15px;
    }
    
    .news-date {
        width: 100%;
        height: auto;
        flex-direction: row;
        gap: 10px;
        padding: 10px 15px;
    }
    
    .product-grid,
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .product-grid.small {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-cards {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .download-item {
        flex-direction: column;
        text-align: center;
    }
    
    .download-meta {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .article-nav {
        flex-direction: column;
        gap: 15px;
    }
    
    .article-nav .nav-prev,
    .article-nav .nav-next {
        max-width: 100%;
    }
}
