/*==================================================
 * ASP-CMS 默认模板样式 style.css
 *================================================== */

/* === 通用区块 === */
.section { padding:40px 0; }
.section-about { background:#f9f9f9; }
.section-news { background:#f9f9f9; }
.section-title { text-align:center; margin-bottom:30px; }
.section-title h2 { font-size:28px; color:#333; margin-bottom:5px; }
.section-title span { font-size:14px; color:#999; text-transform:uppercase; }
.section-title::after { content:''; display:block; width:50px; height:3px; background:#ff0000; margin:10px auto 0; }

/* === 关于我们 === */
.about-content { text-align:center; max-width:800px; margin:0 auto; }
.about-content p { font-size:16px; color:#666; line-height:2; margin-bottom:20px; }

/* === 产品网格 === */
.product-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }
.product-card { background:#fff; border:1px solid #eee; border-radius:8px; overflow:hidden; transition:all 0.3s; }
.product-card:hover { box-shadow:0 4px 20px rgba(0,0,0,0.1); transform:translateY(-3px); }
.product-img { width:100%; height:220px; overflow:hidden; }
.product-img img { width:100%; height:100%; object-fit:cover; transition:transform 0.5s; }
.product-card:hover .product-img img { transform:scale(1.1); }
.product-info { padding:12px; text-align:center; }
.product-info h3 { font-size:15px; margin-bottom:5px; }
.product-model { color:#999; font-size:12px; }

/* === 产品列表 === */
.product-list { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin-bottom:20px; }

/* === 新闻 === */
.news-grid { display:grid; grid-template-columns:1fr 1fr; gap:30px; }
.news-col { background:#fff; padding:25px; border-radius:8px; }
.news-cat-title { font-size:18px; margin-bottom:15px; padding-bottom:10px; border-bottom:2px solid #ff0000; color:#ff0000; }
.news-list li { padding:10px 0; border-bottom:1px dashed #eee; display:flex; align-items:center; gap:10px; }
.news-list li:last-child { border-bottom:none; }
.news-date { color:#999; font-size:13px; white-space:nowrap; }
.news-list li a { flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

/* === 按钮 === */
.btn-more { display:inline-block; padding:8px 24px; border:1px solid #ff0000; color:#ff0000; border-radius:4px; transition:all 0.3s; }
.btn-more:hover { background:#ff0000; color:#fff; }

/* === 页面横幅 === */
.page-banner { background:linear-gradient(135deg,#ff0000,#36cfc9); color:#fff; padding:40px 0; }
.page-banner h1 { font-size:28px; margin-bottom:8px; }
.breadcrumb-nav { font-size:13px; opacity:0.9; }
.breadcrumb-nav a { color:#fff; }
.breadcrumb-nav a:hover { text-decoration:underline; }

/* === 内容布局 === */
.content-layout { display:grid; grid-template-columns:1fr 280px; gap:30px; padding:30px 0; }
.content-main { min-width:0; }
.content-sidebar { width:270px;}

/* === 文章列表 === */
.article-item { display:flex; gap:20px; padding:20px 0; border-bottom:1px solid #eee; }
.article-thumb { flex-shrink:0; width:200px; height:130px; overflow:hidden; border-radius:6px; }
.article-thumb img { width:100%; height:100%; object-fit:cover; }
.article-thumb a:empty, .article-thumb img[style*="none"] { display:none; }
.article-body { flex:1; }
.article-body h3 { font-size:18px; margin-bottom:8px; }
.article-body h3 a { color:#333; }
.article-body h3 a:hover { color:#ff0000; }
.article-desc { color:#666; font-size:13px; line-height:1.8; margin-bottom:8px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.article-meta { font-size:12px; color:#999; }
.article-meta span { margin-right:15px; }

/* === 文章详情 === */
.article-detail { background:#fff; padding:30px; border-radius:8px; }
.article-title { font-size:24px; text-align:center; margin-bottom:15px; }
.article-meta-bar { text-align:center; color:#999; font-size:13px; padding:10px 0; border-top:1px solid #eee; border-bottom:1px solid #eee; margin-bottom:20px; }
.article-meta-bar span { margin:0 10px; }
.article-content { line-height:2; font-size:15px; }
.article-content p { margin-bottom:15px; }
.article-content img { max-width:100%; height:auto; border-radius:4px; margin:10px 0; }
.article-content h2, .article-content h3 { margin:20px 0 10px; }
.article-content ul, .article-content ol { padding-left:30px; margin-bottom:15px; }
.article-content blockquote { border-left:4px solid #ff0000; padding:10px 15px; margin:15px 0; background:#f9f9f9; color:#666; }
.article-footer { margin-top:30px; padding-top:20px; border-top:1px solid #eee; text-align:center; }
.btn-back { display:inline-block; padding:8px 20px; border:1px solid #ddd; border-radius:4px; color:#666; }
.btn-back:hover { border-color:#ff0000; color:#ff0000; }

/* === 产品详情 === */
.product-detail { display:grid; grid-template-columns:400px 1fr; gap:30px; background:#fff; padding:30px; border-radius:8px; margin-bottom:20px; }
.product-gallery { }
.gallery-main { width:400px; height:400px; border:1px solid #eee; border-radius:8px; overflow:hidden; }
.gallery-main img { width:100%; height:100%; object-fit:cover; }
.gallery-thumbs { display:flex; gap:10px; margin-top:10px; overflow-x:auto; }
.thumb-item { width:70px; height:70px; border:2px solid #eee; border-radius:4px; overflow:hidden; cursor:pointer; flex-shrink:0; }
.thumb-item.active { border-color:#ff0000; }
.thumb-item img { width:100%; height:100%; object-fit:cover; }
.product-info-box { }
.product-title { font-size:22px; margin-bottom:8px; }
.product-subtitle { color:#999; font-size:14px; margin-bottom:20px; }
.product-attrs { background:#f9f9f9; padding:15px 20px; border-radius:6px; margin-bottom:20px; }
.attr-row { padding:8px 0; border-bottom:1px dashed #ddd; }
.attr-row:last-child { border-bottom:none; }
.attr-label { color:#999; width:100px; display:inline-block; }
.attr-value { color:#333; }
.attr-value.price { color:#ff6600; font-size:20px; font-weight:bold; }
.product-contact { }
.product-contact p { font-size:16px; margin-bottom:10px; }
.product-contact strong { color:#ff6600; font-size:20px; }
.btn-inquiry { display:inline-block; padding:10px 30px; background:#ff6600; color:#fff; border-radius:4px; font-size:16px; }
.btn-inquiry:hover { background:#ff8533; color:#fff; }

.product-content-box { background:#fff; padding:30px; border-radius:8px; }
.tab-header { border-bottom:2px solid #ff0000; margin-bottom:20px; }
.tab-item { display:inline-block; padding:10px 25px; background:#f0f0f0; cursor:pointer; }
.tab-item.active { background:#ff0000; color:#fff; }

/* === 单页 === */
.page-content { background:#fff; padding:30px; border-radius:8px; }

/* === 公司介绍单页 === */
.company-layout { display:grid; grid-template-columns:1fr 280px; gap:30px; padding:30px 0; }
.company-main { min-width:0; }
.company-content { background:#fff; padding:40px; border-radius:8px; box-shadow:0 1px 4px rgba(0,0,0,0.05); }
.company-article { line-height:2; font-size:15px; }
.company-article p { margin-bottom:15px; }
.company-article img { max-width:100%; height:auto; border-radius:4px; margin:10px 0; }
.company-article h2, .company-article h3 { margin:25px 0 12px; color:#333; }
.company-sidebar { width:280px; }

/* === 联系我们单页 === */
.contact-layout { display:grid; grid-template-columns:1fr 280px; gap:30px; padding:30px 0; }
.contact-main { min-width:0; }
.contact-content { background:#fff; padding:30px; border-radius:8px; margin-bottom:20px; box-shadow:0 1px 4px rgba(0,0,0,0.05); }
.contact-article { line-height:2; font-size:15px; }
.contact-article p { margin-bottom:15px; }
.contact-article img { max-width:100%; height:auto; border-radius:4px; margin:10px 0; }
.contact-cards { display:grid; grid-template-columns:repeat(2,1fr); gap:20px; }
.contact-card { display:flex; align-items:flex-start; gap:15px; background:#fff; padding:25px; border-radius:8px; box-shadow:0 1px 4px rgba(0,0,0,0.05); transition:all 0.3s; }
.contact-card:hover { box-shadow:0 4px 20px rgba(0,0,0,0.1); transform:translateY(-2px); }
.contact-card-icon { flex-shrink:0; width:50px; height:50px; background:linear-gradient(135deg,#ff0000,#36cfc9); border-radius:50%; display:flex; align-items:center; justify-content:center; color:#fff; font-size:22px; }
.contact-card-body h4 { font-size:15px; color:#999; margin-bottom:5px; font-weight:normal; }
.contact-card-body p { font-size:16px; color:#333; font-weight:bold; word-break:break-all; }
.contact-sidebar { width:280px; }

/* === 侧边栏 === */
.sidebar-box { background:#fff; padding:20px; border-radius:8px; margin-bottom:20px; box-shadow:0 1px 4px rgba(0,0,0,0.05); }
.sidebar-title { font-size:16px; margin-bottom:15px; padding-bottom:10px; border-bottom:2px solid #ff0000; color:#000; }
.sidebar-nav li { padding:8px 0; border-bottom:1px dashed #eee; }
.sidebar-nav li:last-child { border-bottom:none; }
.sidebar-nav a { display:block; padding:5px 10px; border-radius:4px; transition:all 0.3s; }
.sidebar-nav a:hover, .sidebar-nav a.active { background:#fff; color:#ff0000; padding-left:15px; }
.sidebar-list li { padding:8px 0; border-bottom:1px dashed #eee; }
.sidebar-list li:last-child { border-bottom:none; }
.sidebar-list a { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.sidebar-product li { padding:10px 0; border-bottom:1px dashed #eee; }
.sidebar-product li:last-child { border-bottom:none; }
.sidebar-product a { display:flex; gap:10px; align-items:center; }
.sidebar-product img { width:60px; height:60px; object-fit:cover; border-radius:4px; flex-shrink:0; }
.sidebar-product span { flex:1; font-size:13px; overflow:hidden; text-overflow:ellipsis; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
.sidebar-contact p { padding:5px 0; color:#666; font-size:13px; }

/* === 分页 === */
.pagination { display:flex; gap:5px; align-items:center; justify-content:center; padding:20px 0; flex-wrap:wrap; }
.pagination a, .pagination span { padding:6px 12px; border:1px solid #ddd; border-radius:4px; font-size:13px; color:#666; }
.pagination a:hover { border-color:#ff0000; color:#ff0000; }
.pagination .current { background:#ff0000; color:#fff; border-color:#ff0000; }
.pagination .disabled { color:#ccc; cursor:default; }
.pagination .info { border:none; color:#999; }

/* === 底部 === */
#footer { background:#001529; color:rgba(255,255,255,0.7); }
.footer-main { padding:40px 0; }
.footer-main .container { display:grid; grid-template-columns:2fr 1fr 1fr; gap:40px; }
.footer-col h3 { color:#fff; font-size:16px; margin-bottom:15px; }
.footer-col p { font-size:13px; line-height:2; }
.footer-link a { color:rgba(255,255,255,0.7); display:block; padding:3px 0; font-size:13px; }
.footer-link a:hover { color:#fff; }
.footer-bottom { border-top:1px solid rgba(255,255,255,0.1); padding:15px 0; text-align:center; font-size:12px; }

/* === 响应式 === */
@media (max-width:992px) {
    .product-grid { grid-template-columns:repeat(2,1fr); }
    .news-grid { grid-template-columns:1fr; }
    .content-layout { grid-template-columns:1fr; }
    .content-sidebar { width:100%; }
    .product-detail { grid-template-columns:1fr; }
    .gallery-main { width:100%; height:300px; }
    .footer-main .container { grid-template-columns:1fr; }
    .company-layout { grid-template-columns:1fr; }
    .company-sidebar { width:100%; }
    .contact-layout { grid-template-columns:1fr; }
    .contact-sidebar { width:100%; }
    .contact-cards { grid-template-columns:1fr; }
}
@media (max-width:768px) {
    .header-top .container { flex-direction:column; gap:10px; }
    .nav { flex-wrap:wrap; }
    .nav li { flex:1 0 33%; }
    .nav li a { padding:10px; font-size:14px; }
    .banner { height:200px; }
    .product-grid { grid-template-columns:1fr; }
    .product-list { grid-template-columns:1fr; }
    .article-item { flex-direction:column; }
    .article-thumb { width:100%; height:200px; }
    .section { padding:25px 0; }
    .section-title h2 { font-size:22px; }
}
