/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 导入字体 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700;900&family=Noto+Serif+SC:wght@400;500;600;700&display=swap');

:root {
    /* 色彩变量 */
    --primary-color: #4CAF50;
    --primary-dark: #388E3C;
    --primary-light: #81C784;
    --secondary-color: #2196F3;
    --secondary-dark: #1565C0;
    --secondary-light: #64B5F6;
    --accent-color: #FF9800;
    --text-primary: #333;
    --text-secondary: #666;
    --background: #f8f9fa;
    --surface: #ffffff;
    --border: #e0e0e0;
    --success: #4CAF50;
    --error: #F44336;
    --warning: #FF9800;
    --info: #2196F3;
    
    /* 阴影 */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px rgba(0,0,0,0.15);
    
    /* 圆角 */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* 过渡 */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(76, 175, 80, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(33, 150, 243, 0.05) 0%, transparent 20%);
    background-attachment: fixed;
}

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

/* 导航栏 */
.navbar {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand h1 {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.navbar-brand h1:hover {
    transform: scale(1.02);
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-sm);
    position: relative;
    overflow: hidden;
}

.nav-link::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: var(--transition);
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover {
    background-color: rgba(255,255,255,0.15);
    transform: translateY(-2px);
}

.nav-link.active {
    background-color: rgba(255,255,255,0.25);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background-color: white;
    border-radius: 3px;
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.mobile-menu-btn:hover {
    background-color: rgba(255,255,255,0.1);
}

/* 按钮样式 */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
    font-family: 'Noto Sans SC', sans-serif;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: var(--transition);
    z-index: -1;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

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

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-dark) 100%);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

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

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: none;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* 页面内容 */
.page-content {
    min-height: 80vh;
    padding: 2rem 0;
}

.page {
    display: none;
}

.page.active {
    display: block;
}

/* 首页样式 */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 6rem 0;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255,255,255,0.1) 0%, transparent 50%);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h2 {
    font-family: 'Noto Serif SC', serif;
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-shadow: 0 4px 8px rgba(0,0,0,0.1);
    animation: fadeInUp 1s ease-out;
}

.hero p {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    opacity: 0.95;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero .btn {
    animation: fadeInUp 1s ease-out 0.4s both;
}

.features {
    margin-bottom: 4rem;
}

.features h2 {
    font-family: 'Noto Serif SC', serif;
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
    position: relative;
}

.features h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.feature-card {
    background: var(--surface);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    cursor: pointer;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(33, 150, 243, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 2px solid var(--primary-color);
}

.feature-icon i {
    font-size: 2.5rem;
    color: var(--primary-color);
    z-index: 2;
}

.feature-card h3 {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
    font-weight: 600;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.recommendations {
    margin-bottom: 4rem;
}

.recommendations h3 {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
    position: relative;
    display: inline-block;
}

.recommendations h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 60%;
    height: 3px;
    background: var(--primary-color);
    border-radius: 1.5px;
}

.resource-cards {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding-bottom: 1.5rem;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-light) var(--border);
}

.resource-cards::-webkit-scrollbar {
    height: 6px;
}

.resource-cards::-webkit-scrollbar-track {
    background: var(--border);
    border-radius: 3px;
}

.resource-cards::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 3px;
}

.resource-cards::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

.resource-card {
    background: var(--surface);
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    min-width: 300px;
    transition: var(--transition);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.resource-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--secondary-color);
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.resource-card h4 {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 600;
}

.resource-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.resource-card .btn {
    margin-top: 1rem;
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
}

/* 最近生成资源样式 */
.recent-resources {
    margin-bottom: 4rem;
}

.recent-resources h3 {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
    position: relative;
    display: inline-block;
}

.recent-resources h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 60%;
    height: 3px;
    background: var(--primary-color);
    border-radius: 1.5px;
}

.recent-resources-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.recent-resource-item {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.recent-resource-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
}

.recent-resource-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    background-color: rgba(76, 175, 80, 0.05);
}

.recent-resource-item h4 {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    font-weight: 600;
}

.recent-resource-item p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* 动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* 滚动动画 */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* 表单样式 */
form {
    background: var(--surface);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 2.5rem;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.form-group {
    margin-bottom: 1.75rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: var(--transition);
    font-family: 'Noto Sans SC', sans-serif;
    background-color: var(--surface);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.1);
    transform: translateY(-1px);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
    line-height: 1.6;
}

.adaptation-options {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    padding: 1rem 0;
}

.option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
}

.option:hover {
    background-color: rgba(76, 175, 80, 0.05);
}

.option input[type="checkbox"] {
    width: auto;
    transform: scale(1.2);
    accent-color: var(--primary-color);
}

.option label {
    margin: 0;
    cursor: pointer;
    font-weight: 400;
}

/* 结果区域 */
.result-section {
    background: var(--surface);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    position: relative;
}

.result-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
}

.result-section h3 {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-weight: 600;
}

.result-content {
    margin-bottom: 1.75rem;
    padding: 1.5rem;
    background-color: rgba(76, 175, 80, 0.05);
    border-radius: var(--radius-md);
    min-height: 220px;
    border-left: 4px solid var(--primary-color);
    line-height: 1.7;
    color: var(--text-primary);
}

.result-actions {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

/* 工具标签页 */
.tool-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
    border-bottom: 2px solid var(--border);
    padding-bottom: 0.5rem;
}

.tab-btn {
    padding: 1rem 1.75rem;
    border: none;
    background: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    font-family: 'Noto Sans SC', sans-serif;
    color: var(--text-secondary);
    position: relative;
    overflow: hidden;
}

.tab-btn:hover {
    background-color: rgba(76, 175, 80, 0.05);
    color: var(--text-primary);
}

.tab-btn.active {
    border-bottom-color: var(--primary-color);
    color: var(--primary-color);
    background-color: rgba(76, 175, 80, 0.05);
    font-weight: 600;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

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

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

/* 个人中心 */
.user-info {
    background: var(--surface);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 2.5rem;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.user-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.user-info h3 {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.4rem;
    margin-bottom: 1.75rem;
    color: var(--text-primary);
    font-weight: 600;
}

.info-item {
    display: flex;
    margin-bottom: 1.25rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

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

.info-item span:first-child {
    font-weight: 500;
    min-width: 100px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.info-item span:last-child {
    color: var(--text-primary);
    font-size: 0.95rem;
}

.resources {
    background: var(--surface);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.resources::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
}

.resources h3 {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.4rem;
    margin-bottom: 1.75rem;
    color: var(--text-primary);
    font-weight: 600;
}

.resources-list {
    min-height: 220px;
}

.no-resources {
    text-align: center;
    color: var(--text-secondary);
    padding: 3rem;
    background-color: rgba(76, 175, 80, 0.05);
    border-radius: var(--radius-md);
    border: 2px dashed var(--border);
}

.resource-item {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.resource-item:hover {
    background-color: rgba(76, 175, 80, 0.05);
    padding-left: 2rem;
}

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

.resource-item h4 {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    font-weight: 600;
}

.resource-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
    animation: modalBackdropFadeIn 0.3s ease;
}

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

.modal-content {
    background: var(--surface);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    animation: modalFadeIn 0.4s ease;
    border: 1px solid var(--border);
    position: relative;
    overflow-y: auto;
    z-index: 1001;
}

.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: var(--border);
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
}

.modal-header h3 {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.5rem;
    color: var(--text-primary);
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.75rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition);
    padding: 0.25rem;
    border-radius: var(--radius-sm);
    line-height: 1;
}

.close-btn:hover {
    color: var(--text-primary);
    background-color: rgba(76, 175, 80, 0.05);
    transform: rotate(90deg);
}

.register-link,
.login-link {
    margin-top: 1.5rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.register-link a,
.login-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.register-link a:hover,
.login-link a:hover {
    color: var(--primary-dark);
}

.register-link a::after,
.login-link a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transition: var(--transition);
}

.register-link a:hover::after,
.login-link a:hover::after {
    transform: scaleX(1);
}

/* 页脚 */
.footer {
    background: linear-gradient(135deg, #333 0%, #222 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.footer .container {
    position: relative;
    z-index: 2;
}

.footer p {
    margin-bottom: 1rem;
    opacity: 0.9;
    font-size: 0.95rem;
}

.footer .social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.footer .social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: white;
    transition: var(--transition);
    text-decoration: none;
}

.footer .social-link:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1rem;
    }

    .navbar-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero h2 {
        font-size: 2.2rem;
    }

    .feature-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature-card {
        padding: 2rem;
    }

    .tool-tabs {
        flex-wrap: wrap;
    }

    .result-actions {
        flex-direction: column;
    }

    .modal-content {
        width: 95%;
        padding: 2rem;
    }

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

    .navbar-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--primary-dark);
        flex-direction: column;
        padding: 1.5rem;
        box-shadow: var(--shadow-md);
        transform: translateY(-150%);
        transition: var(--transition);
        z-index: 99;
    }

    .navbar-links.active {
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .hero h2 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .feature-card {
        padding: 1.75rem;
    }

    form {
        padding: 2rem;
    }

    .result-section {
        padding: 2rem;
    }

    .adaptation-options {
        gap: 1rem;
    }

    .tool-tabs {
        flex-direction: column;
        gap: 0.5rem;
    }

    .tab-btn {
        width: 100%;
        text-align: left;
    }
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(76, 175, 80, 0.3);
    border-radius: 50%;
    border-top-color: #4CAF50;
    animation: spin 1s ease-in-out infinite;
}

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

/* 成功消息 */
.success-message {
    background-color: #E8F5E8;
    color: #2E7D32;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    border-left: 4px solid #4CAF50;
}

/* 错误消息 */
.error-message {
    background-color: #FFEBEE;
    color: #C62828;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    border-left: 4px solid #F44336;
}

/* 资源操作按钮 */
.resource-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

/* 资源详情样式 */
.resource-detail {
    margin-top: 2rem;
}

.resource-content {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background-color: rgba(76, 175, 80, 0.05);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary-color);
    line-height: 1.7;
}

.resource-content h1,
.resource-content h2,
.resource-content h3,
.resource-content h4,
.resource-content h5,
.resource-content h6 {
    color: var(--text-primary);
    margin-top: 1.5em;
    margin-bottom: 0.75em;
}

.resource-content p {
    margin-bottom: 1em;
}

.resource-content ul,
.resource-content ol {
    margin-bottom: 1em;
    padding-left: 2em;
}

.resource-content code {
    background: #f5f5f5;
    padding: 2px 4px;
    border-radius: 3px;
}

.resource-content pre {
    background: #f5f5f5;
    padding: 10px;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 1em;
}

/* 删除按钮样式 */
.delete-btn {
    background: linear-gradient(135deg, #F44336 0%, #D32F2F 100%) !important;
}

.delete-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

