/* 易支付工具站 - 样式 */
:root {
    --primary: #1a56db;
    --primary-light: #3b82f6;
    --bg: #f5f7fa;
    --card: #ffffff;
    --text: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --border: #e5e7eb;
    --radius: 12px;
    --radius-sm: 8px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}
a { text-decoration: none; color: inherit; }

/* 顶部导航 */
.header {
    background: #fff;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 60px;
    display: flex;
    align-items: center;
    gap: 30px;
}
.logo {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}
.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
}
.nav {
    display: flex;
    gap: 4px;
    flex: 1;
}
.nav a {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text-secondary);
    transition: all 0.2s;
}
.nav a:hover, .nav a.active {
    background: #eff6ff;
    color: var(--primary);
}
.search-box {
    display: flex;
    align-items: center;
    background: var(--bg);
    border-radius: 20px;
    padding: 6px 14px;
    width: 240px;
}
.search-box input {
    border: none;
    background: transparent;
    outline: none;
    flex: 1;
    font-size: 13px;
}

/* Hero区域 */
.hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #1a56db 50%, #3b82f6 100%);
    color: #fff;
    padding: 50px 20px;
    text-align: center;
}
.hero-inner {
    max-width: 800px;
    margin: 0 auto;
}
.hero-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 14px;
}
.hero-desc {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 28px;
}
.hero-search {
    display: flex;
    max-width: 560px;
    margin: 0 auto 30px;
    background: #fff;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.hero-search input {
    flex: 1;
    border: none;
    outline: none;
    padding: 14px 20px;
    font-size: 15px;
}
.hero-search button {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 0 28px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.hero-search button:hover {
    background: #1e40af;
}
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
}
.stat-item {
    text-align: center;
}
.stat-num {
    display: block;
    font-size: 28px;
    font-weight: 800;
}
.stat-label {
    font-size: 13px;
    opacity: 0.8;
}

/* 主体布局 */
.container {
    max-width: 1200px;
    margin: 24px auto;
    padding: 0 20px;
    display: flex;
    gap: 20px;
}
.main { flex: 1; min-width: 0; }
.sidebar { width: 280px; flex-shrink: 0; }

/* 区块 */
.section {
    margin-bottom: 28px;
}
.section-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 工具网格 */
.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}
.tool-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s;
}
.tool-card:hover {
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}
.tool-card-icon {
    font-size: 28px;
    margin-bottom: 10px;
}
.tool-card-name {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
}
.tool-card-desc {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.tool-card-tag {
    display: inline-block;
    margin-top: 8px;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    background: #eff6ff;
    color: var(--primary);
}

/* 分类区块 */
.category-section {
    margin-bottom: 32px;
}
.category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.category-title {
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}
.category-count {
    font-size: 13px;
    color: var(--text-light);
    font-weight: 400;
}

/* 侧边栏 */
.sidebar-card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid var(--border);
}
.sidebar-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 12px;
}

/* 福利专区 */
.welfare-card {
    background: linear-gradient(135deg, #fff 0%, #fef2f2 100%);
    border: 1px solid #fecaca;
}
.welfare-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
}
.welfare-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px;
    border-radius: 8px;
}
.welfare-icon { font-size: 22px; flex-shrink: 0; }
.welfare-name { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.welfare-sub { font-size: 11px; color: var(--text-secondary); }
.welfare-card-btn {
    display: block;
    text-align: center;
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: #fff;
    padding: 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 10px;
    transition: all 0.2s;
}
.welfare-card-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220,38,38,0.3);
}
.welfare-qq {
    text-align: center;
    font-size: 11px;
    color: var(--text-light);
}

/* 面包屑 */
.breadcrumb {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}
.breadcrumb a { color: var(--primary); }
.breadcrumb a:hover { text-decoration: underline; }

/* 工具详情 */
.tool-detail {
    background: var(--card);
    border-radius: var(--radius);
    padding: 28px;
    border: 1px solid var(--border);
}
.tool-detail-header {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}
.tool-detail-icon {
    font-size: 40px;
    margin-bottom: 12px;
}
.tool-detail-name {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 8px;
}
.tool-detail-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* 工具操作区 */
.tool-workspace {
    margin-bottom: 24px;
}
.form-group {
    margin-bottom: 16px;
}
.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}
.form-input, .form-textarea, .form-select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
    background: #fff;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26,86,219,0.1);
}
.form-textarea {
    min-height: 120px;
    resize: vertical;
    font-family: "Consolas", "Monaco", monospace;
}
.form-row {
    display: flex;
    gap: 12px;
}
.form-row .form-group { flex: 1; }
.btn {
    padding: 10px 24px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-primary {
    background: var(--primary);
    color: #fff;
}
.btn-primary:hover { background: #1e40af; }
.btn-secondary {
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-secondary:hover { background: #e5e7eb; }
.btn-success {
    background: #10b981;
    color: #fff;
}
.btn-success:hover { background: #059669; }
.btn-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* 结果区 */
.result-box {
    background: #f9fafb;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-top: 16px;
}
.result-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}
.result-content {
    font-size: 14px;
    font-family: "Consolas", "Monaco", monospace;
    word-break: break-all;
    white-space: pre-wrap;
    color: var(--text);
    background: #fff;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid var(--border);
    min-height: 40px;
}
.result-tip {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 8px;
}

/* 工具说明 */
.tool-info {
    background: #eff6ff;
    border-left: 4px solid var(--primary);
    padding: 16px 20px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin-top: 20px;
}
.tool-info-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}
.tool-info-content {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* 底部 */
.footer {
    background: #1f2937;
    color: #9ca3af;
    padding: 30px 0;
    margin-top: 40px;
    text-align: center;
    font-size: 13px;
}
.footer a { color: #9ca3af; margin: 0 8px; }
.footer a:hover { color: #fff; }

/* 响应式 */
@media (max-width: 768px) {
    .sidebar { display: none; }
    .nav { display: none; }
    .search-box { width: 140px; }
    .hero-title { font-size: 24px; }
    .hero-stats { gap: 20px; }
    .stat-num { font-size: 20px; }
    .tool-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
    .form-row { flex-direction: column; }
}
