/* ============================================
   freeware.dev - bangumi-inspired style
   ============================================ */

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

:root {
    --pink: #F09199;
    --pink-light: #FCD5D8;
    --pink-dark: #E06C75;
    --blue: #2384E8;
    --blue-light: #EBF5FF;
    --text: #555555;
    --text-dark: #333333;
    --text-light: #999999;
    --bg: #F5F5F5;
    --card: #FFFFFF;
    --border: #E8E8E8;
    --shadow: rgba(0, 0, 0, 0.08);
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', -apple-system, sans-serif;
    font-size: 13px;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    min-height: 100vh;
}

a {
    color: var(--blue);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--pink);
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ---- 顶部导航 ---- */
header {
    background: var(--card);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-name {
    font-size: 18px;
    font-weight: bold;
    color: var(--text-dark);
    text-decoration: none;
    text-shadow: 1px 1px 0 rgba(0,0,0,0.06);
    letter-spacing: -0.5px;
}

.site-name:hover {
    color: var(--pink);
}

.site-name .dot {
    color: var(--pink);
}

.main-nav {
    display: flex;
    gap: 20px;
    list-style: none;
}

.main-nav a {
    color: var(--text);
    font-size: 13px;
    padding: 4px 0;
    position: relative;
}

.main-nav a:hover {
    color: var(--pink);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--pink);
    transition: width 0.2s;
}

.main-nav a:hover::after {
    width: 100%;
}

/* ---- 主页: 软件列表(博客式横排) ---- */
.page-header {
    padding: 30px 0 20px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
}

.page-header h1 {
    font-size: 20px;
    color: var(--text-dark);
    font-weight: normal;
    text-shadow: 1px 1px 0 rgba(0,0,0,0.04);
}

.page-header p {
    color: var(--text-light);
    font-size: 12px;
    margin-top: 6px;
}

.software-list {
    margin-bottom: 40px;
}

/* 每条软件: 横排布局 */
.software-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 20px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 4px;
    margin-bottom: 10px;
    transition: background 0.15s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.software-item:hover {
    background: var(--pink-light);
}

.software-item:hover .item-title {
    color: var(--pink-dark);
}

.item-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
}

.item-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.item-body {
    flex: 1;
    min-width: 0;
}

.item-title {
    font-size: 15px;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 4px;
    transition: color 0.15s;
}

.item-desc {
    font-size: 12px;
    color: var(--text);
    line-height: 1.6;
    margin-bottom: 6px;
}

.item-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.tag {
    display: inline-block;
    background: #F0F0F0;
    color: var(--text-light);
    padding: 1px 8px;
    border-radius: 2px;
    font-size: 11px;
    line-height: 1.6;
    transition: all 0.15s;
}

.software-item:hover .tag {
    background: var(--pink);
    color: #fff;
}

.item-arrow {
    flex-shrink: 0;
    color: var(--text-light);
    font-size: 14px;
    align-self: center;
    transition: color 0.15s;
}

.software-item:hover .item-arrow {
    color: var(--pink-dark);
}

/* ---- 详情页 ---- */
.detail-header {
    background: var(--card);
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
    margin-bottom: 20px;
}

.back-link {
    color: var(--text-light);
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 12px;
}

.back-link:hover {
    color: var(--pink);
}

.detail-info {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.detail-icon {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    background: var(--bg);
}

.detail-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.detail-title {
    flex: 1;
}

.detail-title h1 {
    font-size: 22px;
    color: var(--text-dark);
    font-weight: bold;
    margin-bottom: 6px;
    text-shadow: 1px 1px 0 rgba(0,0,0,0.04);
}

.detail-subtitle {
    font-size: 13px;
    color: var(--text);
}

.highlight {
    color: var(--pink);
    font-weight: bold;
}

/* ---- 内容区块 ---- */
.content-section {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 20px 24px;
    margin-bottom: 12px;
}

.content-section h2 {
    font-size: 15px;
    color: var(--text-dark);
    font-weight: bold;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.content-section p {
    margin-bottom: 10px;
    line-height: 1.8;
    color: var(--text);
}

.content-section ul {
    margin-left: 18px;
    margin-bottom: 10px;
}

.content-section li {
    margin-bottom: 6px;
    line-height: 1.8;
    color: var(--text);
}

.content-section strong {
    color: var(--text-dark);
    font-weight: 600;
}

/* ---- 痛点区块 ---- */
.pain-point {
    background: #FFF8F0;
    border: 1px solid #FFE0C0;
    border-left: 3px solid var(--pink);
    border-radius: 4px;
    padding: 16px 20px;
    margin-bottom: 12px;
}

.pain-point h3 {
    font-size: 13px;
    color: var(--pink-dark);
    font-weight: bold;
    margin-bottom: 8px;
}

.pain-point p {
    font-size: 12px;
    color: var(--text);
    line-height: 1.8;
    margin: 0;
}

/* ---- 特色功能网格 ---- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-bottom: 10px;
}

.feature-card {
    background: var(--bg);
    padding: 14px 16px;
    border-radius: 3px;
    border-left: 2px solid var(--pink);
}

.feature-card h3 {
    font-size: 13px;
    color: var(--pink-dark);
    font-weight: bold;
    margin-bottom: 6px;
}

.feature-card p {
    font-size: 12px;
    color: var(--text);
    line-height: 1.6;
    margin: 0;
}

/* ---- 官网链接 ---- */
.link-section {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 20px 24px;
    margin-bottom: 20px;
    text-align: center;
}

.link-section p {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 12px;
}

.link-btn {
    display: inline-block;
    background: var(--pink);
    color: #fff;
    padding: 6px 24px;
    border-radius: 3px;
    font-size: 13px;
    font-weight: bold;
    transition: background 0.15s;
}

.link-btn:hover {
    background: var(--pink-dark);
    color: #fff;
}

/* ---- 页脚 ---- */
footer {
    border-top: 1px solid var(--border);
    padding: 20px 0;
    text-align: center;
    color: var(--text-light);
    font-size: 11px;
}

/* ---- 装饰背景 ---- */
.bg-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    opacity: 0.025;
}

/* ---- 响应式 ---- */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        gap: 8px;
    }

    .detail-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .detail-icon {
        width: 56px;
        height: 56px;
    }

    .detail-title h1 {
        font-size: 18px;
    }

    .content-section {
        padding: 16px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .software-item {
        padding: 12px 14px;
    }
}