/* 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: #14213d;
    background-color: #f7f9fc;
}

.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: #145cff;
}

.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: #24324a;
    font-weight: 500;
    transition: color 0.3s;
    display: block;
    padding: 10px 15px;
}

.main-navigation ul li a:hover {
    color: #145cff;
}

/* 二级菜单样式 */
.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 - 2.png Light Modern Style */
.hero-section {
    background-color: #ffffff;
    color: #0f172a;
    padding: 80px 0 100px;
    overflow: hidden;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    align-items: center;
    gap: 50px;
}

.hero-content {
    max-width: 580px;
}

.hero-content h1 {
    color: #0f172a;
    font-size: clamp(2.4rem, 4.2vw, 3.8rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

.hero-description {
    color: #475569;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 36px;
}

.download-buttons {
    display: flex;
    justify-content: flex-start;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 34px;
    text-decoration: none;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.25s ease;
    text-align: center;
}

.btn-primary {
    background-color: #1665ff;
    color: #ffffff;
    border: 1px solid #1665ff;
    box-shadow: 0 10px 25px -5px rgba(22, 101, 255, 0.4);
}

.btn-primary:hover {
    background-color: #0050e6;
    border-color: #0050e6;
    transform: translateY(-2px);
    box-shadow: 0 14px 30px -5px rgba(22, 101, 255, 0.5);
}

.btn-secondary {
    background-color: transparent;
    color: #1665ff;
    border: 1.5px solid #1665ff;
}

.btn-secondary:hover {
    background-color: rgba(22, 101, 255, 0.08);
    transform: translateY(-2px);
}

/* Mockups Container (2.png Visual Style) */
.hero-visual {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mockup-container {
    position: relative;
    width: 100%;
    max-width: 620px;
    height: 380px;
}

/* Laptop Mockup */
.mockup-laptop {
    position: absolute;
    left: 0;
    top: 10px;
    width: 460px;
    background: #0f172a;
    border-radius: 14px;
    padding: 10px 10px 0;
    box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.05);
    z-index: 1;
}

.laptop-screen {
    background: #f8fafc;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
    height: 280px;
    display: flex;
    flex-direction: column;
}

.window-header {
    background: #e2e8f0;
    padding: 8px 14px;
    display: flex;
    align-items: center;
    position: relative;
    border-bottom: 1px solid #cbd5e1;
}

.window-controls {
    display: flex;
    gap: 6px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.dot-close { background: #ef4444; }
.dot-min { background: #f59e0b; }
.dot-max { background: #10b981; }

.window-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 600;
}

.laptop-body-content {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.sidebar {
    width: 120px;
    background: #ffffff;
    border-right: 1px solid #e2e8f0;
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-item {
    font-size: 0.75rem;
    padding: 8px 10px;
    border-radius: 6px;
    color: #475569;
    cursor: pointer;
    font-weight: 500;
}

.sidebar-item.active {
    background: #eff6ff;
    color: #1665ff;
    font-weight: 600;
}

.main-panel {
    flex: 1;
    padding: 14px;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.status-card {
    background: #ffffff;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.status-label {
    display: block;
    font-size: 0.7rem;
    color: #94a3b8;
}

.status-value {
    font-size: 0.82rem;
    color: #0f172a;
}

.badge-online {
    background: #dcfce7;
    color: #15803d;
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 99px;
    font-weight: 600;
}

.nodes-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.node-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 7px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    color: #334155;
    display: flex;
    justify-content: space-between;
}

.node-item.active-node {
    border-color: #93c5fd;
    background: #f0f7ff;
}

.node-item em {
    color: #10b981;
    font-style: normal;
    font-weight: 600;
}

.laptop-base {
    height: 12px;
    background: linear-gradient(to bottom, #cbd5e1, #94a3b8);
    border-radius: 0 0 10px 10px;
    margin: 0 -10px;
}

/* Phone Mockup (Angled/Overlapping to right like 2.png) */
.mockup-phone {
    position: absolute;
    right: 10px;
    bottom: -10px;
    width: 195px;
    height: 350px;
    background: #0f172a;
    border: 6px solid #1e293b;
    border-radius: 36px;
    padding: 8px;
    box-shadow: 0 30px 60px -10px rgba(15, 23, 42, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    transform: rotate(6deg);
    z-index: 2;
    overflow: hidden;
}

.phone-screen {
    background: #ffffff;
    height: 100%;
    border-radius: 28px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.phone-header {
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    font-size: 0.65rem;
    color: #0f172a;
    font-weight: 600;
    margin-top: 4px;
}

.phone-notch {
    width: 48px;
    height: 12px;
    background: #0f172a;
    border-radius: 0 0 10px 10px;
}

.phone-app {
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    flex: 1;
    background: linear-gradient(to bottom, #f0f7ff, #ffffff);
}

.app-header h3 {
    font-size: 0.92rem;
    color: #0f172a;
    text-align: center;
}

.app-subtitle {
    font-size: 0.65rem;
    color: #1665ff;
    text-align: center;
    font-weight: 500;
}

.toggle-switch-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin: 8px 0;
}

.switch-ring {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #eff6ff;
    border: 3px solid #1665ff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(22, 101, 255, 0.25);
}

.switch-button {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #1665ff;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.switch-status {
    font-size: 0.65rem;
    color: #475569;
    font-weight: 600;
}

.phone-card {
    width: 100%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.card-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.65rem;
    color: #64748b;
    padding: 4px 0;
}

.card-row strong {
    color: #0f172a;
}

/* Features & Section Headers */
.section-title {
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
}

.section-title h2 {
    font-size: 2rem;
    color: #0f172a;
    font-weight: 700;
}

.section-title h2 b {
    color: #1665ff;
}

.features-section {
    padding: 70px 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.35rem;
    margin-bottom: 15px;
    color: #1665ff;
}

/* News Section */
.news-section {
    padding: 80px 0;
    background-color: #f8fafc;
}

.news-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
    color: #0f172a;
}

.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.3rem;
    }

    .hero-section { padding: 50px 0 60px; }
    .hero-grid { grid-template-columns: 1fr; gap: 36px; text-align: center; }
    .hero-content { margin: 0 auto; }
    .hero-description { margin-left: auto !important; margin-right: auto !important; }
    .download-buttons { justify-content: center; gap: 12px; }
    .btn { min-width: 140px; }
    .hero-visual { transform: scale(0.82); transform-origin: top center; margin-bottom: -50px; }
    
    .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;
    }
}

@media (max-width: 430px) {
    .hero-visual { transform: scale(.68); min-height: 275px; margin: -35px 0; }
    .hero-content h1 { font-size: 2.35rem; }
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background-color: #fff;
}

.faq-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
    color: #0f172a;
    font-weight: 700;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid #e2e8f0;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    background-color: #fff;
}

.faq-question {
    padding: 20px;
    background-color: #f8fafc;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s;
}

.faq-question:hover {
    background-color: #f1f5f9;
}

.faq-question-text {
    font-size: 1.1rem;
    font-weight: 500;
    color: #0f172a;
}

.faq-toggle-icon {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1665ff;
    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;
}
