/* Claude Code 风格配色 */
:root {
    --primary-color: #2d3748;
    --secondary-color: #4a5568;
    --accent-color: #3182ce;
    --background-color: #f7fafc;
    --surface-color: #ffffff;
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --border-color: #e2e8f0;
    --success-color: #38a169;
    --warning-color: #d69e2e;
    --error-color: #e53e3e;
    --shadow-light: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background-color);
}

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

/* 头部样式 */
.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
    margin-bottom: 40px;
}

.header-content {
    max-width: 800px;
    margin: 0 auto;
}

.logo {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 16px;
    background: linear-gradient(45deg, #fff, #e2e8f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    opacity: 0.9;
    margin-bottom: 20px;
}

.brand-tagline {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 20px;
}

.primary-service {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    display: inline-block;
    width: fit-content;
    margin: 0 auto;
}

.other-services {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
}

/* 主要内容区域 */
.main-content {
    margin-bottom: 60px;
}

/* 通用section样式 */
section {
    margin-bottom: 60px;
    padding: 40px;
    background: var(--surface-color);
    border-radius: 12px;
    box-shadow: var(--shadow-light);
}

section h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 30px;
    color: var(--text-primary);
    text-align: center;
}

/* 服务介绍区域 */
.service-description {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.feature-card {
    padding: 30px;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card.primary {
    border: 2px solid var(--accent-color);
    background: linear-gradient(135deg, var(--surface-color) 0%, rgba(49, 130, 206, 0.02) 100%);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.feature-card.primary:hover {
    box-shadow: 0 8px 25px rgba(49, 130, 206, 0.15);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* 教程区域 */
.tutorial-steps {
    display: grid;
    gap: 30px;
    margin-top: 40px;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 30px;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: box-shadow 0.2s ease;
}

.step:hover {
    box-shadow: var(--shadow-light);
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 600;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.step-content p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* 环境变量配置详情 */
.config-details {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.config-details h3 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
    text-align: center;
}

.config-intro {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

/* 标签页样式 */
.config-tabs {
    max-width: 800px;
    margin: 0 auto;
}

.tab-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.tab-btn {
    padding: 12px 24px;
    background: var(--surface-color);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.tab-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.tab-btn.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
}

.tab-content {
    position: relative;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-pane.active {
    display: block;
}

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

/* 代码块样式 */
.code-block {
    background: var(--primary-color);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: var(--shadow-medium);
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.code-title {
    color: #e2e8f0;
    font-size: 0.9rem;
    font-weight: 500;
}

.copy-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #e2e8f0;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.copy-btn.copied {
    background: var(--success-color);
    border-color: var(--success-color);
    color: white;
}

.code-content {
    padding: 20px;
    margin: 0;
    background: var(--primary-color);
    color: #e2e8f0;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    overflow-x: auto;
}

.code-content code {
    background: none;
    color: inherit;
    padding: 0;
    font-size: inherit;
}

/* 配置说明样式 */
.config-notes {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.config-notes h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.config-notes ul {
    list-style: none;
    padding: 0;
}

.config-notes li {
    padding: 8px 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 20px;
    line-height: 1.6;
}

.config-notes li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

.config-notes code {
    background: var(--background-color);
    color: var(--accent-color);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

/* 其他平台服务区域 */
.other-platforms {
    background: var(--background-color);
    border: 1px solid var(--border-color);
    margin-bottom: 60px;
}

.platforms-header {
    text-align: center;
    padding: 30px 20px;
}

.platforms-intro {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 20px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.platforms-toggle {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: none; /* PC端默认隐藏 */
    align-items: center;
    gap: 8px;
    margin: 0 auto;
}

.platforms-toggle:hover {
    background: #2b6cb0;
    transform: translateY(-1px);
    box-shadow: var(--shadow-light);
}

.toggle-icon {
    transition: transform 0.2s ease;
}

.platforms-toggle.expanded .toggle-icon {
    transform: rotate(180deg);
}

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

.platform-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 18px;
    text-align: center;
    transition: all 0.2s ease;
    position: relative;
    opacity: 0.8;
}

.platform-card:hover {
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

.platform-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.platform-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.platform-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.4;
}

.platform-tag {
    display: inline-block;
    padding: 4px 8px;
    background: var(--success-color);
    color: white;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 4px;
    text-transform: uppercase;
}

.platform-card:last-child .platform-tag {
    background: var(--warning-color);
}

/* 拼车服务区域 */
.carpool-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.carpool-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.carpool-info ul {
    list-style: none;
    padding: 0;
}

.carpool-info li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    position: relative;
    padding-left: 24px;
}

.carpool-info li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

.carpool-info li:last-child {
    border-bottom: none;
}

.carpool-qr h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
    text-align: center;
}

/* 浮动二维码样式 */
.floating-qr-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
}

.floating-qr {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-heavy);
    width: 180px;
    pointer-events: auto;
    transition: all 0.3s ease;
    opacity: 0.95;
}

.floating-qr:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.floating-qr.left {
    left: 20px;
}

.floating-qr.right {
    right: 20px;
}

.floating-qr.hidden {
    transform: translateY(-50%) translateX(-100%);
    opacity: 0;
}

.floating-qr.right.hidden {
    transform: translateY(-50%) translateX(100%);
}

.qr-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--accent-color);
    color: white;
    border-radius: 12px 12px 0 0;
    font-size: 0.9rem;
    font-weight: 600;
}

.qr-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.qr-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.qr-content {
    padding: 16px;
}

.qr-content .qr-code {
    width: 120px;
    height: 120px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-content .qr-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: var(--shadow-light);
}

.qr-content .qr-code-placeholder {
    width: 120px;
    height: 120px;
    margin: 0 auto 12px;
    font-size: 0.8rem;
}

.qr-content .qr-code-placeholder span {
    font-size: 0.75rem;
}

.qr-content .qr-code-placeholder small {
    font-size: 0.65rem;
}

.qr-desc {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin: 0;
    line-height: 1.4;
}

/* 二维码占位样式 */
.qr-placeholder {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.qr-code {
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: var(--shadow-medium);
}

.qr-code-placeholder {
    width: 200px;
    height: 200px;
    background: linear-gradient(45deg, var(--border-color), #f1f5f9);
    border: 2px dashed var(--secondary-color);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-align: center;
}

.qr-code-placeholder span {
    font-weight: 500;
    margin-bottom: 8px;
}

.qr-code-placeholder small {
    font-size: 0.75rem;
    opacity: 0.7;
}

/* 联系区域 */
.contact-content {
    text-align: center;
    margin-top: 40px;
}

.contact-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* 页脚 */
.footer {
    background: var(--primary-color);
    color: white;
    text-align: center;
    padding: 30px 0;
    margin-top: 60px;
}

.footer p {
    opacity: 0.8;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .header {
        padding: 40px 0;
    }
    
    .logo {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    section {
        padding: 24px;
        margin-bottom: 40px;
    }
    
    section h2 {
        font-size: 1.5rem;
    }
    
    .features {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .carpool-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .step {
        flex-direction: column;
        text-align: center;
    }
    
    .step-number {
        align-self: center;
    }
    
    .qr-code-placeholder {
        width: 150px;
        height: 150px;
    }
    
    /* 配置详情响应式 */
    .config-details {
        margin-top: 30px;
        padding-top: 30px;
    }
    
    .config-details h3 {
        font-size: 1.5rem;
    }
    
    .tab-buttons {
        flex-direction: column;
        gap: 8px;
    }
    
    .tab-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .code-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .code-content {
        padding: 15px;
        font-size: 0.85rem;
    }
    
    .config-notes {
        padding: 15px;
    }
    
    /* 品牌标签响应式 */
    .brand-tagline {
        margin-top: 15px;
    }
    
    .primary-service {
        font-size: 1rem;
        padding: 6px 12px;
    }
    
    .other-services {
        font-size: 0.85rem;
    }
    
    /* 平台卡片响应式 */
    .platform-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .platform-card {
        padding: 15px;
    }
    
    /* 移动端平台折叠功能 */
    .platform-grid {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .platform-grid.expanded {
        max-height: 2000px;
    }
    
    .platforms-toggle {
        display: flex;
    }
    
    /* 浮动二维码移动端响应式 */
    .floating-qr {
        width: 140px;
    }
    
    .floating-qr.left {
        left: 10px;
    }
    
    .floating-qr.right {
        right: 10px;
    }
    
    .qr-content {
        padding: 12px;
    }
    
    .qr-content .qr-code-placeholder {
        width: 100px;
        height: 100px;
    }
    
    .qr-header {
        padding: 10px 12px;
        font-size: 0.8rem;
    }
    
    .qr-desc {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 30px 0;
    }
    
    .logo {
        font-size: 1.75rem;
    }
    
    section {
        padding: 20px;
    }
    
    .feature-card {
        padding: 20px;
    }
    
    .step {
        padding: 20px;
    }
    
    .qr-code-placeholder {
        width: 120px;
        height: 120px;
        font-size: 0.8rem;
    }
    
    /* 小屏幕隐藏浮动二维码 */
    .floating-qr {
        display: none;
    }
}
