* { margin:0; padding:0; box-sizing:border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif; color:#333; line-height:1.6; background:#fff; }
a { text-decoration:none; color:inherit; }
img { max-width:100%; height:auto; }
.container { max-width:1200px; margin:0 auto; padding:0 20px; }
.btn { display:inline-block; padding:10px 24px; background:#1a73e8; color:#fff; border-radius:4px; border:none; cursor:pointer; font-size:14px; transition:all .3s; }
.btn:hover { background:#1557b0; }
.btn-outline { background:transparent; border:1px solid #1a73e8; color:#1a73e8; }
.btn-outline:hover { background:#1a73e8; color:#fff; }

/* Header */
.header { background:#fff; box-shadow:0 2px 8px rgba(0,0,0,.08); position:sticky; top:0; z-index:1000; }
.header-inner { display:flex; align-items:center; justify-content:space-between; height:70px; }
.logo { display:flex; align-items:center; gap:10px; font-size:20px; font-weight:700; color:#1a73e8; }
.logo img { height:40px; }
.nav { display:flex; gap:30px; }
.nav a { font-size:15px; color:#555; padding:5px 0; border-bottom:2px solid transparent; transition:all .3s; }
.nav a:hover, .nav a.active { color:#1a73e8; border-bottom-color:#1a73e8; }
.lang-switcher { position:relative; }
.lang-switcher select { padding:6px 12px; border:1px solid #ddd; border-radius:4px; font-size:14px; cursor:pointer; }

/* Hero */
.hero { background:linear-gradient(135deg,#1a73e8 0%,#0d47a1 100%); color:#fff; padding:80px 0; text-align:center; }
.hero h1 { font-size:42px; margin-bottom:20px; }
.hero p { font-size:18px; opacity:.9; margin-bottom:30px; max-width:700px; margin-left:auto; margin-right:auto; }
.hero .btn { background:#fff; color:#1a73e8; margin:0 10px; }
.hero .btn:hover { background:#f0f0f0; }
.hero .btn-outline { background:transparent !important; color:#fff !important; border-color:#fff !important; }
.hero .btn-outline:hover { background:rgba(255,255,255,0.15) !important; color:#fff !important; }

/* Section */
.section { padding:60px 0; }
.section-title { text-align:center; margin-bottom:40px; }
.section-title h2 { font-size:32px; color:#222; margin-bottom:10px; }
.section-title p { color:#888; font-size:16px; }
.section-gray { background:#f8f9fa; }

/* Product Grid */
.product-grid { gap:24px; display:grid; grid-template-columns:repeat(4,1fr); gap:24px; }
.product-card { background:#fff; border-radius:8px; overflow:hidden; box-shadow:0 2px 12px rgba(0,0,0,.06); transition:all .3s; }
.product-card:hover { transform:translateY(-5px); box-shadow:0 8px 24px rgba(0,0,0,.12); }
.product-card .img { height:120px; background:#f0f0f0; display:flex; align-items:center; justify-content:center; overflow:hidden; }
.product-card .img img { width:100%; height:100%; object-fit:cover; }
.product-card .body { padding:20px; padding:16px; }
.product-card h3 { font-size:16px; margin-bottom:8px; color:#222; }
.product-card p { font-size:13px; color:#888; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.product-card .more { display:inline-block; margin-top:10px; color:#1a73e8; font-size:13px; }

/* Article/Card Grid */
.card-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.card { background:#fff; border-radius:8px; overflow:hidden; box-shadow:0 2px 12px rgba(0,0,0,.06); }
.card .img { height:160px; background:#f0f0f0; }
.card .body { padding:20px; }
.card .date { font-size:12px; color:#aaa; margin-bottom:8px; }
.card h3 { font-size:17px; margin-bottom:10px; color:#222; }
.card p { font-size:14px; color:#666; }

/* Detail Page */
.detail-hero { background:#f8f9fa; padding:40px 0; }
.detail-hero h1 { font-size:28px; color:#222; margin-bottom:10px; }
.detail-hero .meta { color:#888; font-size:14px; }
.detail-content { padding:40px 0; }
.detail-content .content { font-size:16px; line-height:1.8; color:#444; }
.detail-content .content h2 { font-size:22px; margin:30px 0 15px; color:#222; }
.detail-content .content h3 { font-size:18px; margin:20px 0 10px; color:#333; }
.detail-content .content ul, .detail-content .content ol { margin:15px 0; padding-left:25px; }
.detail-content .content li { margin:8px 0; }
.detail-content .content table { width:100%; border-collapse:collapse; margin:20px 0; }
.detail-content .content th, .detail-content .content td { border:1px solid #ddd; padding:10px; text-align:left; }
.detail-content .content th { background:#f5f5f5; }
.spec-table { width:100%; border-collapse:collapse; margin:20px 0; }
.spec-table th, .spec-table td { border:1px solid #e0e0e0; padding:12px 15px; text-align:left; }
.spec-table th { background:#f5f7fa; width:150px; font-weight:600; color:#555; }
.bom-table { width:100%; border-collapse:collapse; margin:20px 0; }
.bom-table th, .bom-table td { border:1px solid #e0e0e0; padding:10px; text-align:left; font-size:14px; }
.bom-table th { background:#f5f7fa; }

/* Sidebar */
.sidebar-layout { display:grid; grid-template-columns:250px 1fr; gap:30px; }
.sidebar { background:#fff; border-radius:8px; padding:20px; box-shadow:0 2px 8px rgba(0,0,0,.05); height:fit-content; }
.sidebar h3 { font-size:16px; margin-bottom:15px; color:#222; padding-bottom:10px; border-bottom:1px solid #eee; }
.sidebar ul { list-style:none; }
.sidebar li { margin:8px 0; }
.sidebar a { display:block; padding:8px 12px; border-radius:4px; color:#555; font-size:14px; transition:all .2s; }
.sidebar a:hover, .sidebar a.active { background:#e8f0fe; color:#1a73e8; }

/* Contact */
.contact-grid { display:grid; grid-template-columns:1fr 1fr; gap:40px; }
.contact-info h3 { font-size:20px; margin-bottom:20px; }
.contact-info .item { display:flex; gap:15px; margin-bottom:20px; }
.contact-info .icon { width:50px; height:50px; background:#e8f0fe; border-radius:50%; display:flex; align-items:center; justify-content:center; color:#1a73e8; font-size:20px; flex-shrink:0; }
.contact-info .text h4 { font-size:16px; margin-bottom:5px; }
.contact-info .text p { color:#666; font-size:14px; }
.contact-form .form-group { margin-bottom:20px; }
.contact-form label { display:block; margin-bottom:8px; font-weight:500; }
.contact-form input, .contact-form textarea { width:100%; padding:12px; border:1px solid #ddd; border-radius:4px; font-size:14px; }
.contact-form textarea { min-height:120px; resize:vertical; }

/* Footer */
.footer { background:#1a1a2e; color:#aaa; padding:50px 0 20px; }
.footer-grid { display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:40px; margin-bottom:30px; }
.footer h4 { color:#fff; font-size:16px; margin-bottom:15px; }
.footer p { font-size:14px; line-height:1.8; }
.footer ul { list-style:none; }
.footer li { margin:8px 0; }
.footer a { color:#aaa; font-size:14px; transition:color .3s; }
.footer a:hover { color:#fff; }
.footer-bottom { border-top:1px solid #333; padding-top:20px; text-align:center; font-size:13px; }

/* Admin */
.admin-layout { display:flex; min-height:100vh; }
.admin-sidebar { width:220px; background:#1a1a2e; color:#fff; padding:20px 0; }
.admin-sidebar .logo { padding:0 20px 20px; font-size:18px; font-weight:700; border-bottom:1px solid #333; }
.admin-sidebar ul { list-style:none; margin-top:20px; }
.admin-sidebar li a { display:block; padding:12px 20px; color:#ccc; font-size:14px; transition:all .2s; }
.admin-sidebar li a:hover, .admin-sidebar li a.active { background:#1a73e8; color:#fff; }
.admin-main { flex:1; background:#f5f5f5; padding:20px; }
.admin-header { background:#fff; padding:15px 20px; border-radius:8px; margin-bottom:20px; display:flex; justify-content:space-between; align-items:center; }
.admin-card { background:#fff; border-radius:8px; padding:20px; margin-bottom:20px; }
.admin-card h3 { margin-bottom:15px; font-size:18px; }
.admin-table { width:100%; border-collapse:collapse; }
.admin-table th, .admin-table td { padding:12px; text-align:left; border-bottom:1px solid #eee; font-size:14px; }
.admin-table th { background:#f8f9fa; font-weight:600; }
.admin-table .actions a { margin-right:10px; color:#1a73e8; }
.admin-table .actions a.delete { color:#e53935; }
.admin-form .form-group { margin-bottom:15px; }
.admin-form label { display:block; margin-bottom:5px; font-weight:500; font-size:14px; }
.admin-form input, .admin-form select, .admin-form textarea { width:100%; padding:10px; border:1px solid #ddd; border-radius:4px; font-size:14px; }
.admin-form textarea { min-height:100px; }
.stats-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:20px; margin-bottom:20px; }
.stat-card { background:#fff; border-radius:8px; padding:20px; text-align:center; }
.stat-card .num { font-size:32px; font-weight:700; color:#1a73e8; }
.stat-card .label { color:#888; font-size:14px; margin-top:5px; }

/* Responsive */
@media (max-width: 1024px) {
    .product-grid { gap:24px; grid-template-columns:repeat(3,1fr); }
    .card-grid { grid-template-columns:repeat(2,1fr); }
    .footer-grid { grid-template-columns:repeat(2,1fr); }
}
@media (max-width: 768px) {
    .nav { display:none; }
    .hero h1 { font-size:28px; }
    .hero p { font-size:16px; }
    .product-grid { gap:24px; grid-template-columns:repeat(2,1fr); }
    .card-grid { grid-template-columns:1fr; }
    .contact-grid { grid-template-columns:1fr; }
    .sidebar-layout { grid-template-columns:1fr; }
    .footer-grid { grid-template-columns:1fr; }
    .stats-grid { grid-template-columns:repeat(2,1fr); }
    .section { padding:40px 0; }
}
@media (max-width: 480px) {
    .product-grid { gap:24px; grid-template-columns:1fr; }
    .hero { padding:50px 0; }
    .hero h1 { font-size:24px; }
}
[dir="rtl"] { text-align:right; }
[dir="rtl"] .nav { flex-direction:row-reverse; }


/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 40px;
    padding: 20px 0;
}
.page-btn {
    display: inline-block;
    padding: 8px 16px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
    min-width: 40px;
    text-align: center;
}
.page-btn:hover {
    background: #f0f7ff;
    border-color: #1890ff;
    color: #1890ff;
}
.page-btn.active {
    background: #1890ff;
    border-color: #1890ff;
    color: #fff;
}
.page-dots {
    padding: 8px 4px;
    color: #999;
    font-size: 14px;
}
.pagination-info {
    text-align: center;
    color: #999;
    font-size: 13px;
    margin-top: 10px;
    padding-bottom: 20px;
}

/* 响应式分页 */
@media (max-width: 768px) {
    .pagination {
        gap: 4px;
    }
    .page-btn {
        padding: 6px 12px;
        font-size: 13px;
        min-width: 32px;
    }
}
