:root {
    --primary-color: #3b82f6;
    --secondary-color: #2563eb;
    --light-bg: #ffffff;
    --dark-bg: #111827;
    --text-color: #374151;
    --light-text: #f8fafc;
    --border-radius: 4px;
    --box-shadow: none;
    --transition: all 0.2s ease;
}

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

body {
    font-family: 'Inter', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
    min-height: 100vh;
}

#app {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    /* border-bottom: 1px solid #f1f5f9; */
}

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

.logo-container i {
    font-size: 24px;
    color: var(--primary-color);
}

h1 {
    color: var(--dark-bg);
    font-size: 24px;
    font-weight: 600;
}

.view-toggle {
    display: flex;
}

button {
    padding: 8px 16px;
    background-color: transparent;
    border: 1px solid #e5e7eb;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-color);
}

button i {
    font-size: 16px;
}

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

button:hover:not(.active) {
    background-color: #f1f5f9;
}

/* 加载动画简化 */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
    gap: 16px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f4f6;
    border-left-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.loading-container p {
    color: #6b7280;
    font-size: 14px;
}

/* Tabs 简化样式 */
.tabs-container {
    background: transparent;
    border: none;
    overflow: hidden;
}

.tabs-header {
    display: flex;
    overflow-x: auto;
    background-color: transparent;
    border-bottom: 1px solid #a2c1ff;
    padding: 0;
}

.tab {
    padding: 12px 20px;
    white-space: nowrap;
    cursor: pointer;
    font-weight: 500;
    color: #6b7280;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    background: transparent;
}

.tab i {
    font-size: 16px;
    color: #6b7280;
}

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

.tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background-color: transparent;
}

.tab.active i {
    color: var(--primary-color);
}

.tabs-content {
    padding: 0;
}

.tab-panel {
    padding: 16px 0;
}

.services-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* 服务卡片极简风格 */
.service-card {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
    border-bottom: 1px solid #dbdbdb;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 12px 15px;
    margin-bottom: 5px;
    transition: var(--transition);
}

.service-card:hover {
    background-color: #e7f1ff;
    border-radius: 4px;
}

.service-header {
    padding: 10px 0;
    border-bottom: none;
    background: transparent;
    margin-bottom: 12px;
}

.service-header h3 {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-color);
    margin: 0;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-header h3 i {
    font-size: 18px;
    color: var(--primary-color);
}

.service-types {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.service-type {
    display: inline-block;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 2px;
    background-color: #fae9ff;
    font-weight: 400;
}

/* 链接样式极简化 */
.service-links {
    padding: 0;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 10px;
}

.service-link {
    display: flex !important;
    padding: 0;
    border-radius: 0;
    background-color: transparent;
    box-shadow: none;
    width: 100%;
    border: none;
}

.service-link:hover {
    transform: none;
    box-shadow: none;
}

.service-link-content {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.env-label {
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 2px;
    color: white;
    font-weight: 500;
    background: var(--primary-color);
    min-width: 70px;
    text-align: center;
    box-shadow: none;
}

/* 不同环境的标记颜色 */
.env-label.env-test {
    background: #ffadad;
}

.env-label.env-prod {
    background: #029525;
}

.link-container {
    flex: 1;
    display: flex;
    align-items: center;
    width: 100%;
}

.url-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    text-decoration: none;
    color: #4b5563;
    font-weight: 400;
    transition: var(--transition);
    padding: 4px 0;
    max-width: 100%;
    overflow: hidden;
    border-radius: 0;
    background-color: transparent;
    border: none;
    width: 100%;
}

.url-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: inline-block;
    font-family: monospace;
    font-size: 13px;
}

.url-link i {
    font-size: 16px;
    flex-shrink: 0;
    color: #9ca3af;
}

.url-link:hover {
    text-decoration: underline;
    background-color: transparent;
    color: var(--primary-color);
}

.url-link:hover i {
    color: var(--primary-color);
}

footer {
    margin-top: 40px;
    padding: 15px 0;
    text-align: center;
    color: #9ca3af;
    font-size: 13px;
    border-top: 1px solid #f1f5f9;
}

footer i {
    margin-right: 3px;
    font-size: 14px;
    vertical-align: -1px;
}

/* 配置示例部分简化 */
.config-example {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: none;
    overflow: hidden;
}

.config-header {
    padding: 16px 20px;
    background: #f8fafc;
    color: var(--text-color);
    border-bottom: 1px solid #e5e7eb;
}

.config-header h2 {
    margin-bottom: 6px;
    font-size: 18px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.config-header h2 i {
    font-size: 18px;
    color: var(--primary-color);
}

.config-header p {
    font-size: 14px;
    line-height: 1.5;
    color: #6b7280;
}

.config-tabs {
    display: flex;
    background-color: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    overflow-x: auto;
}

.config-tab {
    padding: 12px 18px;
    white-space: nowrap;
    cursor: pointer;
    font-weight: 400;
    color: #6b7280;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

.config-tab i {
    font-size: 16px;
    color: #9ca3af;
}

.config-tab:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.config-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background-color: rgba(59, 130, 246, 0.05);
}

.config-tab.active i {
    color: var(--primary-color);
}

.config-panel {
    background-color: #1e293b;
    padding: 20px;
}

.config-panel pre {
    margin: 0;
    overflow-x: auto;
}

.config-panel pre code {
    color: #ffffff;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', monospace;
    font-size: 14px;
    line-height: 1.5;
    display: block;
    width: 100%;
}

@media (max-width: 768px) {
    .services-container {
        grid-template-columns: 1fr;
    }
    
    header {
        flex-direction: row;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 16px;
    }
    
    h1 {
        font-size: 20px;
    }
    
    .tab, .config-tab {
        padding: 10px 16px;
    }
} 