/* OpenClaw 国内版本对比 - 主样式表 */

:root {
    --primary: #0066FF;
    --primary-dark: #0052CC;
    --secondary: #00D9B5;
    --accent: #FF6B35;
    --accent-2: #FF4757;
    --accent-3: #A55EEA;
    --accent-4: #2ED573;
    --bg-dark: #0A0E1A;
    --bg-card: #121826;
    --bg-card-hover: #1A2234;
    --text-primary: #FFFFFF;
    --text-secondary: #A0AEC0;
    --text-muted: #6B7280;
    --border: #2D3748;
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --gradient-1: linear-gradient(135deg, #667EEA 0%, #764BA2 100%);
    --gradient-2: linear-gradient(135deg, #00D9B5 0%, #0066FF 100%);
    --gradient-3: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
}

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

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    /* 防盗用 - 禁用文本选择 */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* 允许表格和卡片内容可选择 */
.comparison-table,
.comparison-table *,
.product-card,
.product-card *,
.faq-answer-content,
.faq-answer-content * {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
}

/* 背景装饰 */
.bg-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.bg-decoration::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(ellipse at center, rgba(0, 102, 255, 0.08) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
}

.bg-decoration::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 60%;
    height: 120%;
    background: radial-gradient(ellipse at center, rgba(0, 217, 181, 0.06) 0%, transparent 70%);
    animation: float 25s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(30px, -30px) rotate(5deg); }
}

/* 导航栏 */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 14, 26, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 2rem;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Noto Serif SC', serif;
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
}

.logo img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

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

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

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

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 4rem;
    position: relative;
}

.hero-content {
    max-width: 1000px;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(0, 217, 181, 0.1);
    border: 1px solid var(--secondary);
    border-radius: 50px;
    font-size: 0.875rem;
    color: var(--secondary);
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease;
}

.hero h1 {
    font-family: 'Noto Serif SC', serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero h1 span {
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 3rem;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient-2);
    color: white;
    box-shadow: 0 10px 40px rgba(0, 102, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(0, 102, 255, 0.4);
}

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

.btn-secondary:hover {
    border-color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

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

/* Section Styles */
section {
    padding: 6rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

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

.section-label {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(0, 102, 255, 0.1);
    border-radius: 50px;
    font-size: 0.875rem;
    color: var(--primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.section-title {
    font-family: 'Noto Serif SC', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

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

/* 产品生态图谱 */
.ecosystem-section {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 4rem;
    border: 1px solid var(--border);
    margin-bottom: 4rem;
}

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

.ecosystem-category {
    background: var(--bg-dark);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--border);
}

.ecosystem-category h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ecosystem-category .category-icon {
    font-size: 1.5rem;
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.product-tag {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    background: rgba(0, 102, 255, 0.1);
    color: var(--primary);
    border: 1px solid rgba(0, 102, 255, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.product-tag:hover {
    background: rgba(0, 102, 255, 0.2);
    transform: translateY(-2px);
}

.product-tag.tencent { background: rgba(0, 102, 255, 0.15); color: #0066FF; border-color: rgba(0, 102, 255, 0.3); }
.product-tag.netease { background: rgba(255, 107, 53, 0.15); color: #FF6B35; border-color: rgba(255, 107, 53, 0.3); }
.product-tag.alibaba { background: rgba(0, 217, 181, 0.15); color: #00D9B5; border-color: rgba(0, 217, 181, 0.3); }
.product-tag.zhipu { background: rgba(165, 94, 234, 0.15); color: #A55EEA; border-color: rgba(165, 94, 234, 0.3); }
.product-tag.minimax { background: rgba(46, 213, 115, 0.15); color: #2ED573; border-color: rgba(46, 213, 115, 0.3); }
.product-tag.moonshot { background: rgba(255, 71, 87, 0.15); color: #FF4757; border-color: rgba(255, 71, 87, 0.3); }
.product-tag.bytedance { background: rgba(245, 158, 11, 0.15); color: #F59E0B; border-color: rgba(245, 158, 11, 0.3); }
.product-tag.others { background: rgba(160, 174, 192, 0.15); color: #A0AEC0; border-color: rgba(160, 174, 192, 0.3); }

/* 对比表格 */
.comparison-table-wrapper {
    overflow-x: auto;
    border-radius: 16px;
    border: 1px solid var(--border);
    margin-bottom: 3rem;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--bg-dark);
}

.comparison-table-wrapper::-webkit-scrollbar {
    height: 8px;
}

.comparison-table-wrapper::-webkit-scrollbar-track {
    background: var(--bg-dark);
    border-radius: 4px;
}

.comparison-table-wrapper::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 4px;
}

.comparison-table-wrapper::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
}

.comparison-table th,
.comparison-table td {
    padding: 1rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.comparison-table th {
    background: var(--bg-dark);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    position: sticky;
    top: 0;
}

.comparison-table th:first-child {
    border-radius: 16px 0 0 0;
    min-width: 140px;
    position: sticky;
    left: 0;
    z-index: 10;
}

.comparison-table th:last-child {
    border-radius: 0 16px 0 0;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table tr:hover td {
    background: var(--bg-card-hover);
}

.product-name {
    font-weight: 700;
    font-size: 1rem;
}

.check { color: var(--success); font-weight: bold; }
.cross { color: var(--danger); font-weight: bold; }
.unknown { color: var(--text-muted); }

/* 产品卡片 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.product-card {
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 60px rgba(0, 102, 255, 0.15);
}

.product-card-header {
    padding: 2rem;
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border);
    position: relative;
}

.product-card-header.tencent {
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.15) 0%, var(--bg-dark) 100%);
}

.product-card-header.netease {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.15) 0%, var(--bg-dark) 100%);
}

.product-card-header.alibaba {
    background: linear-gradient(135deg, rgba(0, 217, 181, 0.15) 0%, var(--bg-dark) 100%);
}

.product-card-header.zhipu {
    background: linear-gradient(135deg, rgba(165, 94, 234, 0.15) 0%, var(--bg-dark) 100%);
}

.product-card-header.minimax {
    background: linear-gradient(135deg, rgba(46, 213, 115, 0.15) 0%, var(--bg-dark) 100%);
}

.product-card-header.moonshot {
    background: linear-gradient(135deg, rgba(255, 71, 87, 0.15) 0%, var(--bg-dark) 100%);
}

.product-card-header.bytedance {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, var(--bg-dark) 100%);
}

.product-card-header.others {
    background: linear-gradient(135deg, rgba(160, 174, 192, 0.15) 0%, var(--bg-dark) 100%);
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-released {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
}

.badge-beta {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
}

.badge-new {
    background: rgba(0, 102, 255, 0.15);
    color: var(--primary);
}

.product-name-large {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.product-company {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.product-card-body {
    padding: 2rem;
}

.product-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.product-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.product-features li {
    padding: 0.5rem 0;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.95rem;
}

.product-features li::before {
    content: '✓';
    color: var(--secondary);
    font-weight: bold;
    flex-shrink: 0;
}

.product-suitable {
    padding: 1rem;
    background: var(--bg-dark);
    border-radius: 12px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.product-suitable strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: 0.5rem;
}

.product-link {
    display: inline-block;
    margin-top: 1.5rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.product-link:hover {
    color: var(--secondary);
}

/* 选型指南 */
.decision-guide {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 3rem;
    border: 1px solid var(--border);
}

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

.decision-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: var(--bg-dark);
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.decision-item:hover {
    border-color: var(--primary);
    background: var(--bg-card-hover);
}

.decision-scenario {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.decision-recommendation {
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
}

/* FAQ */
.faq-grid {
    display: grid;
    gap: 1.5rem;
}

.faq-item {
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border);
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem 2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: var(--bg-card-hover);
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-answer-content {
    padding: 0 2rem 1.5rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

/* 资源链接 */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.resource-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border);
    text-decoration: none;
    transition: all 0.3s ease;
}

.resource-card:hover {
    border-color: var(--primary);
    transform: translateX(5px);
}

.resource-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: var(--gradient-2);
    flex-shrink: 0;
}

.resource-info h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

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

/* Footer */
footer {
    border-top: 1px solid var(--border);
    padding: 4rem 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Noto Serif SC', serif;
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-logo img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.footer-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

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

/* 移动端导航 */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

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

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

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

.mobile-nav {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(10, 14, 26, 0.98);
    backdrop-filter: blur(20px);
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    z-index: 999;
    animation: slideDown 0.3s ease;
}

.mobile-nav.active {
    display: block;
}

.mobile-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    display: block;
    transition: all 0.3s ease;
}

.mobile-nav a:hover {
    background: rgba(0, 102, 255, 0.1);
    color: var(--text-primary);
}

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

/* 响应式 */
@media (max-width: 768px) {
    nav {
        padding: 1rem;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero {
        padding: 6rem 1rem 3rem;
    }

    .ecosystem-section {
        padding: 2rem;
    }

    .comparison-table-wrapper {
        border-radius: 12px;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 0.75rem;
        font-size: 0.8rem;
    }

    .decision-guide {
        padding: 2rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

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

/* 滚动动画 */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
