/* Global Styles */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #4361ee;
    --secondary-color: #3a0ca3;
    --accent-color: #f72585;
    --text-color: #333;
    --light-text: #777;
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --gradient-bg: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    --light-bg: #f9fafb;
    --white: #ffffff;
    --shadow: 0 10px 15px rgba(0,0,0,0.1);
    --purple-600: #8b5cf6;
    --purple-500: #a78bfa;
    --indigo-600: #6366f1;
    --indigo-700: #4338ca;
}

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

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background: #f0f2f5;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

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

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

.small-btn {
    padding: 8px 16px;
    font-size: 14px;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

section {
    padding: 80px 10%;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.see-all {
    color: var(--primary-color);
    font-weight: 500;
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 15%;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

@media (max-width: 1024px) {
    nav {
        padding: 20px 8%;
    }
}

.logo img {
    height: 40px;
    width: auto;
}

.nav-links a {
    margin-left: 30px;
    font-weight: 500;
    color: var(--text-color);
    transition: color 0.3s ease;
}

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

.contact-btn {
    background-color: var(--primary-color);
    color: white !important;
    padding: 10px 20px;
    border-radius: 30px;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    min-height: 90vh;
    background: linear-gradient(135deg, #f5f0ff 0%, #fedbf0 100%);
    padding: 0 10%;
    position: relative;
    overflow: hidden;
}

/* Video background styles */
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
    z-index: 0;
}

@media (max-width: 768px) {
    .hero-video {
        /* On smaller screens, prioritize vertical centering */
        height: 100%;
        width: auto;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(245, 240, 255, 0.8) 0%, rgba(254, 219, 240, 0.8) 100%);
    z-index: 1;
}

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

.subtitle {
    font-weight: 500;
    color: var(--light-text);
    margin-bottom: 20px;
}

h1 {
    font-size: 72px;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 700;
}

.description {
    font-size: 18px;
    color: var(--light-text);
    max-width: 500px;
    margin-bottom: 30px;
}

.social-icons a {
    display: inline-block;
    margin-right: 15px;
    font-size: 18px;
    color: var(--light-text);
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--primary-color);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-image img {
    max-width: 100%;
    animation: float 6s ease-in-out infinite;
}

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

/* About Section */
.about {
    display: flex;
    align-items: center;
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.about-image {
    flex: 1;
    padding: 20px;
}

.about-image img {
    border-radius: 20px;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.about-content {
    flex: 1;
    padding: 40px;
}

.about-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.about-content p {
    color: var(--light-text);
    margin-bottom: 30px;
}

.about-buttons {
    margin-bottom: 20px;
}

.about-buttons .btn {
    margin-right: 15px;
}

.about-social a {
    display: inline-block;
    margin-right: 15px;
    font-size: 18px;
    color: var(--light-text);
    transition: color 0.3s ease;
}

.about-social a:hover {
    color: var(--primary-color);
}

/* Services Section */
.services {
    display: flex;
    align-items: center;
    background-color: #f9fafb;
    border-radius: 20px;
    overflow: hidden;
}

.services-content {
    flex: 1;
    padding: 40px;
}

.services-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.services-content p {
    color: var(--light-text);
    margin-bottom: 30px;
}

.services-image {
    flex: 1;
    padding: 20px;
}

.services-image img {
    border-radius: 20px;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Projects Section */
.projects {
    background-color: var(--bg-color);
}

.project-card {
    display: flex;
    background-color: white;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.project-image {
    flex: 1;
    min-height: 300px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-info {
    flex: 1;
    padding: 30px;
}

.project-category {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 10px;
}

.project-info h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.project-info p {
    color: var(--light-text);
    margin-bottom: 20px;
}

/* Products Section */
.products {
    background-color: white;
}

.products-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: var(--bg-color);
    border-radius: 20px;
    overflow: hidden;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.product-card img {
    border-radius: 15px;
    margin-bottom: 20px;
    height: 200px;
    width: 100%;
    object-fit: cover;
}

.product-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.product-card p {
    color: var(--light-text);
    margin-bottom: 20px;
    font-size: 14px;
}

/* Collaboration Section */
.collaboration {
    background: linear-gradient(135deg, #f5f0ff 0%, #fedbf0 100%);
    text-align: center;
    padding: 100px 10%;
    position: relative;
    overflow: hidden;
}

.collaboration h2 {
    font-size: 36px;
    margin-bottom: 30px;
}

.hands-image {
    position: relative;
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.hands-image img {
    width: 60%;
    border-radius: 20px;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 30px 10%;
}

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

.footer-social a {
    display: inline-block;
    margin-left: 15px;
    font-size: 18px;
    color: white;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-social a:hover {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 1024px) {
    h1 {
        font-size: 56px;
    }
    
    section {
        padding: 60px 5%;
    }
    
    nav {
        padding: 20px 5%;
    }
}

@media (max-width: 768px) {
    .hero, .about, .services, .project-card {
        flex-direction: column;
    }
    
    .hero-content, .about-content, .services-content {
        order: 1;
    }
    
    .hero-image, .about-image, .services-image {
        order: 2;
        margin-top: 40px;
    }
    
    h1 {
        font-size: 42px;
    }
    
    .products-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-content > * {
        margin: 10px 0;
    }
}

/* Design页面 - 瀑布流布局 */
.design-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 40px 0;
}

.design-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 0 20px;
}

.design-header h2 {
    font-size: 28px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.design-header p {
    color: #666;
    max-width: 700px;
    margin: 0 auto;
    font-size: 16px;
}

/* Pinterest风格瀑布流布局 */
.masonry-grid {
    column-count: 4;
    column-gap: 16px;
    width: 100%;
    padding: 0 20px;
}

@media (max-width: 1400px) {
    .masonry-grid {
        column-count: 3;
    }
}

@media (max-width: 992px) {
    .masonry-grid {
        column-count: 2;
    }
}

@media (max-width: 576px) {
    .masonry-grid {
        column-count: 1;
    }
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 16px;
    display: inline-block;
    width: 100%;
}

/* 卡片样式 */
.portfolio-card {
    border-radius: 16px;
    overflow: hidden;
    background: white;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.portfolio-card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.portfolio-image {
    position: relative;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
}

.portfolio-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
    object-fit: cover;
}

.card-content {
    padding: 12px 16px;
}

.card-content h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: var(--text-color);
}

.card-content p {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 标签样式 */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag {
    display: inline-block;
    background: #f3f4f6;
    color: #666;
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
}

/* 分类标签页样式 */
.category-tabs {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 30px 0;
    padding: 0 15px;
}

.category-tab {
    background: white;
    border: 1px solid #e5e7eb;
    padding: 8px 16px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
}

.category-tab:hover {
    background: #f3f4f6;
}

.category-tab.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* 顶部固定的过滤栏 */
.filter-container {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #eee;
}

/* 模态窗口样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal.show {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
}

.modal-image {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 15px;
    border-radius: 0 0 8px 8px;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* 延迟加载动画 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.masonry-item {
    animation: fadeIn 0.5s ease forwards;
    opacity: 0;
}

.masonry-item:nth-child(1) { animation-delay: 0.05s; }
.masonry-item:nth-child(2) { animation-delay: 0.1s; }
.masonry-item:nth-child(3) { animation-delay: 0.15s; }
.masonry-item:nth-child(4) { animation-delay: 0.2s; }
.masonry-item:nth-child(5) { animation-delay: 0.25s; }
.masonry-item:nth-child(6) { animation-delay: 0.3s; }
.masonry-item:nth-child(7) { animation-delay: 0.35s; }
.masonry-item:nth-child(8) { animation-delay: 0.4s; }
.masonry-item:nth-child(9) { animation-delay: 0.45s; }
.masonry-item:nth-child(10) { animation-delay: 0.5s; }
.masonry-item:nth-child(n+11) { animation-delay: 0.55s; }

/* 设计页面样式 - 扩展 */
/* 整体布局和部分 */
.section-padding {
    padding: 80px 10%;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-divider {
    width: 6rem;
    height: 0.25rem;
    background: linear-gradient(to right, #8b5cf6, #6366f1);
    margin: 0 auto;
}

.gradient-text {
    background: linear-gradient(to right, #8b5cf6, #6366f1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.container {
    width: 100%;
    max-width: none;
    padding: 0 10%;
    margin: 0 auto;
}

/* 标签按钮样式 */
.category-tabs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.category-tab {
    padding: 0.6rem 1.5rem;
    border-radius: 9999px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.category-tab.active {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    color: white;
    box-shadow: 0 4px 12px rgba(107, 33, 168, 0.15);
}

.category-tab:not(.active) {
    background-color: #f3f4f6;
    color: #4b5563;
}

.category-tab:not(.active):hover {
    background-color: #e5e7eb;
    transform: translateY(-2px);
}

/* 卡片内容样式 */
.card-content {
    padding: 1rem;
}

.card-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.tag-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.bold-text {
    font-size: 1.125rem;
    font-weight: 700;
}

/* 模态框样式 */
.modal {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 50;
    display: none;
}

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

.modal-close {
    position: absolute;
    top: 1rem;
    right: 2rem;
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    cursor: pointer;
}

.modal-close:hover {
    color: #d1d5db;
}

.modal-image {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border-radius: 4px;
}

/* CTA 部分样式 */
.cta-section {
    background: linear-gradient(to right, #8b5cf6, #6366f1);
    padding: 4rem 0;
    text-align: center;
    color: white;
}

.cta-title {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

/* 链接和导航样式 */
a.active {
    color: var(--primary-color);
    font-weight: 500;
}

/* 错误和加载状态 */
#loading-indicator {
    text-align: center;
    padding: 2rem;
    color: #6b7280;
    font-size: 1.2rem;
    width: 100%;
    grid-column: 1 / -1;
}

.error-message {
    text-align: center;
    padding: 2rem;
    color: #ef4444;
    font-size: 1.2rem;
    background-color: #fee2e2;
    border-radius: 8px;
    border: 1px solid #fecaca;
    width: 100%;
    grid-column: 1 / -1;
}

/* 确保.hidden类正确定义 */
.hidden {
    display: none !important;
}

/* About页面样式 */
.about-hero {
    background: linear-gradient(135deg, #f5f0ff 0%, #fedbf0 100%);
    padding: 120px 0 80px;
    overflow: hidden;
}

.about-hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.about-hero-text {
    flex: 1;
}

.about-hero-text h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-color);
}

.about-hero-text h1 .highlight {
    color: var(--primary-color);
}

.about-hero-text h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.about-hero-text p {
    font-size: 18px;
    color: var(--light-text);
    line-height: 1.7;
    margin-bottom: 30px;
    max-width: 90%;
}

.about-hero-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.about-hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.profile-image {
    width: 320px;
    height: 320px;
    object-fit: cover;
    border-radius: 50%;
    border: 8px solid white;
    box-shadow: var(--shadow);
    animation: float 6s ease-in-out infinite;
}

.about-main {
    padding: 100px 0;
    background-color: var(--white);
}

.section-divider {
    height: 4px;
    width: 80px;
    background: var(--primary-color);
    margin: 20px auto 40px;
    border-radius: 2px;
}

.about-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.about-card {
    background: var(--white);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.about-card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: white;
    font-size: 24px;
}

.about-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-color);
}

.about-card p {
    color: var(--light-text);
    line-height: 1.7;
    margin-bottom: 10px;
}

.skills-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.skills-list li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 15px;
}

.skills-list li:before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.skills-list li span {
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 500;
}

.about-social {
    text-align: center;
    margin-top: 60px;
}

.about-social h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-color);
}

.social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.social-icon {
    font-size: 28px;
    color: var(--primary-color);
    transition: all 0.3s ease;
    margin: 0 10px;
}

.social-icon i {
    display: inline-block;
}

.social-icon:hover {
    transform: translateY(-5px);
    color: var(--accent-color);
}

/* Testimonials Section */
.testimonials-section {
    padding: 100px 0;
    background-color: var(--light-bg);
}

.testimonials-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.testimonial {
    height: 100%;
}

.testimonial-content {
    background: var(--white);
    border-radius: 15px;
    padding: 40px 30px 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.quote-icon {
    position: absolute;
    top: -20px;
    left: 30px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.testimonial-content p {
    color: var(--light-text);
    line-height: 1.8;
    font-size: 16px;
    margin-bottom: 25px;
    flex-grow: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: auto;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
}

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

.testimonial-info h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 5px;
}

.testimonial-info p {
    color: var(--light-text);
    font-size: 14px;
    margin: 0;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .about-hero-content {
        flex-direction: column;
        text-align: center;
    }

    .about-hero-text p {
        max-width: 100%;
    }

    .about-hero-buttons {
        justify-content: center;
    }

    .profile-image {
        width: 250px;
        height: 250px;
        margin-top: 30px;
    }

    .testimonials-container {
        grid-template-columns: 1fr;
    }
    
    .social-icons {
        flex-wrap: wrap;
    }
    
    /* 确保导航在所有页面保持一致 */
    nav {
        padding: 20px 15%;
    }
    
    @media (max-width: 1024px) {
        nav {
            padding: 20px 8%;
        }
    }
}

/* Tools页面样式 */
/* Float动画 */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

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

/* 卡片悬停效果 */
.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0,0,0,0.05);
    will-change: transform, box-shadow;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: rgba(0,0,0,0);
}

/* 图片容器样式 */
.image-container {
    overflow: hidden;
    position: relative;
}

.image-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 70%, rgba(0,0,0,0.7) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-hover:hover .image-container::after {
    opacity: 1;
}

.image-container img {
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    object-fit: cover;
    width: 100%;
}

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

/* 淡入动画 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
    opacity: 0;
}

.fade-in:nth-child(1) { animation-delay: 0.1s; }
.fade-in:nth-child(2) { animation-delay: 0.2s; }
.fade-in:nth-child(3) { animation-delay: 0.3s; }
.fade-in:nth-child(4) { animation-delay: 0.4s; }
.fade-in:nth-child(5) { animation-delay: 0.5s; }
.fade-in:nth-child(6) { animation-delay: 0.6s; }
.fade-in:nth-child(7) { animation-delay: 0.7s; }
.fade-in:nth-child(8) { animation-delay: 0.8s; }

/* Tailwind风格的实用类 */
.container {
    margin-left: auto;
    margin-right: auto;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.px-10\% {
    padding-left: 10%;
    padding-right: 10%;
}

.max-w-none {
    max-width: none;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.md\:flex-row {
    flex-direction: row;
}

.items-center {
    align-items: center;
}

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

.gap-12 {
    gap: 3rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-8 {
    gap: 2rem;
}

.md\:w-1\/2 {
    width: 50%;
}

.text-5xl {
    font-size: 3rem;
}

.md\:text-6xl {
    font-size: 4rem;
}

.font-bold {
    font-weight: 700;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-16 {
    margin-bottom: 4rem;
}

.mb-3 {
    margin-bottom: 0.75rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.text-xl {
    font-size: 1.25rem;
}

.text-4xl {
    font-size: 2.25rem;
}

.text-xs {
    font-size: 0.75rem;
}

.text-sm {
    font-size: 0.875rem;
}

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

.text-purple-600 {
    color: var(--purple-600);
}

.text-gray-600 {
    color: #4b5563;
}

.text-gray-400 {
    color: #9ca3af;
}

.text-gray-800 {
    color: #1f2937;
}

.text-gray-700 {
    color: #374151;
}

.text-white {
    color: white;
}

.text-purple-700 {
    color: #7e22ce;
}

.text-indigo-700 {
    color: var(--indigo-700);
}

.text-red-700 {
    color: #b91c1c;
}

.text-green-700 {
    color: #15803d;
}

.font-medium {
    font-weight: 500;
}

.rounded-full {
    border-radius: 9999px;
}

.rounded-2xl {
    border-radius: 1rem;
}

.rounded-xl {
    border-radius: 0.75rem;
}

.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.relative {
    position: relative;
}

.w-24 {
    width: 6rem;
}

.h-1 {
    height: 0.25rem;
}

.w-16 {
    width: 4rem;
}

.h-16 {
    height: 4rem;
}

.h-48 {
    height: 12rem;
}

.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.md\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lg\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.p-6 {
    padding: 1.5rem;
}

.p-8 {
    padding: 2rem;
}

.px-3 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.py-1 {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.pt-32 {
    padding-top: 8rem;
}

.pb-20 {
    padding-bottom: 5rem;
}

.py-20 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.py-16 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.space-y-2 > * + * {
    margin-top: 0.5rem;
}

.space-y-4 > * + * {
    margin-top: 1rem;
}

.mr-2 {
    margin-right: 0.5rem;
}

.ml-2 {
    margin-right: 0.5rem;
}

.mt-4 {
    margin-top: 1rem;
}

.inline-block {
    display: inline-block;
}

.inline-flex {
    display: inline-flex;
}

.overflow-hidden {
    overflow: hidden;
}

.bg-white {
    background-color: white;
}

.bg-gray-50 {
    background-color: #f9fafb;
}

.bg-purple-100 {
    background-color: #ede9fe;
}

.bg-indigo-100 {
    background-color: #e0e7ff;
}

.bg-green-100 {
    background-color: #dcfce7;
}

.bg-red-100 {
    background-color: #fee2e2;
}

.hover\:shadow-lg:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.transition {
    transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.border {
    border-width: 1px;
}

.border-2 {
    border-width: 2px;
}

.border-purple-500 {
    border-color: var(--purple-500);
}

.border-white {
    border-color: white;
}

.hover\:bg-white:hover {
    background-color: white;
}

.hover\:text-purple-600:hover {
    color: var(--purple-600);
}

.hover\:text-purple-800:hover {
    color: #6b21a8;
}

.max-w-2xl {
    max-width: 42rem;
}

.transform {
    transform: translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.scale-105 {
    --tw-scale-x: 1.05;
    --tw-scale-y: 1.05;
    transform: var(--tw-transform);
}

.border-purple-500 {
    border-color: var(--purple-500);
}

.object-cover {
    object-fit: cover;
}
    
.flex-wrap {
    flex-wrap: wrap;
}
    
/* 渐变背景和文字 */
.bg-gradient-to-br {
    background-image: linear-gradient(to bottom right, var(--tw-gradient-stops));
}

.from-purple-50 {
    --tw-gradient-from: #faf5ff;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(250, 245, 255, 0));
}

.via-white {
    --tw-gradient-stops: var(--tw-gradient-from), white, var(--tw-gradient-to, rgba(255, 255, 255, 0));
}

.to-indigo-50 {
    --tw-gradient-to: #eef2ff;
}

.bg-gradient-to-r {
    background-image: linear-gradient(to right, var(--tw-gradient-stops));
}

.from-purple-600 {
    --tw-gradient-from: var(--purple-600);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(139, 92, 246, 0));
}

.from-purple-500 {
    --tw-gradient-from: var(--purple-500);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(167, 139, 250, 0));
}

.to-indigo-600 {
    --tw-gradient-to: var(--indigo-600);
}

.bg-clip-text {
    -webkit-background-clip: text;
    background-clip: text;
}

.text-transparent {
    color: transparent;
}

/* 媒体查询 */
@media (min-width: 768px) {
    .md\:flex-row {
        flex-direction: row;
    }
    
    .md\:w-1\/2 {
        width: 50%;
    }
    
    .md\:text-6xl {
        font-size: 4rem;
    }
    
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* 工具页面独特样式 */
.tool-hero {
    background: linear-gradient(to bottom right, #faf5ff, #ffffff, #eef2ff);
    padding-top: 8rem;
    padding-bottom: 5rem;
}

.tool-section {
    padding: 5rem 0;
}

.tool-section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.tool-card {
    background-color: white;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0,0,0,0.05);
}

.tool-feature {
    background-color: white;
    border-radius: 0.75rem;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.tool-feature-icon {
    width: 4rem;
    height: 4rem;
    background-color: #ede9fe;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
}

.tool-cta {
    background: linear-gradient(to right, var(--purple-600), var(--indigo-700));
    color: white;
    text-align: center;
    padding: 4rem 0;
}

/* About页面样式 */
.about-hero {
    background: linear-gradient(135deg, #f5f0ff 0%, #fedbf0 100%);
    padding: 120px 0 80px;
    overflow: hidden;
}

.about-hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.about-hero-text {
    flex: 1;
}

.about-hero-text h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-color);
}

.about-hero-text h1 .highlight {
    color: var(--primary-color);
}

.about-hero-text h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.about-hero-text p {
    font-size: 18px;
    color: var(--light-text);
    line-height: 1.7;
    margin-bottom: 30px;
    max-width: 90%;
}

.about-hero-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.about-hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.profile-image {
    width: 320px;
    height: 320px;
    object-fit: cover;
    border-radius: 50%;
    border: 8px solid white;
    box-shadow: var(--shadow);
    animation: float 6s ease-in-out infinite;
}

.about-main {
    padding: 100px 0;
    background-color: var(--white);
}

.section-divider {
    height: 4px;
    width: 80px;
    background: var(--primary-color);
    margin: 20px auto 40px;
    border-radius: 2px;
}

.about-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.about-card {
    background: var(--white);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.about-card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: white;
    font-size: 24px;
}

.about-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-color);
}

.about-card p {
    color: var(--light-text);
    line-height: 1.7;
    margin-bottom: 10px;
}

.skills-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.skills-list li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 15px;
}

.skills-list li:before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.skills-list li span {
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 500;
}

.about-social {
    text-align: center;
    margin-top: 60px;
}

.about-social h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-color);
}

.social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.social-icon {
    font-size: 28px;
    color: var(--primary-color);
    transition: all 0.3s ease;
    margin: 0 10px;
}

.social-icon i {
    display: inline-block;
}

.social-icon:hover {
    transform: translateY(-5px);
    color: var(--accent-color);
}

/* Testimonials Section */
.testimonials-section {
    padding: 100px 0;
    background-color: var(--light-bg);
}

.testimonials-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.testimonial {
    height: 100%;
}

.testimonial-content {
    background: var(--white);
    border-radius: 15px;
    padding: 40px 30px 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.quote-icon {
    position: absolute;
    top: -20px;
    left: 30px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.testimonial-content p {
    color: var(--light-text);
    line-height: 1.8;
    font-size: 16px;
    margin-bottom: 25px;
    flex-grow: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: auto;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
}

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

.testimonial-info h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 5px;
}

.testimonial-info p {
    color: var(--light-text);
    font-size: 14px;
    margin: 0;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .about-hero-content {
        flex-direction: column;
        text-align: center;
    }

    .about-hero-text p {
        max-width: 100%;
    }

    .about-hero-buttons {
        justify-content: center;
    }

    .profile-image {
        width: 250px;
        height: 250px;
        margin-top: 30px;
    }

    .testimonials-container {
        grid-template-columns: 1fr;
    }
    
    .social-icons {
        flex-wrap: wrap;
    }
    
    /* 确保导航在所有页面保持一致 */
    nav {
        padding: 20px 15%;
    }
    
    @media (max-width: 1024px) {
        nav {
            padding: 20px 8%;
        }
    }
} 