/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Header styles */
.header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    flex-direction: column;
    padding: 15px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    margin: 0;
    color: #333;
}

.logo a {
    color: #333;
    text-decoration: none;
}

.logo a:hover {
    color: #00ff00;
}

/* Main navigation */
.main-nav {
    display: flex;
    align-items: center;
}

.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1rem;
}

.main-nav a {
    color: #333;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.main-nav a:hover {
    background-color: #f5f5f5;
}

.main-nav .zb1654this > a,
.main-nav li.zb1654this > a {
    background-color: #00ff00;
    color: #000;
}

.main-nav ul {
    flex-wrap: wrap;
}

/* Mobile menu button */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: relative;
    z-index: 1000;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: #333;
    margin: 5px 0;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)), url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="%23000000"/><text x="50" y="50" font-family="Arial" font-size="14" fill="%2300ff00" text-anchor="middle" dominant-baseline="middle">HACKER</text></svg>');
    color: #fff;
    text-align: center;
    padding: 8rem 0 4rem;
    margin-top: 60px;
    background-size: cover;
    background-position: center;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    min-width: 150px;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    color: #00ff00;
    margin-bottom: 0.5rem;
}

.stat-text {
    font-size: 1.1rem;
    color: #fff;
}

/* Services section */
.services {
    padding: 4rem 0;
    background-color: #fff;
}

.services h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: #f8f8f8;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.service-card h3 {
    color: #00ff00;
    margin-bottom: 1rem;
}

.service-features {
    list-style: none;
    margin-top: 1rem;
    text-align: left;
    flex-grow: 1;
}

.service-features li {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.service-features li:before {
    content: "✓";
    color: #00ff00;
    position: absolute;
    left: 0;
}

/* Advantages section */
.advantages {
    padding: 4rem 0;
    background-color: #f5f5f5;
}

.advantages h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.advantage-item {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    height: 100%;
}

.advantage-item h3 {
    color: #00ff00;
    margin-bottom: 1rem;
}

/* Process section */
.process {
    padding: 4rem 0;
    background-color: #fff;
}

.process h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.step {
    position: relative;
    padding: 2rem;
    background-color: #f8f8f8;
    border-radius: 8px;
    height: 100%;
}

.step-number {
    width: 40px;
    height: 40px;
    background-color: #00ff00;
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-weight: bold;
}

/* About section */
.about {
    padding: 4rem 0;
    background-color: #f5f5f5;
}

.about h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.team-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    height: 100%;
}

.feature h3 {
    color: #00ff00;
    margin-bottom: 1rem;
}

/* FAQ section */
.faq {
    padding: 4rem 0;
    background-color: #fff;
}

.faq h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.faq-item {
    background-color: #f8f8f8;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    height: 100%;
}

.faq-item h3 {
    color: #00ff00;
    margin-bottom: 1rem;
}

/* Contact section */
.contact {
    padding: 4rem 0;
    background-color: #f5f5f5;
}

.contact h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.contact-item {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    height: 100%;
}

.contact-item h3 {
    color: #00ff00;
    margin-bottom: 1rem;
}

/* Links section */
.links {
    padding: 4rem 0;
    background-color: #fff;
}

.links h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.links-grid ul {
    list-style: none;
    padding: 0;
}

.links-grid li {
    margin: 1rem 0;
}

.links-grid a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    display: inline-block;
    white-space: nowrap;
}

.links-grid a:hover {
    color: #00ff00;
    background-color: rgba(0,255,0,0.1);
}

/* Advertisement section */
.advertisement {
    padding: 2rem 0;
    background-color: #fff;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.advertisement .container {
    text-align: center;
}

/* Footer */
.footer {
    background-color: #1a1a1a;
    color: #fff;
    text-align: center;
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer a {
    color: #00ff00;
    text-decoration: none;
    transition: color 0.3s;
}

.footer a:hover {
    color: #fff;
}

/* Page layout (list & article) */
.page-main {
    margin-top: 60px;
    padding: 2rem 0 4rem;
    min-height: calc(100vh - 200px);
}

.page-breadcrumb {
    padding: 1rem 0;
    color: #666;
    font-size: 0.9rem;
}

.page-breadcrumb a {
    color: #333;
    text-decoration: none;
}

.page-breadcrumb a:hover {
    color: #00ff00;
}

.page-layout {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.page-content {
    flex: 1;
    min-width: 0;
}

/* Sidebar */
.sidebar {
    width: 300px;
    flex-shrink: 0;
}

.sidebar-block {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.sidebar-title {
    background-color: #1a1a1a;
    color: #fff;
    padding: 0.8rem 1rem;
    font-size: 1rem;
    margin: 0;
}

.sidebar-title a {
    color: #00ff00;
    text-decoration: none;
}

.sidebar-title a:hover {
    color: #fff;
}

.sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-list li {
    border-bottom: 1px solid #eee;
}

.sidebar-list li:last-child {
    border-bottom: none;
}

.sidebar-list a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.8rem;
    text-decoration: none;
    color: #333;
    transition: background-color 0.3s;
}

.sidebar-list a:hover {
    background-color: #f5f5f5;
}

.sidebar-item-thumb {
    flex-shrink: 0;
    width: 60px;
    height: 45px;
    overflow: hidden;
    border-radius: 4px;
    display: block;
}

.sidebar-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sidebar-item-title {
    flex: 1;
    font-size: 0.85rem;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Homepage article section */
.articles {
    padding: 4rem 0;
    background-color: #f5f5f5;
}

.articles h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
}

.home-article-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}

.home-article-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.home-article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.home-article-thumb {
    display: block;
    width: 100%;
    height: 140px;
    overflow: hidden;
}

.home-article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.home-article-card:hover .home-article-thumb img {
    transform: scale(1.05);
}

.home-article-info {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.home-article-info h3 {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.home-article-info h3 a {
    color: #333;
    text-decoration: none;
}

.home-article-info h3 a:hover {
    color: #00ff00;
}

.home-article-desc {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 0.5rem;
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.home-article-date {
    font-size: 0.75rem;
    color: #999;
}

/* List page */
.list-header {
    background-color: #fff;
    padding: 1.5rem 2rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.list-title {
    font-size: 1.5rem;
    color: #333;
    margin: 0;
}

.listbox {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    overflow: hidden;
}

.article-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.list-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s;
}

.list-item:last-child {
    border-bottom: none;
}

.list-item:hover {
    background-color: #fafafa;
}

.list-thumb {
    flex-shrink: 0;
    width: 200px;
    height: 150px;
    overflow: hidden;
    border-radius: 6px;
}

.list-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.list-item:hover .list-thumb img {
    transform: scale(1.05);
}

.list-info {
    flex: 1;
    min-width: 0;
}

.list-item-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.list-item-title a {
    color: #333;
    text-decoration: none;
}

.list-item-title a:hover {
    color: #00ff00;
}

.list-meta {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 0.5rem;
}

.list-meta span {
    margin-right: 1rem;
}

.list-meta a {
    color: #666;
    text-decoration: none;
}

.list-meta a:hover {
    color: #00ff00;
}

.list-desc {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
}

/* Pagination */
.pagebar {
    margin-top: 2rem;
    background-color: #fff;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.pagebar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.pagebar-left,
.pagebar-center,
.pagebar-right {
    display: flex;
    align-items: center;
}

.pagebar-left {
    justify-content: flex-start;
    flex: 1;
}

.pagebar-center {
    justify-content: center;
    flex: 2;
}

.pagebar-right {
    justify-content: flex-end;
    flex: 1;
}

.pagebar ul,
.pagebar-left ul,
.pagebar-center ul,
.pagebar-right ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.pagebar a,
.pagebar span {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.pagebar a:hover {
    background-color: #00ff00;
    border-color: #00ff00;
    color: #000;
}

.pagebar .thisclass,
.pagebar .current {
    background-color: #00ff00;
    border-color: #00ff00;
    color: #000;
}

/* Article detail page */
.article-detail {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 2rem;
}

.article-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.article-title {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: #999;
}

.article-meta a {
    color: #666;
    text-decoration: none;
}

.article-meta a:hover {
    color: #00ff00;
}

.article-thumb-wrap {
    margin-bottom: 1.5rem;
    text-align: center;
}

.article-thumb-wrap img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.article-body {
    font-size: 1rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 1.5rem;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.article-body p {
    margin-bottom: 1rem;
}

.zb1654diyfield {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: #f8f8f8;
    border-radius: 6px;
}

.article-images {
    margin-bottom: 1.5rem;
}

.article-figure {
    margin-bottom: 1rem;
    text-align: center;
}

.article-figure img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

.article-figure figcaption {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.5rem;
}

.zb1654meta-tags {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.zb1654tagitem a {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background-color: #f0f0f0;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #666;
    text-decoration: none;
    transition: all 0.3s;
}

.zb1654tagitem a:hover {
    background-color: #00ff00;
    color: #000;
}

.article-prenext {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding: 1rem 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin-bottom: 1.5rem;
}

.prenext-item {
    font-size: 0.9rem;
    color: #666;
}

.prenext-label {
    color: #999;
}

.prenext-item a {
    color: #333;
    text-decoration: none;
}

.prenext-item a:hover {
    color: #00ff00;
}

.related-articles {
    margin-top: 1.5rem;
}

.related-title {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 1rem;
    padding-left: 0.8rem;
    border-left: 3px solid #00ff00;
}

.related-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.related-item:last-child {
    border-bottom: none;
}

.related-thumb {
    flex-shrink: 0;
    width: 120px;
    height: 90px;
    overflow: hidden;
    border-radius: 4px;
    display: block;
}

.related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.related-info {
    flex: 1;
    min-width: 0;
}

.related-link {
    font-size: 0.95rem;
    color: #333;
    text-decoration: none;
    font-weight: bold;
}

.related-link:hover {
    color: #00ff00;
}

.related-info p {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.3rem;
    line-height: 1.5;
}

/* Responsive design */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }

    .hero h2 {
        font-size: 2.2rem;
    }

    .stat-number {
        font-size: 2.2rem;
    }

    .home-article-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .header {
        padding: 0.5rem 0;
    }

    .logo {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
        padding-right: 3rem;
    }

    .menu-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        padding: 80px 20px 20px;
        z-index: 999;
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
    }

    .main-nav li {
        margin: 15px 0;
        width: 100%;
        text-align: center;
    }

    .main-nav a {
        display: block;
        padding: 15px;
        font-size: 18px;
        border-bottom: 1px solid #eee;
    }

    .main-nav a:hover {
        background: #f5f5f5;
    }

    .hero {
        padding: 6rem 0 3rem;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.1rem;
        padding: 0 1rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 2rem;
    }

    .service-grid,
    .advantages-grid,
    .process-steps,
    .team-features,
    .faq-grid,
    .contact-info,
    .links-grid {
        grid-template-columns: 1fr;
    }

    .home-article-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .page-layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }

    .list-item {
        flex-direction: column;
    }

    .list-thumb {
        width: 100%;
        height: 180px;
    }

    .pagebar-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .pagebar-left,
    .pagebar-center,
    .pagebar-right {
        justify-content: center;
        flex: none;
    }

    .article-detail {
        padding: 1.5rem;
    }

    .article-title {
        font-size: 1.4rem;
    }

    .related-item {
        flex-direction: column;
    }

    .related-thumb {
        width: 100%;
        height: 160px;
    }

    .advertisement {
        padding: 1.5rem 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    .hero h2 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .services h2,
    .advantages h2,
    .process h2,
    .about h2,
    .faq h2,
    .articles h2,
    .contact h2,
    .links h2 {
        font-size: 1.8rem;
    }

    .home-article-grid {
        grid-template-columns: 1fr;
    }

    .article-meta {
        flex-direction: column;
        gap: 0.3rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .service-card,
    .advantage-item,
    .step,
    .feature,
    .faq-item,
    .contact-item {
        padding: 1.5rem;
    }

    .advertisement {
        padding: 1rem 0;
    }

    .footer {
        padding: 1.5rem 0;
    }

    .logo {
        font-size: 1.3rem;
    }

    .main-nav a {
        font-size: 1rem;
        padding: 0.7rem 1rem;
    }
} 