* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    color: #333;
    background: #f5f5f5;
    min-width: 1200px;
}

a {
    text-decoration: none;
    color: #333;
}

a:hover {
    color: #0e90d2;
}

ul, li {
    list-style: none;
}

img {
    border: none;
    vertical-align: middle;
}

.clearfix::after {
    content: "";
    display: block;
    clear: both;
}

/* ==================== Top Bar ==================== */
.top-bar {
    background: #2b2b2b;
    height: 36px;
    line-height: 36px;
    font-size: 12px;
    color: #999;
}

.top-bar .container {
    width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar .welcome {
    color: #999;
}

.top-bar .top-links {
    display: flex;
    gap: 20px;
}

.top-bar .top-links a {
    color: #999;
    font-size: 12px;
}

.top-bar .top-links a:hover {
    color: #fff;
}

/* ==================== Header ==================== */
.header {
    background: #fff;
    height: 80px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    height: 100%;
    justify-content: space-between;
}

.header .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0;
}

.header .logo .logo-img {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    object-fit: contain;
}

.header .logo .logo-text {
    font-size: 22px;
    font-weight: bold;
    color: #333;
    letter-spacing: 1px;
}

.header .logo .logo-text span {
    color: #0e90d2;
}

/* Navigation */
.header .main-nav {
    display: flex;
    align-items: center;
    height: 100%;
}

.header .main-nav li {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.header .main-nav li a {
    display: block;
    padding: 0 22px;
    font-size: 16px;
    color: #333;
    line-height: 80px;
    height: 80px;
    transition: color 0.2s;
}

.header .main-nav li a:hover,
.header .main-nav li a.active {
    color: #0e90d2;
}

.header .main-nav li a.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 22px;
    right: 22px;
    height: 3px;
    background: #0e90d2;
    border-radius: 2px;
}

/* Search */
.header .search-box {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 20px;
    overflow: hidden;
    height: 36px;
    width: 220px;
}

.header .search-box input {
    border: none;
    outline: none;
    padding: 0 15px;
    height: 100%;
    flex: 1;
    font-size: 13px;
    color: #666;
}

.header .search-box button {
    border: none;
    background: #0e90d2;
    color: #fff;
    width: 50px;
    height: 100%;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}

.header .search-box button:hover {
    background: #0a7ab8;
}

/* ==================== Hero / Banner ==================== */
.hero-banner {
    background: linear-gradient(135deg, #0078d4 0%, #00b4ff 50%, #00d4aa 100%);
    padding: 60px 0;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.hero-banner::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.hero-banner .container {
    width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-banner h1 {
    font-size: 42px;
    font-weight: bold;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.hero-banner .subtitle {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 36px;
}

.hero-banner .version-info {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 30px;
}

.hero-banner .download-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-banner .download-btns .btn-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 40px;
    background: #fff;
    color: #0078d4;
    border-radius: 30px;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.hero-banner .download-btns .btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    color: #0078d4;
}

.hero-banner .download-btns .btn-download.secondary {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.4);
}

.hero-banner .download-btns .btn-download.secondary:hover {
    background: rgba(255,255,255,0.25);
    color: #fff;
}

/* ==================== Download Container (Original i4.cn Style) ==================== */
.download-container {
    padding: 60px 0;
    background: #fff;
}

.common-wrapper {
    width: 1200px;
    margin: 0 auto;
}

.common-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 0;
}

.common-title span {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    position: relative;
    display: inline-block;
    padding: 0 24px;
}

.common-title span::before,
.common-title span::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 40px;
    height: 2px;
    background: #ddd;
}

.common-title span::before {
    left: -40px;
}

.common-title span::after {
    right: -40px;
}

.pro-list-wrapper {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.pro-list-wrapper dl {
    flex: 1;
    background: #f8f9fb;
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s;
    border: 1px solid #f0f0f0;
}

.pro-list-wrapper dl:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 36px rgba(0,0,0,0.08);
    border-color: transparent;
    background: #fff;
}

.pro-list-wrapper dt {
    margin-bottom: 24px;
}

.pro-list-wrapper dt img {
    width: 84px;
    height: 84px;
    object-fit: contain;
}

.pro-list-wrapper dd {
    text-align: center;
}

.pro-list-wrapper .name {
    font-size: 22px;
    font-weight: bold;
    color: #333;
    margin-bottom: 12px;
}

.pro-list-wrapper .intro {
    display: block;
    font-size: 14px;
    color: #888;
    line-height: 1.7;
    margin-bottom: 28px;
    min-height: 48px;
}

.pro-list-wrapper .dowmload-btn {
    display: inline-block;
    padding: 10px 36px;
    background: linear-gradient(135deg, #0078d4, #00b4ff);
    color: #fff;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    margin-right: 12px;
    text-decoration: none;
}

.pro-list-wrapper .dowmload-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,120,212,0.35);
    color: #fff;
}

.pro-list-wrapper .more-btn {
    display: inline-block;
    padding: 10px 28px;
    border: 1px solid #ccc;
    color: #666;
    border-radius: 25px;
    font-size: 14px;
    transition: all 0.3s;
}

.pro-list-wrapper .more-btn:hover {
    border-color: #0e90d2;
    color: #0e90d2;
}

/* ==================== Product Section ==================== */
.section {
    padding: 60px 0;
}

.section .container {
    width: 1200px;
    margin: 0 auto;
}

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

.section-title h2 {
    font-size: 32px;
    color: #333;
    margin-bottom: 12px;
}

.section-title p {
    font-size: 15px;
    color: #999;
}

/* Product Cards */
.product-cards {
    display: flex;
    gap: 30px;
    justify-content: center;
}

.product-card {
    flex: 1;
    max-width: 370px;
    background: #fff;
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

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

.product-card .icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #fff;
}

.product-card .icon.blue { background: linear-gradient(135deg, #0078d4, #00b4ff); }
.product-card .icon.green { background: linear-gradient(135deg, #00b894, #00cec9); }
.product-card .icon.purple { background: linear-gradient(135deg, #6c5ce7, #a29bfe); }

.product-card h3 {
    font-size: 22px;
    color: #333;
    margin-bottom: 12px;
}

.product-card p {
    font-size: 14px;
    color: #888;
    line-height: 1.8;
    margin-bottom: 24px;
}

.product-card .btn-detail {
    display: inline-block;
    padding: 10px 32px;
    border: 1px solid #0e90d2;
    color: #0e90d2;
    border-radius: 25px;
    font-size: 14px;
    transition: all 0.3s;
}

.product-card .btn-detail:hover {
    background: #0e90d2;
    color: #fff;
}

/* ==================== News Section ==================== */
.section.news-section {
    background: #fff;
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.news-header h2 {
    font-size: 28px;
    color: #333;
}

.news-header a {
    font-size: 14px;
    color: #0e90d2;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.news-item {
    display: flex;
    align-items: flex-start;
    padding: 24px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}

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

.news-item:hover {
    background: #fafafa;
}

.news-item .news-img {
    width: 200px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    margin-right: 24px;
    background: #f0f0f0;
}

.news-item .news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.news-item:hover .news-img img {
    transform: scale(1.05);
}

.news-item .news-content {
    flex: 1;
}

.news-item .news-content h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-item .news-content h3:hover {
    color: #0e90d2;
}

.news-item .news-content .desc {
    font-size: 14px;
    color: #888;
    line-height: 1.8;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
}

.news-item .news-meta {
    display: flex;
    gap: 24px;
    font-size: 13px;
    color: #bbb;
}

.news-item .news-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ==================== Features Section ==================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-item {
    background: #fff;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.feature-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.feature-item .feat-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    background: #e8f4fd;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #0e90d2;
}

.feature-item h4 {
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
}

.feature-item p {
    font-size: 13px;
    color: #999;
    line-height: 1.6;
}

/* ==================== Footer ==================== */
.footer {
    background: #2b2b2b;
    color: #999;
    padding: 50px 0 0;
}

.footer .container {
    width: 1200px;
    margin: 0 auto;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    padding-bottom: 40px;
    border-bottom: 1px solid #3a3a3a;
}

.footer-col h4 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 20px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #999;
    font-size: 13px;
    transition: color 0.2s;
}

.footer-col ul li a:hover {
    color: #0e90d2;
}

.footer-col.about p {
    font-size: 13px;
    line-height: 1.8;
    color: #999;
    max-width: 280px;
}

.footer-col.about .contact-info {
    margin-top: 16px;
}

.footer-col.about .contact-info p {
    margin-bottom: 6px;
    font-size: 13px;
}

.footer-qrcode {
    text-align: center;
}

.footer-qrcode .qr-placeholder {
    width: 100px;
    height: 100px;
    background: #3a3a3a;
    border-radius: 8px;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 12px;
}

.footer-qrcode p {
    font-size: 12px;
    color: #999;
}

.footer-bottom {
    text-align: center;
    padding: 24px 0;
    font-size: 12px;
    color: #666;
    line-height: 2;
}

.footer-bottom a {
    color: #666;
}

.footer-bottom a:hover {
    color: #0e90d2;
}

/* ==================== Page Specific ==================== */

/* Products Page */
.page-banner {
    background: linear-gradient(135deg, #0078d4, #00b4ff);
    padding: 50px 0;
    text-align: center;
    color: #fff;
}

.page-banner h1 {
    font-size: 36px;
    margin-bottom: 12px;
}

.page-banner p {
    font-size: 16px;
    opacity: 0.85;
}

/* Firmware Page */
.firmware-table {
    width: 100%;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.firmware-table table {
    width: 100%;
    border-collapse: collapse;
}

.firmware-table th {
    background: #f8f9fa;
    padding: 16px 20px;
    text-align: left;
    font-size: 14px;
    color: #666;
    font-weight: 600;
    border-bottom: 1px solid #eee;
}

.firmware-table td {
    padding: 16px 20px;
    font-size: 14px;
    color: #333;
    border-bottom: 1px solid #f5f5f5;
}

.firmware-table tr:hover td {
    background: #f8fbff;
}

.firmware-table .btn-fw-download {
    display: inline-block;
    padding: 6px 20px;
    background: #0e90d2;
    color: #fff;
    border-radius: 20px;
    font-size: 13px;
    transition: background 0.2s;
}

.firmware-table .btn-fw-download:hover {
    background: #0a7ab8;
    color: #fff;
}

/* Filter Bar */
.filter-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-bar .filter-btn {
    padding: 8px 24px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
}

.filter-bar .filter-btn:hover,
.filter-bar .filter-btn.active {
    border-color: #0e90d2;
    color: #0e90d2;
    background: #e8f4fd;
}

/* Tutorial / News List Page */
.news-list-page .news-item {
    background: #fff;
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 16px;
    border-bottom: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.news-list-page .news-item:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

/* Sidebar */
.content-layout {
    display: flex;
    gap: 30px;
}

.content-main {
    flex: 1;
}

.content-sidebar {
    width: 300px;
    flex-shrink: 0;
}

.sidebar-block {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.sidebar-block h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.sidebar-block .hot-list li {
    padding: 10px 0;
    border-bottom: 1px solid #f8f8f8;
}

.sidebar-block .hot-list li:last-child {
    border-bottom: none;
}

.sidebar-block .hot-list li a {
    font-size: 14px;
    color: #555;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-block .hot-list li a:hover {
    color: #0e90d2;
}

.sidebar-block .hot-list li .rank {
    display: inline-block;
    width: 20px;
    height: 20px;
    background: #ddd;
    color: #fff;
    text-align: center;
    line-height: 20px;
    border-radius: 4px;
    font-size: 12px;
    margin-right: 8px;
}

.sidebar-block .hot-list li:nth-child(1) .rank,
.sidebar-block .hot-list li:nth-child(2) .rank,
.sidebar-block .hot-list li:nth-child(3) .rank {
    background: #0e90d2;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    color: #666;
    transition: all 0.2s;
}

.pagination a:hover {
    border-color: #0e90d2;
    color: #0e90d2;
}

.pagination .active {
    background: #0e90d2;
    border-color: #0e90d2;
    color: #fff;
}

/* Responsive adjustments for min-width layout */
.container {
    width: 1200px;
    margin: 0 auto;
}
