/* ========================================
   UI精致化样式 - pppet工具箱
   ======================================== */

/* ========================================
   1. 颜色系统和视觉层次
   ======================================== */
:root {
    --accent: #3D9A99;
    --accent-light: #5DBAB9;
    --accent-dark: #2D7A79;
    --accent-rgb: 61, 154, 153;

    --accent-gradient: linear-gradient(135deg, #3D9A99 0%, #2D7A79 100%);
    --accent-gradient-hover: linear-gradient(135deg, #4DAAA9 0%, #3D8A89 100%);
    --card-gradient: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
    --nav-gradient: linear-gradient(135deg, #3D9A99 0%, #2D7A79 100%);

    --bg-primary: #F5F7FA;
    --bg-secondary: #EBEEF5;
    --bg-card: #ffffff;
    --bg-hover: #f0f2f5;

    --text-primary: #1F2937;
    --text-secondary: #6B7280;
    --text-tertiary: #9CA3AF;
    --text-inverse: #ffffff;

    --border-light: #E5E7EB;
    --border-medium: #D1D5DB;
    --border-focus: var(--accent);

    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.03);
    --shadow-glow: 0 0 20px rgba(var(--accent-rgb), 0.3);

    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --spring: cubic-bezier(0.34, 1.56, 0.64, 1);

    --duration-fast: 150ms;
    --duration-normal: 200ms;
    --duration-slow: 300ms;
    --transition-fast: all var(--duration-fast) var(--ease-out);
    --transition-normal: all var(--duration-normal) var(--ease-out);
    --transition-slow: all var(--duration-slow) var(--ease-out);
}

/* ========================================
   2. 基础样式
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    background: var(--bg-primary);
    color: var(--text-secondary);
    transition: var(--transition-normal);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ========================================  
   3. 导航栏 - 紧凑化
   ========================================
   */
.nav {
    background: var(--nav-gradient);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 100;
}

/* 二级菜单 */
.secondary-nav {
    background: linear-gradient(180deg, var(--bg-card) 0%, #fafbfc 100%);
    border-bottom: 2px solid var(--accent);
    margin-bottom: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
    width: 100%;
}

.secondary-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-light), transparent);
    opacity: 0.5;
}

.secondary-nav-container {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 0;
    min-height: 32px;
    position: relative;
    z-index: 1;
}

.secondary-nav-item {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1px solid transparent;
}

.secondary-nav-item span:first-child {
    font-size: 14px;
    line-height: 1;
}

.secondary-nav-item:hover span:first-child {
    transform: scale(1.05);
}

.secondary-nav-item.active span:first-child {
    transform: scale(1.08);
}

.secondary-nav-item::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: all 0.2s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}

.secondary-nav-item:hover {
    background: rgba(var(--accent-rgb), 0.06);
    color: var(--accent);
}

.secondary-nav-item:hover::before {
    width: 60%;
}

.secondary-nav-item.active {
    background: var(--accent-gradient);
    color: var(--text-inverse);
    font-weight: 600;
}

.secondary-nav-item.active::before {
    width: 100%;
    background: rgba(255, 255, 255, 0.4);
}

.secondary-nav-item:active {
    transform: scale(0.98);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 36px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.logo a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: -0.02em;
    transition: var(--transition-fast);
}

.logo a:hover {
    opacity: 0.9;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.nav-item {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.nav-item.active {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    font-weight: 600;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
}

/* ========================================
   4. 按钮样式
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent-gradient);
    color: var(--text-inverse);
    box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: var(--shadow-xs);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1.5px solid var(--border-medium);
    box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
    background: var(--bg-hover);
    border-color: var(--accent);
    color: var(--accent);
}

/* ========================================
   5. 表单样式
   ======================================== */
.input-field {
    width: 100%;
    padding: 10px 14px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-primary);
    background: var(--bg-card);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
    outline: none;
}

.input-field:hover {
    border-color: var(--border-medium);
}

.input-field:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.12);
}

.input-field::placeholder {
    color: var(--text-tertiary);
}

textarea.input-field {
    resize: vertical;
    min-height: 100px;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', monospace;
}

/* Radio和Checkbox */
input[type="radio"],
input[type="checkbox"] {
    appearance: none;
    width: 16px;
    height: 16px;
    border: 2px solid var(--border-medium);
    background: var(--bg-card);
    cursor: pointer;
    transition: var(--transition-fast);
    vertical-align: middle;
    margin-right: 4px;
}

input[type="radio"] {
    border-radius: 50%;
}

input[type="checkbox"] {
    border-radius: 3px;
}

input[type="radio"]:checked,
input[type="checkbox"]:checked {
    background: var(--accent);
    border-color: var(--accent);
}

input[type="checkbox"]:checked::after {
    content: '';
    display: block;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin: 1px 0 0 4px;
}

input[type="radio"]:checked::after {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    margin: 2px 0 0 2px;
}

/* ========================================
   6. 卡片样式 - 紧凑化
   ======================================== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-gradient);
    opacity: 0;
    transition: var(--transition-normal);
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(var(--accent-rgb), 0.3);
}

.card:hover::before {
    opacity: 1;
}

.tool-card {
    display: block;
    text-decoration: none;
    padding: 16px;
}

.tool-card .icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.tool-card:hover .icon {
    transform: scale(1.05);
}

.tool-card h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
    transition: var(--transition-fast);
}

.tool-card:hover h3 {
    color: var(--accent);
}

.tool-card p {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 8px;
}

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

.tool-card .tag {
    font-size: 10px;
    padding: 3px 8px;
    background: var(--bg-secondary);
    color: var(--text-tertiary);
    border-radius: var(--radius-full);
    font-weight: 500;
}

.tool-card:hover .tag {
    background: rgba(var(--accent-rgb), 0.1);
    color: var(--accent);
}

/* ========================================
   7. Cron工具样式 - 紧凑化
   ======================================== */
.cron-container {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 16px;
    margin: 0;
    border: 1px solid var(--border-light);
}

.cron-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--bg-secondary);
    flex-wrap: wrap;
    gap: 12px;
}

.cron-header h1 {
    font-size: 18px;
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.quick-presets {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.preset-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 11px;
    font-weight: 500;
    transition: var(--transition-normal);
}

.preset-btn:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    transform: translateY(-1px);
}

.cron-tabs {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.cron-tabs .tabs-header {
    display: flex;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-light);
    overflow-x: auto;
}

.cron-tabs .tab-btn {
    padding: 10px 16px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition-normal);
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}

.cron-tabs .tab-btn:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.cron-tabs .tab-btn.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
    background: var(--bg-card);
}

.cron-tabs .tab-content {
    display: none;
    padding: 12px;
    background: var(--bg-card);
}

.cron-tabs .tab-content.active {
    display: block;
}

/* Cron工具中的line和imp */
.line {
    height: 28px;
    line-height: 28px;
    margin: 4px 0;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
}

.line input[type="text"],
.line input[type="number"] {
    padding: 4px 8px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 13px;
    width: 50px;
}

.imp {
    padding-left: 20px;
    margin: 4px 0;
    font-size: 12px;
    color: var(--text-secondary);
}

.imp input[type="checkbox"] {
    margin-right: 2px;
}

/* 结果面板 - 紧凑化 */
.result-panel {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 12px;
    margin-top: 12px;
    border: 1px solid var(--border-light);
}

.result-panel h3 {
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.result-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 12px;
}

.result-table th,
.result-table td {
    padding: 8px 6px;
    text-align: center;
    border: 1px solid var(--border-light);
}

.result-table th {
    background: var(--bg-card);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
}

.result-table td input {
    width: 50px;
    padding: 4px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    text-align: center;
    background: var(--bg-card);
    color: var(--text-primary);
    font-family: 'SF Mono', monospace;
    font-size: 12px;
}

.cron-expression {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px 0;
    flex-wrap: wrap;
}

.cron-expression input {
    flex: 1;
    min-width: 180px;
    padding: 10px 14px;
    border: 2px solid var(--accent);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-family: 'SF Mono', monospace;
    background: var(--bg-card);
    color: var(--text-primary);
    box-shadow: var(--shadow-xs);
}

.copy-btn {
    background: var(--accent-gradient);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-sm);
    white-space: nowrap;
}

.copy-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.run-times {
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    padding: 10px;
    margin-top: 12px;
    border: 1px solid var(--border-light);
}

.run-times h4 {
    color: var(--text-primary);
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.run-times ul {
    list-style: none;
    color: var(--accent);
}

.run-times li {
    padding: 4px 0;
    font-family: 'SF Mono', monospace;
    font-size: 12px;
    border-bottom: 1px dashed var(--border-light);
}

.run-times li:last-child {
    border-bottom: none;
}

/* ========================================
   8. 工具页面样式 - 紧凑化
   ======================================== */
.tool-container {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 16px;
    margin: 0;
    border: 1px solid var(--border-light);
}

.tool-header {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--bg-secondary);
}

.tool-header h1 {
    font-size: 18px;
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 4px;
}

.tool-header p {
    color: var(--text-secondary);
    font-size: 13px;
}

.tool-board {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.editor-panel {
    flex: 1;
    min-width: 280px;
}

.editor-panel h3 {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.editor-panel textarea {
    width: 100%;
    height: 280px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 12px;
    font-family: 'SF Mono', monospace;
    font-size: 12px;
    resize: vertical;
    background: var(--bg-card);
    color: var(--text-primary);
}

.action-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    min-width: 100px;
}

.action-panel label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.action-panel select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 12px;
    cursor: pointer;
}

.result-panel textarea {
    width: 100%;
    height: 280px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 12px;
    font-family: 'SF Mono', monospace;
    font-size: 12px;
    resize: vertical;
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.status-bar {
    margin-top: 12px;
    padding: 10px 14px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    font-size: 12px;
    color: var(--text-secondary);
}

.status-bar .valid {
    color: #10B981;
    font-weight: 500;
}

.status-bar .invalid {
    color: #EF4444;
    font-weight: 500;
}

/* ========================================
   9. Footer - 紧凑化
   ======================================== */
.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-light);
    padding: 16px 0;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    text-align: center;
}

.footer-links {
    margin-bottom: 8px;
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-copyright {
    font-size: 12px;
    color: var(--text-tertiary);
}

.footer-copyright a {
    color: var(--text-secondary);
    text-decoration: none;
}

/* ========================================
   10. 首页Hero - 紧凑化
   ======================================== */
.hero {
    text-align: center;
    padding: 32px 0 24px;
}

.hero h1 {
    font-size: 28px;
    color: var(--text-primary);
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.hero p {
    font-size: 14px;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

.search-box {
    max-width: 400px;
    margin: 20px auto 0;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-lg);
    font-size: 14px;
    background: var(--bg-card);
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
}

.search-box input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: var(--shadow-md), 0 0 0 3px rgba(var(--accent-rgb), 0.1);
}

.search-box::before {
    content: "🔍";
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
}

.tools-section {
    padding: 24px 0;
}

.section-title {
    font-size: 16px;
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title::before {
    content: "";
    width: 4px;
    height: 18px;
    background: var(--accent-gradient);
    border-radius: 2px;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.ai-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 9px;
    padding: 2px 6px;
    border-radius: var(--radius-full);
    margin-left: 6px;
    font-weight: 700;
}

.coming-soon {
    opacity: 0.5;
    cursor: not-allowed;
}

.coming-soon:hover {
    transform: none !important;
    border-color: var(--border-light) !important;
}

.coming-soon:hover::before {
    opacity: 0 !important;
}

.coming-soon .badge {
    background: var(--bg-secondary);
    color: var(--text-tertiary);
    font-size: 9px;
    padding: 2px 6px;
    border-radius: var(--radius-full);
    margin-left: 6px;
}

/* ========================================  
   11. 主布局 - 两列模式
   ========================================
 */

.main-layout {
    width: 1200px;
    display: flex;
    gap: 24px;
    margin-bottom: 40px;
}

.main-content {
    width: 100%;
    max-width: 100%;
}

.sidebar {
    flex: 3;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-section {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 16px;
}

.sidebar-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sidebar-title::before {
    content: "";
    width: 3px;
    height: 14px;
    background: var(--accent);
    border-radius: 2px;
}

.tool-links {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 -4px;
}

.tool-links li {
    flex: 1 0 calc(50% - 8px);
    margin: 0 4px;
    min-width: 120px;
}

.article-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tool-links a,
.article-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
    font-size: 13px;
}

.tool-links a span:first-child {
    font-size: 14px;
    width: 16px;
    text-align: center;
}

.tool-links a:hover,
.article-links a:hover {
    background: var(--bg-hover);
    color: var(--accent);
}

.work-section {
    min-height: 200px;
}

.work-placeholder {
    width: 100%;
    height: 180px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    font-size: 13px;
    border: 1px dashed var(--border-medium);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .main-layout {
        gap: 20px;
    }

    .sidebar {
        min-width: 240px;
    }
}

@media (max-width: 768px) {
    .main-layout {
        flex-direction: column;
        gap: 20px;
    }

    .main-content,
    .sidebar {
        flex: 1;
        min-width: 100%;
    }

    .sidebar {
        order: -1;
    }
}

/* ========================================  
   12. 返回顶部按钮
   ========================================
 */
#goTop {
    cursor: pointer;
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-gradient);
    color: white;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    z-index: 99;
    font-size: 16px;
    border: none;
}

#goTop:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ========================================
   12. 滚动条
   ======================================== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-medium);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-tertiary);
}

/* ========================================
   13. 动画
   ======================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.animate-fade-in {
    animation: fadeIn var(--duration-normal) var(--ease-out);
}

/* ========================================
   14. 响应式
   ======================================== */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-card);
        box-shadow: var(--shadow-lg);
        padding: 12px;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        border-top: 1px solid var(--border-light);
    }

    .nav-menu.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .nav-item {
        color: var(--text-primary);
        width: 100%;
    }

    .nav-item:hover {
        background: var(--bg-hover);
        color: var(--accent);
    }

    .nav-item.active {
        background: var(--bg-hover);
        color: var(--accent);
    }

    .secondary-nav {
        margin-bottom: 0;
        padding: 0 8px;
    }

    .secondary-nav::before {
        display: none;
    }

    .secondary-nav-container {
        padding: 6px 8px;
        min-height: 32px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        gap: 4px;
    }

    .secondary-nav-item {
        padding: 4px 10px;
        font-size: 12px;
        scroll-snap-align: start;
        flex-shrink: 0;
    }

    .secondary-nav-item span:first-child {
        font-size: 13px;
    }

    .secondary-nav-item::before {
        display: none;
    }

    .secondary-nav-item:hover {
        transform: none;
        box-shadow: none;
    }

    .secondary-nav-item:hover span:first-child {
        transform: none;
    }

    .secondary-nav-item.active {
        box-shadow: 0 2px 6px rgba(var(--accent-rgb), 0.25);
    }

    .secondary-nav-item.active span:first-child {
        transform: scale(1.05);
    }

    .nav-container {
        height: 48px;
    }

    .hero {
        padding: 24px 0 16px;
    }

    .hero h1 {
        font-size: 22px;
    }

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

    .tool-board {
        flex-direction: column;
    }

    .action-panel {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .editor-panel textarea,
    .result-panel textarea {
        height: 180px;
    }

    .cron-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .quick-presets {
        width: 100%;
    }

    .preset-btn {
        flex: 1;
        text-align: center;
    }

    .cron-expression {
        flex-direction: column;
    }

    .cron-expression input {
        width: 100%;
    }

    .copy-btn {
        width: 100%;
    }

    .result-table th,
    .result-table td {
        padding: 6px 4px;
        font-size: 10px;
    }

    .result-table td input {
        width: 40px;
        font-size: 10px;
        padding: 4px;
    }

    .footer-links {
        flex-direction: column;
        gap: 8px;
    }

    #goTop {
        width: 36px;
        height: 36px;
        font-size: 14px;
        bottom: 16px;
        right: 16px;
    }
}
