/* 科技蓝主题变量 */
:root {
    /* 主要颜色 */
    --primary-color: #0066ff;
    --primary-hover: #0052cc;
    --primary-light: #e6f0ff;
    
    /* 辅助颜色 */
    --secondary-color: #5f6368;
    --secondary-hover: #4a4e51;
    
    /* 状态颜色 */
    --success-color: #00c853;
    --warning-color: #ffc107;
    --danger-color: #f44336;
    --info-color: #03a9f4;
    
    /* 中性色 */
    --light-color: #f8fafc;
    --dark-color: #1a202c;
    --border-color: #e2e8f0;
    --shadow-color: rgba(0, 102, 255, 0.15);
    
    /* 背景色 */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #edf2ff;
    
    /* 文本颜色 */
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --text-light: #718096;
    
    /* 特殊颜色 */
    --footer-bg: #0a1f44;
    --footer-text: #e2e8f0;
    
    /* 字体 */
    --font-family: 'Roboto', 'Segoe UI', system-ui, -apple-system, sans-serif;
    
    /* 尺寸 */
    --header-height: 64px;
    --container-width: 1200px;
    --border-radius: 8px;
    --spacing-unit: 8px;
}

/* 基础样式 */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-secondary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-hover);
}

/* 容器样式 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 导航栏样式 - 精简重复定义 */
.navbar {
    /* 保留基础定位样式 */
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* 卡片样式 */
section {
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 1px 2px var(--shadow-color);
    padding: 24px;
    margin-bottom: 24px;
}

/* 输入框样式 */
input[type="text"],
input[type="number"],
select,
textarea {
    background-color: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 12px;
    font-size: 1rem;
    transition: all 0.3s;
}

input[type="text"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.2);
    outline: none;
}

/* 按钮样式 */
.button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(66, 133, 244, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.button:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 2px 6px rgba(66, 133, 244, 0.3);
    transform: translateY(-1px);
}

.button:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(66, 133, 244, 0.2);
}

.button:disabled {
    background-color: #e8f0fe;
    color: #9aa0a6;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* 按钮成功状态 */
.button.success {
    background-color: var(--success-color);
    animation: pulseSuccess 0.5s ease;
}

@keyframes pulseSuccess {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* 按钮错误状态 */
.button.error {
    background-color: var(--danger-color);
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}

/* 加载状态文本隐藏 */
.button.loading {
    color: transparent;
    position: relative;
}

.button.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
}

/* 卡片悬停效果 */
section {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

section:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.15);
}

/* 标题样式 */
h1 {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

h2 {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

h3 {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
}

/* 加载动画 */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
}

/* 按钮加载状态 */
.button.loading {
    position: relative;
    color: transparent;
}

.button.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

/* 输入框过渡效果 */
input, select, textarea {
    transition: 
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

input:focus, select:focus, textarea:focus {
    transform: scale(1.01);
}

/* 卡片入场动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section {
    animation: fadeInUp 0.4s ease forwards;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .container {
        padding: 12px;
    }
    
    section {
        padding: 16px;
        margin-bottom: 16px;
        animation: none; /* 移动端禁用动画 */
    }
    
    .button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* 减少运动偏好 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* 页脚样式 */
.site-footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 32px 0;
    margin-top: 40px;
}

/* 基础样式已在上方定义，删除重复部分 */

/* 导航栏样式 */
.navbar {
    background-color: var(--primary-color);
    box-shadow: 0 2px 10px var(--shadow-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar:hover {
    box-shadow: 0 4px 15px rgba(66, 133, 244, 0.25);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 64px;
}

.nav-brand a {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
}

.nav-brand a::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: white;
    border-radius: 50%;
    margin-right: 10px;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    margin-left: 5px;
    position: relative;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: block;
    letter-spacing: 0.3px;
}

.nav-link:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.nav-link.active {
    color: white;
    background-color: rgba(255, 255, 255, 0.2);
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background-color: white;
    border-radius: 3px;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger {
    display: block;
    position: relative;
    width: 24px;
    height: 2px;
    background-color: white;
    transition: all 0.3s;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: white;
    transition: all 0.3s;
}

.hamburger::before {
    transform: translateY(-8px);
}

.hamburger::after {
    transform: translateY(8px);
}

.nav-toggle.active .hamburger {
    background-color: transparent;
}

.nav-toggle.active .hamburger::before {
    transform: rotate(45deg);
}

.nav-toggle.active .hamburger::after {
    transform: rotate(-45deg);
}

/* 页面头部 */
.page-header {
    text-align: center;
    margin-bottom: 30px;
}

h1 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

h3 {
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

section {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px var(--shadow-color);
    padding: 20px;
    margin-bottom: 30px;
}

/* 文件上传区域 */
.upload-area {
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.upload-area.dragover {
    border-color: var(--primary-color);
    background-color: rgba(74, 111, 165, 0.05);
}

.upload-area input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 10;
}

.upload-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-bottom: 10px;
}

.upload-button:hover {
    background-color: var(--primary-hover);
}

.drag-text {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

/* 文件列表 */
.file-list-container {
    margin-top: 20px;
}

.file-list-container {
    margin-top: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 15px;
}

.file-list {
    list-style: none;
    max-height: 300px;
    overflow-y: auto;
    padding: 5px;
    min-height: 50px;
}

.file-list li {
    padding: 12px 15px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--bg-tertiary);
    border-radius: 6px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.2s ease;
}

.file-list li:hover {
    background-color: var(--primary-light);
    transform: translateX(2px);
}

.file-index {
    font-weight: bold;
    color: var(--primary-color);
    min-width: 25px;
}

.file-name {
    flex: 1;
    margin: 0 15px;
    word-break: break-all;
    color: var(--text-primary);
}

.file-size {
    color: var(--text-light);
    font-size: 0.9rem;
    white-space: nowrap;
}

.file-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.file-list .file-name {
    word-break: break-all;
    flex: 1;
}

.file-list .remove-file {
    color: var(--danger-color);
    cursor: pointer;
    font-weight: bold;
    font-size: 1.2rem;
    margin-left: 10px;
    width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.file-list .remove-file:hover {
    background-color: var(--danger-color);
    color: white;
}

/* 重命名选项 */
.rename-options {
    padding: 20px;
    background-color: #f8fafc;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.form-row.three-columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.form-row.two-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.option-group {
    margin-bottom: 15px;
    flex: 1;
    min-width: 0;
}

/* 确保小屏幕下表单元素不溢出 */
@media (max-width: 768px) {
    .form-row.three-columns,
    .form-row.two-columns {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .option-group {
        width: 100%;
    }
}

.option-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
}

.option-group input[type="text"],
.option-group input[type="number"],
.option-group select.form-select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    background-color: white;
}

.option-group input[type="checkbox"] {
    margin-right: 8px;
    width: 16px;
    height: 16px;
}

.form-hint {
    display: block;
    color: var(--secondary-color);
    font-size: 0.8rem;
    margin-top: 5px;
    width: 100%;
}

.checkbox-options {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.checkbox-options .option-group {
    margin-bottom: 5px;
    flex: 1;
    min-width: 180px;
}

/* 表单分区 */
.form-section {
    margin-bottom: 25px;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
    transition: opacity 0.3s ease;
}

.form-section h3 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.form-section h3::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 16px;
    background-color: var(--primary-color);
    margin-right: 10px;
}

/* 禁用状态的分区 */
.form-section.disabled-section {
    opacity: 0.6;
    pointer-events: none;
}

/* 下拉选择框样式 */
.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    padding-right: 30px !important;
    cursor: pointer;
}

/* 库加载警告 */
.lib-warning {
    background-color: #fff3cd;
    color: #856404;
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 15px;
    border-left: 4px solid #ffeeba;
    font-size: 0.9rem;
}

/* 转换选项组 */
.conversion-options {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.conversion-option {
    flex: 1;
    min-width: 0;
}

/* 禁用状态的中文转换选项 */
.chinese-conversion-disabled {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.chinese-conversion-disabled::after {
    content: '功能不可用';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    color: #dc3545;
}

/* 替换文本组 */
.replace-group {
    display: flex;
    gap: 10px;
}

.replace-group input {
    flex: 1;
}

/* 预览区域 */
.preview-container {
    overflow-x: auto;
}

.preview-table {
    width: 100%;
    border-collapse: collapse;
}

.preview-table th,
.preview-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.preview-table th {
    background-color: var(--light-color);
    font-weight: 600;
}

.no-files-message {
    text-align: center;
    padding: 20px;
    color: var(--secondary-color);
}

/* 按钮 */
.actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.3s, transform 0.1s;
}

.button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.button:active {
    transform: scale(0.98);
}

.preview-button {
    background-color: var(--secondary-color);
    color: white;
}

.preview-button:hover:not(:disabled) {
    background-color: #5a6268;
}

.download-button {
    background-color: var(--success-color);
    color: white;
}

.download-button:hover:not(:disabled) {
    background-color: #218838;
}

/* 页脚样式 - 科技蓝风格 */
.site-footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 48px 0 0;
    margin-top: 60px;
    position: relative;
    width: 100%; /* 桌面端全屏宽度 */
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-hover));
}

.footer-content {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-section h3 {
    color: white;
    margin-bottom: 24px;
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 12px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

/* 二维码部分 */
.qrcode-container {
    display: flex;
    gap: 24px;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.qrcode-item {
    text-align: center;
    transition: all 0.3s ease;
}

.qrcode-item:hover {
    transform: translateY(-5px);
}

.qrcode {
    width: 120px;
    height: 120px;
    border: 3px solid rgba(255, 255, 255, 0.9);
    border-radius: var(--border-radius);
    margin-bottom: 12px;
    background-color: white;
    padding: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.qrcode-item p {
    font-size: 0.9rem;
    color: var(--footer-text);
    margin-top: 8px;
    transition: color 0.3s ease;
}

.qrcode-item:hover p {
    color: white;
}

/* 联系方式部分 */
.contact-section p {
    margin-bottom: 16px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.contact-section p::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: var(--primary-color);
    border-radius: 50%;
    margin-right: 12px;
    transition: background-color 0.3s ease;
}

.contact-section p:hover {
    color: white;
}

.contact-section p:hover::before {
    background-color: white;
}

/* 链接部分 */
.links-section ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.links-section ul li a {
    color: var(--footer-text);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 6px 0;
    position: relative;
}

.links-section ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.links-section ul li a:hover {
    color: white;
    transform: translateX(8px);
}

.links-section ul li a:hover::after {
    width: 24px;
}

/* 页脚底部 */
.footer-bottom {
    margin-top: 48px;
    padding: 24px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    background-color: rgba(0, 0, 0, 0.1);
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.footer-bottom:hover {
    background-color: rgba(0, 0, 0, 0.15);
    color: white;
}

/* 按钮涟漪效果 */
.button {
    position: relative;
    overflow: hidden;
}

.button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%, -50%);
    transform-origin: 50% 50%;
}

.button:focus:not(:active)::after {
    animation: ripple 0.6s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}

/* 输入框聚焦效果 */
input:focus, select:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.2);
    transform: scale(1.02);
}

/* 卡片悬停效果 */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 102, 255, 0.1);
}

/* 页面过渡效果 */
.page-transition {
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 24px; /* 移动端调整间距 */
        padding: 0 16px; /* 移动端调整内边距 */
    }
    
    .qrcode-container {
        justify-content: center;
    }
    
    .links-section ul {
        grid-template-columns: 1fr;
    }
    
    /* 移动端简化动画 */
    .button::after,
    .card:hover {
        animation: none;
        transform: none;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    /* 导航栏响应式 */
    .nav-menu {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background-color: var(--primary-color);
        padding: 20px;
        box-shadow: 0 2px 10px var(--shadow-color);
    }

    .nav-menu.active {
        display: block;
    }

    .nav-list {
        flex-direction: column;
    }

    .nav-item {
        margin: 0;
        margin-bottom: 10px;
    }

    .nav-item:last-child {
        margin-bottom: 0;
    }

    .nav-toggle {
        display: block;
    }

    /* 页脚响应式 */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .qrcode-container {
        justify-content: center;
    }

    .links-section ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }

    .links-section ul li {
        margin-bottom: 0;
    }
}

@media (max-width: 480px) {
    .qrcode-container {
        flex-direction: column;
        align-items: center;
    }

    .qrcode {
        width: 100px;
        height: 100px;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    /* 网格布局调整 */
    .form-row.three-columns,
    .form-row.two-columns {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .form-row {
        flex-direction: column;
        gap: 15px;
    }

    /* 替换文本组移动端样式 */
    .replace-group {
        flex-direction: column;
        gap: 10px;
    }

    .replace-group input {
        width: 100%;
    }

    /* 复选框组样式 */
    .checkbox-options {
        flex-direction: column;
        gap: 10px;
    }

    .checkbox-options .option-group {
        width: 100%;
        min-width: 0;
    }

    /* 表单分区样式 */
    .form-section {
        margin-bottom: 20px;
        padding-top: 20px;
    }

    .form-section h3 {
        font-size: 1rem;
        margin-bottom: 12px;
    }

    /* 按钮和操作区域 */
    .actions {
        flex-direction: column;
    }
    
    .button {
        width: 100%;
    }

    /* 输入框优化 */
    .option-group input[type="text"],
    .option-group input[type="number"],
    .option-group select.form-select {
        padding: 12px;
        font-size: 16px; /* 防止iOS自动缩放 */
        height: 44px; /* 更容易点击 */
    }

    /* 复选框优化 */
    .checkbox-group label {
        padding: 10px 0;
        font-size: 16px;
    }

    .checkbox-group input[type="checkbox"] {
        width: 22px;
        height: 22px;
        margin-right: 10px;
    }

    /* 提示文本优化 */
    .form-hint {
        margin-top: 8px;
        margin-bottom: 5px;
        font-size: 0.85rem;
    }
}

/* 平板设备优化 */
@media (min-width: 769px) and (max-width: 1024px) {
    .form-row.three-columns {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-row {
        gap: 15px;
    }

    .checkbox-options .option-group {
        min-width: 160px;
    }

    .form-section {
        margin-bottom: 25px;
    }
}

/* 大屏幕优化 */
@media (min-width: 1025px) {
    .rename-options {
        max-width: 1000px;
        margin: 0 auto;
    }

    .form-row.three-columns {
        grid-template-columns: repeat(3, 1fr);
    }

    .form-row.two-columns {
        grid-template-columns: repeat(2, 1fr);
    }

    /* 悬停效果 */
    .option-group input[type="text"]:hover,
    .option-group input[type="number"]:hover,
    .option-group select.form-select:hover {
        border-color: var(--primary-color);
    }

    .option-group input[type="text"]:focus,
    .option-group input[type="number"]:focus,
    .option-group select.form-select:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 2px rgba(74, 111, 165, 0.2);
        outline: none;
    }
}

/* 辅助类 */
.hidden {
    display: none;
}