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

/* 全局变量 */
:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --success-color: #4CAF50;
    --error-color: #F44336;
    --warning-color: #FF9800;
    --info-color: #2196F3;
    --dark-color: #2d3748;
    --light-color: #f7fafc;
    --gray-color: #e2e8f0;
    --text-color: #2d3748;
    --text-light: #718096;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

/* 基础样式 */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
    opacity: 0;
    transition: opacity 0.5s ease;
}

body.loaded {
    opacity: 1;
}

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

/* 标题样式 */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark-color);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

/* 段落样式 */
p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

/* 链接样式 */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    outline: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

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

.btn-primary:hover {
    background-color: #5a6fd8;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(102, 126, 234, 0.4);
}

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

.btn-secondary:hover {
    background-color: #6a418b;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(118, 75, 162, 0.4);
}

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

.btn-success:hover {
    background-color: #43a047;
    transform: translateY(-2px);
}

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

.btn-error:hover {
    background-color: #e53935;
    transform: translateY(-2px);
}

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

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

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

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-block {
    width: 100%;
}

.btn.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-color);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="url"],
textarea,
select {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    border: 1px solid var(--gray-color);
    border-radius: var(--border-radius);
    background-color: white;
    transition: var(--transition);
    outline: none;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="url"]:focus,
textarea:focus,
select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--gray-color);
    outline: none;
    -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    transition: var(--transition);
}

input[type="range"]::-webkit-slider-thumb:hover {
    background: var(--secondary-color);
    transform: scale(1.2);
}

input[type="color"] {
    width: 100%;
    height: 40px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    background: none;
}

input[type="file"] {
    padding: 0.5rem;
    border: 1px solid var(--gray-color);
    border-radius: var(--border-radius);
    background-color: white;
    cursor: pointer;
}

/* 上传按钮样式 */
.upload-section {
    margin-bottom: 1rem;
    text-align: center;
}

.upload-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #4CAF50;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

.upload-btn:hover {
    background-color: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

/* 卡片样式 */
.card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

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

.card:hover::before {
    transform: scaleX(1);
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.06);
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: var(--transition);
    padding: 1rem 0;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

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

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

.navbar-logo:hover {
    transform: scale(1.05);
    color: var(--secondary-color);
    text-decoration: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

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

/* 下拉菜单 */
.dropdown {
    position: relative;
    height: auto;
    min-height: 0;
}

.dropdown-toggle {
    background: none;
    border: none;
    color: var(--dark-color);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0;
    font-size: 1rem;
    height: auto;
    min-height: 0;
    line-height: 1.4;
}

.dropdown-toggle:hover {
    color: var(--primary-color);
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 0.5rem 0;
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 1001;
}

.dropdown-content.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-content a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--dark-color);
    text-decoration: none;
    transition: var(--transition);
    font-weight: normal;
}

.dropdown-content a:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
}

/* 汉堡菜单 */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.5rem;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--dark-color);
    border-radius: 3px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* 英雄区域 */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 8rem 0 6rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,%3Csvg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z" fill="%23ffffff" fill-opacity="0.1" fill-rule="evenodd"/%3E%3C/svg%3E');
    opacity: 0.1;
    animation: float 20s infinite linear;
}

@keyframes float {
    0% { transform: translateY(0); }
    100% { transform: translateY(-100px); }
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: white;
    position: relative;
    z-index: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

/* 功能特性 */
.features {
    padding: 6rem 0;
    background-color: white;
}

.features h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(20px);
}

.feature-card.visible {
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 0.6s ease forwards;
}

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

.feature-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    transition: var(--transition);
}

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

/* 快速入口 */
.quick-entry {
    padding: 4rem 0;
    background-color: var(--light-color);
}

.quick-entry h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.quick-entry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.quick-entry-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-decoration: none;
    color: var(--dark-color);
    transition: var(--transition);
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

.quick-entry-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.5s ease;
    z-index: 0;
}

.quick-entry-btn:hover::before {
    transform: scaleX(1);
}

.quick-entry-btn .quick-entry-icon,
.quick-entry-btn .quick-entry-text {
    position: relative;
    z-index: 1;
}

.quick-entry-btn:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    color: white;
    text-decoration: none;
}

.quick-entry-icon {
    font-size: 2.5rem;
}

/* 页脚 */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 4rem 0 2rem;
    position: relative;
    overflow: hidden;
}

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

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: white;
    margin-bottom: 1rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
    display: block;
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: white;
    text-decoration: underline;
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

/* 页脚内容布局 */
.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
}

/* 页脚链接样式 */
.footer-links {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 0;
    margin: 0;
}

/* 页脚部分样式 */
.footer-section {
    flex: 1;
    min-width: 200px;
}

/* 确保响应式设计 */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
}

/* 内容区域 */
.content {
    padding: 8rem 0 4rem;
    min-height: calc(100vh - 200px);
}

/* 模板页面 */
.templates {
    background-color: white;
}

.templates-header {
    margin-bottom: 3rem;
}

.templates-header h1 {
    margin-bottom: 1rem;
}

.templates-header p {
    font-size: 1.125rem;
    color: var(--text-light);
}

.category-filter {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.category-btn {
    padding: 0.5rem 1rem;
    background-color: var(--light-color);
    border: 1px solid var(--gray-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.category-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    z-index: 0;
}

.category-btn:hover::before,
.category-btn.active::before {
    transform: scaleX(1);
}

.category-btn span {
    position: relative;
    z-index: 1;
}

.category-btn:hover,
.category-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.template-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.template-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.template-card::after {
    content: 'Use this template';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-weight: 600;
}

.template-card:hover::after {
    opacity: 1;
}

.template-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.template-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.template-card:hover .template-image img {
    transform: scale(1.1);
}

.template-info {
    padding: 1.5rem;
}

.template-info h4 {
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.template-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.template-stats span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* 搜索框 */
.search-container {
    margin-bottom: 2rem;
}

.search-box {
    display: flex;
    gap: 0.5rem;
    max-width: 500px;
    margin: 0 auto;
}

.search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.search-btn {
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.search-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

/* 工具页面 */
.tools {
    background-color: white;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.tool-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
}

.tool-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.tool-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    transition: var(--transition);
}

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

/* 表情包生成器 */
.generator {
    background-color: white;
}

.generator-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

@media (max-width: 992px) {
    .generator-container {
        grid-template-columns: 1fr;
    }
}

.generator-preview {
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#previewImage {
    max-width: 100%;
    max-height: 400px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 1rem;
    display: none;
    transition: var(--transition);
}

#previewImage.loaded {
    display: block;
    animation: fadeIn 0.5s ease;
}

.generator-controls {
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    padding: 2rem;
}

.control-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--gray-color);
}

.control-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.5rem;
    margin-top: 1rem;
}

.filter-btn {
    padding: 0.5rem;
    background-color: white;
    border: 1px solid var(--gray-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.875rem;
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    z-index: 0;
}

.filter-btn:hover::before,
.filter-btn.active::before {
    transform: scaleX(1);
}

.filter-btn span {
    position: relative;
    z-index: 1;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Emoji选择器 */
.emoji-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
    gap: 0.5rem;
    margin: 1rem 0;
    max-height: 200px;
    overflow-y: auto;
    padding: 0.5rem;
    border: 1px solid var(--gray-color);
    border-radius: var(--border-radius);
    background-color: white;
}

.emoji-btn {
    padding: 0.5rem;
    font-size: 1.5rem;
    background-color: white;
    border: 1px solid var(--gray-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.emoji-btn:hover {
    transform: scale(1.2);
    border-color: var(--primary-color);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.selected-value {
    font-size: 2rem;
    margin: 1rem 0;
    padding: 1rem;
    background-color: white;
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid var(--gray-color);
}

/* sticker工具 */
.sticker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 0.5rem;
    margin: 1rem 0;
    max-height: 200px;
    overflow-y: auto;
    padding: 0.5rem;
    border: 1px solid var(--gray-color);
    border-radius: var(--border-radius);
    background-color: white;
}

.sticker-btn {
    padding: 0.75rem;
    font-size: 2rem;
    background-color: white;
    border: 1px solid var(--gray-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sticker-btn:hover {
    transform: scale(1.2);
    border-color: var(--primary-color);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.sticker-categories,
.emoji-categories,
.quote-categories {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.sticker-category,
.emoji-category,
.quote-category {
    padding: 0.5rem 1rem;
    background-color: white;
    border: 1px solid var(--gray-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.875rem;
    position: relative;
    overflow: hidden;
}

.sticker-category::before,
.emoji-category::before,
.quote-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    z-index: 0;
}

.sticker-category:hover::before,
.sticker-category.active::before,
.emoji-category:hover::before,
.emoji-category.active::before,
.quote-category:hover::before,
.quote-category.active::before {
    transform: scaleX(1);
}

.sticker-category span,
.emoji-category span,
.quote-category span {
    position: relative;
    z-index: 1;
}

.sticker-category:hover,
.sticker-category.active,
.emoji-category:hover,
.emoji-category.active,
.quote-category:hover,
.quote-category.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

#stickerPreview {
    position: relative;
    width: 100%;
    height: 300px;
    background-color: white;
    border-radius: var(--border-radius);
    border: 2px dashed var(--gray-color);
    margin: 1rem 0;
    overflow: hidden;
    cursor: crosshair;
}

.preview-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    z-index: 1;
}

.preview-sticker {
    position: absolute;
    font-size: 40px;
    cursor: move;
    user-select: none;
    transition: var(--transition);
    padding: 0.5rem;
    border-radius: var(--border-radius);
    pointer-events: all;
    z-index: 2;
}

.preview-sticker:hover {
    transform: scale(1.1);
    background-color: rgba(102, 126, 234, 0.1);
}

/* 语录生成器 */
.quote-container {
    margin: 1rem 0;
    padding: 2rem;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.quote-container::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 10rem;
    color: var(--primary-color);
    opacity: 0.1;
    font-family: serif;
}

#quoteText {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-color);
    line-height: 1.6;
    text-align: center;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

#quoteText.new {
    animation: fadeIn 0.5s ease;
}

/* 关于我们 */
.about {
    background-color: white;
}

.about-section {
    margin-bottom: 3rem;
}

.about-section h2 {
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

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

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.team-member {
    text-align: center;
    padding: 2rem;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.team-member::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transform: scaleY(0);
    transition: transform 0.3s ease;
    z-index: 0;
}

.team-member:hover::before {
    transform: scaleY(1);
}

.team-member .team-avatar,
.team-member .team-info {
    position: relative;
    z-index: 1;
}

.team-member:hover .team-info {
    color: white;
}

.team-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin: 0 auto 1.5rem;
    transition: var(--transition);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.team-member:hover .team-avatar {
    transform: scale(1.1) translateY(-10px);
}

.team-info h3 {
    margin-bottom: 0.5rem;
}

.team-info p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.team-member:hover .team-info p {
    color: rgba(255, 255, 255, 0.9);
}

/* 联系表单 */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.contact-form h2 {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

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

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

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

.animate-slide-in {
    animation: slideIn 0.6s ease forwards;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 进度指示器 */
.progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    z-index: 9999;
    display: block;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    width: 0%;
    transition: width 0.1s ease;
}

/* 提示消息 */
.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    font-weight: 500;
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.3s ease, transform 0.3s ease;
    max-width: 350px;
    word-wrap: break-word;
    position: relative;
    overflow: hidden;
}

.toast::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    animation: toastProgress 3s linear forwards;
}

@keyframes toastProgress {
    from { width: 100%; }
    to { width: 0%; }
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast.success {
    background-color: var(--success-color);
    color: white;
}

.toast.error {
    background-color: var(--error-color);
    color: white;
}

.toast.warning {
    background-color: var(--warning-color);
    color: white;
}

.toast.info {
    background-color: var(--info-color);
    color: white;
}

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

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    max-width: 80%;
    max-height: 80%;
    overflow-y: auto;
    animation: fadeInUp 0.3s ease;
    transform: translateY(0);
}

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

.modal-title {
    margin: 0;
    color: var(--dark-color);
}

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

.close-btn:hover {
    background-color: var(--light-color);
    color: var(--dark-color);
}

.modal-body {
    padding: 1.5rem;
}

/* 加载动画 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    animation: fadeOut 0.5s ease 1s forwards;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--gray-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* 响应式设计 */
@media (max-width: 768px) {
    /* 全局防止溢出 */
    html, body {
        overflow-x: hidden;
        width: 100%;
    }
    
    .main-content {
        padding: 0 0.25rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    .container {
        padding: 0 0.25rem !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .navbar {
        padding: 0.5rem 1rem;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%;
        flex-direction: column;
        background-color: white;
        width: 100%;
        padding: 0.1rem 0;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
        z-index: 999;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links > * {
        margin: 0;
        height: auto;
        min-height: 0;
    }
    
    .hamburger {
        display: flex;
        cursor: pointer;
        touch-action: pan-x;
    }
    
    /* 移动端下拉菜单自适应样式 */
    .dropdown {
        height: auto;
        min-height: 0;
    }
    
    .dropdown-toggle {
        padding: 0.3rem 1rem;
        height: auto;
        min-height: 0;
        line-height: 1.4;
    }
    
    .dropdown-content {
        position: relative;
        background-color: #f9f9f9;
        box-shadow: none;
        padding: 0.3rem 0;
        height: auto;
        min-height: 0;
        opacity: 0;
        visibility: hidden;
        max-height: 0;
        overflow: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease, max-height 0.3s ease;
    }
    
    .dropdown-content.show {
        opacity: 1;
        visibility: visible;
        max-height: 300px;
        overflow: visible;
    }
    
    .dropdown-content a {
        display: block;
        padding: 0.3rem 1rem;
        font-size: 0.9rem;
        margin: 0;
        line-height: 1.4;
        height: auto;
    }
    
    .hero h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .feature-card {
        padding: 1rem;
    }
    
    .quick-entry-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .template-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 0.5rem;
    }
    
    .template-card {
        padding: 0.5rem;
    }
    
    /* 工具网格 */
    .tools-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        padding: 0;
        margin: 0;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* 工具卡片 */
    .tool-card {
        padding: 0.5rem;
        box-sizing: border-box;
        margin: 0;
        width: 100%;
        overflow: hidden;
    }
    
    .tool-header {
        flex-direction: column;
        gap: 0.25rem;
        align-items: center;
    }
    
    .tool-icon {
        font-size: 1.5rem;
    }
    
    .tool-card h3 {
        font-size: 1rem;
        margin: 0;
        text-align: center;
    }
    
    .tool-content {
        padding: 0.25rem 0;
        font-size: 0.75rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    .generator-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .generator-controls, .generator-preview {
        padding: 1rem;
    }
    
    .category-filter {
        flex-direction: column;
        gap: 0.5rem;
        align-items: stretch;
    }
    
    .category-filter button {
        margin: 0;
    }
    
    .search-box {
        flex-direction: column;
    }
    
    /* 分类按钮适配 */
    .emoji-categories, .sticker-categories, .quote-categories {
        gap: 0.2rem;
        justify-content: flex-start;
        overflow-x: auto;
        padding: 0 0 0.25rem 0;
        max-width: 100%;
        box-sizing: border-box;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 0.5rem;
    }
    
    .emoji-category, .sticker-category, .quote-category {
        padding: 0.2rem 0.375rem;
        font-size: 0.7rem;
        flex-shrink: 0;
        min-width: auto;
        margin: 0;
        white-space: nowrap;
    }
    
    /* 网格布局适配 */
    .emoji-grid, .sticker-grid {
        grid-template-columns: repeat(auto-fill, minmax(18px, 1fr));
        gap: 0.2rem;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0;
        margin: 0 0 0.5rem 0;
    }
    
    /* 网格项目 */
    .emoji-item, .sticker-item {
        width: 100%;
        height: auto;
        box-sizing: border-box;
    }
    
    /* 按钮适配 */
    .emoji-btn, .sticker-btn {
        font-size: 1.2rem;
        padding: 0.3rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* 确保单个元素不会导致溢出 */
    .emoji-item, .sticker-item {
        width: 100%;
        height: auto;
        box-sizing: border-box;
    }
    
    /* 预览区域适配 */
    .filter-preview, .sticker-preview {
        margin: 0.25rem 0;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }
    
    /* 确保图片不会溢出 */
    .filter-image, .preview-image {
        max-width: 100%;
        height: auto;
        max-height: 180px;
        object-fit: contain;
        display: block;
        margin: 0 auto;
    }
    
    /* 优化上传区域 */
    .upload-section {
        width: 100%;
        box-sizing: border-box;
        margin-bottom: 0.5rem;
    }
    
    .upload-btn {
        width: 100%;
        box-sizing: border-box;
        padding: 0.375rem;
        font-size: 0.75rem;
    }
    
    .progress-container {
        display: none;
    }
    
    .modal-content {
        max-width: 95%;
        max-height: 90%;
        margin: 1rem;
        padding: 1rem;
    }
    
    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }
    
    .toast {
        max-width: 100%;
        font-size: 0.9rem;
        padding: 0.75rem 1rem;
        margin: 0.5rem;
    }
    
    /* 触摸友好的按钮大小 */
    button {
        min-height: 44px;
        min-width: 44px;
        box-sizing: border-box;
    }
    
    .search-input {
        min-height: 44px;
        padding: 0.5rem;
        box-sizing: border-box;
    }
    
    /* 文本输入区域 */
    textarea {
        min-height: 100px;
        padding: 0.5rem;
        font-size: 1rem;
        box-sizing: border-box;
    }
    
    /* 滤镜滑块 */
    input[type="range"] {
        min-height: 44px;
    }
    
    /* 拖拽区域 */
    #stickerPreview {
        touch-action: none;
    }
    
    /* 功能卡片 */
    .feature-card {
        transform: translateY(0);
        opacity: 1;
        animation: fadeInUp 0.5s ease forwards;
    }
    
    /* 控制按钮适配 */
    .filter-controls {
        gap: 0.25rem;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .filter-slider {
        margin-bottom: 0.25rem;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .filter-slider label {
        font-size: 0.7rem;
    }
    
    .filter-slider input[type="range"] {
        width: 100%;
        height: 4px;
    }
    
    .slider-value {
        font-size: 0.7rem;
    }
    
    /* 按钮布局适配 */
    .tool-content > div:last-child {
        display: flex;
        gap: 2px;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: auto;
        padding-bottom: 0.25rem;
        -webkit-overflow-scrolling: touch;
    }
    
    #addSticker, #zoomInSticker, #zoomOutSticker, #saveSticker {
        flex: 1;
        font-size: 0.7rem;
        padding: 0.25rem 0.125rem;
        white-space: nowrap;
        min-width: 60px;
    }
    
    /* 独立按钮适配 */
    .tool-content > button {
        width: 100%;
        margin-bottom: 0.25rem;
        box-sizing: border-box;
        font-size: 0.75rem;
        padding: 0.375rem;
    }
    
    /* 保存图片按钮特殊处理 */
    .tool-content > button:last-child {
        margin-bottom: 0;
    }
    
    /* 引用生成器适配 */
    .quote-text {
        font-size: 0.875rem;
        line-height: 1.3;
        padding: 0 0.25rem;
        text-align: center;
    }
    
    .quote-input {
        font-size: 0.75rem;
        padding: 0.375rem;
        margin-bottom: 0.25rem;
        box-sizing: border-box;
        width: 100%;
    }
    
    /* 预设滤镜按钮适配 */
    .filter-presets {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
        gap: 0.2rem;
        margin: 0.25rem 0;
    }
    
    .preset-btn {
        padding: 0.2rem 0.375rem;
        font-size: 0.7rem;
        min-width: auto;
    }
    
    /* 适配所有输入框 */
    input, textarea {
        box-sizing: border-box;
        width: 100%;
    }
    
    /* 贴纸控制按钮适配 */
    .sticker-controls {
        display: flex;
        gap: 2px;
        margin-top: 0.25rem;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: auto;
        padding-bottom: 0.25rem;
        -webkit-overflow-scrolling: touch;
    }
    
    .sticker-controls .btn {
        flex: 1;
        font-size: 0.7rem;
        padding: 0.25rem 0.125rem;
        white-space: nowrap;
        min-width: 60px;
    }
    
    /* 引用控制区域 */
    .quote-controls {
        width: 100%;
        box-sizing: border-box;
        margin-bottom: 0.5rem;
    }
    
    /* 选中的表情区域 */
    .selected-emoji {
        margin-bottom: 0.5rem;
        text-align: center;
        font-size: 0.75rem;
    }
    
    /* 页脚适配 */
    .footer-content {
        padding: 0 0.25rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .quick-entry-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
    
    .quick-entry-btn {
        padding: 1rem 0.5rem;
        gap: 0.5rem;
    }
    
    .quick-entry-icon {
        font-size: 2rem;
    }
    
    .template-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .tool-card {
        padding: 1.5rem 1rem;
    }
    
    .generator-controls {
        padding: 1rem;
    }
}

/* 横屏设备 */
@media (max-height: 500px) and (orientation: landscape) {
    .nav-links {
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }
    
    .hero {
        padding: 4rem 0 3rem;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .generator-container {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
}

/* 触摸交互 */
@media (hover: none) {
    /* 移除悬停效果，使用点击效果 */
    .btn:hover {
        transform: none;
    }
    
    .card:hover {
        transform: none;
    }
    
    .feature-card:hover {
        transform: none;
    }
    
    .quick-entry-btn:hover {
        transform: none;
    }
    
    .template-card:hover {
        transform: none;
    }
    
    .tool-card:hover {
        transform: none;
    }
    
    .team-member:hover {
        transform: none;
    }
    
    .emoji-btn:hover {
        transform: none;
    }
    
    .sticker-btn:hover {
        transform: none;
    }
    
    .preview-sticker:hover {
        transform: none;
    }
    
    /* 触摸友好的点击效果 */
    a:active, button:active {
        transform: scale(0.95);
        transition: transform 0.1s ease;
    }
    
    .feature-card:active, .template-card:active, .quick-entry-btn:active, .tool-card:active {
        transform: scale(0.95);
        transition: transform 0.1s ease;
    }
    
    .dropdown-toggle:active + .dropdown-content {
        display: block;
    }
    
    /* 触摸友好的滚动效果 */
    * {
        -webkit-overflow-scrolling: touch;
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-color);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-color);
    border-radius: 4px;
}

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

/* 平板设备 */
@media (min-width: 769px) and (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .generator-container {
        grid-template-columns: 1fr 1fr;
    }
    
    .emoji-grid, .sticker-grid {
        grid-template-columns: repeat(12, 1fr);
    }
}

/* 大屏幕设备 */
@media (min-width: 1025px) {
    .container {
        max-width: 1200px;
        margin: 0 auto;
    }
    
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .template-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

/* 选择文本样式 */
::selection {
    background-color: var(--primary-color);
    color: white;
}

::-moz-selection {
    background-color: var(--primary-color);
    color: white;
}