/* 极简单个人主页 - 样式表 */

:root {
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --bg-color: #f5f5f7;
    --card-bg: #ffffff;
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --border-color: #e8e8ed;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.08);
    --radius-lg: 12px;
    --radius-md: 10px;
    --radius-sm: 8px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #f5f5f7;
    min-height: 100vh;
    color: var(--text-primary);
    transition: background 0.3s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 主题变体 - 更柔和的渐变 */
body[data-theme="light"] {
    background: linear-gradient(135deg, #f5f5f7 0%, #e8e8ed 100%);
}

body[data-theme="ocean"] {
    background: linear-gradient(135deg, #e8f4f8 0%, #d4edf5 100%);
}

body[data-theme="sunset"] {
    background: linear-gradient(135deg, #fef6f0 0%, #faeee6 100%);
}

body[data-theme="forest"] {
    background: linear-gradient(135deg, #f0f7f4 0%, #e8f3ed 100%);
}

body[data-theme="default"] {
    background: linear-gradient(135deg, #f5f3ff 0%, #edeafe 100%);
}

/* 头部导航 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border-color);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.02em;
}

.header-actions {
    display: flex;
    gap: 4px;
}

.header-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s ease;
    font-size: 18px;
}

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

.header-btn:active {
    transform: scale(0.95);
}

/* 主容器 */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 24px 20px;
    min-height: 100vh;
}

/* 搜索框区域 */
.search-section {
    margin-bottom: 10px;
    position: relative;
    z-index: 500;
}

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

.search-input-wrapper {
    display: flex;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: visible;
    transition: all 0.2s ease;
    border: 1px solid var(--border-color);
}

.search-input-wrapper:focus-within {
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.search-engine {
    display: flex;
    align-items: center;
    padding: 0 12px;
    background: transparent;
    cursor: pointer;
    position: relative;
    min-width: 80px;
    font-size: 14px;
    color: var(--text-primary);
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    transition: background 0.15s;
    font-weight: 500;
}

.search-engine:hover {
    background: var(--bg-color);
}

.search-engine-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--card-bg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-hover);
    min-width: 130px;
    display: none;
    z-index: 100;
    margin-top: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.search-engine-dropdown.show {
    display: block;
}

.search-engine-option {
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 14px;
}

.search-engine-option:hover {
    background: #f8fafc;
}

.search-engine-option.active {
    color: var(--primary-color);
    background: #f0f0ff;
    font-weight: 500;
}

.search-input {
    flex: 1;
    border: none;
    padding: 14px 16px;
    font-size: 16px;
    outline: none;
    background: transparent;
}

.clear-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 18px;
    transition: color 0.2s;
}

.clear-btn.show {
    display: flex;
}

.clear-btn:hover {
    color: var(--text-primary);
}

.search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    background: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    transition: background 0.15s;
}

.search-btn:hover {
    background: var(--primary-hover);
}

/* 搜索结果 */
.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card-bg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-hover);
    margin-top: 8px;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    z-index: 100;
    border: 1px solid var(--border-color);
}

.search-results.show {
    display: block;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    cursor: pointer;
    transition: background 0.15s;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid var(--border-color);
}

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

.search-result-item:hover {
    background: var(--bg-color);
}

.search-result-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    background: var(--bg-color);
    color: var(--primary-color);
    flex-shrink: 0;
}

.search-result-info {
    flex: 1;
    min-width: 0;
}

.search-result-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-url {
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-group {
    font-size: 11px;
    color: #6366f1;
    background: #e0e7ff;
    padding: 2px 8px;
    border-radius: 10px;
    flex-shrink: 0;
}

.search-no-results {
    padding: 24px;
    text-align: center;
    color: var(--text-secondary);
}

/* 链接分组 */
.link-groups {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 20px;
}

/* 功能说明卡片（复用分组样式） */
.feature-card.link-group-item {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.2s ease;
    cursor: grab;
}

.feature-card.link-group-item:active {
    cursor: grabbing;
}

.feature-card.link-group-item:hover {
    border-color: var(--primary-color);
}

.feature-card.link-group-item.dragging {
    opacity: 0.5;
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.feature-card.link-group-item.drag-over {
    border-color: var(--primary-color);
    border-style: dashed;
    background: rgba(99, 102, 241, 0.04);
}

.feature-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    background: transparent;
}

.feature-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-actions {
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.15s;
}

.edit-mode .feature-card:hover .feature-actions {
    opacity: 1;
}

.feature-action-btn {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: var(--bg-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 14px;
    transition: all 0.15s;
}

.feature-action-btn:hover {
    background: var(--primary-color);
    color: white;
}

.feature-content {
    padding: 14px 16px;
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-secondary);
    white-space: pre-wrap;
}

/* TODO 清单卡片（复用分组样式） */
.todo-card.link-group-item {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.2s ease;
    cursor: grab;
}

.todo-card.link-group-item:active {
    cursor: grabbing;
}

.todo-card.link-group-item:hover {
    border-color: var(--primary-color);
}

.todo-card.link-group-item.dragging {
    opacity: 0.5;
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.todo-card.link-group-item.drag-over {
    border-color: var(--primary-color);
    border-style: dashed;
    background: rgba(99, 102, 241, 0.04);
}

.todo-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    background: transparent;
}

.todo-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.todo-actions {
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.15s;
}

.edit-mode .todo-card:hover .todo-actions {
    opacity: 1;
}

.todo-action-btn {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: var(--bg-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 14px;
    transition: all 0.15s;
}

.todo-action-btn:hover {
    background: var(--primary-color);
    color: white;
}

.todo-add-btn {
    width: 100%;
    padding: 14px;
    border: 2px dashed var(--border-color);
    background: transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 14px;
    transition: all 0.2s;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.edit-mode .todo-add-btn {
    display: flex;
}

.todo-add-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.05);
}

.todo-list {
    padding: 14px;
    list-style: none;
    margin: 0;
}

.todo-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.15s;
}

.todo-item:last-child {
    border-bottom: none;
}

.todo-item:hover {
    background: rgba(99, 102, 241, 0.03);
    margin: 0 -8px;
    padding: 10px 8px;
    border-radius: var(--radius-sm);
}

.todo-checkbox {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.15s;
    background: var(--card-bg);
}

.todo-checkbox:hover {
    border-color: var(--primary-color);
}

.todo-checkbox.checked {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.todo-checkbox.checked::after {
    content: '✓';
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.todo-text {
    flex: 1;
    font-size: 14px;
    color: var(--text-primary);
    transition: all 0.15s;
}

.todo-text.completed {
    text-decoration: line-through;
    color: var(--text-secondary);
}

.todo-delete-btn {
    width: 26px;
    height: 26px;
    display: none;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 14px;
    transition: all 0.15s;
    flex-shrink: 0;
}

.edit-mode .todo-delete-btn {
    display: inline-flex;
}

.todo-delete-btn:hover {
    background: #fee2e2;
    color: #ef4444;
}

.link-group {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.2s ease;
}

.link-group:hover {
    border-color: var(--primary-color);
}

.link-group.dragging {
    opacity: 0.5;
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.link-group.drag-over {
    border-color: var(--primary-color);
    border-style: dashed;
    background: rgba(99, 102, 241, 0.04);
}

.group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    background: transparent;
    cursor: grab;
}

.group-header:active {
    cursor: grabbing;
}

.group-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.01em;
}

.group-title-icon {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-color);
    color: var(--primary-color);
    border-radius: 8px;
    font-size: 14px;
}

.group-actions {
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.15s;
    pointer-events: none;
}

.edit-mode .link-group:hover .group-actions {
    opacity: 1;
    pointer-events: auto;
}

.group-action-btn {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: var(--bg-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 14px;
    transition: all 0.15s;
}

.group-action-btn:hover {
    background: var(--primary-color);
    color: white;
}

.group-links {
    padding: 14px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.link-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: inherit;
    transition: all 0.15s;
    cursor: pointer;
    position: relative;
    background: var(--bg-color);
}

.link-item:hover {
    background: #e8e8ed;
}

.link-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    background: var(--bg-color);
    color: var(--text-primary);
    font-weight: 500;
}

.link-info {
    flex: 1;
    min-width: 0;
}

.link-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.link-url {
    font-size: 11px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

/* 链接操作按钮（仅编辑模式显示） */
.link-item-actions {
    display: none;
    gap: 4px;
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    pointer-events: none;
}

.edit-mode .link-item-actions {
    display: flex;
    pointer-events: auto;
}

.link-action-btn {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 14px;
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    pointer-events: auto;
}

.link-action-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.link-action-btn.delete:hover {
    background: #ef4444;
}

/* 添加按钮 */
.add-group-card {
    background: rgba(255, 255, 255, 0.6);
    border: 2px dashed rgba(99, 102, 241, 0.35);
    border-radius: var(--radius-lg);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--text-secondary);
}

.edit-mode .add-group-card {
    display: flex;
}

.add-group-card:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--primary-color);
    transform: scale(1.02);
    color: var(--primary-color);
}

.add-icon {
    font-size: 52px;
    margin-bottom: 8px;
    font-weight: 300;
}

.add-text {
    font-size: 14px;
    font-weight: 500;
}

/* 模态框 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(4px);
    cursor: pointer;
}

.modal-overlay .modal {
    cursor: default;
}

.modal-overlay.show {
    display: flex;
}

.modal {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 460px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-close {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: #f1f5f9;
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 20px;
    transition: all 0.2s;
}

.modal-close:hover {
    background: #fee2e2;
    color: #ef4444;
}

.modal-body {
    padding: 24px;
}

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

.form-group:last-child {
    margin-bottom: 0;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-hint {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.form-input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.modal-footer {
    display: flex;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid var(--border-color);
    justify-content: flex-end;
}

.btn {
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.btn-secondary {
    background: #f1f5f9;
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: #e2e8f0;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-danger {
    background: #ef4444;
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

/* 主题选择器 */
.theme-selector {
    position: fixed;
    top: 0;
    right: -340px;
    width: 340px;
    height: 100vh;
    background: var(--card-bg);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 3000;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 24px;
    overflow-y: auto;
}

.theme-selector.show {
    right: 0;
}

.theme-selector-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.theme-selector-title {
    font-size: 18px;
    font-weight: 600;
}

.theme-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.theme-option {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.theme-option:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.theme-option.active {
    border-color: var(--primary-color);
}

.theme-preview {
    height: 70px;
    width: 100%;
}

.theme-name {
    padding: 10px;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    background: var(--card-bg);
}

.theme-check {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 26px;
    height: 26px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.theme-option.active .theme-check {
    display: flex;
}

/* 右键菜单 */
.context-menu {
    position: fixed;
    background: var(--card-bg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-hover);
    min-width: 150px;
    z-index: 3000;
    display: none;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.context-menu.show {
    display: block;
}

.context-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 14px;
}

.context-menu-item:hover {
    background: #f8fafc;
}

.context-menu-item.danger {
    color: #ef4444;
}

/* 移动到子菜单 */
.context-menu-subtitle {
    padding: 8px 14px;
    font-size: 12px;
    color: var(--text-secondary);
    background: #f8fafc;
    border-bottom: 1px solid var(--border-color);
}

.context-menu-group-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 14px;
}

.context-menu-group-option:hover {
    background: #f0f0ff;
}

.context-menu-group-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e0e7ff, #f3e8ff);
    border-radius: 6px;
    font-size: 12px;
    color: var(--primary-color);
}

/* 回到顶部 */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 46px;
    height: 46px;
    background: var(--card-bg);
    border-radius: 50%;
    box-shadow: var(--shadow);
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    color: var(--primary-color);
    z-index: 1000;
    transition: all 0.3s;
}

.back-to-top.show {
    display: flex;
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    background: var(--primary-color);
    color: white;
}

/* 页脚 */
.footer {
    text-align: center;
    padding: 30px 24px;
    color: rgba(0, 0, 0, 0.5);
    font-size: 13px;
}

/* 响应式 */
@media (max-width: 768px) {
    .container {
        padding: 80px 16px 20px;
    }

    .info-section {
        max-width: 1032px;
        margin: 0 auto 20px;
        padding: 0;
    }

    .info-section .feature-card,
    .info-section .todo-card {
        margin: 0 16px;
    }

    .link-groups {
        grid-template-columns: 1fr;
    }

    .search-input-wrapper {
        flex-wrap: wrap;
    }

    .search-engine {
        width: 100%;
        justify-content: center;
        border-radius: var(--radius-md) var(--radius-md) 0 0;
    }

    .header {
        padding: 10px 16px;
    }

    .theme-selector {
        width: 100%;
        right: -100%;
    }

    .group-links {
        grid-template-columns: 1fr;
    }
}

/* 编辑模式 */
.edit-indicator {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: var(--shadow);
    z-index: 1000;
    display: none;
    align-items: center;
    gap: 12px;
}

.edit-mode .edit-indicator {
    display: flex;
}

.exit-edit-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
}

.exit-edit-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* 隐藏模块提示 */
.hidden-modules-hint {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 13px;
    z-index: 999;
    display: none;
}

.hidden-modules-hint.show {
    display: block;
}
