/* AI智能体天梯图样式 */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #8b5cf6;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --dark: #0f172a;
    --gray-900: #1e293b;
    --gray-800: #334155;
    --gray-700: #475569;
    --gray-600: #64748b;
    --gray-400: #94a3b8;
    --gray-200: #e2e8f0;
    --gray-100: #f1f5f9;
    --white: #ffffff;
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --gradient-bg: linear-gradient(180deg, var(--dark) 0%, var(--gray-900) 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    background: var(--gradient-bg);
    color: var(--white);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.logo-text h1 {
    font-size: 24px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-text span {
    font-size: 12px;
    color: var(--gray-400);
}

.update-time {
    color: var(--gray-400);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.update-time::before {
    content: "";
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Hero Section */
.hero {
    padding: 60px 0 40px;
    text-align: center;
}

.hero h2 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #fff 0%, #a5b4fc 50%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 18px;
    color: var(--gray-400);
    max-width: 600px;
    margin: 0 auto 32px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    font-size: 14px;
    color: var(--gray-400);
}

/* Navigation */
.nav-tabs {
    display: flex;
    gap: 8px;
    background: var(--gray-900);
    padding: 8px;
    border-radius: 16px;
    margin-bottom: 32px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.nav-tabs::-webkit-scrollbar {
    display: none;
}

.nav-tab {
    padding: 12px 24px;
    border-radius: 12px;
    background: transparent;
    border: none;
    color: var(--gray-400);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-decoration: none;
}

.nav-tab:hover {
    background: rgba(99, 102, 241, 0.2);
    color: var(--white);
}

.nav-tab.active {
    background: var(--gradient-primary);
    color: var(--white);
}

/* Site Navigation */
.site-nav {
    display: flex;
    gap: 16px;
    align-items: center;
}

.site-nav a {
    color: var(--gray-400);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.site-nav a:hover {
    background: rgba(99, 102, 241, 0.2);
    color: var(--white);
}

.site-nav a.active {
    background: var(--gradient-primary);
    color: var(--white);
}

/* Filters */
.filters {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-label {
    font-size: 14px;
    color: var(--gray-400);
    font-weight: 500;
}

.filter-select {
    padding: 10px 36px 10px 16px;
    border-radius: 10px;
    border: 1px solid var(--gray-700);
    background: var(--gray-800);
    color: var(--white);
    font-size: 14px;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    transition: all 0.2s ease;
}

.filter-select:hover, .filter-select:focus {
    border-color: var(--primary);
    outline: none;
}

.filter-search {
    flex: 1;
    min-width: 200px;
    max-width: 400px;
    margin-left: auto;
}

.search-input {
    width: 100%;
    padding: 10px 16px 10px 44px;
    border-radius: 10px;
    border: 1px solid var(--gray-700);
    background: var(--gray-800);
    color: var(--white);
    font-size: 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 14px center;
    transition: all 0.2s ease;
}

.search-input::placeholder {
    color: var(--gray-600);
}

.search-input:focus {
    border-color: var(--primary);
    outline: none;
}

/* Table */
.table-container {
    background: var(--gray-900);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--gray-800);
}

.table-header {
    display: grid;
    grid-template-columns: 80px 1fr 100px 120px 100px 100px 120px;
    padding: 16px 24px;
    background: var(--gray-800);
    font-weight: 600;
    font-size: 13px;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table-body {
    max-height: 600px;
    overflow-y: auto;
}

.table-body::-webkit-scrollbar {
    width: 8px;
}

.table-body::-webkit-scrollbar-track {
    background: var(--gray-900);
}

.table-body::-webkit-scrollbar-thumb {
    background: var(--gray-700);
    border-radius: 4px;
}

.table-row {
    display: grid;
    grid-template-columns: 80px 1fr 100px 120px 100px 100px 120px;
    padding: 16px 24px;
    border-bottom: 1px solid var(--gray-800);
    align-items: center;
    transition: background 0.2s ease;
}

.table-row:hover {
    background: rgba(99, 102, 241, 0.1);
}

.table-row:last-child {
    border-bottom: none;
}

.rank {
    font-size: 20px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rank-1 { color: #ffd700; }
.rank-2 { color: #c0c0c0; }
.rank-3 { color: #cd7f32; }

.rank-badge {
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 4px;
    background: var(--primary);
    color: white;
}

.agent-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.agent-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: var(--gray-800);
}

.agent-name {
    font-weight: 600;
    margin-bottom: 2px;
}

.agent-company {
    font-size: 12px;
    color: var(--gray-400);
}

.brand-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}

.brand-openai { background: rgba(16, 163, 74, 0.2); color: #10b981; }
.brand-anthropic { background: rgba(180, 120, 60, 0.2); color: #b4783c; }
.brand-google { background: rgba(66, 133, 244, 0.2); color: #4285f4; }
.brand-meta { background: rgba(0, 82, 255, 0.2); color: #0052ff; }
.brand-baidu { background: rgba(66, 114, 255, 0.2); color: #6672ff; }
.brand-alibaba { background: rgba(255, 102, 0, 0.2); color: #ff6600; }
.brand-microsoft { background: rgba(0, 120, 212, 0.2); color: #0078d4; }
.brand-zhipuai { background: rgba(255, 85, 0, 0.2); color: #ff5500; }
.brand-moonshot { background: rgba(255, 0, 128, 0.2); color: #ff0080; }
.brand-deepseek { background: rgba(50, 50, 100, 0.3); color: #9090d0; }
.brand-qwen { background: rgba(0, 180, 120, 0.2); color: #00b478; }
.brand-tencent { background: rgba(0, 200, 100, 0.2); color: #00c864; }
.brand-openclaw { background: rgba(255, 80, 80, 0.2); color: #ff5050; }
.brand-crewai { background: rgba(0, 200, 150, 0.2); color: #00c896; }
.brand-autogen { background: rgba(100, 100, 255, 0.2); color: #6464ff; }
.brand-langchain { background: rgba(45, 45, 55, 0.3); color: #ccccdd; }
.brand-dify { background: rgba(70, 130, 180, 0.2); color: #4682b4; }
.brand-coze { background: rgba(255, 165, 0, 0.2); color: #ffa500; }
.brand-n8n { background: rgba(80, 200, 120, 0.2); color: #50c878; }
.brand-fastgpt { background: rgba(255, 100, 150, 0.2); color: #ff6496; }
.brand-doubao { background: rgba(255, 50, 50, 0.2); color: #ff3232; }
.brand-tiangong { background: rgba(100, 149, 237, 0.2); color: #6495ed; }
.brand-sensetime { background: rgba(255, 100, 0, 0.2); color: #ff6400; }
.brand-minimax { background: rgba(0, 191, 255, 0.2); color: #00bfff; }
.brand-zhipu { background: rgba(255, 80, 150, 0.2); color: #ff5096; }

.type-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
}

.score {
    font-weight: 700;
    font-size: 16px;
}

.score-high { color: #ef4444; }
.score-medium { color: #f59e0b; }
.score-low { color: #10b981; }

.price {
    color: var(--gray-400);
    font-size: 14px;
}

.price-free {
    color: var(--success);
    font-weight: 500;
}

.date {
    color: var(--gray-400);
    font-size: 13px;
}

/* Feature Cards */
.features {
    margin-top: 60px;
    padding: 60px 0;
}

.features h3 {
    font-size: 32px;
    text-align: center;
    margin-bottom: 40px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--gray-900);
    border: 1px solid var(--gray-800);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 20px;
}

.feature-card h4 {
    font-size: 20px;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--gray-400);
    font-size: 15px;
}

/* Sidebar */
.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 32px;
    margin-top: 32px;
}

@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        order: -1;
    }
}

.sidebar h4 {
    font-size: 16px;
    margin-bottom: 16px;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-links {
    background: var(--gray-900);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--gray-800);
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    color: var(--gray-400);
    text-decoration: none;
    border-bottom: 1px solid var(--gray-800);
    transition: all 0.2s ease;
}

.sidebar-link:last-child {
    border-bottom: none;
}

.sidebar-link:hover {
    color: var(--primary);
    padding-left: 8px;
}

.sidebar-link-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--gray-800);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Table responsiveness */
@media (max-width: 900px) {
    .table-header, .table-row {
        grid-template-columns: 60px 1fr 80px 100px;
    }
    
    .table-header > *:nth-child(4),
    .table-header > *:nth-child(5),
    .table-row > *:nth-child(4),
    .table-row > *:nth-child(5) {
        display: none;
    }
}

/* Footer */
footer {
    margin-top: 80px;
    padding: 40px 0;
    border-top: 1px solid var(--gray-800);
    text-align: center;
    color: var(--gray-400);
}

footer p {
    margin-bottom: 8px;
}

footer a {
    color: var(--primary);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.table-row {
    animation: fadeIn 0.4s ease forwards;
}

.table-row:nth-child(1) { animation-delay: 0.05s; }
.table-row:nth-child(2) { animation-delay: 0.1s; }
.table-row:nth-child(3) { animation-delay: 0.15s; }
.table-row:nth-child(4) { animation-delay: 0.2s; }
.table-row:nth-child(5) { animation-delay: 0.25s; }
.table-row:nth-child(6) { animation-delay: 0.3s; }
.table-row:nth-child(7) { animation-delay: 0.35s; }
.table-row:nth-child(8) { animation-delay: 0.4s; }
.table-row:nth-child(9) { animation-delay: 0.45s; }
.table-row:nth-child(10) { animation-delay: 0.5s; }

/* Score Source Section */
.score-source {
    background: var(--gray-900);
    border-radius: 16px;
    border: 1px solid var(--gray-800);
    margin-top: 32px;
    overflow: hidden;
}

.score-source-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    background: var(--gray-800);
    border-bottom: 1px solid var(--gray-700);
}

.score-source-icon {
    font-size: 24px;
}

.score-source-header h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.score-source-content {
    padding: 24px;
    display: grid;
    gap: 24px;
}

.source-method h4,
.source-reference h4,
.source-disclaimer h4 {
    font-size: 15px;
    margin-bottom: 12px;
    color: var(--primary);
}

.source-method p {
    color: var(--gray-400);
    font-size: 14px;
    margin-bottom: 12px;
}

.source-method ul {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 8px;
}

.source-method li {
    color: var(--gray-300);
    font-size: 13px;
    padding-left: 20px;
    position: relative;
}

.source-method li::before {
    content: "•";
    position: absolute;
    left: 8px;
    color: var(--primary);
}

.source-method li strong {
    color: var(--white);
    font-weight: 500;
}

.source-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.source-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--gray-800);
    border-radius: 10px;
    color: var(--gray-300);
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s ease;
}

.source-item:hover {
    background: rgba(99, 102, 241, 0.2);
    color: var(--white);
    transform: translateY(-2px);
}

.source-icon {
    font-size: 18px;
}

.source-disclaimer {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 12px;
    padding: 16px 20px;
}

.source-disclaimer h4 {
    color: var(--warning);
}

.source-disclaimer p {
    color: var(--gray-400);
    font-size: 13px;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .score-source-content {
        padding: 16px;
    }
    
    .source-grid {
        grid-template-columns: 1fr;
    }
}

/* Ad Container */
.ad-container {
    margin: 24px 0;
    min-height: 90px;
    background: var(--gray-900);
    border-radius: 12px;
    border: 1px solid var(--gray-800);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-600);
    font-size: 14px;
}

.ad-container:empty::before {
    content: "广告位";
}
