/* ============================================
   网络电脑公司官方网站 - PC端样式
   ============================================ */

/* 基础重置 */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --primary: #1a73e8;
    --primary-dark: #1557b0;
    --primary-light: #e8f0fe;
    --accent: #ff6b35;
    --dark: #1a1a2e;
    --dark-light: #2d2d44;
    --gray: #666;
    --gray-light: #999;
    --gray-bg: #f5f6fa;
    --border: #e0e0e0;
    --white: #fff;
    --success: #34a853;
    --warning: #fbbc04;
    --danger: #ea4335;
    --shadow: 0 2px 12px rgba(0,0,0,.08);
    --shadow-hover: 0 8px 24px rgba(0,0,0,.12);
    --radius: 8px;
    --transition: all .3s ease;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
    color: #333;
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* 顶部工具栏 */
.top-bar {
    background: var(--dark);
    color: rgba(255,255,255,.7);
    font-size: 13px;
    padding: 6px 0;
    line-height: 1.8;
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; }
.top-bar-right span { margin-left: 20px; }
.top-bar i { margin-right: 4px; }

/* 头部 */
.header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 1px;
}

.main-nav ul { display: flex; gap: 4px; }
.main-nav a {
    display: block;
    padding: 8px 16px;
    color: #333;
    font-size: 15px;
    font-weight: 500;
    border-radius: 4px;
    transition: var(--transition);
}
.main-nav a:hover, .main-nav .active a {
    color: var(--primary);
    background: var(--primary-light);
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}
.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: #333;
    border-radius: 2px;
    transition: var(--transition);
}
.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(5px, -5px); }

/* 移动端导航 */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,.95);
    z-index: 999;
    padding-top: 80px;
}
.mobile-nav.active { display: block; }
.mobile-nav ul { padding: 20px; }
.mobile-nav a {
    display: block;
    padding: 14px 20px;
    color: var(--white);
    font-size: 16px;
    border-bottom: 1px solid rgba(255,255,255,.1);
    transition: var(--transition);
}
.mobile-nav a:hover { color: var(--primary); background: rgba(26,115,232,.1); }

/* Banner */
.banner-section {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.banner-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 5 L55 30 L30 55 L5 30Z' fill='none' stroke='rgba(255,255,255,.03)' stroke-width='1'/%3E%3C/svg%3E") repeat;
}
.banner-section h1 { font-size: 42px; font-weight: 700; margin-bottom: 16px; position: relative; }
.banner-section p { font-size: 18px; opacity: .85; max-width: 700px; margin: 0 auto 32px; position: relative; }
.banner-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; position: relative; }

.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    border: none;
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); color: var(--white); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.4); }
.btn-outline:hover { border-color: var(--white); color: var(--white); }
.btn-accent { background: var(--accent); color: var(--white); }
.btn-accent:hover { background: #e55a2b; color: var(--white); }
.btn-sm { padding: 6px 16px; font-size: 13px; }
.btn-block { display: block; width: 100%; }

/* 区块标题 */
.section-title {
    text-align: center;
    margin-bottom: 48px;
}
.section-title h2 {
    font-size: 32px;
    color: var(--dark);
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
}
.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}
.section-title p { color: var(--gray); font-size: 15px; }

/* 区块 */
.section { padding: 80px 0; }
.section-gray { background: var(--gray-bg); }

/* 特性卡片 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.feature-card {
    background: var(--white);
    padding: 32px 24px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border);
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}
.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--primary);
}
.feature-card h3 { font-size: 17px; margin-bottom: 8px; color: var(--dark); }
.feature-card p { color: var(--gray); font-size: 14px; line-height: 1.7; }

/* 产品卡片 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.product-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border);
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}
.product-thumb {
    height: 200px;
    overflow: hidden;
    background: var(--gray-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-thumb .no-image {
    font-size: 48px;
    color: var(--gray-light);
}
.product-info { padding: 16px; }
.product-info h3 { font-size: 16px; margin-bottom: 8px; }
.product-info h3 a { color: var(--dark); }
.product-info h3 a:hover { color: var(--primary); }
.product-info .desc { color: var(--gray); font-size: 13px; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-info .price { color: var(--accent); font-size: 18px; font-weight: 700; }
.product-info .price:empty { display: none; }

/* 新闻列表 */
.news-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
}
.news-main .news-item {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}
.news-main .news-item:first-child { padding-top: 0; }
.news-thumb {
    width: 200px;
    height: 140px;
    border-radius: var(--radius);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--gray-bg);
}
.news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-content { flex: 1; }
.news-content h3 { font-size: 18px; margin-bottom: 8px; }
.news-content h3 a { color: var(--dark); }
.news-content h3 a:hover { color: var(--primary); }
.news-content .desc { color: var(--gray); font-size: 14px; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-meta { font-size: 13px; color: var(--gray-light); display: flex; gap: 16px; }

.news-sidebar .sidebar-title {
    font-size: 18px;
    color: var(--dark);
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
    margin-bottom: 16px;
}
.news-sidebar .hot-item {
    padding: 12px 0;
    border-bottom: 1px dashed var(--border);
}
.news-sidebar .hot-item a { color: #555; font-size: 14px; display: block; }
.news-sidebar .hot-item a:hover { color: var(--primary); }
.news-sidebar .hot-item .date { color: var(--gray-light); font-size: 12px; margin-top: 4px; }

/* 关于我们 */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}
.about-image {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-hover);
}
.about-content h3 { font-size: 24px; color: var(--dark); margin-bottom: 16px; }
.about-content p { color: var(--gray); margin-bottom: 16px; line-height: 1.8; }
.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.stat-item { text-align: center; padding: 16px; background: var(--primary-light); border-radius: var(--radius); }
.stat-num { font-size: 28px; font-weight: 700; color: var(--primary); }
.stat-label { font-size: 13px; color: var(--gray); margin-top: 4px; }

/* 面包屑 */
.breadcrumb {
    background: var(--gray-bg);
    padding: 12px 0;
    font-size: 14px;
    color: var(--gray);
}
.breadcrumb a { color: var(--gray); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { margin: 0 8px; }
.breadcrumb .current { color: #333; }

/* 页面内容 */
.page-content {
    padding: 48px 0;
    min-height: 400px;
}
.page-content h2 { font-size: 24px; margin-bottom: 16px; color: var(--dark); }
.page-content h3 { font-size: 20px; margin-bottom: 12px; color: var(--dark); }
.page-content p { margin-bottom: 16px; line-height: 1.8; color: #555; }
.page-content ul, .page-content ol { margin-bottom: 16px; padding-left: 20px; }
.page-content li { margin-bottom: 8px; line-height: 1.8; }
.page-content img { max-width: 100%; border-radius: var(--radius); margin: 16px 0; }

/* 文章详情 */
.article-detail { max-width: 800px; margin: 0 auto; }
.article-header { margin-bottom: 32px; }
.article-header h1 { font-size: 28px; color: var(--dark); margin-bottom: 16px; line-height: 1.4; }
.article-meta { font-size: 14px; color: var(--gray-light); display: flex; gap: 20px; flex-wrap: wrap; }
.article-body { font-size: 16px; line-height: 1.9; color: #444; }
.article-body h2 { font-size: 22px; margin: 32px 0 16px; }
.article-body h3 { font-size: 18px; margin: 24px 0 12px; }
.article-body p { margin-bottom: 20px; }
.article-body img { border-radius: var(--radius); margin: 16px auto; }
.article-body blockquote {
    border-left: 4px solid var(--primary);
    padding: 12px 20px;
    background: var(--gray-bg);
    margin: 20px 0;
    color: var(--gray);
}
.article-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}
.article-nav a { font-size: 14px; color: var(--gray); }
.article-nav a:hover { color: var(--primary); }

/* 新闻列表页 */
.news-list-page .news-list-item {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}
.news-list-page .news-list-item:first-child { padding-top: 0; }

/* 产品列表页 */
.products-list { padding: 48px 0; }
.products-filter { margin-bottom: 32px; }
.products-filter a {
    display: inline-block;
    padding: 8px 20px;
    margin-right: 8px;
    border-radius: 20px;
    background: var(--gray-bg);
    color: var(--gray);
    font-size: 14px;
    transition: var(--transition);
}
.products-filter a.active, .products-filter a:hover {
    background: var(--primary);
    color: var(--white);
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 40px;
}
.pagination a, .pagination span {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 14px;
    border: 1px solid var(--border);
    color: var(--gray);
    transition: var(--transition);
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .current { background: var(--primary); color: var(--white); border-color: var(--primary); }

/* 底部 */
.footer {
    background: var(--dark);
    color: rgba(255,255,255,.7);
    padding: 60px 0 0;
    margin-top: 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-col h4 {
    color: var(--white);
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}
.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary);
}
.footer-about p { font-size: 14px; line-height: 1.8; margin-bottom: 16px; }
.footer-contact p { font-size: 13px; margin-bottom: 6px; }
.footer-nav ul li, .footer-news ul li { margin-bottom: 10px; }
.footer-nav a, .footer-news a { color: rgba(255,255,255,.6); font-size: 14px; }
.footer-nav a:hover, .footer-news a:hover { color: var(--white); }

.footer-links { padding: 24px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-links h4 { color: var(--white); font-size: 16px; margin-bottom: 12px; }
.links-list { display: flex; gap: 16px; flex-wrap: wrap; }
.links-list a { color: rgba(255,255,255,.5); font-size: 13px; }
.links-list a:hover { color: var(--primary); }

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    font-size: 13px;
    color: rgba(255,255,255,.4);
}
.footer-bottom p { margin-bottom: 4px; }

/* 返回顶部 */
.back-to-top {
    position: fixed;
    bottom: 80px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(26,115,232,.3);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 99;
}
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--primary-dark); color: var(--white); transform: translateY(-2px); }

/* 在线客服 */
.online-service {
    position: fixed;
    right: 30px;
    bottom: 140px;
    z-index: 99;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.service-item {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--white);
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
    transition: var(--transition);
}
.service-item:hover { transform: scale(1.1); color: var(--white); }
.service-item.qq { background: #12b7f5; }
.service-item.tel { background: var(--success); }
.service-item.top { background: var(--accent); }

/* 解决方案页 */
.solution-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.solution-card {
    background: var(--white);
    padding: 32px 24px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border);
}
.solution-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.solution-card .icon { font-size: 40px; margin-bottom: 16px; }
.solution-card h3 { font-size: 18px; margin-bottom: 12px; color: var(--dark); }
.solution-card p { color: var(--gray); font-size: 14px; line-height: 1.7; }

/* 搜索 */
.search-box { margin-bottom: 24px; }
.search-form { display: flex; gap: 8px; }
.search-form input {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    outline: none;
    transition: var(--transition);
}
.search-form input:focus { border-color: var(--primary); }
.search-form button {
    padding: 10px 24px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 14px;
}

/* 404 */
.error-page { text-align: center; padding: 100px 0; }
.error-page h1 { font-size: 80px; color: var(--primary); margin-bottom: 16px; }
.error-page p { color: var(--gray); font-size: 18px; margin-bottom: 32px; }

/* 响应式视频/iframe */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin: 20px 0;
    border-radius: var(--radius);
}
.video-wrapper iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}

/* 服务项目页（page.php?slug=services） */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.service-item {
    background: var(--white);
    padding: 32px 24px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border);
}
.service-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.service-item h3, .service-item h4 { font-size: 18px; margin-bottom: 12px; color: var(--dark); }
.service-item p { color: var(--gray); font-size: 14px; line-height: 1.7; }
@media (max-width: 768px) {
    .services-grid { grid-template-columns: 1fr; }
}
