/* EmojiFace - Main Stylesheet */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    min-height: 100vh;
}

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

/* Header Styles */
.header {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    padding: 10px 0; /* 统一页面 header 垂直内边距 */
    contain: layout style;
    will-change: transform;
    transition: box-shadow 0.3s ease;
}

.header.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 64px; /* 统一 header 高度 */
}

/* Navigation wrapper for right alignment */
.nav-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-left: auto;
}

/* Mobile responsive navigation - 注释掉原有的垂直布局样式，使用新的水平布局 */
/* 原有样式已被下方的新样式替代，保持水平布局并显示所有导航项 */

/* Article Page Mobile Styles - Medium Style */
@media (max-width: 768px) {
    .article-header {
        padding: 60px 0 40px;
    }
    
    .article-main-title {
        font-size: 2.5rem;
        line-height: 1.1;
        margin-bottom: 24px;
        letter-spacing: -0.03em;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 12px;
        font-size: 13px;
        padding-bottom: 20px;
        margin-bottom: 40px;
        flex-wrap: wrap;
    }
    
    .article-tags {
        gap: 6px;
        margin-top: 12px;
    }
    
    .tag {
        padding: 4px 10px;
        font-size: 12px;
    }
    
    .article-content {
        padding: 0 20px;
        max-width: 100%;
    }
    
    .article-body {
        font-size: 1.125rem;
        line-height: 1.6;
        max-width: 100%;
        padding: 0;
    }
    
    .article-intro {
        font-size: 20px;
        margin-bottom: 28px;
        line-height: 1.5;
    }
    
    .article-body h2 {
        font-size: 1.75rem;
        margin: 48px 0 16px;
        line-height: 1.2;
    }
    
    .article-body h3 {
        font-size: 1.375rem;
        margin: 40px 0 16px;
        line-height: 1.3;
    }
    
    .article-body h4 {
        font-size: 1.1rem;
        margin: 24px 0 8px;
    }
    
    .article-body p {
        margin-bottom: 28px;
    }
    
    .article-image-hero {
        margin: 40px 0;
    }
    
    .article-image-hero img {
        width: 100%;
        max-width: 100%;
    }
    
    .highlight-box {
        padding: 32px 20px;
        margin: 40px 0;
    }
    
    .cta-section {
        padding: 60px 0;
        margin: 60px 0;
    }
    
    .cta-content {
        padding: 0 20px;
    }
    
    .cta-title {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .cta-description {
        font-size: 1.125rem;
        margin-bottom: 32px;
    }
    
    .cta-btn {
        padding: 10px 20px;
        font-size: 15px;
    }
    
    .article-footer {
        padding: 50px 0;
        margin-top: 60px;
    }
    
    .footer-content {
        padding: 0 20px;
    }
    
    .share-buttons {
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
    }
    
    .share-btn {
        font-size: 13px;
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {
    .article-header {
        padding: 32px 0 24px;
    }
    
    .article-main-title {
        font-size: 1.9rem;
        line-height: 1.25;
    }
    
    .article-meta {
        font-size: 12px;
    }
    
    .article-body {
        font-size: 17px;
        padding: 0 16px;
    }
    
    .article-intro {
        font-size: 18px;
        line-height: 1.5;
    }
    
    .article-body h2 {
        font-size: 1.4rem;
    }
    
    .article-body h3 {
        font-size: 1.2rem;
    }
    
    .article-body h4 {
        font-size: 1.05rem;
    }
    
    .cta-section {
        padding: 24px 16px;
    }
    
    .highlight-box {
        padding: 16px;
    }
    
    .article-image-hero {
        margin-bottom: 32px;
    }
}

.logo {
    display: flex;
    align-items: center;
}

.logo-image {
    width: 40px;
    height: 40px;
    display: block;
}

.logo-text {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(90deg, #6c47ff 0%, #ff4dca 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    line-height: 1; /* 统一文案行距，避免垂直偏移 */
}

.logo a {
    -webkit-tap-highlight-color: transparent;
    outline: none;
    transition: transform 150ms ease;
}
.logo a:focus { outline: none; }
.logo a:focus-visible { outline: none; }
.logo a:active { transform: translateY(1px) scale(0.98); }

.logo a .logo-image {
    transition: box-shadow 260ms ease, transform 260ms ease, filter 260ms ease;
}
.logo a:focus-visible .logo-image,
.logo a:active .logo-image {
    box-shadow: 0 0 0 8px rgba(108, 71, 255, 0.18), 0 8px 20px rgba(255, 77, 202, 0.25);
    transform: rotate(-1deg) scale(1.02);
    filter: saturate(1.1);
}

.logo a .logo-text {
    transition: text-shadow 260ms ease, transform 260ms ease;
}
.logo a:focus-visible .logo-text,
.logo a:active .logo-text {
    text-shadow: 0 0 8px rgba(108,71,255,0.55), 0 0 16px rgba(255,77,202,0.4);
}

@keyframes logoFlash {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); }
    100% { transform: scale(1); }
}
.logo a:focus-visible .logo-image { animation: logoFlash 480ms ease; }

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #6c47ff;
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease, transform 0.15s ease;
    position: relative;
    padding: 5px 0;
    -webkit-tap-highlight-color: transparent;
}

.nav-links a:hover {
    color: #6c47ff;
}

.nav-links a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    background-image: linear-gradient(90deg, #6c47ff 0%, #ff4dca 100%);
    transition: width 220ms cubic-bezier(0.2, 0, 0, 1);
}

.nav-links a:hover:after {
    width: 100%;
}

.nav-links a:active {
    transform: translateY(1px);
}

.nav-links a:focus { outline: none; }
.nav-links a:focus-visible {
    outline: none;
    color: #6c47ff;
    text-shadow: 0 0 8px rgba(108,71,255,0.55), 0 0 16px rgba(255,77,202,0.4);
}

.nav-links a:active:after,
.nav-links a:focus-visible:after {
    width: 100%;
    background-size: 200% 100%;
    animation: flashLine 500ms ease;
}

@keyframes flashLine {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

.cta-button {
    background-color: #6c47ff;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #563dcf;
}

/* Mobile Nav Toggle - default hidden on desktop */
.btn-toggle {
    display: none;
}

/* Mobile menu container default */
.mobile-menu {
    display: none;
}

/* Main Content */
main {
    width: 100%;
}

/* Hero Section */
.hero {
    padding: 20px 0 30px;
    background-color: #fff;
    position: relative;
    overflow: hidden;
}

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

.hero-content {
    max-width: 95%;
    margin: 0 auto;
    text-align: center;
}

.hero h1 {
    font-size: 3.3rem;
    line-height: 1.2;
    margin-bottom: 20px;
    margin-top: 20px;
    font-weight: 800;
    color: #111;
}

.hero h1 span {
    background: linear-gradient(90deg, #6c47ff 0%, #ff4dca 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.hero p {
    font-size: 1.0rem;
    color: #555;
    max-width: 700px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.feature-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.badge {
    background-color: #f5f5f5;
    color: #333;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 500;
}

/* Blog Styles */
.blog-articles {
    padding: 40px 0;
    background-color: #f8f9fa;
}

/* Other Tools Page */
.tools-hero {
    background: #ffffff;
    padding: 40px 0 100px;
}

.tools-title {
    font-size: 2.75rem;
    font-weight: 800;
    text-align: center;
    color: #111;
    margin: 8px 0 12px;
}

.tools-subtitle {
    font-size: 1.1rem;
    color: #666;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 32px;
}

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

.tool-card {
    background: #ffffff;
    color: #242424;
    border-radius: 16px;
    border: 1px solid #eee;
    box-shadow: 0 10px 24px rgba(0,0,0,0.08);
    padding: 20px;
}

.tool-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    background: #f0f3ff;
    color: #6c47ff;
    margin-bottom: 12px;
}

.tool-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 6px;
}

.tool-desc {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 14px;
}

.tool-btn {
    display: inline-block;
    width: 100%;
    text-align: center;
    padding: 10px 16px;
    border-radius: 10px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    background: linear-gradient(90deg, #6c47ff 0%, #ff4dca 100%);
}

@media (max-width: 992px) {
    .tools-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .tools-grid { grid-template-columns: 1fr; }
}

/* Article Page Styles - Medium Style */
.article-header {
    background: #ffffff;
    color: #242424;
    padding: 40px 0 60px;
    border-bottom: none;
    width: 100%;
    margin: 0;
}

.article-header-content {
    max-width: 728px;
    margin: 0 auto;
}

.breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #eef0f6;
    box-shadow: 0 8px 22px rgba(108, 71, 255, 0.08);
    margin-bottom: 40px;
    font-size: 14px;
    color: #555;
}

.breadcrumb a {
    color: #6c47ff;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}
.breadcrumb a:hover { color: #ff4dca; }
.breadcrumb span { color: #666; }

.breadcrumb > * + *::before {
    content: '>';
    display: inline-block;
    margin: 0 6px 0 4px;
    font-weight: 700;
    background: linear-gradient(90deg, #6c47ff 0%, #ff4dca 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.article-main-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.04;
    margin: 0 0 32px;
    color: #242424;
    font-family: 'Georgia', 'Times New Roman', serif;
    letter-spacing: -0.04em;
    word-spacing: -0.02em;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 48px;
    font-size: 14px;
    color: #757575;
    padding-bottom: 0;
    border-bottom: none;
    font-weight: 400;
}

.article-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.tag {
    background: #f2f2f2;
    color: #757575;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 400;
    transition: all 0.2s ease;
    border: none;
}

.tag:hover {
    background: #e8e8e8;
    color: #242424;
}

.article-content {
    padding: 48px 0;
    background: #ffffff;
    max-width: 728px;
    margin: 0 auto;
}

.article-image-hero {
    text-align: center;
    margin-bottom: 56px;
}

.article-image-hero img {
    width: 100%;
    max-width: 728px;
    height: auto;
    border-radius: 0;
}

.image-caption {
    margin-top: 16px;
    font-style: italic;
    color: #757575;
    font-size: 14px;
    text-align: center;
    line-height: 1.4;
    font-weight: 400;
}

.article-body {
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.58;
    font-size: 21px;
    color: #242424;
    font-family: 'Georgia', 'Times New Roman', serif;
    letter-spacing: -0.003em;
    font-weight: 400;
}

.article-intro {
    font-size: 24px;
    font-weight: 400;
    color: #242424;
    margin-bottom: 32px;
    line-height: 1.48;
    font-style: italic;
}

.article-body h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #242424;
    margin: 56px 0 16px;
    line-height: 1.25;
    font-family: 'Georgia', 'Times New Roman', serif;
    letter-spacing: -0.02em;
}

.article-body h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #242424;
    margin: 48px 0 16px;
    line-height: 1.33;
    font-family: 'Georgia', 'Times New Roman', serif;
    letter-spacing: -0.01em;
}

.article-body h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #242424;
    margin: 40px 0 12px;
    line-height: 1.4;
}

.article-body p {
    margin-bottom: 32px;
    line-height: 1.58;
    word-break: break-word;
}

.article-body ul, .article-body ol {
    margin: 32px 0;
    padding-left: 24px;
}

.article-body li {
    margin-bottom: 8px;
    line-height: 1.58;
}

.highlight-box {
    background: #f8f9fa;
    border: none;
    border-radius: 0;
    padding: 40px 32px;
    margin: 48px 0;
    position: relative;
    box-shadow: none;
    border-left: 4px solid #242424;
}

.highlight-box h4 {
    margin-top: 0;
    margin-bottom: 24px;
    font-size: 1.375rem;
    color: #242424;
    font-weight: 600;
    line-height: 1.33;
    letter-spacing: -0.01em;
}

.highlight-box p {
    color: #242424;
    margin-bottom: 24px;
    line-height: 1.58;
    font-size: 1.125rem;
}

.highlight-box p:last-child {
    margin-bottom: 0;
}

.cta-section {
    background: #ffffff;
    padding: 80px 0;
    text-align: center;
    border-top: 1px solid #e6e6e6;
    margin: 80px 0;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
}

.cta-content {
    max-width: 728px;
    margin: 0 auto;
    padding: 0 24px;
}

.cta-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #242424;
    margin-bottom: 24px;
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.cta-description {
    font-size: 1.25rem;
    color: #757575;
    margin-bottom: 40px;
    line-height: 1.58;
    font-weight: 400;
}

.cta-section h2 {
    color: #242424;
    margin-bottom: 16px;
    border: none;
    padding: 0;
    font-size: 1.5rem;
}

.cta-btn {
    background: #1a8917;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    text-decoration: none;
    display: inline-block;
    margin-top: 16px;
}

.cta-btn:hover {
    background: #0f7b0f;
}

.article-footer {
    background: #ffffff;
    padding: 60px 0;
    border-top: 1px solid #e6e6e6;
    margin-top: 80px;
}

.footer-content {
    /*max-width: 728px;*/
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 32px;
}

.share-buttons h4 {
    margin-bottom: 16px;
    color: #242424;
    font-size: 1.1rem;
    font-weight: 500;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #f2f2f2;
    border: none;
    border-radius: 20px;
    text-decoration: none;
    color: #757575;
    font-weight: 400;
    transition: all 0.2s ease;
    box-shadow: none;
    font-size: 14px;
    cursor: pointer;
}

.share-btn:hover {
    background: #e8e8e8;
    border-color: transparent;
    transform: none;
    box-shadow: none;
    color: #242424;
}

.footer-text {
    color: #757575;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 400;
}

.related-articles h4 {
    margin-bottom: 16px;
    color: #242424;
    font-size: 1.1rem;
    font-weight: 500;
}

.related-articles ul {
    list-style: none;
    padding: 0;
}

.related-articles li {
    margin-bottom: 8px;
}

.related-articles a {
    color: #1a8917;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.2s ease;
    font-size: 16px;
}

.related-articles a:hover {
    color: #0f7b0f;
    text-decoration: underline;
}

.articles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Mobile-first responsive design for blog */
@media (max-width: 768px) {
    .blog-articles {
        padding: 20px 0;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .blog-articles {
        padding: 15px 0;
    }
    
    .articles-grid {
        padding: 0 10px;
        gap: 15px;
    }
}

.article-card {
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid #e9ecef;
    box-shadow: 0 10px 28px rgba(0,0,0,0.08);
    transition: transform 220ms ease, box-shadow 220ms ease;
    display: grid;
    grid-template-columns: 360px 1fr;
    align-items: stretch;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(0,0,0,0.12);
}

.article-image {
    width: 100%;
    height: 100%;
    min-height: 240px;
    overflow: hidden;
    position: relative;
    border-top-left-radius: 18px;
    border-bottom-left-radius: 18px;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-content {
    padding: 28px 28px;
}

.article-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 0.875rem;
    color: #6c757d;
}

.article-date,
.article-read-time {
    display: flex;
    align-items: center;
    gap: 4px;
}

.article-title {
    font-size: 2rem;
    font-weight: 800;
    color: #111;
    margin-bottom: 12px;
    line-height: 1.25;
}

.article-description {
    color: #555;
    line-height: 1.7;
    margin-bottom: 20px;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tag {
    background-color: #e9ecef;
    color: #495057;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.tag:hover {
    background-color: #6c47ff;
    color: white;
}

.read-article-btn {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 12px;
    background: linear-gradient(90deg, #6c47ff 0%, #ff4dca 100%);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
}
.read-article-btn:hover { filter: brightness(1.05); }

.article-badges { margin-bottom: 10px; display: flex; gap: 8px; align-items: center; }
.article-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(90deg, #6c47ff 0%, #ff4dca 100%);
}

/* Mobile optimizations for article cards */
@media (max-width: 768px) {
    .article-card { grid-template-columns: 1fr; }
    .article-image { min-height: 200px; border-radius: 18px 18px 0 0; }
    
    .article-content { padding: 20px; }
    
    .article-title { font-size: 1.5rem; margin-bottom: 10px; }
    
    .article-meta {
        gap: 12px;
        margin-bottom: 12px;
        font-size: 0.8rem;
    }
    
    .article-description {
        font-size: 0.9rem;
        margin-bottom: 16px;
    }
    
    .article-tags {
        gap: 6px;
        margin-bottom: 16px;
    }
    
    .tag {
        padding: 3px 10px;
        font-size: 0.7rem;
    }
    
    .read-article-btn {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .article-image {
        height: 180px;
    }
    
    .article-content {
        padding: 16px;
    }
    
    .article-title {
        font-size: 1.2rem;
        line-height: 1.4;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
    
    .article-description {
        font-size: 0.85rem;
        -webkit-line-clamp: 2;
    }
    
    .tag {
        padding: 2px 8px;
        font-size: 0.65rem;
    }
}

/* Upload Section */
.upload-section {
    background-color: #fff;
    padding: 30px 0;
    text-align: center;
    contain: layout style;
}

.upload-container {
    max-width: 90%;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.upload-area {
    border: 2px dashed #ddd;
    border-radius: 12px;
    padding: 50px 30px;
    margin-bottom: 25px;
    transition: all 0.3s ease;
    cursor: pointer;
    background-color: #fafafa;
    will-change: border-color, background-color;
}

.upload-area:hover {
    border-color: #6c47ff;
    background: rgba(108, 71, 255, 0.05);
}

.upload-area.dragover {
    border-color: #6c47ff;
    background: rgba(108, 71, 255, 0.1);
}

.upload-icon {
    margin-bottom: 20px;
}

.upload-icon svg {
    width: 50px;
    height: 50px;
    /* fill: #6c47ff; */
}

.upload-text {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 8px;
    font-weight: 500;
}

.upload-subtext {
    color: #777;
    font-size: 0.95rem;
}

#fileInput {
    display: none;
}

.btn {
    background-color: #333;
    color: white;
    border: none;
    padding: 14px 30px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 10px;
    box-shadow: 0 4px 10px rgba(108, 71, 255, 0.2);
}

.btn:hover {
    background-color: #5a3cd7;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(108, 71, 255, 0.3);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Sample Images Section */
.sample-images-section {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #eee;
}

.sample-images-text {
    font-size: 1rem;
    color: #666;
    margin-bottom: 15px;
    text-align: center;
    font-weight: 500;
}

.sample-images-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 10px;
}

.sample-image {
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 1px 2px rgba(0,0,0,0.07), 
                0 2px 4px rgba(0,0,0,0.07), 
                0 4px 8px rgba(0,0,0,0.07), 
                0 8px 16px rgba(0,0,0,0.07);
}

.sample-image:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 0 15px rgba(108, 71, 255, 0.6), 
                0 0 30px rgba(108, 71, 255, 0.4), 
                0 10px 30px rgba(0, 0, 0, 0.2);
}

.sample-image img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

/* Responsive adjustments for sample images */
@media (max-width: 768px) {
    .sample-images-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .sample-image img {
        height: auto; /* 保持 16:9 比例 */
    }
}

@media (max-width: 480px) {
    .sample-images-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .sample-image img {
        height: auto; /* 保持 16:9 比例 */
    }
    
    .sample-images-text {
        font-size: 0.9rem;
    }
}

/* Transformations Section */
.transformations {
    padding: 80px 0;
    text-align: center;
    background-color: #fff;
    width: 100%;
}

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

.transformations h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #333;
    font-weight: 700;
}

.transformations .highlight {
    color: #ff4dca;
}

.transformations p {
    color: #666;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.1rem;
}

.tabs {
    display: inline-flex;
    background-color: #f0f0f0;
    border-radius: 30px;
    padding: 5px;
    margin-bottom: 40px;
}

.tab-btn {
    border: none;
    background: none;
    padding: 10px 25px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background-color: #fff;
    color: #333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.examples {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.example {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.example:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.example img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.example-caption {
    padding: 20px;
    text-align: left;
    border-top: 1px solid #f0f0f0;
}

.example-caption h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
}

.example-caption p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0;
    line-height: 1.5;
    text-align: left;
}

.create-btn {
    padding: 15px 30px;
    font-size: 1.1rem;
    background-color: #333;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.arrow {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.create-btn:hover {
    background-color: #5a3cd7;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.create-btn:hover .arrow {
    transform: translateX(5px);
}

/* Features Section */
.why-choose {
    padding: 80px 0;
    background-color: #fff;
    width: 100%;
    text-align: center;
}

.why-choose .container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

.why-choose h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #333;
    font-weight: 700;
}

.why-choose .highlight {
    color: #ff4dca;
}

.why-choose p {
    color: #666;
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.1rem;
}

.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

@media (max-width: 992px) {
    .features {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

.feature {
    background-color: #fff;
    padding: 30px 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: inline-block;
    width: 60px;
    height: 60px;
    line-height: 60px;
    text-align: center;
}

.feature:nth-child(1) .feature-icon {
    color: #333;
}

.feature:nth-child(2) .feature-icon {
    color: #333;
}

.feature:nth-child(3) .feature-icon {
    color: #333;
}

.feature h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #333;
    font-weight: 600;
}

.feature p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 0;
    line-height: 1.6;
}

/* Perfect Emoji Section */
.perfect-emoji {
    padding: 80px 0;
    text-align: center;
    background-color: #fff;
}

.perfect-emoji h2 {
    font-size: 2.2rem;
    margin-bottom: 50px;
    color: #333;
    font-weight: 700;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

.feature-card {
    background-color: #fff;
    padding: 25px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.feature-icon {
    font-style: normal;
    font-size: 1.2rem;
}

.feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #333;
    font-weight: 600;
}

.feature-card p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0;
    line-height: 1.5;
}

.join-text {
    font-size: 1.1rem;
    color: #666;
    margin: 30px 0;
}

.try-now-btn {
    background-color: #333;
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.try-now-btn:hover {
    background-color: #5a3cd7;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* How It Works Section */
.how-it-works {
    padding: 80px 0;
    text-align: center;
    background-color: #fff;
    width: 100%;
}

.how-it-works h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #333;
    font-weight: 700;
}

.how-it-works .highlight {
    color: #ff4dca;
}

.how-it-works p {
    color: #666;
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.1rem;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

@media (max-width: 992px) {
    .steps {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

.step {
    position: relative;
    padding: 30px 25px;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.step-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.step-icon svg {
    width: 30px;
    height: 30px;
    fill: #333;
}

.step h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #333;
    font-weight: 600;
}

.step p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.step-details {
    font-size: 0.85rem !important;
    color: #888 !important;
    margin-top: 10px;
    line-height: 1.4 !important;
}

/* Popular Uses Section */
.popular-uses {
    padding: 60px 0;
    background-color: #fff;
    text-align: center;
}

.popular-uses h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #333;
}

.popular-uses p {
    color: #666;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.popular-uses {
    padding: 80px 0;
    background-color: #fff;
    width: 100%;
}

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

.popular-uses h2 {
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
    color: #333;
}

.popular-uses > p {
    text-align: center;
    color: #666;
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.use-cases {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.use-case {
    background-color: #fff;
    padding: 30px 25px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.use-case:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.use-case-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(90, 60, 215, 0.1);
    border-radius: 50%;
}

.use-case-icon svg {
    width: 30px;
    height: 30px;
    color: var(--primary-color);
    stroke: var(--primary-color);
}

.use-case h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #333;
    text-align: left;
}

.use-case p {
    font-size: 1rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 0;
    text-align: left;
}

.cta-button-container {
    text-align: center;
    margin-top: 20px;
}

.cta-button {
    display: inline-block;
    background-color: #333;
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #5a3cd7;
}

@media (max-width: 992px) {
    .use-cases {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .use-cases {
        grid-template-columns: 1fr;
    }
}

/* FAQ Section */
.perfect-emoji {
    padding: 80px 0;
    background-color: #fff;
    width: 100%;
}

.perfect-emoji .container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

.faq {
    padding: 80px 0;
    background-color: #fff;
    width: 100%;
}

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

.faq h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: #333;
    text-align: center;
    font-weight: 700;
}

.faq .highlight {
    color: #ff4dca;
}

.faq > .container > p {
    color: #666;
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    font-size: 1.1rem;
}

.faq-items {
    max-width: 900px;
    margin: 0 auto 40px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.faq-item {
    border-bottom: 1px solid #eee;
}

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

.faq-question {
    padding: 20px 25px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #f9f9f9;
}

.faq-question span {
    flex: 1;
}

.faq-icon {
    width: 24px;
    height: 24px;
    fill: #ff4dca;
    transition: transform 0.3s ease;
    color: var(--primary-color);
}

.faq-question.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer.active {
    padding: 0 25px 20px;
    max-height: 1000px;
}

.faq-answer p {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.faq-contact {
    text-align: center;
    margin-top: 40px;
}

.faq-contact p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .faq-question {
        padding: 15px 20px;
        font-size: 1rem;
    }
    
    .faq-answer.active {
        padding: 0 20px 15px;
    }
    
    .faq-answer p {
        font-size: 0.9rem;
    }
}

/* Footer */
.footer {
    background-color: #000;
    color: #fff;
    padding: 60px 0 0;
    width: 100%;
}

.footer-content {
    width: 100%;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #fff;
    font-weight: 600;
}

.footer-description {
    color: #aaa;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
    max-width: 300px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
}

.footer-social svg {
    width: 24px;
    height: 24px;
    color: #fff;
    stroke: #fff;
    transition: transform 0.3s ease;
}

.footer-social a:hover svg {
    transform: scale(1.2);
}

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

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: #aaa;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: #fff;
}

.footer-bottom {
    background-color: #000;
    padding: 20px 0;
    border-top: 1px solid #222;
    font-size: 0.85rem;
    color: #aaa;
    width: 100%;
}

.footer-bottom .footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
}

/* Image Preview Section */
.image-preview-section {
    position: relative;
    background-color: #fff;
    border-radius: 12px;
    padding: 30px;
    margin: 30px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.uploaded-image-container {
    position: relative;
    text-align: center;
    margin-bottom: 30px;
}

#uploadedImage {
    max-width: 100%;
    max-height: 560px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: block;
    margin: 0 auto;
}

#canvas {
    max-width: 100%;
    max-height: 560px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
    display: block;
}

/* 触控优化：禁用浏览器默认触控手势，避免拖动时页面滚动 */
#canvas {
  touch-action: none;
}

#canvas:focus {
    outline: none;
    animation: focus-glow 1.5s infinite alternate;
}

@keyframes focus-glow {
    0% {
        box-shadow: 0 0 5px rgba(220, 220, 220, 0.3), 0 0 10px rgba(220, 220, 220, 0.4), 0 0 15px rgba(220, 220, 220, 0.5);
    }
    100% {
        box-shadow: 0 0 10px rgba(220, 220, 220, 0.5), 0 0 20px rgba(220, 220, 220, 0.7), 0 0 30px rgba(220, 220, 220, 0.9);
    }
}

.tooltip {
    position: absolute;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
    z-index: 100;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 280px;
    line-height: 1.4;
    transform: translateY(-5px);
}

.tooltip::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -8px;
    margin-top: -8px;
    border-width: 8px 8px 8px 0;
    border-style: solid;
    border-color: transparent #667eea transparent transparent;
    filter: drop-shadow(-2px 0 3px rgba(0, 0, 0, 0.1));
}

.action-buttons {
    margin-top: 20px;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Processing Overlay Styles */
.processing-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.processing-content {
    text-align: center;
    color: white;
    max-width: 400px;
    padding: 40px 20px;
}

.processing-icon {
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

.processing-icon svg {
    color: #6c47ff;
    stroke: #6c47ff;
}

.processing-content h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: white;
    font-weight: 600;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    margin-bottom: 30px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #6c47ff, #ff4dca);
    border-radius: 3px;
    width: 0%;
    transition: width 0.3s ease-out;
}

.emoji-preview {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.emoji-preview span {
    font-size: 1.5rem;
    animation: bounce 1.5s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.2s);
}

.emoji-preview span:nth-child(1) { --i: 0; }
.emoji-preview span:nth-child(2) { --i: 1; }
.emoji-preview span:nth-child(3) { --i: 2; }
.emoji-preview span:nth-child(4) { --i: 3; }
.emoji-preview span:nth-child(5) { --i: 4; }
.emoji-preview span:nth-child(6) { --i: 5; }

.processing-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.completion-time {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem !important;
    font-style: italic;
}

/* Animations */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

@keyframes progress-shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.progress-fill.processing {
    background: linear-gradient(90deg, #6c47ff 25%, #ff4dca 50%, #6c47ff 75%);
    background-size: 200% 100%;
    animation: progress-shimmer 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.close-btn:hover {
    background-color: rgba(0, 0, 0, 0.9);
}

/* Emoji Selection Styles */
.emoji-selection {
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    margin-top: 20px;
}

.emoji-selection-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.emoji-selection-header svg {
    color: #6c47ff;
}

.emoji-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.emoji-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background-color: #fff;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.emoji-option:hover {
    border-color: #6c47ff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 71, 255, 0.1);
}

.emoji-option.active {
    border-color: #6c47ff;
    background-color: rgba(108, 71, 255, 0.05);
    box-shadow: 0 5px 15px rgba(108, 71, 255, 0.2);
}

.emoji-icon {
    font-size: 2rem;
    min-width: 40px;
    text-align: center;
}

.emoji-label {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.emoji-label strong {
    font-size: 1rem;
    color: #333;
    font-weight: 600;
}

.emoji-label span {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.3;
}

.emoji-apply-btn {
    width: 100%;
    background-color: #333;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.emoji-apply-btn:hover {
    background-color: #5a3cd7;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.emoji-apply-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Upload New Image Button */
.upload-new-btn {
    background-color: #6c47ff;
    color: white;
    border: none;
    padding: 14px 30px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 10px;
    box-shadow: 0 4px 10px rgba(108, 71, 255, 0.2);
}

.upload-new-btn:hover {
    background-color: #5a3cd7;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(108, 71, 255, 0.3);
}

.upload-new-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Loading */

.loading {
    display: none;
    text-align: center;
    margin: 30px 0;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #ff4dca;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

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

/* 移动端优化 - 替换现有的响应式样式 */

/* 平板设备 (1024px 及以下) */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .features {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .use-cases {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

/* 移动端导航优化 - 替换现有的768px断点样式 */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    /* Header 优化 - 更紧凑的设计 */
    .header {
        padding: 8px 0; /* 减少垂直padding */
    }
    
    /* 移动端锚点定位优化 - 调整Features区域的滚动偏移 */
    #features {
        scroll-margin-top: 60px; /* 为移动端header高度预留空间 */
    }
    
    /* 确保Features标题在移动端有适当的上边距 */
    .transformations h2 {
        padding-top: 20px;
    }
    
    .header-container {
        /* 保持水平布局，但在更小屏幕上调整 */
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
    }
    
    .logo h1 {
        font-size: 1.3rem; /* 稍微减小logo尺寸 */
    }
    
    .nav-wrapper {
        display: flex;
        align-items: center;
        gap: 15px;
        margin-left: auto;
    }
    
    .nav-links {
        display: none !important; /* 移动端隐藏顶部导航，使用汉堡菜单 */
        gap: 15px;
    }
    
    .nav-links a {
        font-size: 0.8rem;
    }
    
    /* 汉堡菜单按钮样式 */
    .btn-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border: 0;
        border-radius: 12px;
        background: linear-gradient(135deg, #6C47FF 0%, #F34299 60%, #FF8A00 100%);
        color: #fff;
        cursor: pointer;
        box-shadow: 0 6px 20px rgba(108, 71, 255, 0.25);
        transition: transform 0.15s ease, box-shadow 0.2s ease;
    }
    .btn-toggle:active {
        transform: translateY(1px) scale(0.98);
        box-shadow: 0 4px 14px rgba(108, 71, 255, 0.22);
    }
    .btn-toggle .hamburger-icon { width: 24px; height: 24px; color: #fff; }

    /* 移动端弹出菜单样式 */
    .header { position: sticky; top: 0; }
    .header .header-container { position: relative; }
    .mobile-menu-toggle { display: none; }
    .mobile-menu {
        /* 使用可过渡的显隐控制 */
        display: block;
        position: absolute;
        top: 100%;
        /* left: 0; */
        right: 0;
        background: #ffffff;
        border-top: 1px solid #eef0f6;
        box-shadow: 0 12px 30px rgba(18, 23, 44, 0.08);
        border-bottom-left-radius: 12px;
        border-bottom-right-radius: 12px;
        overflow: hidden;
        z-index: 1001;

        /* 初始为折叠隐藏状态 */
        max-height: 0;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px) scale(0.98);
        pointer-events: none;
        transition: max-height 280ms cubic-bezier(0.2, 0, 0, 1),
                    opacity 200ms ease,
                    transform 280ms cubic-bezier(0.2, 0, 0, 1),
                    visibility 0s linear 280ms;
        will-change: max-height, opacity, transform;
    }
    .mobile-menu a {
        display: block;
        padding: 16px 20px;
        font-size: 1.05rem;
        color: #2c3140;
        text-decoration: none;
        position: relative;
        -webkit-tap-highlight-color: transparent;
    }
    .mobile-menu a + a { border-top: 1px solid #f3f4f8; }
    .mobile-menu a:hover { background: transparent; }
    .mobile-menu a:focus { outline: none; }
    .mobile-menu a:focus-visible { outline: none; }

    .mobile-menu a:before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        width: 0px;
        height: 100%;
        background-image: linear-gradient(180deg, #6c47ff 0%, #ff4dca 100%);
        border-top-right-radius: 8px;
        border-bottom-right-radius: 8px;
        transition: width 180ms ease;
    }
    .mobile-menu a:hover:before,
    .mobile-menu a:active:before,
    .mobile-menu a:focus-visible:before { width: 6px; }
    /* 复选框联动展开（带轻微过渡动画） */
    .mobile-menu-toggle:checked + .mobile-menu {
        max-height: 60vh;
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1);
        pointer-events: auto;
        transition-delay: 0s, 0s, 0s, 0s;
    }

    @keyframes menuItemIn {
        0% { opacity: 0; transform: translateY(6px); }
        100% { opacity: 1; transform: translateY(0); }
    }

    .mobile-menu a { opacity: 1; }
    .mobile-menu-toggle:checked + .mobile-menu a {
        opacity: 0;
        animation: menuItemIn 260ms ease forwards;
    }
    .mobile-menu-toggle:checked + .mobile-menu a:nth-child(1) { animation-delay: 40ms; }
    .mobile-menu-toggle:checked + .mobile-menu a:nth-child(2) { animation-delay: 80ms; }
    .mobile-menu-toggle:checked + .mobile-menu a:nth-child(3) { animation-delay: 120ms; }
    .mobile-menu-toggle:checked + .mobile-menu a:nth-child(4) { animation-delay: 160ms; }
    .mobile-menu-toggle:checked + .mobile-menu a:nth-child(5) { animation-delay: 200ms; }
    .mobile-menu-toggle:checked + .mobile-menu a:nth-child(6) { animation-delay: 240ms; }
    
    .cta-button {
        padding: 6px 14px;
        font-size: 0.8rem;
        border-radius: 20px;
        margin-left: auto; /* 让按钮靠右 */
    }
    
    /* Hero Section 优化 */
    .hero {
        padding: 20px 0 15px; /* 减少hero section的padding */
    }
    
    .hero h1 {
        font-size: 2.2rem;
        line-height: 1.3;
        margin-bottom: 15px;
    }
    
    .hero p {
        font-size: 0.95rem;
        margin-bottom: 25px;
        padding: 0 10px;
    }
    
    .feature-badges {
        gap: 8px;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        width: 100%;
        max-width: 450px;
        margin: 10px auto 0;
    }
    
    .badge {
        font-size: 0.65rem;
        padding: 6px 12px;
    }
    
    /* Upload Section 优化 */
    .upload-section {
        padding: 25px 0;
    }
    
    .upload-container {
        max-width: 95%;
        padding: 25px 15px;
    }
    
    .upload-area {
        padding: 35px 20px;
        margin-bottom: 20px;
    }
    
    .upload-icon svg {
        width: 40px;
        height: 40px;
    }
    
    .upload-text {
        font-size: 1.1rem;
    }
    
    .upload-subtext {
        font-size: 0.9rem;
    }
    
    /* Sections 通用优化 */
    .why-choose,
    .perfect-emoji,
    .how-it-works,
    .popular-uses,
    .transformations,
    .faq {
        padding: 50px 0;
    }
    
    .why-choose h2,
    .perfect-emoji h2,
    .how-it-works h2,
    .popular-uses h2,
    .transformations h2,
    .faq h2 {
        font-size: 2rem;
        margin-bottom: 12px;
    }
    
    .why-choose p,
    .perfect-emoji p,
    .how-it-works p,
    .popular-uses p,
    .transformations p {
        font-size: 1rem;
        margin-bottom: 35px;
        padding: 0 10px;
    }
    
    /* Grid 布局优化 */
    .features,
    .steps,
    .use-cases {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Cards 优化 */
    .feature,
    .feature-card,
    .step,
    .use-case {
        padding: 25px 20px;
    }
    
    .feature h3,
    .feature-card h3,
    .step h3,
    .use-case h3 {
        font-size: 1.2rem;
    }
    
    .feature p,
    .feature-card p,
    .step p,
    .use-case p {
        font-size: 0.95rem;
    }
    
    /* Examples 优化 */
    .examples {
        flex-direction: column;
        gap: 25px;
    }
    
    .example {
        max-width: 100%;
    }
    
    /* Footer 优化 */
    .footer {
        padding: 40px 0 0;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-bottom .footer-container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }
}

/* 更小屏幕的进一步优化 (480px 及以下) */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    
    /* Header 进一步紧凑化 */
    .header {
        padding: 6px 0;
    }
    
    .logo h1 {
        font-size: 1.2rem;
    }
    
    .nav-wrapper {
        gap: 10px;
    }
    
    .nav-links {
        gap: 10px;
    }
    
    .nav-links a {
        font-size: 0.75rem;
    }
    
    /* 保持顶部导航隐藏，依赖汉堡菜单 */
    .nav-links { display: none !important; }
    
    .cta-button {
        padding: 5px 12px;
        font-size: 0.75rem;
        margin-left: auto; /* 确保按钮靠右 */
    }
    
    /* Hero Section 进一步优化 */
    .hero {
        padding: 15px 0 10px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
        line-height: 1.4;
    }
    
    .hero p {
        font-size: 0.9rem;
        padding: 0 5px;
    }
    
    .feature-badges {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
        max-width: 100%;
        margin: 8px auto 0;
    }
    
    .badge {
        font-size: 0.6rem;
        padding: 5px 10px;
    }
    
    /* Upload Section 进一步优化 */
    .upload-container {
        padding: 20px 12px;
    }
    
    .upload-area {
        padding: 25px 15px;
    }
    
    .upload-icon svg {
        width: 35px;
        height: 35px;
    }
    
    .upload-text {
        font-size: 1rem;
    }
    
    .upload-subtext {
        font-size: 0.85rem;
    }
    
    /* Image Preview Mobile Styles */
    .image-preview-section {
        padding: 15px 10px;
        margin: 15px 0;
    }
}

/* 超小屏幕的优化 (375px 及以下) */
@media (max-width: 375px) {
    .nav-wrapper {
        gap: 8px;
    }
    
    .nav-links {
        gap: 8px;
    }
    
    .nav-links a {
        font-size: 0.7rem;
    }
    
    /* 在移动端隐藏 Features、How it works 和 FAQ 菜单 */
    .nav-links a[href="#"],
    .nav-links a[href="#how-it-works"],
    .nav-links a[href="#faq"],
    .nav-links a[href="index.html#how-it-works"],
    .nav-links a[href="index.html#faq"] {
        display: none;
    }
    
    .cta-button {
        padding: 4px 10px;
        font-size: 0.7rem;
    }
    
    .feature-badges {
        grid-template-columns: repeat(2, 1fr);
        gap: 5px;
        max-width: 280px;
        margin: 6px auto 0;
    }
    
    .badge {
        font-size: 0.55rem;
        padding: 4px 8px;
        border-radius: 15px;
    }
    
    #uploadedImage {
        max-height: 280px;
    }
    
    .emoji-selection {
        padding: 15px 10px;
    }
    
    .emoji-selection-header {
        font-size: 1rem;
        margin-bottom: 15px;
    }
    
    .emoji-options {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 20px;
    }
    
    .emoji-option {
        padding: 10px;
        gap: 10px;
    }
    
    .emoji-icon {
        font-size: 1.3rem;
        min-width: 30px;
    }
    
    .emoji-label strong {
        font-size: 0.85rem;
    }
    
    .emoji-label span {
        font-size: 0.75rem;
    }
    
    .emoji-apply-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    /* Buttons 优化 */
    .btn,
    .try-now-btn,
    .create-btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    /* Sections 进一步优化 */
    .why-choose,
    .perfect-emoji,
    .how-it-works,
    .popular-uses,
    .transformations,
    .faq {
        padding: 40px 0;
    }
    
    .why-choose h2,
    .perfect-emoji h2,
    .how-it-works h2,
    .popular-uses h2,
    .transformations h2,
    .faq h2 {
        font-size: 1.7rem;
    }
    
    /* Cards 进一步优化 */
    .feature,
    .feature-card,
    .step,
    .use-case {
        padding: 20px 15px;
    }
    
    .step-icon,
    .use-case-icon {
        width: 50px;
        height: 50px;
    }
    
    .step-icon svg,
    .use-case-icon svg {
        width: 25px;
        height: 25px;
    }
    
    /* FAQ 优化 */
    .faq-question {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    .faq-answer.active {
        padding: 0 15px 12px;
    }
    
    .faq-answer p {
        font-size: 0.85rem;
    }
}

/* 小手机设备 (360px 及以下) */
@media (max-width: 360px) {
    .container {
        padding: 0 10px;
    }
    
    .hero h1 {
        font-size: 1.6rem;
    }
    
    .hero p {
        font-size: 0.85rem;
    }
    
    .feature-badges {
        grid-template-columns: repeat(2, 1fr);
        gap: 4px;
        max-width: 260px;
        margin: 5px auto 0;
    }
    
    .badge {
        font-size: 0.5rem;
        padding: 4px 6px;
    }
    
    .upload-container {
        padding: 15px 10px;
    }
    
    .upload-area {
        padding: 20px 12px;
    }
    
    /* Image Preview for very small screens */
    .image-preview-section {
        padding: 12px 8px;
        margin: 12px 0;
    }
    
    #uploadedImage {
        max-height: 252px;
    }
    
    .emoji-selection {
        padding: 12px 8px;
    }
    
    .emoji-selection-header {
        font-size: 0.9rem;
        margin-bottom: 12px;
    }
    
    .emoji-options {
        gap: 8px;
        margin-bottom: 15px;
    }
    
    .emoji-option {
        padding: 8px;
        gap: 8px;
    }
    
    .emoji-icon {
        font-size: 1.1rem;
        min-width: 25px;
    }
    
    .emoji-label strong {
        font-size: 0.8rem;
    }
    
    .emoji-label span {
        font-size: 0.7rem;
    }
    
    .emoji-apply-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .feature,
    .feature-card,
    .step,
    .use-case {
        padding: 15px 12px;
    }
    
    .btn,
    .try-now-btn,
    .create-btn {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    /* 移除hover效果，改为focus效果 */
    .feature:hover,
    .feature-card:hover,
    .step:hover,
    .use-case:hover,
    .example:hover {
        transform: none;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    }
    
    .btn:hover,
    .try-now-btn:hover,
    .create-btn:hover,
    .cta-button:hover {
        transform: none;
    }
    
    /* 增加触摸目标大小 */
    .nav-links a {
        padding: 8px 4px;
    }
    
    .cta-button {
        min-height: 44px;
        min-width: 44px;
    }
    
    .btn,
    .try-now-btn,
    .create-btn {
        min-height: 44px;
    }
    
    .faq-question {
        min-height: 44px;
    }
    
    .footer-social a {
        min-height: 44px;
        min-width: 44px;
    }
}

/* 横屏手机优化 */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding: 20px 0 15px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .upload-section {
        padding: 20px 0;
    }
    
    .why-choose,
    .perfect-emoji,
    .how-it-works,
    .popular-uses,
    .transformations,
    .faq {
        padding: 30px 0;
    }
}
/* Desktop-only subtle scan animation for logo */
@keyframes logoScan {
  0% { transform: translateY(0); opacity: 0.8; }
  50% { opacity: 0.3; }
  100% { transform: translateY(5px); opacity: 0.8; }
}

.logo svg .scan-line {
  transform-box: fill-box;
  transform-origin: center;
}

@media (min-width: 769px) {
  .logo svg .scan-line { animation: logoScan 6s ease-in-out infinite; }
}

@media (prefers-reduced-motion: reduce) {
  .logo svg .scan-line { animation: none !important; }
}
/* Responsive logo sizes: mobile 36px, desktop 44px */
.logo svg { width: 36px; height: 36px; }

@media (min-width: 769px) {
  .logo svg { width: 44px; height: 44px; }
}
.changelog-hero {
    background: #ffffff;
    color: #242424;
    padding: 40px 0 120px;
}

.changelog-hero-inner {
    text-align: center;
    margin-bottom: 32px;
}

.changelog-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 12px;
    border-radius: 14px;
    background: linear-gradient(135deg, #6c47ff 0%, #ff4dca 55%, #ff8a00 100%);
    box-shadow: 0 12px 28px rgba(108, 71, 255, 0.25);
}
.changelog-icon .icon-glow {
    position: absolute;
    inset: -6px;
    border-radius: 16px;
    background: radial-gradient(40% 40% at 50% 50%, rgba(255,77,202,0.25) 0%, rgba(108,71,255,0.18) 60%, rgba(0,0,0,0) 100%);
    filter: blur(10px);
    pointer-events: none;
}
.changelog-icon .icon-svg {
    width: 28px;
    height: 28px;
    color: #fff;
}

.changelog-title {
    font-size: 48px;
    letter-spacing: -0.02em;
}

.changelog-subtitle {
    margin-top: 8px;
    color: #555;
}

.changelog-card {
    max-width: 820px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid #eee;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    padding: 28px;
}

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

.version-badge {
    display: inline-block;
    background: #6c47ff;
    color: #fff;
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
}

.date-badge {
    display: inline-block;
    background: #f0f2ff;
    color: #4f59a8;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid #e5e8ff;
    font-size: 14px;
}

.changelog-section { margin-top: 18px; }
.changelog-section-title { color: #242424; font-size: 18px; margin-bottom: 10px; }
.changelog-list { list-style: none; padding-left: 0; }
.changelog-list li { position: relative; padding-left: 18px; margin: 10px 0; color: #333; }
.changelog-list li::before { content: "•"; position: absolute; left: 0; color: #6c47ff; }
.changelog-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    padding: 12px 18px;
    border-radius: 12px;
    background: linear-gradient(90deg, #6c47ff 0%, #ff4dca 100%);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(108,71,255,0.25);
}
.changelog-cta .cta-icon { width: 18px; height: 18px; }
.changelog-cta:hover { filter: brightness(1.05); }

@media (max-width: 768px) {
    .changelog-title { font-size: 36px; }
    .changelog-card { padding: 22px; }
}

/* 谷歌广告样式调整 */
body {
    padding-bottom: 0px !important;
}
