/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* CSS变量定义 */
:root {
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    
    --bg-gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --bg-gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --bg-gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --bg-solid: #1e1e2e;
    
    --font-size-small: 0.9rem;
    --font-size-medium: 1rem;
    --font-size-large: 1.1rem;
    
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.3);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* 背景样式类 */
.bg-gradient1 { background: var(--bg-gradient-1); }
.bg-gradient2 { background: var(--bg-gradient-2); }
.bg-gradient3 { background: var(--bg-gradient-3); }
.bg-solid { background: var(--bg-solid); }
.bg-custom { 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* 字体大小类 */
.font-small { font-size: var(--font-size-small); }
.font-medium { font-size: var(--font-size-medium); }
.font-large { font-size: var(--font-size-large); }

/* 布局样式类 */
.layout-grid { display: grid; }
.layout-list { display: flex; flex-direction: column; }

/* 基础布局 */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    background: var(--bg-gradient-1);
    color: #ffffff;
    font-size: var(--font-size-medium);
    transition: background var(--transition-normal), font-size var(--transition-fast);
    background-attachment: fixed;
    overflow-x: hidden;
}

#app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 8vh;
}

/* 头部样式 */
.header {
    position: static;
    background: transparent;
    border-bottom: none;
    transition: all var(--transition-normal);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: fadeInRight 0.5s ease;
}

body:not(.admin-page) .header-actions {
    position: fixed;
    top: 1.5rem;
    right: 2rem;
    z-index: 100;
}

.login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
    position: relative;
}

.login-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

.logo {
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
    flex: 1;
}

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

.header-actions {
    animation: fadeInRight 0.5s ease;
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    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 var(--transition-normal);
}

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

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

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

/* 设置图标按钮 */
.settings-btn {
    position: static;
    width: 44px;
    height: 44px;
    padding: 0;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    color: white;
    font-size: 1.2rem;
}

.settings-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg) scale(1.1);
    box-shadow: var(--shadow-md);
}

.settings-btn:active {
    transform: rotate(90deg) scale(0.95);
}

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

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

.btn.w-full {
    width: 100%;
    justify-content: center;
}

.static-page .btn-secondary {
    background: #ffffff;
    color: #374151;
    border: 1px solid #d1d5db;
}

.static-page .btn-secondary:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.static-page .btn-secondary i {
    color: #6b7280;
}

/* 搜索区域 */
.search-section {
    padding: 2rem 2rem 1rem;
    animation: fadeInDown 0.5s ease;
}

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

.search-container {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.search-container:focus-within {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}

.search-engine-select {
    padding: 0.875rem 1rem;
    font-size: 0.9rem;
    border: none;
    background: transparent;
    color: white;
    cursor: pointer;
    min-width: 100px;
    transition: all var(--transition-fast);
}

.search-engine-select:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.1);
}

.search-engine-select option {
    background: #1a1a2e;
    color: white;
}

.search-input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
}

.search-input {
    flex: 1;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    border: none;
    background: transparent;
    color: white;
    transition: all var(--transition-fast);
}

.search-input:focus {
    outline: none;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-input.small {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
}

.search-clear {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.5rem;
    line-height: 1;
    transition: color var(--transition-fast);
    margin-right: 0.5rem;
}

.search-clear:hover {
    color: white;
}

.search-btn {
    border-radius: 0;
    padding: 0.875rem 1.5rem;
    border: none;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: white;
    transition: all var(--transition-fast);
}

.search-btn:hover {
    background: rgba(255, 255, 255, 0.22);
}

/* 主内容区域 */
.main-content {
    flex: 1;
    padding: 1rem 2rem 3rem;
    padding-top: 0;
}

.categories-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 1.5rem;
    height: auto;
    min-height: 0;
}

.category-wrapper {
    animation: fadeInUp 0.5s ease backwards;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.category-title {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    z-index: 1;
    position: relative;
}

.category-card {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: var(--radius-lg);
    padding: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.25);
    transition: all var(--transition-normal);
    height: 280px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    will-change: transform, background, backdrop-filter;
    backface-visibility: hidden;
    transform-style: preserve-3d;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
    pointer-events: none;
    z-index: 1;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.category-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    height: 100%;
    max-height: none;
    padding-right: 0;
    position: relative;
    z-index: 1;
    align-content: flex-start;
}

.category-links::-webkit-scrollbar {
    display: none;
    width: 0;
}

.category-links {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.link-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 0.5rem;
    border-radius: var(--radius-sm);
    background: transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    color: white;
    position: relative;
    border: none;
    height: 48px;
    min-height: 48px;
    font-size: 0.85rem;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    max-width: 100%;
}

.link-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all var(--transition-normal);
    transform: translateX(-50%);
}

.link-item:hover::after {
    width: 60%;
}

.link-item:hover {
    background: rgba(255, 255, 255, 0.2);
}

.link-name {
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

/* 列表布局样式 */
.layout-list .categories-container {
    grid-template-columns: 1fr;
    max-width: 600px;
}

.layout-list .category-links {
    grid-template-columns: 1fr;
}

/* 页脚 */
.footer {
    padding: 1.5rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast), transform var(--transition-fast);
}

.footer-links a:hover,
.footer-links a.active {
    color: #ffffff;
    transform: translateY(-1px);
}

.admin-footer {
    color: #6b7280;
}

.admin-footer .footer-links a,
.auth-footer-links a {
    color: #4f46e5;
}

.admin-footer .footer-links a:hover,
.auth-footer-links a:hover {
    color: #312e81;
}

/* 弹窗遮罩 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.modal-content {
    background: #1a1a2e;
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.3s ease;
}

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

.small-modal {
    max-width: 450px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    font-size: 1.5rem;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    line-height: 1;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.modal-body {
    padding: 1.5rem;
    max-height: calc(90vh - 140px);
    overflow-y: auto;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* 表单样式 */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.1);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-row {
    display: flex;
    gap: 0.75rem;
    align-items: flex-end;
}

.flex-1 {
    flex: 1;
}

/* 加载动画 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-spinner p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        padding: 0.75rem 1rem;
    }

    .logo {
        font-size: 1.25rem;
    }

    .search-section {
        padding: 1.5rem 1rem 0.5rem;
    }

    .search-container {
        flex-wrap: wrap;
    }

    .search-engine-select {
        flex: 1;
        min-width: auto;
    }

    .search-input {
        flex: 1;
        min-width: 200px;
    }

    .main-content {
        padding: 0.5rem 1rem 2rem;
    }

    .categories-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .category-card {
        padding: 0.75rem;
    }

    .category-links {
        grid-template-columns: repeat(2, 1fr);
    }

    .modal-content {
        width: 95%;
        margin: 1rem;
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 0.5rem 0.75rem;
    }

    .logo {
        font-size: 1.1rem;
    }

    .btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }

    .search-input {
        padding: 0.75rem;
    }

    .category-title {
        font-size: 1rem;
    }

    .link-name {
        font-size: 0.8rem;
    }

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

/* 滚动条样式 - 隐藏页面右侧滚动条 */
::-webkit-scrollbar {
    width: 0;
    height: 0;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: transparent;
}

/* 分类夹内部滚动条 - 隐藏但保留功能 */

/* 动画性能优化 */
.category-card,
.link-item,
.btn {
    will-change: transform;
    backface-visibility: hidden;
}

/* 焦点样式 */
button:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Toast提示 */
.toast {
    animation: slideUp 0.3s ease;
}

/* ===== 后台管理页面样式 ===== */
.admin-page {
    background: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: #1a1a2e;
}

.admin-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.admin-header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.admin-header .logo {
    font-size: 1.25rem;
    font-weight: 600;
    flex: none;
    color: #1a1a2e;
}

.admin-top-nav {
    flex: 1;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.admin-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.quick-add-section {
    padding: 1rem 2rem;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.quick-add-container {
    max-width: 1400px;
    margin: 0 auto;
}

.quick-add-header {
    margin-bottom: 0.75rem;
}

.quick-add-header h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #374151;
}

.quick-add-btn {
    padding: 0.75rem 1.5rem;
    white-space: nowrap;
    align-self: flex-end;
    margin-bottom: 0.5rem;
}

.admin-content {
    flex: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    font-size: 0.9rem;
    text-align: center;
    transition: all var(--transition-fast);
    border-radius: var(--radius-md);
    border-bottom: 2px solid transparent;
}

.nav-item:hover {
    background: rgba(99, 102, 241, 0.05);
    color: #374151;
}

.nav-item.active {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.admin-panel {
    flex: 1;
    padding: 1.5rem 2rem;
    overflow-y: auto;
}

.panel-section {
    animation: fadeIn 0.2s ease;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.panel-title h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 0.25rem;
}

.panel-title p {
    font-size: 0.85rem;
    color: #6b7280;
}

/* 一体化搜索框 */
.integrated-search {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.integrated-search select {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    border: none;
    border-right: 1px solid #e5e7eb;
    background: #f9fafb;
    color: #374151;
    cursor: pointer;
    outline: none;
    min-width: 80px;
}

.integrated-search select option {
    background: #ffffff;
    color: #374151;
}

.integrated-search input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    border: none;
    background: transparent;
    color: #1a1a2e;
    outline: none;
}

.integrated-search input::placeholder {
    color: #9ca3af;
}

.integrated-search button {
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    border: none;
    color: white;
    cursor: pointer;
    transition: background var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

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

.integrated-search:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.list-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.list-container.sortable .list-item {
    cursor: move;
}

.list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.list-item:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.list-item.dragging {
    opacity: 0.5;
    border-color: var(--primary-color);
}

.list-item-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.list-item-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.list-item-name {
    font-size: 0.95rem;
    font-weight: 500;
    color: #1a1a2e;
}

.list-item-meta {
    font-size: 0.8rem;
    color: #6b7280;
}

.list-item-actions {
    display: flex;
    gap: 0.25rem;
}

.list-item-actions button {
    padding: 0.4rem;
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    font-size: 0.85rem;
}

.list-item-actions button:hover {
    background: #f3f4f6;
    color: #374151;
}

.order-btn:hover {
    color: var(--primary-color) !important;
}

.edit-btn:hover {
    color: var(--primary-color) !important;
}

.delete-btn:hover {
    color: var(--danger-color) !important;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: #9ca3af;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* 设置面板样式 */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.setting-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.setting-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.75rem;
}

.import-export-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.color-picker {
    display: flex;
    gap: 0.5rem;
}

.color-option {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.color-option:hover {
    transform: scale(1.1);
}

.color-option.active {
    border-color: #374151;
    transform: scale(1.1);
}

.bg-picker,
.font-size-picker,
.layout-picker {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.bg-option,
.font-option,
.layout-option {
    padding: 0.5rem 1rem;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: var(--radius-sm);
    color: #374151;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all var(--transition-fast);
}

.bg-option:hover,
.font-option:hover,
.layout-option:hover {
    background: #e5e7eb;
}

.bg-option.active,
.font-option.active,
.layout-option.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.settings-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.file-input {
    display: none;
}

/* 后台自定义背景图片设置 */
.bg-preview-container {
    margin-top: 1rem;
    border: 2px dashed #d1d5db;
    border-radius: var(--radius-md);
    overflow: hidden;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9fafb;
    position: relative;
}

.bg-preview-container.has-image {
    border-style: solid;
    border-color: var(--primary-color);
}

.bg-preview {
    max-width: 100%;
    max-height: 150px;
    object-fit: cover;
}

.bg-preview-placeholder {
    text-align: center;
    color: #9ca3af;
    padding: 1rem;
}

.bg-preview-placeholder i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.bg-preview-placeholder p {
    font-size: 0.85rem;
}

.bg-actions {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
}

.bg-actions .btn {
    flex: 1;
}

/* 本地图片上传样式 */
.local-image-upload {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.upload-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: var(--radius-md);
    color: #374151;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
    text-align: center;
}

.upload-btn:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
}

.upload-btn i {
    font-size: 1rem;
}

.upload-hint {
    font-size: 0.8rem;
    color: #9ca3af;
}

.bg-preview-container .preview-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 0.75rem;
    text-align: center;
}

@media (max-width: 768px) {
    .bg-actions {
        flex-direction: column;
    }
    
    .upload-btn {
        padding: 0.625rem 1rem;
        font-size: 0.85rem;
    }
}

/* 后台响应式 */
@media (max-width: 768px) {
    .admin-header-content {
        flex-direction: column;
        gap: 1rem;
        padding: 0.75rem 1rem;
    }

    .admin-top-nav {
        flex-wrap: wrap;
        width: 100%;
    }

    .nav-item {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .admin-panel {
        padding: 1rem;
    }

    .quick-add-section {
        padding: 1rem;
    }

    .quick-add-form .form-row {
        flex-direction: column;
    }

    .quick-add-btn {
        width: 100%;
        justify-content: center;
    }

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

    .integrated-search {
        width: 100%;
    }

    .admin-page .header-actions {
        width: 100%;
        display: flex;
        gap: 0.5rem;
    }

    .admin-page .header-actions .btn {
        flex: 1;
    }
}

/* 后台按钮样式重写 */
.admin-page .btn-primary {
    background: var(--primary-color);
    color: white;
}

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

.admin-page .btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.admin-page .btn-secondary:hover {
    background: #e5e7eb;
}

.admin-page .btn-danger {
    background: var(--danger-color);
    color: white;
}

/* 后台表单样式重写 */
.admin-page .form-group label {
    color: #374151;
}

.admin-page .form-group input,
.admin-page .form-group select {
    background: #ffffff;
    border: 1px solid #d1d5db;
    color: #1a1a2e;
}

.admin-page .form-group input:focus,
.admin-page .form-group select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.admin-page .form-group input::placeholder {
    color: #9ca3af;
}

/* 后台弹窗样式 */
.admin-page .modal-overlay {
    background: rgba(0, 0, 0, 0.5);
}

.admin-page .modal-content {
    background: #ffffff;
    border: 1px solid #e5e7eb;
}

.admin-page .modal-header {
    border-bottom: 1px solid #e5e7eb;
}

.admin-page .modal-header h2 {
    color: #1a1a2e;
}

.admin-page .modal-close {
    color: #6b7280;
}

.admin-page .modal-close:hover {
    background: #f3f4f6;
    color: #1a1a2e;
}

.admin-page .modal-footer {
    border-top: 1px solid #e5e7eb;
}

/* ===== 认证页面样式 ===== */
.auth-page {
    background: #ffffff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.auth-container {
    width: 100%;
    max-width: 420px;
}

.auth-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-color);
}

.auth-header h1 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1a1a2e;
}

.auth-header p {
    color: #6b7280;
    font-size: 0.95rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.auth-form .form-group {
    margin-bottom: 0;
}

.auth-form .form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.auth-form .input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-form .input-wrapper i {
    position: absolute;
    left: 1rem;
    color: #9ca3af;
    font-size: 0.95rem;
}

.auth-form .input-wrapper input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 2.75rem;
    border: 1px solid #d1d5db;
    border-radius: var(--radius-md);
    background: #ffffff;
    color: #1a1a2e;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

.auth-form .input-wrapper input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.auth-form .input-wrapper input::placeholder {
    color: #9ca3af;
}

.auth-form .form-check {
    margin-top: 0.25rem;
}

.auth-form .checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    cursor: pointer;
    font-size: 0.85rem;
    color: #374151;
}

.auth-form .checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.auth-form .checkbox-label input[type="checkbox"] + span:not(.checkmark) {
    margin-left: 0;
}

.auth-form .remember-duration {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: -0.5rem;
}

.auth-form .radio-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.85rem;
    color: #374151;
}

.auth-form .radio-label input[type="radio"] {
    width: 15px;
    height: 15px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.auth-form .btn-primary {
    padding: 0.875rem;
    font-size: 0.95rem;
    font-weight: 600;
}

.auth-footer {
    margin-top: 1.5rem;
    text-align: center;
}

.auth-footer p {
    color: #6b7280;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.auth-footer p:last-child {
    margin-bottom: 0;
}

.auth-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.auth-link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.auth-links {
    margin-top: 1.5rem;
    text-align: center;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

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

.auth-footer-links {
    margin: 1rem 0 0;
}

/* 认证页面响应式 */
@media (max-width: 480px) {
    .auth-card {
        padding: 1.75rem 1.5rem;
    }
    
    .auth-header h1 {
        font-size: 1.5rem;
    }
    
    .auth-logo {
        width: 60px;
        height: 60px;
        font-size: 1.75rem;
    }
}

/* ===== 静态内容页面 ===== */
.static-page {
    min-height: 100vh;
    background: #f9fafb;
    color: #1a1a2e;
}

.static-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.static-header {
    width: min(1200px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 1rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.static-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: #1a1a2e;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 700;
}

.static-brand i {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
}

.static-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.static-nav a {
    color: #6b7280;
    text-decoration: none;
    padding: 0.625rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.static-nav a:hover {
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.05);
}

.static-nav a.active {
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
}

.static-main {
    width: min(1200px, calc(100% - 2rem));
    margin: 0 auto;
    flex: 1;
    padding: 3rem 0 2rem;
}

.static-eyebrow {
    margin-bottom: 0.75rem;
    color: var(--primary-color);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.about-intro {
    display: grid;
    grid-template-columns: minmax(0, 720px);
    margin-bottom: 2rem;
}

.about-intro h1,
.feedback-heading h1 {
    max-width: 780px;
    margin-bottom: 1rem;
    font-size: 2.25rem;
    line-height: 1.2;
    color: #1a1a2e;
    font-weight: 600;
}

.about-intro p,
.feedback-heading p {
    max-width: 760px;
    color: #6b7280;
    line-height: 1.8;
    font-size: 1rem;
}

.photo-carousel {
    position: relative;
    height: clamp(260px, 45vw, 460px);
    margin: 2rem 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
    border: 1px solid #e5e7eb;
    background: #ffffff;
    box-shadow: var(--shadow-md);
}

.carousel-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity var(--transition-slow);
}

.carousel-photo.active {
    opacity: 1;
}

.carousel-dots {
    position: absolute;
    left: 50%;
    bottom: 1rem;
    display: flex;
    gap: 0.5rem;
    transform: translateX(-50%);
}

.carousel-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d1d5db;
    transition: all var(--transition-fast);
}

.carousel-dots span.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

.about-values,
.suggestion-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.about-values > div,
.suggestion-list article,
.feedback-form-section {
    border-radius: var(--radius-lg);
    border: 1px solid #e5e7eb;
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
}

.about-values > div:hover,
.suggestion-list article:hover,
.feedback-form-section:hover {
    box-shadow: var(--shadow-md);
    border-color: #d1d5db;
}

.about-values > div {
    padding: 1.5rem;
}

.about-values i,
.suggestion-list i {
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.about-values h2,
.suggestion-list h2 {
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
    color: #1a1a2e;
    font-weight: 600;
}

.about-values p,
.suggestion-list p {
    color: #6b7280;
    line-height: 1.7;
    font-size: 0.9rem;
}

.feedback-heading {
    margin-bottom: 2rem;
}

.suggestion-list article {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
}

.suggestion-list i {
    flex: 0 0 auto;
    margin-bottom: 0;
    margin-top: 0.25rem;
}

.feedback-form-section {
    margin-top: 1rem;
    padding: 1.5rem;
}

.feedback-form {
    display: grid;
    gap: 1.25rem;
}

.feedback-form input,
.feedback-form select,
.feedback-form textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: var(--radius-md);
    background: #ffffff;
    color: #1a1a2e;
    font-size: 0.95rem;
    outline: none;
    transition: all var(--transition-fast);
}

.feedback-form input:focus,
.feedback-form select:focus,
.feedback-form textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.feedback-form textarea {
    resize: vertical;
    min-height: 140px;
}

.feedback-form input::placeholder,
.feedback-form textarea::placeholder {
    color: #9ca3af;
}

.feedback-form select option {
    color: #1a1a2e;
    background: #ffffff;
}

.feedback-result {
    min-height: 1.5rem;
    margin-top: 1rem;
    color: var(--success-color);
    font-weight: 600;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .static-header {
        align-items: flex-start;
        flex-direction: column;
        padding: 0.75rem 1rem;
    }

    .static-nav {
        justify-content: flex-start;
        width: 100%;
    }

    .static-nav a {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }

    .static-main {
        padding-top: 2rem;
    }

    .about-intro h1,
    .feedback-heading h1 {
        font-size: 1.75rem;
    }

    .about-values,
    .suggestion-list {
        grid-template-columns: 1fr;
    }

    .photo-carousel {
        height: 240px;
    }
}

@media (max-width: 768px) {
    .static-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .static-nav {
        justify-content: flex-start;
    }

    .static-main {
        padding-top: 2rem;
    }

    .about-intro h1,
    .feedback-heading h1 {
        font-size: 1.8rem;
    }

    .about-values,
    .suggestion-list {
        grid-template-columns: 1fr;
    }
}

/* ===== 全宽导航栏 ===== */
.static-header-full {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.static-header-full .static-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: #1a1a2e;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 700;
}

.static-header-full .static-brand i {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
}

.static-header-full .static-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.static-header-full .static-nav a {
    color: #6b7280;
    text-decoration: none;
    padding: 0.625rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.static-header-full .static-nav a:hover {
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.05);
}

.static-header-full .static-nav a.active {
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
}

.mobile-menu-toggle {
    display: none;
    padding: 0.5rem;
    background: none;
    border: none;
    color: #374151;
    font-size: 1.25rem;
    cursor: pointer;
}

/* ===== 反馈页面布局 ===== */
.feedback-main {
    padding: 2rem 0;
}

.feedback-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.feedback-left {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feedback-right {
    position: sticky;
    top: 100px;
}

/* ===== 反馈列表样式 ===== */
.feedback-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    gap: 1rem;
}

.feedback-list-header h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a2e;
}

.feedback-list-header h2 i {
    color: var(--primary-color);
}

.feedback-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 0.5rem;
    background: var(--primary-color);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 12px;
}

.suggestion-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    padding-right: 0.5rem;
}

.suggestion-list::-webkit-scrollbar {
    width: 6px;
}

.suggestion-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.suggestion-list::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.suggestion-list::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

.suggestion-item {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    transition: all var(--transition-fast);
    animation: slideIn 0.3s ease;
}

.suggestion-item:hover {
    box-shadow: var(--shadow-md);
    border-color: #d1d5db;
}

.suggestion-item.system-item {
    border-left: 3px solid var(--primary-color);
}

.suggestion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    gap: 0.5rem;
}

.suggestion-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.suggestion-author i {
    color: #9ca3af;
    font-size: 0.9rem;
}

.author-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: #374151;
}

.system-badge {
    font-size: 0.7rem;
    padding: 0.15rem 0.4rem;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    border-radius: 4px;
}

.suggestion-time {
    font-size: 0.8rem;
    color: #9ca3af;
}

.suggestion-type {
    display: inline-block;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    background: #f3f4f6;
    color: #6b7280;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.suggestion-content {
    color: #4b5563;
    line-height: 1.6;
    font-size: 0.9rem;
    margin: 0;
}

/* ===== 增强表单样式 ===== */
.feedback-form-section {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.feedback-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.feedback-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.feedback-form label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
}

.feedback-form label .optional {
    font-weight: 400;
    color: #9ca3af;
}

.feedback-form label .required {
    color: var(--danger-color);
}

.feedback-form input,
.feedback-form select,
.feedback-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: var(--radius-md);
    background: #ffffff;
    color: #1a1a2e;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all var(--transition-fast);
}

.feedback-form input:focus,
.feedback-form select:focus,
.feedback-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.feedback-form input::placeholder,
.feedback-form textarea::placeholder {
    color: #9ca3af;
}

.feedback-form textarea {
    resize: vertical;
    min-height: 120px;
}

.select-wrapper {
    position: relative;
}

.select-wrapper select {
    appearance: none;
    padding-right: 2.5rem;
    cursor: pointer;
}

.select-arrow {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
}

.form-help {
    font-size: 0.8rem;
    color: #9ca3af;
}

.textarea-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.char-count {
    font-size: 0.8rem;
    color: #9ca3af;
}

.char-count .warning {
    color: var(--warning-color);
}

.error-message {
    font-size: 0.8rem;
    color: var(--danger-color);
    display: none;
    animation: fadeIn 0.2s ease;
}

.error-message.show {
    display: block;
}

.feedback-form .btn-primary {
    padding: 0.875rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
}

.feedback-form .btn-primary .loading-spinner {
    display: none;
}

.feedback-form .btn-primary.loading .loading-spinner {
    display: inline-block;
}

.feedback-form .btn-primary.loading .btn-text,
.feedback-form .btn-primary.loading > i:first-child {
    display: none;
}

/* ===== 结果显示 ===== */
.feedback-result {
    margin-top: 1rem;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.feedback-result.show {
    opacity: 1;
    transform: translateY(0);
}

.result-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
}

.result-content.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.result-content.error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

/* ===== 空状态 ===== */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #9ca3af;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state p {
    font-size: 0.9rem;
}

/* ===== 动画 ===== */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ===== 响应式设计 ===== */
@media (max-width: 1024px) {
    .feedback-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feedback-right {
        position: static;
    }

    .suggestion-list {
        max-height: 400px;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0.75rem 1rem;
    }

    .static-header-full .static-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff;
        flex-direction: column;
        padding: 1rem;
        border-bottom: 1px solid #e5e7eb;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        gap: 0.5rem;
    }

    .static-header-full .static-nav.mobile-open {
        display: flex;
    }

    .static-header-full .static-nav a {
        width: 100%;
        text-align: left;
        padding: 0.75rem 1rem;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .feedback-main {
        padding: 1.5rem 0;
    }

    .feedback-layout {
        gap: 1.5rem;
    }

    .feedback-form-section {
        padding: 1.25rem;
    }

    .suggestion-list {
        max-height: 300px;
    }

    .suggestion-item {
        padding: 1rem;
    }

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

    .feedback-list-header .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0.625rem 1rem;
    }

    .static-header-full .static-brand span {
        display: none;
    }

    .static-header-full .static-brand i {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }

    .feedback-heading h1 {
        font-size: 1.5rem !important;
    }

    .feedback-form-section {
        padding: 1rem;
    }

    .feedback-form input,
    .feedback-form textarea {
        padding: 0.625rem 0.875rem;
        font-size: 0.9rem;
    }

    .feedback-form .btn-primary {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
}

/* ===== 辅助类 ===== */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
