/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Clean Color Palette - Zentoolie Style */
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #60a5fa;
    --secondary: #6366f1;
    --accent: #8b5cf6;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;

    /* Neutral Colors */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Light Theme */
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-tertiary: #f3f4f6;
    --bg-card: #ffffff;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --border-color: #e5e7eb;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    /* Simple Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --gradient-hero: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

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

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 15px 0
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 50px;
    gap: var(--space-lg);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
}

.logo i {
    color: var(--primary);
    font-size: 1.75rem;
}

.nav {
    display: flex;
    gap: var(--space-xl);
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link i {
    font-size: 0.9rem;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.nav-link:hover i,
.nav-link.active i {
    opacity: 1;
    transform: translateY(-1px);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}
/* 
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
} */

/* Header Search */
.header-search {
    flex: 1;
    max-width: 400px;
    margin: 0 var(--space-lg);
}

.search-container {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 12px 16px 12px 45px;
    border: 1px solid var(--border-color);
    border-radius: 25px;
    background: white;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    outline: none;
}

.search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.search-result-item {
    padding: 12px 16px;
    border-bottom: 1px solid var(--bg-tertiary);
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-result-item:hover,
.search-result-item.active {
    background: var(--bg-secondary);
}

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

.search-result-icon {
    width: 32px;
    height: 32px;
    background: var(--gradient-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.875rem;
}

.search-result-info h4 {
    font-size: 0.875rem;
    font-weight: 500;
    margin: 0 0 2px 0;
    color: var(--text-primary);
}

.search-result-info p {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin: 0;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1001;
}

.mobile-menu-btn:hover {
    background: rgba(102, 126, 234, 0.1);
    color: var(--primary);
}

.mobile-menu-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.3);
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

.hero-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.hero-circle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(99, 102, 241, 0.05));
    animation: float 6s ease-in-out infinite;
}

.hero-circle-1 {
    width: 200px;
    height: 200px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.hero-circle-2 {
    width: 150px;
    height: 150px;
    top: 20%;
    right: 15%;
    animation-delay: 2s;
}

.hero-circle-3 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

.hero-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
    position: relative;
    z-index: 1;
}

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

.hero-stats {
    position: relative;
    z-index: 1;
}

/* Hero Code Demo */
.hero-code-demo {
    position: relative;
    z-index: 1;
}

/* Compact Stats in Hero Content */
.hero-stats-compact {
    margin-top: var(--space-xl);
}

.stats-grid-compact {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.stat-item-compact {
    text-align: center;
    padding: var(--space-lg) var(--space-md);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    backdrop-filter: blur(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.stat-item-compact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
}

.stat-item-compact:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.1) 100%);
    transform: translateY(-4px) scale(1.02);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

.stat-item-compact .stat-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: #5970F0;
    margin-bottom: var(--space-xs);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.02em;
}

.stat-item-compact .stat-label {
    font-size: 0.8rem;
    color: #5970F0;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Different colors for compact stat items */
.stat-item-compact:nth-child(1)::before {
    background: linear-gradient(90deg, transparent, #667eea, transparent);
}

.stat-item-compact:nth-child(2)::before {
    background: linear-gradient(90deg, transparent, #f093fb, transparent);
}

.stat-item-compact:nth-child(3)::before {
    background: linear-gradient(90deg, transparent, #4facfe, transparent);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 8px 16px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 20px;
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: var(--space-lg);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-lg);
    color: var(--text-primary);
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-lg);
}

.hero-actions {
    display: flex;
    justify-content: flex-start;
    gap: var(--space-md);
    flex-wrap: wrap;
    margin-top: var(--space-xl);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    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 0.5s ease;
}

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

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

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

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

.stat-item {
    text-align: center;
    padding: var(--space-xl);
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Different colors for each stat item */
.stat-item:nth-child(1)::before {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stat-item:nth-child(2)::before {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.stat-item:nth-child(3)::before {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.stat-item:nth-child(4)::before {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: var(--space-sm);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Code Demo Section */
.code-demo {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.code-demo-content {
    max-width: 800px;
    margin: 0 auto;
}

/* Hero Code Demo Styles */
.hero-code-demo .code-block {
    max-width: none;
    margin: 0;
}

.code-block {
    background: var(--text-primary);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #2d3748;
    border-bottom: 1px solid #4a5568;
}

.code-title {
    color: #e2e8f0;
    font-weight: 500;
    font-size: 0.875rem;
}

.code-dots {
    display: flex;
    gap: 6px;
}

.code-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #4a5568;
}

.code-dots span:nth-child(1) {
    background: #fc8181;
}

.code-dots span:nth-child(2) {
    background: #f6e05e;
}

.code-dots span:nth-child(3) {
    background: #68d391;
}

.code-body {
    padding: 24px;
    background: #1a202c;
    overflow-x: auto;
}

.code-body pre {
    margin: 0;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 14px;
    line-height: 1.6;
}

.code-body code {
    color: #e2e8f0;
}

.comment {
    color: #68d391;
}

.keyword {
    color: #63b3ed;
}

.variable {
    color: #f6e05e;
}

.string {
    color: #fc8181;
}

.function {
    color: #d6bcfa;
}

/* Essential Tools Section */
.essential-tools {
    padding: 80px 0 40px;
    text-align: center;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.section-header p {
    font-size: 1.125rem;
    color: #fff;
    margin-bottom: var(--space-lg);
}

.section-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.stat-badge {
    padding: 6px 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* Modern Tools Grid */
.tools-grid-section {
    padding: 40px 0 80px;
    background: #f8fafc;
}

.tools-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.tool-card-modern {
    background: white;
    border-radius: 16px;
    padding: 32px 24px 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.tool-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Different top borders for each card */
.tool-card-modern:nth-child(1)::before {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.tool-card-modern:nth-child(2)::before {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.tool-card-modern:nth-child(3)::before {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.tool-card-modern:nth-child(4)::before {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.tool-card-modern:nth-child(5)::before {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.tool-card-modern:nth-child(6)::before {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.tool-card-modern:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.tool-card-modern:active {
    transform: translateY(-2px) scale(0.98);
    transition: all 0.1s ease;
}

.tool-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 20px;
}

.tool-icon-large {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 14px 0 rgba(102, 126, 234, 0.39);
    transition: all 0.3s ease;
}

.tool-card-modern:hover .tool-icon-large {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px 0 rgba(102, 126, 234, 0.5);
}

/* Different icon colors for each card */
.tool-card-modern:nth-child(1) .tool-icon-large {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 14px 0 rgba(102, 126, 234, 0.39);
}

.tool-card-modern:nth-child(2) .tool-icon-large {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 14px 0 rgba(102, 126, 234, 0.39);
}

.tool-card-modern:nth-child(3) .tool-icon-large {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 14px 0 rgba(102, 126, 234, 0.39);
}

.tool-card-modern:nth-child(4) .tool-icon-large {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    box-shadow: 0 4px 14px 0 rgba(67, 233, 123, 0.39);
}

.tool-card-modern:nth-child(5) .tool-icon-large {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    box-shadow: 0 4px 14px 0 rgba(250, 112, 154, 0.39);
}

.tool-card-modern:nth-child(6) .tool-icon-large {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    box-shadow: 0 4px 14px 0 rgba(168, 237, 234, 0.39);
}

/* 卡片进入动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 为不同的卡片添加延迟动画 */
.tool-card-modern:nth-child(1) {
    animation-delay: 0.1s;
}

.tool-card-modern:nth-child(2) {
    animation-delay: 0.2s;
}

.tool-card-modern:nth-child(3) {
    animation-delay: 0.3s;
}

.tool-card-modern:nth-child(4) {
    animation-delay: 0.4s;
}

.tool-card-modern:nth-child(5) {
    animation-delay: 0.5s;
}

.tool-card-modern:nth-child(6) {
    animation-delay: 0.6s;
}

/* 标题动画 */
@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero h1 {
    animation: slideInFromLeft 0.8s ease-out;
}

.hero p {
    animation: slideInFromLeft 0.8s ease-out 0.2s both;
}

/* 按钮脉冲动画 */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(102, 126, 234, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0);
    }
}

.tool-card-btn:focus {
    animation: pulse 2s infinite;
}

/* 工具徽章动画 */
.tool-badge {
    transition: all 0.3s ease;
}

.tool-card-modern:hover .tool-badge {
    transform: scale(1.05);
}

/* 卡片标题动画 */
.tool-card-title {
    transition: color 0.3s ease;
}

.tool-card-modern:hover .tool-card-title {
    color: #667eea;
}

/* 添加一些微妙的阴影动画 */
.tool-card-modern::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    transform: translateX(-100%);
}

.tool-card-modern:hover::after {
    opacity: 1;
    transform: translateX(100%);
    transition: transform 0.6s ease;
}

/* 页面加载动画样式 */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loader-content {
    text-align: center;
    color: white;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.page-content {
    /* opacity: 0; */
    transition: opacity 0.5s ease;
}

.page-content.loaded {
    opacity: 1;
}

/* 波纹点击效果 */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: rippleEffect 0.6s linear;
    pointer-events: none;
}

@keyframes rippleEffect {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* 新卡片样式 */
.tool-card-new {
    background: white;
    border-radius: 16px;
    padding: 32px 24px 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.tool-card-new::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.tool-card-new:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.2), 0 15px 20px -5px rgba(0, 0, 0, 0.08);
}

.tool-card-new:active {
    transform: translateY(-2px) scale(0.98);
    transition: all 0.1s ease;
}

.tool-card-header-new {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 20px;
}

.tool-icon-new {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 14px 0 rgba(102, 126, 234, 0.39);
    transition: all 0.3s ease;
}

.tool-card-new:hover .tool-icon-new {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px 0 rgba(102, 126, 234, 0.5);
}

.tool-badge-new {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.tool-card-new:hover .tool-badge-new {
    transform: scale(1.05);
}

.tool-card-title-new {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.tool-card-new:hover .tool-card-title-new {
    color: #667eea;
}

.tool-card-description-new {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.tool-tags-new {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.tool-tag-new {
    padding: 6px 12px;
    background: #f3f4f6;
    color: #6b7280;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
}

.tool-tag-new:hover {
    background: #e5e7eb;
    transform: translateY(-1px);
    color: #374151;
}

.tool-card-btn-new {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    margin-top: 16px;
    cursor: pointer;
    width: 50%;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.tool-card-btn-new::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 0.5s ease;
}

.tool-card-btn-new:hover::before {
    left: 100%;
}

.tool-card-btn-new:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.5);
    color: white;
}

.tool-card-btn-new:active {
    transform: translateY(0) scale(0.98);
    transition: all 0.1s ease;
}

/* 不同卡片的颜色主题 */
.tool-card-new:nth-child(1)::before {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.tool-card-new:nth-child(2)::before {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.tool-card-new:nth-child(3)::before {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.tool-card-new:nth-child(4)::before {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.tool-card-new:nth-child(5)::before {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.tool-card-new:nth-child(1) .tool-icon-new {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 14px 0 rgba(102, 126, 234, 0.39);
}

.tool-card-new:nth-child(2) .tool-icon-new {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 4px 14px 0 rgba(240, 147, 251, 0.39);
}

.tool-card-new:nth-child(3) .tool-icon-new {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    box-shadow: 0 4px 14px 0 rgba(79, 172, 254, 0.39);
}

.tool-card-new:nth-child(4) .tool-icon-new {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    box-shadow: 0 4px 14px 0 rgba(67, 233, 123, 0.39);
}

.tool-card-new:nth-child(5) .tool-icon-new {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    box-shadow: 0 4px 14px 0 rgba(250, 112, 154, 0.39);
}

/* 徽章颜色 */
.tool-badge-popular {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.tool-badge-developer {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.tool-badge-secure {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.tool-badge-analytics {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: white;
}

.tool-badge-utility {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: white;
}

.tool-badge-new-feature {
    background: linear-gradient(135deg, #ff6b6b 0%, #feca57 100%);
    color: white;
    animation: pulse-glow 2s ease-in-out infinite alternate;
}

@keyframes pulse-glow {
    from {
        box-shadow: 0 0 5px rgba(255, 107, 107, 0.5);
    }

    to {
        box-shadow: 0 0 15px rgba(255, 107, 107, 0.8);
    }
}

.tool-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.tool-badge-popular {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.tool-badge-developer {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    color: white;
}

.tool-badge-secure {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    color: white;
}

.tool-badge-analytics {
    background: linear-gradient(135deg, #43e97b, #38f9d7);
    color: white;
}

.tool-badge-utility {
    background: linear-gradient(135deg, #fa709a, #fee140);
    color: white;
}

.tool-badge-advanced {
    background: linear-gradient(135deg, #a8edea, #fed6e3);
    color: #374151;
}

.tool-card-title {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
    line-height: 1.3;
}

.tool-card-description {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.tool-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.tool-tag {
    padding: 6px 12px;
    background: #f3f4f6;
    color: #6b7280;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
}

.tool-tag:hover {
    background: #e5e7eb;
    transform: translateY(-1px);
    color: #374151;
}

.tool-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    width: 50%;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.tool-card-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 0.5s ease;
}

.tool-card-btn:hover::before {
    left: 100%;
}

.tool-card-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.5);
    color: white;
}

.tool-card-btn:active {
    transform: translateY(0) scale(0.98);
    transition: all 0.1s ease;
}

.tool-card-btn-disabled {
    background: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
}

.tool-card-btn-disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Modern Tools Grid Responsive */
@media (max-width: 768px) {
    .tools-grid-modern {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 16px;
    }

    .tool-card-modern {
        padding: 24px 20px 20px;
    }

    .tool-icon-large {
        width: 56px;
        height: 56px;
        font-size: 24px;
    }

    .tool-card-title {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .tools-grid-section {
        padding: 30px 0 60px;
    }

    .tool-card-modern {
        padding: 20px 16px 16px;
    }

    .tool-card-header {
        margin-bottom: 16px;
    }

    .tool-icon-large {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }

    .tool-badge {
        padding: 3px 8px;
        font-size: 10px;
    }
}

/* Hide old category styles */
.category-card,
.categories-grid,
.tool-categories {
    display: none;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 12px;
}

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

.category-card:hover::before {
    opacity: 1;
}

.category-header {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    position: relative;
}

.category-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.category-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
    color: var(--text-primary);
}

.category-info p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.category-badge {
    position: absolute;
    top: 0;
    right: 0;
    padding: 4px 8px;
    background: var(--primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 4px;
}

.category-tools {
    margin-bottom: var(--space-lg);
}

.tool-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--bg-tertiary);
    cursor: pointer;
    transition: color 0.2s ease;
    text-decoration: none;
    color: var(--text-primary);
}

.tool-item:hover {
    color: var(--primary);
}

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

.tool-name {
    font-size: 0.875rem;
    font-weight: 500;
}

.category-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    text-align: center;
}

.category-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    color: white;
}

/* Why Choose Section */
.why-choose {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-2xl);
}

.feature-card {
    text-align: center;
    padding: var(--space-xl);
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.2s ease;
}

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

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-lg);
    color: white;
    font-size: 1.5rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

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

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: var(--gradient-primary);
    text-align: center;
    color: white;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.cta-content p {
    font-size: 1.125rem;
    margin-bottom: var(--space-lg);
    opacity: 0.9;
}

.cta-features {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
    margin-bottom: var(--space-xl);
}

.cta-feature {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

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

.cta-section .btn-primary:hover {
    background: var(--bg-secondary);
}

.cta-section .btn-secondary {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cta-section .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* New Footer Styles */
.footer-new {
    background: #1a202c;
    color: #e2e8f0;
    padding: 60px 0 30px;
    margin-top: 80px;
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.footer-brand {
    max-width: 500px;
}

.footer-brand .logo {
    margin-bottom: var(--space-lg);
}

.footer-brand .logo i {
    color: #4299e1;
    font-size: 1.75rem;
    margin-right: var(--space-sm);
}

.footer-brand .logo span {
    font-size: 1.5rem;
    font-weight: 700;
    color: #e2e8f0;
}

.footer-description {
    color: #a0aec0;
    line-height: 1.6;
    margin-bottom: var(--space-xl);
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    gap: var(--space-md);
}

.social-link {
    width: 40px;
    height: 40px;
    background: #2d3748;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a0aec0;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.social-link:hover {
    background: #4299e1;
    color: white;
    transform: translateY(-2px);
}

.footer-links {
    display: flex;
    justify-content: flex-end;
}

.footer-section h4 {
    color: #e2e8f0;
    font-weight: 600;
    margin-bottom: var(--space-lg);
    font-size: 1.1rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: var(--space-sm);
}

.footer-section ul li a {
    color: #a0aec0;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer-section ul li a:hover {
    color: #4299e1;
}

/* Old Footer - Hide */
.footer {
    display: none;
}

/* Footer Responsive */
@media (max-width: 768px) {
    .footer-main {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .footer-links {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer-new {
        padding: 40px 0 20px;
    }

    .footer-brand {
        text-align: center;
    }

    .footer-section {
        text-align: center;
    }
}

.stat {
    text-align: center;
    padding: var(--space-lg);
    background: var(--gradient-card);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.1), transparent);
    transition: left 0.6s ease;
}

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

.stat:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.4);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: var(--space-sm);
    text-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
    transition: all 0.3s ease;
}

.stat:hover .stat-number {
    transform: scale(1.1);
    text-shadow: 0 0 30px rgba(16, 185, 129, 0.5);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

/* Features Section */
.features-section {
    padding: 60px 0;
    background: rgba(16, 185, 129, 0.02);
    border-top: 1px solid rgba(16, 185, 129, 0.1);
    border-bottom: 1px solid rgba(16, 185, 129, 0.1);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-xl);
}

.feature-highlight {
    text-align: center;
    padding: var(--space-xl);
    background: var(--gradient-card);
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: var(--radius-xl);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.1), transparent);
    transition: left 0.6s ease;
}

.feature-highlight:hover::before {
    left: 100%;
}

.feature-highlight:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.3);
}

.feature-icon-large {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-lg);
    font-size: 2rem;
    color: white;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
    transition: all 0.3s ease;
}

.feature-highlight:hover .feature-icon-large {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.4);
}

.feature-highlight h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

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

/* Trust Section */
.trust-section {
    padding: 80px 0;
    background: rgba(20, 184, 166, 0.02);
    position: relative;
}

.trust-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 25% 25%, rgba(16, 185, 129, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(20, 184, 166, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.trust-content {
    position: relative;
    z-index: 1;
}

.trust-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--space-2xl);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-xl);
}

.trust-item {
    text-align: center;
    padding: var(--space-xl);
    background: var(--gradient-card);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.trust-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.trust-item:hover::after {
    transform: scaleX(1);
}

.trust-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.4);
}

.trust-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 8px 25px rgba(20, 184, 166, 0.3);
}

.trust-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: var(--space-sm);
    font-family: 'Inter', monospace;
}

.trust-label {
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.875rem;
}

/* Tools Section */
.tools-section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-2xl);
}

.tool-card {
    background: var(--gradient-card);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: all 0.4s ease;
    z-index: -1;
}

.tool-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(16, 185, 129, 0.1), transparent);
    opacity: 0;
    transition: all 0.6s ease;
    z-index: -2;
}

.tool-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
        0 20px 40px rgba(16, 185, 129, 0.2),
        0 0 0 1px rgba(16, 185, 129, 0.3);
    border-color: rgba(16, 185, 129, 0.5);
}

.tool-card:hover::before {
    opacity: 0.15;
}

.tool-card:hover::after {
    opacity: 1;
    animation: rotate 3s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.tool-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-lg);
    font-size: 1.75rem;
    color: white;
    position: relative;
    box-shadow:
        0 8px 25px rgba(16, 185, 129, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.tool-icon::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tool-card:hover .tool-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow:
        0 12px 35px rgba(16, 185, 129, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.tool-card:hover .tool-icon::before {
    opacity: 0.5;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

.tool-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.tool-description {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-search {
        display: none !important;
    }

    .nav {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        padding: 24px 0;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
        z-index: 1000;
        transform: translateY(-100%);
        opacity: 0;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid #e2e8f0;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }

    .nav.nav-open {
        display: flex;
        transform: translateY(0);
        opacity: 1;
    }



    /* 移动端搜索栏样式 */
    .mobile-search {
        display: none;
        padding: 16px 0 5px 0;
        margin-bottom: 8px;
        position: relative;
        z-index: 1003;
    }

    .nav.nav-open .mobile-search {
        display: block;
    }

    /* 确保移动端搜索框在桌面端不显示 */
    @media (min-width: 769px) {
        .mobile-search {
            display: none !important;
            visibility: hidden !important;
            opacity: 0 !important;
            height: 0 !important;
            overflow: hidden !important;
        }

        .nav .mobile-search {
            display: none !important;
        }
    }

    .mobile-search::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 60px;
        height: 2px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        border-radius: 1px;
    }

    .mobile-search .search-container {
        position: relative;
    }

    .mobile-search .search-input {
        width: 100%;
        padding: 14px 20px 14px 50px;
        border: 2px solid #f1f5f9;
        border-radius: 16px;
        background: #f8fafc;
        font-size: 0.9rem;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        outline: none;
        color: #1e293b;
        font-weight: 500;
    }

    .mobile-search .search-input::placeholder {
        color: #94a3b8;
        font-weight: 400;
    }

    .mobile-search .search-input:focus {
        border-color: #667eea;
        box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
        background: white;
        transform: translateY(-1px);
    }

    .mobile-search .search-icon {
        position: absolute;
        left: 18px;
        top: 50%;
        transform: translateY(-50%);
        color: #667eea;
        font-size: 1rem;
        transition: all 0.3s ease;
    }

    .mobile-search .search-input:focus+.search-icon {
        color: #5a67d8;
        transform: translateY(-50%) scale(1.1);
    }

    .mobile-search .search-results {
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        right: 0;
        background: white;
        border: 2px solid #f1f5f9;
        border-radius: 16px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 4px 20px rgba(0, 0, 0, 0.1);
        max-height: 280px;
        overflow-y: auto;
        z-index: 2147483647 !important;
        display: none;
        backdrop-filter: blur(10px);
    }

    .search-result-item {
        padding: 16px 20px;
        border-bottom: 1px solid #f8fafc;
        cursor: pointer;
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
    }

    .search-result-item::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 3px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        transform: scaleY(0);
        transition: transform 0.2s ease;
    }

    .search-result-item:hover {
        background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
        transform: translateX(4px);
    }

    .search-result-item:hover::before {
        transform: scaleY(1);
    }

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

    .search-result-title {
        font-weight: 600;
        color: #1e293b;
        font-size: 0.9rem;
        margin-bottom: 4px;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .search-result-title::before {
        content: '🔧';
        font-size: 0.8rem;
    }

    .search-result-description {
        color: #64748b;
        font-size: 0.8rem;
        line-height: 1.4;
        margin-left: 20px;
    }

    .search-no-results {
        padding: 24px 20px;
        text-align: center;
        color: #94a3b8;
        font-size: 0.9rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .search-no-results::before {
        content: '🔍';
        font-size: 2rem;
        opacity: 0.5;
    }

    .nav-link {
        padding: 3px 24px;
        margin: 0;
        border-radius: 0;
        text-align: left;
        font-size: 1rem;
        font-weight: 500;
        color: #64748b;
        transition: all 0.2s ease;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 16px;
        background: transparent;
        border: none;
        border-bottom: 1px solid #f1f5f9;
    }

    .nav-link i {
        font-size: 1.1rem;
        width: 20px;
        text-align: center;
        flex-shrink: 0;
        transition: all 0.2s ease;
    }

    /* 为不同的导航项设置不同的图标颜色 */
    .nav-link:nth-child(1) i { color: #8b5cf6; } /* Home - 紫色 */
    .nav-link:nth-child(2) i { color: #3b82f6; } /* Features - 蓝色 */
    .nav-link:nth-child(3) i { color: #10b981; } /* Generator - 绿色 */
    .nav-link:nth-child(4) i { color: #f59e0b; } /* About - 橙色 */
    .nav-link:nth-child(5) i { color: #ef4444; } /* Privacy - 红色 */
    .nav-link:nth-child(6) i { color: #6366f1; } /* Terms - 靛蓝色 */

    .nav-link span {
        flex: 1;
        transition: all 0.2s ease;
    }

    .nav-link:hover {
        background-color: #f8fafc;
        color: #334155;
    }

    .nav-link:hover i {
        transform: scale(1.1);
    }

    .nav-link.active {
        /* background-color: #f1f5f9; */
        color: #1e293b;
        border-bottom-color: #8b5cf6;
        border-bottom-width: 2px;
    }

    .nav-link.active i {
        transform: scale(1.05);
    }

    /* 移除最后一个导航项的底部边框 */
    .nav-link:last-child {
        border-bottom: none;
    }



    .mobile-menu-btn {
        display: block;
        transition: all 0.3s ease;
    }

    .mobile-menu-btn.active {
        transform: rotate(90deg);
        background: rgba(102, 126, 234, 0.1);
        color: var(--primary);
    }

    .mobile-menu-btn.active::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: rgba(102, 126, 234, 0.1);
        z-index: -1;
        animation: ripple 0.6s ease-out;
    }

    @keyframes ripple {
        0% {
            width: 0;
            height: 0;
            opacity: 1;
        }

        100% {
            width: 40px;
            height: 40px;
            opacity: 0;
        }
    }

    /* Mobile menu overlay */
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* 移动端菜单项动画 */
    .nav.nav-open .nav-link {
        animation: slideInFromBottom 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

    .nav.nav-open .nav-link:nth-child(1) {
        animation-delay: 0.1s;
    }

    .nav.nav-open .nav-link:nth-child(2) {
        animation-delay: 0.15s;
    }

    .nav.nav-open .nav-link:nth-child(3) {
        animation-delay: 0.2s;
    }

    .nav.nav-open .nav-link:nth-child(4) {
        animation-delay: 0.25s;
    }

    .nav.nav-open .nav-link:nth-child(5) {
        animation-delay: 0.3s;
    }

    .nav.nav-open .mobile-search {
        animation: slideInFromTop 0.4s ease-out forwards;
        opacity: 0;
        transform: translateY(-20px);
    }

    @keyframes slideInFromRight {
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    @keyframes slideInFromTop {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @keyframes slideInFromBottom {
        to {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero-stats {
        gap: var(--space-lg);
    }

    .tools-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .container {
        padding: 0 var(--space-md);
    }
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.modal-content {
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    z-index: 1;
    animation: modalSlideIn 0.3s ease;
}

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

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

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

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.25rem;
    cursor: pointer;
    padding: var(--space-sm);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

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

.modal-body {
    padding: var(--space-xl);
    max-height: calc(90vh - 120px);
    overflow-y: auto;
}

/* Tool Interface Styles */
.tool-interface {
    display: grid;
    gap: var(--space-lg);
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.input-label {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.input-field,
.textarea-field {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    color: var(--text-primary);
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    resize: vertical;
}

.textarea-field {
    min-height: 200px;
}

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

.btn {
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-md);
    padding: var(--space-md) var(--space-lg);
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

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

.btn-secondary {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

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

.btn-group {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--space-2xl) 0 var(--space-lg);
    margin-top: var(--space-2xl);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer-section h4 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: var(--space-sm);
}

.footer-section ul li a {
    color: #a0aec0;
    text-decoration: none;
    transition: color 0.3s ease;
}


.footer-bottom {
    text-align: center;
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
    }

    50% {
        box-shadow: 0 0 30px rgba(16, 185, 129, 0.6);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

.slide-in-left {
    animation: slideInLeft 0.8s ease forwards;
}

.slide-in-right {
    animation: slideInRight 0.8s ease forwards;
}

.scale-in {
    animation: scaleIn 0.6s ease forwards;
}

.floating {
    animation: float 3s ease-in-out infinite;
}

.glowing {
    animation: glow 2s ease-in-out infinite;
}

/* Staggered animations */
.tool-card:nth-child(1) {
    animation-delay: 0.1s;
}

.tool-card:nth-child(2) {
    animation-delay: 0.2s;
}

.tool-card:nth-child(3) {
    animation-delay: 0.3s;
}

.tool-card:nth-child(4) {
    animation-delay: 0.4s;
}

.tool-card:nth-child(5) {
    animation-delay: 0.5s;
}

.tool-card:nth-child(6) {
    animation-delay: 0.6s;
}

.feature-highlight:nth-child(1) {
    animation-delay: 0.2s;
}

.feature-highlight:nth-child(2) {
    animation-delay: 0.4s;
}

.feature-highlight:nth-child(3) {
    animation-delay: 0.6s;
}

.trust-item:nth-child(1) {
    animation-delay: 0.1s;
}

.trust-item:nth-child(2) {
    animation-delay: 0.2s;
}

.trust-item:nth-child(3) {
    animation-delay: 0.3s;
}

.trust-item:nth-child(4) {
    animation-delay: 0.4s;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mt-sm {
    margin-top: var(--space-sm);
}

.mt-md {
    margin-top: var(--space-md);
}

.mt-lg {
    margin-top: var(--space-lg);
}

.mb-sm {
    margin-bottom: var(--space-sm);
}

.mb-md {
    margin-bottom: var(--space-md);
}

.mb-lg {
    margin-bottom: var(--space-lg);
}

.success {
    color: var(--success);
}

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

.error {
    color: var(--error);
}

/* Legal Pages Styles */
.page-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
    padding: var(--space-2xl) 0;
    background: var(--gradient-hero);
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.page-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto var(--space-lg);
}

.page-meta {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
    margin-top: var(--space-lg);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.875rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.1);
    padding: var(--space-xs) var(--space-sm);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.meta-item i {
    color: var(--primary);
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-toc {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin-bottom: var(--space-2xl);
    box-shadow: var(--shadow-sm);
}

.legal-toc h3 {
    color: var(--primary);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--border-color);
}

.legal-toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.legal-toc li {
    margin-bottom: var(--space-sm);
}

.legal-toc a {
    display: block;
    padding: var(--space-sm) var(--space-md);
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    font-weight: 500;
}

.legal-toc a:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    transform: translateX(4px);
}

.legal-section {
    margin-bottom: var(--space-2xl);
    padding: var(--space-xl);
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.legal-section h2 {
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--border-color);
}

.legal-section p {
    margin-bottom: var(--space-md);
    line-height: 1.7;
    color: var(--text-secondary);
}

.legal-section ul {
    margin: var(--space-md) 0;
    padding-left: var(--space-xl);
}

.legal-section li {
    margin-bottom: var(--space-sm);
    color: var(--text-secondary);
    line-height: 1.6;
}

.legal-notice {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin-top: var(--space-2xl);
}

.legal-notice p {
    margin: 0;
    color: var(--text-primary);
    font-weight: 500;
}

.contact-info {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    margin-top: var(--space-md);
}

.contact-info p {
    margin: 0;
    color: var(--text-primary);
}

/* About Page Specific Styles */
.content-grid {
    display: grid;
    gap: var(--space-2xl);
}

.content-section {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-sm);
}

.content-section h2 {
    color: var(--primary);
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: var(--space-lg);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-lg);
}

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    text-align: center;
    border: 1px solid #4B7BF2;

}

.feature-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
    font-size: 1.25rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
}

.tools-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-lg);
}

.tool-category h4 {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.tool-category ul {
    list-style: none;
    padding: 0;
}

.tool-category li {
    padding: var(--space-xs) 0;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.tech-list,
.privacy-list {
    list-style: none;
    padding: 0;
}

.tech-list li,
.privacy-list li {
    padding: var(--space-sm) 0;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.tech-list li:before,
.privacy-list li:before {
    content: "✓";
    color: var(--success);
    font-weight: bold;
    margin-right: var(--space-sm);
}

/* Additional Responsive Styles */
@media (max-width: 768px) {
    .header {
        padding: 10px 0;
    }

    .header-content {
        justify-content: space-between;
    }

    .logo {
        font-size: 1.2rem;
    }

    .logo i {
        font-size: 1.4rem;
    }

    .search-input {
        font-size: 0.8rem;
        padding: 10px 14px 10px 40px;
    }

    .hero-layout {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
        text-align: center;
    }

    .hero-actions {
        justify-content: center;
    }

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

    .stats-grid-compact {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-md);
    }

    .hero-code-demo {
        order: 1;
        margin-top: var(--space-lg);
    }

    .tools-grid-modern {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .cta-features {
        flex-direction: column;
        align-items: center;
    }

    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 100px 0 60px;
    }

    .hero-layout {
        gap: var(--space-lg);
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-actions {
        /* flex-direction: column; */
        align-items: center;
    }

    .hero-actions .btn {
        /* width: 100%; */
        max-width: 280px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .stat-item {
        padding: var(--space-md);
    }

    .stats-grid-compact {
        /* grid-template-columns: 1fr; */
        gap: var(--space-sm);
    }

    .stat-item-compact {
        padding: var(--space-sm);
    }

    .stat-item-compact .stat-number {
        font-size: 1rem;
    }

    .stat-item-compact .stat-label {
        font-size: 0.7rem;
    }

    .tool-card-modern {
        padding: var(--space-lg);
    }

    .modal-content {
        margin: var(--space-md);
        max-height: calc(100vh - 2rem);
    }

    .modal-header,
    .modal-body {
        padding: var(--space-lg);
    }

    .btn-group {
        flex-direction: column;
    }

    .btn-group .btn {
        width: 100%;
    }

    .page-title {
        font-size: 2rem;
    }

    .page-meta {
        flex-direction: column;
        gap: var(--space-sm);
        align-items: center;
    }

    .meta-item {
        font-size: 0.8rem;
    }

    .legal-section,
    .content-section {
        padding: var(--space-lg);
    }

    .code-body {
        padding: var(--space-md);
    }

    .code-body pre {
        font-size: 12px;
    }
}

/* Animation Styles */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseOnce {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.animate-slide-up {
    animation: slideUp 0.8s ease-out forwards;
}

.animate-pulse-once {
    animation: pulseOnce 0.6s ease-out;
}

/* Ripple effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

/* Page loader */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.page-loader.fade-out {
    opacity: 0;
}

.loader-content {
    text-align: center;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f4f6;
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Enhanced hover effects */
.tool-card-modern {
    position: relative;
    overflow: hidden;
}

.btn {
    position: relative;
    overflow: hidden;
}

/* Form Elements */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.875rem;
    color: var(--text-secondary);
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    margin: 0;
}

input[type="range"] {
    width: 100%;
    margin: var(--space-sm) 0;
}

select.input-field {
    background: white;
    cursor: pointer;
}

/* User Experience Enhancements */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.custom-tooltip {
    position: absolute;
    background: #1f2937;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.875rem;
    z-index: 10000;
    pointer-events: none;
    white-space: nowrap;
}

.keyboard-shortcuts-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

.modal-overlay {
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

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

.modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-body {
    padding: var(--space-lg);
}

.shortcuts-grid {
    display: grid;
    gap: var(--space-md);
}

.shortcut-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md);
    background: var(--bg-secondary);
    border-radius: 8px;
}

kbd {
    background: var(--text-primary);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-family: monospace;
    margin: 0 2px;
}

.copy-btn.copied {
    background: var(--success) !important;
    color: white !important;
}

.error-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--error);
    color: white;
    padding: var(--space-md);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    z-index: 10000;
    box-shadow: var(--shadow-lg);
}

.error-notification button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0;
    margin-left: var(--space-sm);
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 10000;
}

.skip-link:focus {
    top: 6px;
}

/* Keyboard navigation styles */
.keyboard-navigation *:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Enhanced Visual Effects */
.tool-card-modern::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.tool-card-modern:hover::after {
    opacity: 1;
}

/* Smooth page transitions */
.page-transition {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.page-transition.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced button effects */
.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 0.5s;
}

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

/* Floating animation for hero elements */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.hero-circle {
    animation: float 6s ease-in-out infinite;
}

.hero-circle:nth-child(2) {
    animation-delay: -2s;
}

.hero-circle:nth-child(3) {
    animation-delay: -4s;
}

/* Gradient text effect */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Enhanced shadows */
.enhanced-shadow {
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06),
        0 0 0 1px rgba(255, 255, 255, 0.05);
}

/* Micro-interactions */
.micro-bounce {
    transition: transform 0.2s ease;
}

.micro-bounce:active {
    transform: scale(0.95);
}

/* Loading states */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

/* About Page Specific Styles */
.company-values {
    display: grid;
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.value-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: rgba(99, 102, 241, 0.05);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--primary);
}

.value-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: white;
    border-radius: var(--radius-md);
    font-size: 1.25rem;
}

.value-content h4 {
    margin: 0 0 var(--space-sm) 0;
    color: var(--primary);
    font-weight: 600;
}

.value-content p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-xl);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-xl);
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.contact-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), #5a67d8);
    color: white;
    border-radius: var(--radius-md);
    font-size: 1.25rem;
}

.contact-details h4 {
    margin: 0 0 var(--space-sm) 0;
    color: var(--text-primary);
    font-weight: 600;
}

.contact-details p {
    margin: 0 0 var(--space-xs) 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-sm);
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-sm);
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.social-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-1px);
}

.privacy-highlights {
    display: grid;
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.privacy-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.privacy-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border-radius: var(--radius-md);
    font-size: 1.25rem;
}

.privacy-content h4 {
    margin: 0 0 var(--space-sm) 0;
    color: var(--text-primary);
    font-weight: 600;
}

.privacy-content p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

.legal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.legal-item {
    padding: var(--space-lg);
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.legal-item h4 {
    margin: 0 0 var(--space-md) 0;
    color: var(--primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.legal-item h4 i {
    color: var(--primary);
}

.legal-item p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

.text-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

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

.legal-notice {
    margin-top: var(--space-xl);
    padding: var(--space-lg);
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: var(--radius-lg);
    border-left: 4px solid #f59e0b;
}

.legal-notice p {
    margin: 0;
    color: var(--text-primary);
    line-height: 1.6;
}

.legal-notice strong {
    color: #f59e0b;
}

/* Responsive Design for About Page */
@media (max-width: 768px) {
    .company-values {
        gap: var(--space-md);
    }

    .value-item {
        flex-direction: column;
        text-align: center;
        padding: var(--space-md);
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
        padding: var(--space-lg);
    }

    .privacy-highlights {
        gap: var(--space-md);
    }

    .privacy-item {
        flex-direction: column;
        text-align: center;
        padding: var(--space-md);
    }

    .legal-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .legal-item {
        padding: var(--space-md);
    }

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