/* 公共样式 */
body { background: #f6f6f6; margin: 0; }

/* 头部 */
.header { background: #fff; padding: 20px 0; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.header .wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; gap: 20px; }
.header h1 { font-size: 22px; color: #333; margin: 0; }
.header h1 a { font-size: inherit; color: inherit; text-decoration: none; }
.header h1 a:hover { color: #009688; }
.header a { color: #009688; text-decoration: none; font-size: 14px; }
.header .nav { display: flex; gap: 20px; }
.header .nav a { color: #666; }
.header .nav a:hover { color: #009688; }

/* 用户状态 */
.header .user-status { display: flex; align-items: center; gap: 12px; margin-left: auto; padding-left: 20px; border-left: 1px solid #eee; }
.header .user-status .user-name { color: #333; font-size: 14px; display: flex; align-items: center; gap: 4px; }
.header .user-status .user-name i { font-size: 16px; color: #009688; }
.header .user-status a { color: #666; font-size: 13px; }
.header .user-status a:hover { color: #009688; }

/* 主体 */
.main { max-width: 1200px; margin: 25px auto; padding: 0 20px; }

/* 尾部 */
.footer { text-align: center; color: #aaa; font-size: 13px; padding: 30px 0; }

/* 空提示 */
.empty-tip { text-align: center; padding: 60px 0; color: #999; }

/* 分页 */
.pager { text-align: center; padding: 20px 0; }

/* 新闻列表 */
.news-item { background: #fff; border-radius: 6px; padding: 22px 25px; margin-bottom: 15px; box-shadow: 0 1px 4px rgba(0,0,0,.04); transition: box-shadow .2s; }
.news-item:hover { box-shadow: 0 4px 12px rgba(0,0,0,.1); }
.news-item h2 { font-size: 18px; margin: 0 0 8px; }
.news-item h2 a { color: #333; text-decoration: none; }
.news-item h2 a:hover { color: #009688; }
.news-meta { color: #999; font-size: 13px; }
.news-desc { color: #666; font-size: 14px; margin-top: 10px; line-height: 1.7; }

/* 新闻详情 */
.article { background: #fff; border-radius: 6px; padding: 35px 40px; box-shadow: 0 1px 4px rgba(0,0,0,.04); }
.article h2 { font-size: 24px; margin: 0 0 12px; color: #333; }
.article .meta { color: #999; font-size: 13px; margin-bottom: 25px; padding-bottom: 15px; border-bottom: 1px solid #f0f0f0; }
.article .content { font-size: 15px; line-height: 1.9; color: #444; }
.article .content img { max-width: 100%; }

/* 软件列表 */
.soft-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.soft-card { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.04); transition: box-shadow .2s; }
.soft-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.1); }
.soft-card .thumb { width: 100%; aspect-ratio: 16/10;  display: block;   }
.soft-card .info { padding: 14px 16px; }
.soft-card .info h3 { font-size: 15px; margin: 0 0 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center;}
.soft-card .info h3 a { color: #333; text-decoration: none;  }
.soft-card .info h3 a:hover { color: #009688; }
.soft-card .meta { color: #999; font-size: 12px; }

/* 软件详情 - 顶部头图区域 */
.soft-hero { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); border-radius: 12px; padding: 40px; margin-bottom: 25px; position: relative; overflow: hidden; }
.soft-hero-bg { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="3" fill="rgba(255,255,255,0.08)"/><circle cx="40" cy="80" r="2" fill="rgba(255,255,255,0.1)"/></svg>'); }
.soft-hero-content { display: flex; gap: 35px; position: relative; z-index: 1; }
.soft-hero-thumb { width: 260px; height: 170px; border-radius: 16px;  background: #fff; box-shadow: 0 8px 30px rgba(0,0,0,.2); flex-shrink: 0; }
.soft-hero-thumb-empty { display: flex; align-items: center; justify-content: center; background: #f5f5f5; }
.soft-hero-info { flex: 1; color: #fff; }
.soft-hero-info h1 { font-size: 32px; margin: 0 0 12px; font-weight: 600; text-shadow: 0 2px 4px rgba(0,0,0,.1); }
.soft-hero-desc { font-size: 16px; opacity: 0.9; margin: 0 0 15px; line-height: 1.6; }
.soft-hero-meta { font-size: 14px; opacity: 0.8; margin-bottom: 25px; }
.soft-hero-meta i { margin-right: 5px; }
.soft-hero-actions { display: flex; gap: 15px; flex-wrap: wrap; }
.btn-download { display: inline-flex; align-items: center; gap: 8px; padding: 14px 32px; background: #fff; color: #667eea; border-radius: 30px; font-size: 16px; font-weight: 500; text-decoration: none; transition: all .3s; box-shadow: 0 4px 15px rgba(0,0,0,.1); border: none; cursor: pointer; }
.btn-download:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.15); }
.btn-download.btn-buy { background: linear-gradient(135deg, #ff6b6b, #ff8e53); color: #fff; }
.btn-contact { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; background: rgba(255,255,255,.15); color: #fff; border-radius: 30px; font-size: 15px; text-decoration: none; transition: all .3s; backdrop-filter: blur(5px); }
.btn-contact:hover { background: rgba(255,255,255,.25); }

/* 软件详情 - 主体布局 */
.soft-body { display: flex; gap: 25px; }
.soft-main { flex: 1; min-width: 0; }
.soft-sidebar { width: 320px; flex-shrink: 0; }

/* 软件详情 - 内容区块 */
.soft-section { background: #fff; border-radius: 10px; padding: 25px 30px; box-shadow: 0 2px 8px rgba(0,0,0,.04); margin-bottom: 20px; }
.soft-section-title { font-size: 18px; color: #333; margin: 0 0 20px; padding-bottom: 12px; border-bottom: 2px solid #667eea; display: inline-block; }
.soft-content { font-size: 15px; line-height: 1.9; color: #555; }
.soft-content img { max-width: 100%; border-radius: 6px; margin: 10px 0; }
.soft-content p { margin: 0 0 15px; }

/* 软件详情 - 侧边栏组件 */
.soft-widget { background: #fff; border-radius: 10px; padding: 20px; box-shadow: 0 2px 8px rgba(0,0,0,.04); margin-bottom: 20px; }
.soft-widget-title { font-size: 16px; color: #333; margin: 0 0 15px; padding-bottom: 10px; border-bottom: 1px solid #f0f0f0; }

/* 软件信息列表 */
.soft-info-list { list-style: none; margin: 0; padding: 0; }
.soft-info-list li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed #f0f0f0; }
.soft-info-list li:last-child { border-bottom: none; }
.soft-info-list li span { color: #999; font-size: 14px; }
.soft-info-list li strong { color: #333; font-size: 14px; font-weight: 500; }

/* 更新日志 */
.soft-changelog { max-height: 400px; overflow-y: auto; }
.changelog-item { padding: 12px 0; border-bottom: 1px solid #f5f5f5; }
.changelog-item:last-child { border-bottom: none; }
.changelog-date { font-size: 14px; color: #667eea; font-weight: 500; margin-bottom: 6px; display: flex; align-items: center; gap: 10px; }
.changelog-ver { background: #f0f0f0; color: #666; font-size: 12px; padding: 2px 8px; border-radius: 10px; font-weight: normal; }
.changelog-content { font-size: 13px; color: #666; line-height: 1.7; }

/* 热门软件列表 */
.soft-hot-list { }
.soft-hot-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid #f5f5f5; text-decoration: none; transition: all .2s; }
.soft-hot-item:last-child { border-bottom: none; }
.soft-hot-item:hover { background: #fafafa; margin: 0 -10px; padding: 12px 10px; border-radius: 6px; }
.soft-hot-item img { width: 60px; height: 60px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.soft-hot-thumb-empty { width: 60px; height: 60px; border-radius: 8px; background: #f5f5f5; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.soft-hot-thumb-empty i { font-size: 24px; color: #ddd; }
.soft-hot-info { flex: 1; min-width: 0; }
.soft-hot-info h5 { font-size: 14px; color: #333; margin: 0 0 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.soft-hot-info p { font-size: 12px; color: #999; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 购买弹窗样式 */
.buy-modal { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 9999; }
.buy-modal-content { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: #fff; border-radius: 12px; width: 420px; max-width: 90%; box-shadow: 0 10px 40px rgba(0,0,0,0.2); }
.buy-modal-header { padding: 20px 24px; border-bottom: 1px solid #f0f0f0; display: flex; justify-content: space-between; align-items: center; }
.buy-modal-header h3 { margin: 0; font-size: 18px; }
.buy-modal-close { cursor: pointer; font-size: 24px; color: #999; line-height: 1; }
.buy-modal-close:hover { color: #333; }
.buy-modal-body { padding: 24px; }
.buy-option { display: flex; align-items: center; padding: 16px; border: 2px solid #e8e8e8; border-radius: 10px; margin-bottom: 12px; cursor: pointer; transition: all 0.2s; }
.buy-option:hover { border-color: #667eea; }
.buy-option.active { border-color: #667eea; background: #f8f7ff; }
.buy-option input { display: none; }
.buy-option-radio { width: 20px; height: 20px; border: 2px solid #d9d9d9; border-radius: 50%; margin-right: 12px; position: relative; flex-shrink: 0; }
.buy-option.active .buy-option-radio { border-color: #667eea; }
.buy-option.active .buy-option-radio::after { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 10px; height: 10px; background: #667eea; border-radius: 50%; }
.buy-option-info { flex: 1; }
.buy-option-name { font-size: 16px; font-weight: 500; color: #333; }
.buy-option-price { font-size: 20px; font-weight: bold; color: #ff5722; margin-top: 4px; }
.pay-method { margin-top: 20px; }
.pay-method-title { font-size: 14px; color: #666; margin-bottom: 12px; }
.pay-method-list { display: flex; gap: 12px; }
.pay-method-item { flex: 1; padding: 14px; border: 2px solid #e8e8e8; border-radius: 8px; text-align: center; cursor: pointer; transition: all 0.2s; }
.pay-method-item:hover { border-color: #667eea; }
.pay-method-item.active { border-color: #667eea; background: #f8f7ff; }
.pay-method-item i { font-size: 28px; display: block; margin-bottom: 6px; }
.pay-method-item.alipay img { width: 28px; height: 28px; display: block; margin: 0 auto 6px; }
.pay-method-item.balance i { color: #faad14; }
.pay-method-item span { font-size: 13px; color: #666; }
.buy-remark { margin-top: 20px; }
.buy-remark textarea { width: 100%; border: 1px solid #e8e8e8; border-radius: 6px; padding: 10px 12px; font-size: 14px; resize: none; height: 60px; box-sizing: border-box; }
.buy-remark textarea:focus { outline: none; border-color: #667eea; }
.buy-modal-footer { padding: 16px 24px; border-top: 1px solid #f0f0f0; display: flex; justify-content: space-between; align-items: center; }
.buy-total { font-size: 14px; color: #666; }
.buy-total strong { font-size: 24px; color: #ff5722; }
.buy-submit { padding: 12px 36px; background: linear-gradient(135deg, #667eea, #764ba2); color: #fff; border: none; border-radius: 8px; font-size: 16px; cursor: pointer; transition: all 0.2s; }
.buy-submit:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(102,126,234,0.4); }
.buy-submit:disabled { background: #d9d9d9; cursor: not-allowed; transform: none; box-shadow: none; }
.user-balance { font-size: 12px; color: #999; margin-top: 4px; }

/* 响应式适配 */
@media (max-width: 768px) {
    .soft-hero { padding: 25px; }
    .soft-hero-content { flex-direction: column; align-items: center; text-align: center; }
    .soft-hero-thumb { width: 120px; height: 120px; }
    .soft-hero-info h1 { font-size: 24px; }
    .soft-hero-actions { justify-content: center; }
    .soft-body { flex-direction: column; }
    .soft-sidebar { width: 100%; }
}
