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

/* 确保导航图标不会被其他元素遮挡 */
body {
    position: relative;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    background:
        radial-gradient(1000px 420px at 8% -8%, rgba(102, 126, 234, 0.10), transparent 55%),
        radial-gradient(800px 360px at 92% 0%, rgba(118, 75, 162, 0.08), transparent 50%),
        #f5f7fb;
    min-height: 100vh;
    padding: 20px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.08);
    padding: 40px;
    border: 1px solid rgba(226, 232, 240, 0.9);
}

header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

/* 标题下的导航链接容器 */
.header-nav-links {
    text-align: left;
    margin-top: 20px;
    display: flex;
    gap: 20px;
    align-items: center;
}

.language-switcher {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    align-items: center;
}

.language-switcher .lang-toggle-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    border: 1.5px solid #e0e0e0;
    border-radius: 24px;
    padding: 4px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    min-width: 140px;
    height: 36px;
}

.language-switcher .lang-toggle-container:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    border-color: #667eea;
}

.language-switcher .lang-option {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 500;
    color: #666;
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    padding: 0 12px;
}

.language-switcher .lang-toggle-container.lang-zh .lang-option-zh,
.language-switcher .lang-toggle-container.lang-en .lang-option-en {
    color: #667eea;
    font-weight: 600;
}

.language-switcher .lang-toggle-bg {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 4px);
    height: calc(100% - 8px);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
}

.language-switcher .lang-toggle-container.lang-en .lang-toggle-bg {
    transform: translateX(100%);
}

.language-switcher .lang-toggle-slider {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 20px;
}

@media (max-width: 768px) {
    .language-switcher {
        position: static;
        justify-content: center;
        margin-bottom: 20px;
    }
}

h1 {
    font-size: 2.5rem;
    color: #1a202c;
    margin-bottom: 12px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.subtitle {
    color: #718096;
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 8px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #2d3748;
    font-size: 0.95rem;
    letter-spacing: 0.2px;
}

input, textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #fafafa;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

textarea {
    min-height: 150px;
    resize: vertical;
}

.btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-right: 10px;
    margin-bottom: 10px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.btn:hover::before {
    left: 100%;
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #fff;
    color: #4a5568;
    border: 2px solid #e2e8f0;
    box-shadow: none;
}

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

.btn-secondary:hover {
    background: #f7fafc;
    color: #2d3748;
    border-color: #cbd5e0;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
    transform: translateY(-1px);
}

.btn-secondary:active {
    transform: translateY(0);
    box-shadow: none;
}

.btn-row,
.button-group,
.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin: 8px 0 4px;
}

.btn-row .btn,
.button-group .btn,
.actions .btn {
    margin-right: 0;
    margin-bottom: 0;
}

.copy-section {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.btn-danger,
.key-value-item button {
    background: #fff;
    color: #c53030;
    border: 1px solid #feb2b2;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-danger:hover,
.key-value-item button:hover {
    background: #fff5f5;
    border-color: #fc8181;
}

.add-button {
    background: #fff;
    color: #2f855a;
    border: 1px solid #9ae6b4;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.add-button:hover {
    background: #f0fff4;
    border-color: #68d391;
}

.header-nav-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 8px;
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.header-nav-links a:hover {
    background: #eef2ff;
    text-decoration: none;
}

.result {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    word-break: break-all;
}

.result-item {
    margin-bottom: 20px;
    padding: 20px;
    border-left: 4px solid #667eea;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.result-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateX(4px);
}

.result-title {
    font-weight: 700;
    margin-bottom: 12px;
    color: #1a202c;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.result-title::before {
    content: '▶';
    color: #667eea;
    font-size: 0.9em;
}

.result-value {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro', monospace;
    word-break: break-all;
    white-space: pre-wrap;
    color: #2d3748;
    font-size: 0.95rem;
    font-weight: 500;
    margin: 12px 0;
    padding: 12px 16px;
    background: #f7fafc;
    border-radius: 6px;
    overflow-x: auto;
    clear: both;
    display: block;
    min-width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    border: 1px solid #e2e8f0;
    line-height: 1.6;
}

.copy-btn {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.copy-btn::before {
    content: '📋';
    font-size: 0.9em;
}

.copy-btn:hover {
    background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(76, 175, 80, 0.4);
}

.copy-btn:active {
    transform: translateY(0);
}

.back-link {
    display: inline-block;
    margin-top: 20px;
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.back-link:hover {
    text-decoration: underline;
}

footer {
    text-align: center;
    color: #555;
    padding: 30px 0;
    margin-top: 30px;
    font-size: 0.9rem;
    opacity: 0.8;
}

footer a {
    color: #4a90e2;
    text-decoration: none;
    margin-left: 15px;
    transition: color 0.3s;
}

footer a:hover {
    color: #357abd;
    text-decoration: underline;
}

/* 导航图标样式 - 已隐藏 */
.nav-icon {
    display: none !important;
}

/* 工具菜单样式 - 已隐藏 */
.tools-menu {
    display: none !important;
}

/* 快速导航提示文字样式 - 已隐藏 */
.nav-hint {
    display: none !important;
}

/* 首页链接样式 - 与底部返回链接对齐 */
.home-link,
.quick-nav-link {
    display: inline-block;
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    margin-top: 0;
}

.home-link:hover,
.quick-nav-link:hover {
    text-decoration: underline;
}

/* 二维码工具特定样式 */
.qr-section {
    margin-bottom: 40px;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fafafa;
}

.qr-section h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.3rem;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

.qr-image-container {
    text-align: center;
    margin: 15px 0;
}

.qr-image-container canvas {
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.qr-actions {
    margin-top: 15px;
    text-align: center;
}

.qr-actions .copy-btn {
    margin: 0 5px;
}

select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    background: #fafafa;
    transition: all 0.3s ease;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23667eea' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

select:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

input[type="file"] {
    width: 100%;
    padding: 14px 16px;
    border: 2px dashed #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    background: #fafafa;
    transition: all 0.3s ease;
    cursor: pointer;
}

input[type="file"]:hover {
    border-color: #667eea;
    background: #f0f4ff;
}

input[type="file"]:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* 带宽计算器特定样式 */
.bandwidth-calculator {
    margin-bottom: 30px;
}

.mode-selector {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
}

.mode-btn {
    background: none;
    border: none;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.mode-btn.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

.mode-btn:hover {
    color: #667eea;
    background-color: #f8f9fa;
}

.mode-content {
    display: none;
}

.mode-content.active {
    display: block;
}

.mode-content h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.mode-description {
    color: #666;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 0.95rem;
}

.input-with-unit {
    display: flex;
    gap: 10px;
}

.input-with-unit input {
    flex: 1;
    min-width: 200px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
}

.input-with-unit select {
    width: 150px;
    min-width: 120px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
}

.calculate-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.bandwidth-calculator .result {
    margin-top: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.bandwidth-calculator .result h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.bandwidth-calculator .result-output {
    background: white;
    border-radius: 6px;
    padding: 15px;
}

.bandwidth-calculator .result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    margin-bottom: 0;
    border-left: none;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    border-bottom: 1px solid #f0f0f0;
}

.bandwidth-calculator .result-item:hover {
    transform: none;
    box-shadow: none;
}

.bandwidth-calculator .result-item:last-child {
    border-bottom: none;
}

.bandwidth-calculator .result-label {
    font-weight: 500;
    color: #555;
    font-size: 0.95rem;
}

.bandwidth-calculator .result-value {
    font-weight: 600;
    color: #667eea;
    font-size: 1rem;
    font-family: inherit;
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    min-width: 0;
    max-width: none;
    overflow-x: visible;
}

.bandwidth-calculator .result-detail {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.bandwidth-calculator .result-detail p {
    margin: 5px 0;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
}

.error {
    color: #e74c3c;
    font-weight: 500;
    background: #ffeaea;
    padding: 10px;
    border-radius: 4px;
    border-left: 4px solid #e74c3c;
}

.reference-section {
    margin-top: 40px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.reference-section h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.reference-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.reference-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: white;
    border-radius: 6px;
    border-left: 3px solid #667eea;
}

.reference-item span:first-child {
    font-weight: 500;
    color: #555;
}

.reference-item span:last-child {
    color: #667eea;
    font-weight: 600;
}

/* 响应式设计 */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .container {
        padding: 20px;
        border-radius: 12px;
    }
    
    .header-nav-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .subtitle {
        font-size: 0.95rem;
    }
    
    .nav-icon {
        width: 48px;
        height: 48px;
        top: 15px;
        right: 15px;
    }
    
    .nav-icon::before {
        font-size: 22px;
    }
    
    .tools-menu {
        top: 70px;
        right: 15px;
        width: calc(100vw - 30px);
        max-width: 300px;
        max-height: calc(100vh - 100px);
    }
    
    .nav-hint {
        top: 15px;
        right: 70px;
        font-size: 11px;
        padding: 8px 14px;
    }
    
    .btn {
        width: 100%;
        margin-right: 0;
        margin-bottom: 12px;
    }
    
    .mode-selector {
        flex-direction: column;
    }
    
    .mode-btn {
        text-align: center;
        border-bottom: none;
        border-left: 3px solid transparent;
    }
    
    .mode-btn.active {
        border-left-color: #667eea;
        border-bottom-color: transparent;
    }
    
    .input-with-unit {
        flex-direction: column;
        gap: 10px;
    }
    
    .input-with-unit select {
        width: 100%;
    }
    
    .reference-grid {
        grid-template-columns: 1fr;
    }
    
    .result-item {
        padding: 16px;
    }
    
    .result-value {
        font-size: 0.85rem;
        padding: 10px 12px;
    }
    
    .copy-btn {
        margin-top: 0;
    }

    .copy-section .copy-btn {
        flex: 1 1 calc(50% - 10px);
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 16px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    .tools-menu {
        width: calc(100vw - 20px);
    }
}

/* 快捷导航样式 */
.quick-nav {
    margin-top: 32px;
    padding: 18px 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.quick-nav h3 {
    margin-top: 0;
    margin-bottom: 14px;
    color: #1a202c;
    font-size: 1.05rem;
}

.quick-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 6px 10px;
}

.quick-nav li {
    margin: 0;
    padding: 0;
}

.quick-nav a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 10px;
    text-decoration: none;
    color: #4c51bf;
    border-radius: 8px;
    transition: background-color 0.2s ease, color 0.2s ease;
    line-height: 1.35;
    min-height: 40px;
}

.quick-nav a:hover {
    background: #eef2ff;
    color: #434190;
}

.quick-nav a.active,
.quick-nav li.active a {
    color: #c53030;
    background: #fff5f5;
    font-weight: 600;
}

/* 快捷导航联系我们区域 */
.quick-nav-contact {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

.quick-nav-contact a {
    display: inline-block;
    padding: 10px 20px;
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.quick-nav-contact a:hover {
    background: #eef2ff;
    text-decoration: underline;
}

/* 快捷导航底部区域 */
.quick-nav-footer {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

.quick-nav-footer .back-home-btn {
    display: inline-block;
    padding: 10px 20px;
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.quick-nav-footer .back-home-btn:hover {
    background: #eef2ff;
    text-decoration: underline;
}


/* 紧凑结果网格（按位运算等）— 覆盖通用 result 卡片样式 */
.result-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

@media (max-width: 640px) {
    .result-grid {
        grid-template-columns: 1fr;
    }
}

.result-grid .result-item {
    margin-bottom: 0;
    padding: 16px;
    background: #f8fafc;
    border-radius: 10px;
    border-left: 4px solid #667eea;
    box-shadow: none;
    transform: none;
}

.result-grid .result-item:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.result-grid .result-label {
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.result-grid .result-value {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 1rem;
    font-weight: 600;
    color: #2d3748;
    word-break: break-all;
    white-space: pre-wrap;
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    box-shadow: none;
}

/* 颜色格式卡片内的复制按钮对齐 */
.format-card .copy-btn,
.format-card .format-value + .copy-btn {
    width: 100%;
    justify-content: center;
}

/* Tab 工具（字符串处理等） */
.tab-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 20px;
    padding-bottom: 2px;
}

.tab-button {
    padding: 10px 14px;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-bottom: none;
    cursor: pointer;
    font-size: 0.92rem;
    font-weight: 500;
    color: #4a5568;
    transition: all 0.2s ease;
    border-radius: 8px 8px 0 0;
    margin-right: 0;
    line-height: 1.35;
    max-width: 100%;
}

.tab-button:hover {
    background: #edf2f7;
    color: #2d3748;
}

.tab-button.active {
    background: #667eea;
    border-color: #667eea;
    color: white;
}

/* 下载按钮与复制按钮体系统一 */
.download-btn {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.download-btn::before {
    content: '⬇';
    font-size: 0.9em;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(76, 175, 80, 0.4);
}


.btn-reset {
    background: #fff;
    color: #4a5568;
    border: 2px solid #e2e8f0;
    box-shadow: none;
}

.btn-reset::before { display: none; }

.btn-reset:hover {
    background: #f7fafc;
    color: #2d3748;
    border-color: #cbd5e0;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}


/* 分组快速导航 */
.quick-nav-groups {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.quick-nav-group h4 {
    margin: 0 0 8px;
    font-size: 0.95rem;
    color: #2d3748;
    font-weight: 700;
}

.quick-nav-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 6px 10px;
}

.quick-nav-group li {
    margin: 0;
    padding: 0;
}

.quick-nav-group a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 10px;
    text-decoration: none;
    color: #4c51bf;
    border-radius: 8px;
    transition: background-color 0.2s ease, color 0.2s ease;
    line-height: 1.35;
    min-height: 40px;
}

.quick-nav-group a:hover {
    background: #eef2ff;
    color: #434190;
}
