/* CSS 变量 */
:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --background: #f8fafc;
    --card-bg: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 10px 25px rgba(0, 0, 0, 0.15);
    --radius: 12px;
    --transition: 0.3s ease;
}

/* 动态渐变动画 */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    scroll-behavior: smooth;
}

html {
    scroll-behavior: smooth;
}

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

/* 导航栏 */
.navbar {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 0 40px;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
    max-width: 100%;
    padding: 0;
}

.logo {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
}

.navbar nav {
    display: flex;
    gap: 24px;
}

.navbar nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition);
}

.navbar nav a:hover {
    color: var(--primary-color);
}


/* Hero 区域 - 全屏 + 动态渐变 */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: linear-gradient(-45deg, #667eea, #764ba2, #f093fb, #5ee7df, #667eea);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

.hero-content {
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
}

.scroll-hint {
    position: absolute;
    bottom: 40px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 1rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

/* 工具区域 */
.tools-section {
    padding: 60px 0;
    background: var(--card-bg);
}

.tools-section h2 {
    text-align: center;
    margin-bottom: 16px;
    font-size: 1.75rem;
}

.section-title-link {
    text-decoration: none;
    color: inherit;
    display: inline-block;
    transition: transform var(--transition);
}

.section-title-link:hover {
    transform: scale(1.02);
}

.section-desc {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.ai-section {
    background: linear-gradient(180deg, #faf5ff 0%, #f3e8ff 100%);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 32px;
}


/* 工具卡片 */
.tool-card {
    display: block;
    text-decoration: none;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
    cursor: pointer;
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.tool-card .image-wrapper {
    width: 100%;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.tool-card .image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tool-card .placeholder-icon {
    font-size: 3rem;
    opacity: 0.5;
}

.tool-card .content {
    padding: 20px;
}

.tool-card h3 {
    font-size: 1.125rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.tool-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.tool-card .badge {
    display: inline-block;
    padding: 4px 10px;
    background: #fef3c7;
    color: #92400e;
    font-size: 0.75rem;
    border-radius: 20px;
    font-weight: 500;
}

/* 关于我区域 */
.about-section {
    padding: 60px 0;
    background: var(--card-bg);
}

.about-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.75rem;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 700px;
    margin: 0 auto;
}

.about-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.about-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-avatar .placeholder-icon {
    font-size: 3rem;
    opacity: 0.5;
}

.about-info h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.about-info .edit-hint {
    color: var(--primary-color);
    font-size: 0.875rem;
    font-style: italic;
}

.about-info p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* 页脚 */
.footer {
    padding: 24px 0;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
    border-top: 1px solid var(--border-color);
}

/* 响应式布局 */
@media (max-width: 1024px) {
    .tools-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .tools-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1rem; }
    .about-content { flex-direction: column; text-align: center; }
}