/* 新增的Header样式 */
.header-section {
    padding: 0;
    margin-bottom: 60px;
}

.header {
    background: linear-gradient(135deg, #ffffff, #f0f0f0);
    color: #333;
    padding: 20px 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 10;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    position: relative;
    z-index: 1;
}

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

.logo-container h1 {
    font-size: 1.8rem;
    margin: 0;
    color: var(--primary-color);
}

.navigation {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.nav-links {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 30px;
}

.nav-links li a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

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

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

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

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.github-link {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.github-link {
    background-color: #24292e;
    color: white;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    white-space: nowrap;
}

.github-link:hover {
    background-color: #1c2124;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.github-link img {
    transition: transform 0.3s ease;
}

.github-link:hover img {
    transform: scale(1.1) rotate(5deg);
}

@media (max-width: 768px) {
    .github-link img {
        margin-right: 4px;
    }
}

/* 公共样式 */
:root {
    --primary-color: #3B82F6;
    --secondary-color: #6366F1;
    --accent-color: #10B981;
    --background-color: #F9FAFB;
    --card-background: #FFFFFF;
    --text-primary: #111827;
    --text-secondary: #4B5563;
    --border-radius: 12px;
    --transition: all 0.3s ease-in-out;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-primary);
}

header {
    background: linear-gradient(135deg, #ffffff, #f0f0f0);
    color: #333;
    padding: 20px 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 10;
}

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

/* 页眉装饰元素 */
.header-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.header-content p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 30px;
}

/* 添加一些装饰性元素 */
header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0) 70%);
    transform: rotate(45deg);
    z-index: 0;
}

.blob {
    position: absolute;
    border-radius: 50%;
    opacity: 0.2;
    mix-blend-mode: multiply;
    animation: float 15s infinite ease-in-out;
}

.blob:nth-child(1) {
    width: 300px;
    height: 300px;
    background-color: #ffd700;
    top: 20%;
    right: 10%;
    animation-delay: 0s;
}

.blob:nth-child(2) {
    width: 200px;
    height: 200px;
    background-color: #add8e6;
    bottom: 20%;
    left: 15%;
    animation-delay: 5s;
}

@keyframes float {

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

    50% {
        transform: translate(20px, -20px) scale(1.1);
    }
}

/* 响应式设计 */
@media (max-width: 992px) {
    .navigation {
        flex-grow: 0;
        flex-shrink: 1;
        justify-content: flex-start;
    }

    .nav-links {
        gap: 20px;
    }

    .nav-links li a {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .header-content h1 {
        font-size: 2.2rem;
    }

    .header-content p {
        font-size: 1rem;
    }

    .features,
    .screenshots,
    .features-detail,
    .use-cases,
    .container {
        padding: 20px;
    }

    .feature-icon {
        width: 50px;
        height: 50px;
    }

    .header-container {
        flex-direction: column;
        gap: 15px;
    }

    .logo-container {
        margin-right: 0;
    }

    .navigation {
        order: 2;
        width: 100%;
        justify-content: flex-start;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 10px;
    }

    .header-actions {
        order: 3;
        width: 100%;
        justify-content: space-between;
    }

    .menu-toggle {
        display: block;
        order: 1;
        margin-left: auto;
    }

    .hamburger {
        width: 20px;
    }

    .hamburger::before,
    .hamburger::after {
        width: 20px;
    }

    .github-link {
        flex: 1 1 auto;
        justify-content: center;
    }

    .github-link svg {
        margin-right: 4px;
    }
}

/* Apple风格的页面样式 */
.hero-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    line-height: 1.05;
}

.hero-subtitle {
    font-size: 1.75rem;
    font-weight: 400;
    color: #86868b;
    margin-bottom: 40px;
    line-height: 1.3;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.cta-button.primary {
    background: #007aff;
    color: white;
}

.cta-button.primary:hover {
    background: #0056cc;
    transform: translateY(-2px);
}

.cta-button.secondary {
    background: rgba(0, 122, 255, 0.1);
    color: #007aff;
    border: 1px solid rgba(0, 122, 255, 0.3);
}

.cta-button.secondary:hover {
    background: rgba(0, 122, 255, 0.2);
    transform: translateY(-2px);
}

/* Agents Section */
.agents-section {
    padding: 48px 0;
    background: #f5f5f7;
}

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

.section-title {
    font-size: 3rem;
    font-weight: 600;
    color: #1d1d1f;
    text-align: center;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.25rem;
    color: #86868b;
    text-align: center;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.agent-card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.agent-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.agent-card.featured {
    border: 2px solid #007aff;
    position: relative;
}

.agent-card.featured::before {
    content: "推荐";
    position: absolute;
    top: -12px;
    left: 32px;
    background: #007aff;
    color: white;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
}

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

.agent-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    padding: 8px;
    background: rgba(0, 122, 255, 0.1);
}

.agent-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    background: #34c759;
    color: white;
}

.agent-status.coming-soon {
    background: #ff9500;
}

.agent-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 12px;
}

.agent-description {
    color: #86868b;
    line-height: 1.5;
    margin-bottom: 20px;
}

.agent-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.feature-tag {
    background: rgba(0, 122, 255, 0.1);
    color: #007aff;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.85rem;
    font-weight: 500;
}

.agent-actions {
    display: flex;
    gap: 12px;
}

.btn-primary, .btn-secondary, .btn-disabled {
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    flex: 1;
    text-align: center;
}

.btn-primary {
    background: #007aff;
    color: white;
}

.btn-primary:hover {
    background: #0056cc;
}

.btn-secondary {
    background: rgba(0, 122, 255, 0.1);
    color: #007aff;
    border: 1px solid rgba(0, 122, 255, 0.3);
}

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

.btn-disabled {
    background: #f2f2f7;
    color: #86868b;
    cursor: not-allowed;
}

/* About Section */
.about-section {
    padding: 48px 0;
    background: #ffffff;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-text h3 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #1d1d1f;
    margin: 40px 0 20px;
    letter-spacing: -0.01em;
}

.about-text h3:first-child {
    margin-top: 0;
}

.about-text p {
    font-size: 1.1rem;
    color: #86868b;
    line-height: 1.6;
    margin-bottom: 20px;
}

.about-text ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.about-text li {
    font-size: 1.1rem;
    color: #86868b;
    line-height: 1.6;
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
}

.about-text li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #007aff;
    font-weight: bold;
}

.stats-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.stats-row {
    display: flex;
    gap: 30px;
}

.stats-row:first-child {
    justify-content: space-between;
}

.stats-row:last-child {
    justify-content: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.stat-item {
    text-align: center;
    padding: 30px 20px;
    background: #f5f5f7;
    border-radius: 16px;
    transition: all 0.3s ease;
    flex: 1;
}

.stat-item-full {
    width: calc(100% - 0px);
    max-width: calc(2 * (50% - 15px));
}

.stat-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #007aff;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 1rem;
    color: #86868b;
    font-weight: 500;
}

/* Features Section */
.features {
    padding: 48px 0;
    background: #ffffff;
}

/* Use Cases Section */
.use-cases {
    padding: 48px 0;
    background: #f5f5f7;
}

.use-cases .section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Features Detail Section */
.features-detail {
    padding: 48px 0;
    background: #ffffff;
}

.features-detail .section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.section-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.section-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.section-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: #515154;
    margin-bottom: 0;
}

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

.section-content li {
    font-size: 1rem;
    line-height: 1.6;
    color: #515154;
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
}

.section-content li::before {
    content: '•';
    color: #007aff;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

/* Card style for use cases and features detail */
.use-cases .section-content > div,
.features-detail .section-content > div {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.use-cases .section-content > div:hover,
.features-detail .section-content > div:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

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

.features-title {
    font-size: 3rem;
    font-weight: 600;
    color: #1d1d1f;
    text-align: center;
    margin-bottom: 60px;
    letter-spacing: -0.02em;
}

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

.feature-card {
    background: #f5f5f7;
    border-radius: 16px;
    padding: 40px 32px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    background: #ffffff;
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    transition: all 0.4s ease;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

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

.feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.feature-description {
    font-size: 1.1rem;
    color: #86868b;
    line-height: 1.5;
    font-weight: 400;
}

/* Footer Styles */
footer {
    background: #1d1d1f;
    color: #f5f5f7;
    padding: 60px 0 30px;
}

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

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #f5f5f7;
    margin-bottom: 20px;
}

.footer-section p {
    color: #86868b;
    line-height: 1.5;
    margin-bottom: 20px;
}

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

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

.footer-section a {
    color: #86868b;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #007aff;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-link {
    padding: 8px 16px;
    background: rgba(0, 122, 255, 0.1);
    border-radius: 8px;
    color: #007aff !important;
    font-size: 0.9rem;
    font-weight: 500;
}

.social-link:hover {
    background: rgba(0, 122, 255, 0.2);
}

.footer-bottom {
    border-top: 1px solid #2d2d2d;
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    color: #86868b;
    margin: 8px 0;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.4rem;
    }

    .hero-actions {
        flex-direction: column;
        gap: 16px;
    }

    .cta-button {
        width: 100%;
        justify-content: center;
    }

    .agents-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .stats-container {
        gap: 20px;
    }
    
    .stats-row {
        gap: 20px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .section-container {
        padding: 0 20px;
    }

    .hero-content {
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .stats-row {
        flex-direction: column;
    }
    
    .stats-row:first-child,
    .stats-row:last-child {
        justify-content: center;
    }
    
    .stat-item-full {
        max-width: 100%;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .social-links {
        flex-direction: column;
    }
}