/*
Theme Name: Notepad++
Theme URI: https://notepadget.cn
Author: Notepadget
Author URI: https://notepadget.cn
Description: A lightweight WordPress theme inspired by Notepad++, clean and simple design for note-taking and blogging.
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.2
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: notepadplusplus
*/

/* ===== 全局 ===== */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ===== 导航栏 ===== */
.navbar-brand {
    letter-spacing: -0.5px;
}
.navbar-nav .nav-link {
    font-size: 1rem;
    font-weight: 600;
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
    transition: color 0.2s;
}
.navbar-nav .nav-link:hover {
    color: #198754 !important;
}
/* ===== 下拉菜单 Hover 模式 ===== */
.navbar-nav .dropdown {
    position: relative;
}
.navbar-nav .dropdown-menu {
    display: block;
    visibility: hidden;
    opacity: 0;
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.1);
    border-radius: 0.5rem;
    padding: 0.5rem 0;
    margin-top: 0;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}
.navbar-nav .dropdown:hover > .dropdown-menu {
    visibility: visible;
    opacity: 1;
}
.navbar-nav .dropdown-menu .dropdown-item {
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.4rem 1.2rem;
    transition: color 0.2s;
}
.navbar-nav .dropdown-menu .dropdown-item:hover {
    color: #198754 !important;
    background: rgba(25,135,84,0.05);
}

/* ===== 间距扩展 ===== */
.py-6 {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
}

/* ===== Hero 区域 ===== */
.hero-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}
.min-vh-50 {
    min-height: 50vh;
}

/* ===== 特性卡片 ===== */
.features-section .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: default;
}
.features-section .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}
.feature-icon {
    width: 64px;
    height: 64px;
    line-height: 64px;
    border-radius: 50%;
    background: rgba(25, 135, 84, 0.1);
    display: inline-block;
}

/* ===== 下载卡片 ===== */
.download-section .card {
    transition: transform 0.3s ease;
}
.download-section .card:hover {
    transform: translateY(-5px);
}

/* ===== 分类文章模块 ===== */
.category-posts-section .card {
    transition: transform 0.3s ease;
}
.category-posts-section .card:hover {
    transform: translateY(-5px);
}
.category-posts-section .card-title a:hover {
    color: #198754 !important;
}
.category-posts-section ul li:last-child {
    border-bottom: none !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}
.category-posts-section ul li a:hover {
    color: #198754 !important;
}

/* ===== 用户评价和数据统计 ===== */
.testimonials-section .card {
    transition: transform 0.3s ease;
}
.testimonials-section .card:hover {
    transform: translateY(-5px);
}

/* ===== 友情链接 ===== */
.friend-links-section {
    border-top: 1px solid #dee2e6;
}
.friend-links-section h2 {
    font-size: 1.25rem;
    letter-spacing: 0.5px;
}
.friend-links-section a {
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}
.friend-links-section a:hover {
    color: #198754 !important;
}
.friend-links-section p {
    font-size: 0.9rem;
}

/* ===== 页脚 ===== */
.footer a {
    transition: color 0.2s;
}
.footer a:hover {
    color: #fff !important;
}

/* ===== 响应式调整 ===== */
@media (max-width: 991.98px) {
    .hero-section .display-4 {
        font-size: 2.5rem;
    }
}

@media (max-width: 767.98px) {
    .hero-section .display-4 {
        font-size: 2rem;
    }
    .hero-section {
        text-align: center;
    }
}