﻿/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
#site-header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

#site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.site-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: #007bff;
}

.site-title a {
    text-decoration: none;
    color: inherit;
}

.main-navigation ul {
    display: flex;
    list-style: none;
}

.main-navigation ul li {
    margin-left: 25px;
    position: relative;
}

/* 一级菜单项 */
.main-navigation ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
    display: block;
    padding: 10px 15px;
}

.main-navigation ul li a:hover {
    color: #007bff;
}

/* 二级菜单样式 */
.main-navigation ul li:hover ul {
    display: block;
}

.main-navigation ul li ul {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    min-width: 200px;
    display: none;
    z-index: 1000;
    flex-direction: column;
    padding: 10px 0;
    margin-left: 0;
}

/* 二级菜单项 */
.main-navigation ul li ul li {
    margin: 0;
    width: 100%;
}

.main-navigation ul li ul li a {
    padding: 8px 20px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
    width: 100%;
}

.main-navigation ul li ul li a:hover {
    color: #007bff;
    background-color: #f8f9fa;
}

/* 菜单名称过长处理 */
.main-navigation ul li a {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
}

.hero-content h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    font-weight: normal;
}

.shield-icon {
    font-size: 4rem;
    margin: 30px 0;
}

.hero-content h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: all 0.3s;
    text-align: center;
    min-width: 150px;
}

.btn-primary {
    background-color: #fff;
    color: #007bff;
}

.btn-primary:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Features Section */
.features-section {
    padding: 80px 0;
    background-color: #fff;
}

.features-section .container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
}

.feature-item {
    text-align: center;
    flex: 1;
    min-width: 250px;
    padding: 20px;
}

.feature-item h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #007bff;
}

/* News Section */
.news-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.news-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
    color: #007bff;
}

.news-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.news-item {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.news-thumbnail {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.news-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.news-thumbnail a {
    display: block;
    height: 100%;
}

.news-thumbnail:hover img {
    transform: scale(1.05);
}

.news-content {
    padding: 20px;
}

.news-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.news-title a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s;
}

.news-title a:hover {
    color: #007bff;
}

.news-meta {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 15px;
}

.news-excerpt {
    color: #555;
    line-height: 1.6;
}

/* Main Content */
#main-content {
    min-height: calc(100vh - 200px);
}

/* Post Content */
.entry-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.entry-title {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #333;
}

.entry-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.entry-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.entry-content p {
    margin-bottom: 20px;
}

.entry-content h2 {
    margin: 30px 0 20px;
    color: #007bff;
}

.entry-content ul, .entry-content ol {
    margin-left: 30px;
    margin-bottom: 20px;
}

.entry-content li {
    margin-bottom: 10px;
}

.entry-content img {
    max-width: 100%;
    height: auto;
}

.entry-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.post-tags {
    color: #666;
}

.post-tags span {
    font-weight: bold;
}

.post-tags a {
    color: #007bff;
    text-decoration: none;
    margin-right: 5px;
    padding: 2px 8px;
    background-color: #f0f0f0;
    border-radius: 3px;
}

.post-tags a:hover {
    text-decoration: underline;
}

/* Post Navigation */
.post-navigation {
    display: flex;
    justify-content: space-between;
    margin: 40px 0;
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.nav-previous, .nav-next {
    flex: 1;
}

.nav-next {
    text-align: right;
}

.post-navigation a {
    text-decoration: none;
    color: #007bff;
    font-weight: 500;
}

.post-navigation a:hover {
    text-decoration: underline;
}

/* Footer */
#site-footer {
    background-color: #333;
    color: #fff;
    padding: 50px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-info, .footer-links, .footer-contact {
    flex: 1;
    min-width: 200px;
}

.footer-info h3, .footer-links h4, .footer-contact h4 {
    margin-bottom: 20px;
    color: #007bff;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links ul li a:hover {
    color: #fff;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #555;
    color: #aaa;
    font-size: 0.9rem;
}

/* Posts List */
.posts-list article {
    background-color: #fff;
    margin-bottom: 30px;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.posts-list .entry-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.posts-list .entry-title a {
    text-decoration: none;
    color: #007bff;
    transition: color 0.3s;
}

.posts-list .entry-title a:hover {
    color: #0056b3;
}

.posts-list .entry-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.posts-list .entry-summary {
    margin-bottom: 20px;
}

.pagination {
    text-align: center;
    margin: 40px 0;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 5px;
    text-decoration: none;
    background-color: #fff;
    border: 1px solid #ddd;
    color: #007bff;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background-color: #007bff;
    color: #fff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content h2 {
        font-size: 1.5rem;
    }
    
    .download-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 80%;
        margin-bottom: 10px;
    }
    
    .features-section .container,
    .instructions-steps {
        flex-direction: column;
        align-items: center;
    }
    
    .feature-item,
    .step {
        width: 100%;
        max-width: 400px;
    }
    
    #site-header .container {
        flex-direction: column;
    }
    
    .main-navigation ul {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .main-navigation ul li {
        margin: 5px 10px;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .news-list {
        grid-template-columns: 1fr;
    }
    
    .post-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-next {
        text-align: left;
    }
    
    /* 移动端二级菜单 */
    .main-navigation ul li ul {
        position: static;
        box-shadow: none;
        background-color: #f8f9fa;
        margin-top: 5px;
    }
    
    .main-navigation ul li ul li a {
        padding: 6px 15px;
        max-width: none;
    }
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background-color: #fff;
}

.faq-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
    color: #007bff;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid #ddd;
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    background-color: #fff;
}

.faq-question {
    padding: 20px;
    background-color: #f8f9fa;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s;
}

.faq-question:hover {
    background-color: #e9ecef;
}

.faq-question-text {
    font-size: 1.1rem;
    font-weight: 500;
    color: #333;
}

.faq-toggle-icon {
    font-size: 1.5rem;
    font-weight: bold;
    color: #007bff;
    transition: transform 0.3s;
    width: 20px;
    text-align: center;
}

.faq-item.active .faq-toggle-icon {
    transform: rotate(90deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #fff;
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 500px;
}

.faq-answer p {
    color: #555;
    line-height: 1.6;
    margin: 0;
}
