/* ====== 通用基础样式 ====== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "SimSun", "STSong", "Noto Serif SC", serif;
    background-color: #1A1816;
    color: #E8E6E3;
    min-height: 100vh;
}

/* ====== 容器样式 ====== */
.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #FFFFFF;
    position: relative;
    overflow: hidden;
}

.container.helper-container {
    overflow-x: hidden;
}

/* ====== 顶部导航栏 ====== */
.header-banner {
    background: linear-gradient(135deg, #3A5BBD 0%, #6C63FF 100%);
    height: 64px;
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    box-shadow: 0 4px 12px rgba(58, 91, 189, 0.08);
}

.header-banner .logo {
    color: #FFFFFF;
    font-size: 24px;
    font-weight: 700;
}

.header-banner .phone {
    color: #FFFFFF;
    font-size: 18px;
    font-weight: 600;
}

.header-banner::before,
.header-banner::after {
    content: "";
}

/* ====== 内容包装器 ====== */
.content-wrapper {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 16px;
    position: relative;
    z-index: 1;
}

.tea-content {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 80px 40px;
    position: relative;
    z-index: 1;
}

/* ====== 背景卡片 ====== */
.app-info,
.helper-section {
    background: #FFFFFF;
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(58, 91, 189, 0.08);
    backdrop-filter: none;
}

.app-info {
    border-radius: 12px;
    padding: 64px 40px;
    text-align: center;
}

.app-info::before {
    content: "";
    display: none;
}

.app-info::after {
    content: "";
    display: none;
}

.helper-section {
    padding: 40px;
    margin-bottom: 48px;
}

/* ====== 标题样式 ====== */
.app-title {
    font-size: 48px;
    color: #1A1A1A;
    margin-bottom: 24px;
    font-weight: 700;
    text-shadow: none;
    letter-spacing: 0;
}

.page-title {
    font-size: 36px;
    color: #1A1A1A;
    margin: 32px 0;
    text-align: center;
    font-weight: 600;
    text-shadow: none;
    letter-spacing: 0;
}

.section-title {
    font-size: 24px;
    color: #1A1A1A;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid #3A5BBD;
    font-weight: 600;
}

/* ====== 描述文本 ====== */
.description {
    color: #4A4A4A;
    font-size: 16px;
    margin: 16px 0;
    line-height: 1.6;
}

/* ====== 代码块 ====== */
.code-block {
    background: #F0F4FF;
    border: 1px solid #E8EEF7;
    padding: 16px;
    border-radius: 6px;
    overflow-x: auto;
    margin: 16px 0;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #3A5BBD;
}

/* ====== API 端点 ====== */
.api-endpoint {
    background: #F0F4FF;
    border-left: 4px solid #3A5BBD;
    padding: 16px;
    margin: 16px 0;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 16px;
    color: #4A4A4A;
}

/* ====== 方法徽章 ====== */
.method-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: 600;
    margin-right: 8px;
    font-size: 14px;
}

.method-get {
    background: #E6F7FF;
    color: #1890FF;
    border: 1px solid #91D5FF;
}

.method-post {
    background: #E6F7FF;
    color: #1890FF;
    border: 1px solid #91D5FF;
}

/* ====== 按钮样式 ====== */
.tea-btn,
.helper-link {
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.tea-btn {
    padding: 12px 32px;
    background: #3A5BBD;
    border: none;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(58, 91, 189, 0.08);
}

.tea-btn:hover {
    background: #2A4BA8;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(58, 91, 189, 0.15);
}

.helper-link {
    padding: 12px 32px;
    background: #3A5BBD;
    border: none;
    font-size: 16px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(58, 91, 189, 0.08);
}

.helper-link:hover {
    background: #2A4BA8;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(58, 91, 189, 0.15);
}

/* ====== 链接组 ====== */
.link-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.tea-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 600px;
    margin: 0 auto;
}

/* ====== 特性列表 ====== */
.feature-list {
    list-style: none;
    margin: 24px 0;
}

.feature-list li {
    padding: 12px 0;
    padding-left: 32px;
    position: relative;
    color: #4A4A4A;
    font-size: 16px;
    line-height: 1.6;
}

.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #52C41A;
    font-weight: 700;
    font-size: 18px;
}

/* ====== 返回链接 ====== */
.back-link {
    display: inline-block;
    margin-bottom: 32px;
    color: #3A5BBD;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s;
    font-weight: 500;
}

.back-link:hover {
    color: #2A4BA8;
    text-decoration: underline;
}

/* ====== 底部样式 ====== */
.footer,
.footer-decoration {
    margin-top: 80px;
    padding: 48px 0;
    text-align: center;
    border-top: 1px solid #E8EEF7;
    position: relative;
    z-index: 1;
    background-color: #F0F4FF;
}

.footer {
    color: #8C8C8C;
    font-size: 16px;
    margin-top: 0;
    background-color: #2C2C2C;
    color: #FFFFFF;
}

.footer-decoration::before {
    content: "";
    display: none;
}

/* ====== 状态指示器 ====== */
.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    background: #F0F4FF;
    border: 1px solid #E8EEF7;
    border-radius: 6px;
    backdrop-filter: none;
    margin-bottom: 32px;
    color: #4A4A4A;
    font-size: 16px;
}

.status-dot {
    width: 12px;
    height: 12px;
    background: #52C41A;
    border-radius: 50%;
    animation: pulse 2s infinite;
    box-shadow: 0 0 8px rgba(82, 196, 26, 0.5);
}

/* ====== 动画效果 ====== */
@keyframes pulse {
    0%, 100% { 
        opacity: 1; 
        box-shadow: 0 0 8px rgba(82, 196, 26, 0.5);
    }
    50% { 
        opacity: 0.7; 
        box-shadow: 0 0 12px rgba(82, 196, 26, 0.8);
    }
}

@keyframes fadeInUp {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.app-info {
    animation: fadeInUp 0.6s ease-out;
}

/* ====== 装饰元素 ====== */
.decorative-dot {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #E8EEF7;
    border-radius: 50%;
    z-index: 0;
    display: none;
}

.decorative-dot:nth-child(1) { top: 10%; left: 10%; }
.decorative-dot:nth-child(2) { top: 20%; right: 15%; }
.decorative-dot:nth-child(3) { bottom: 15%; left: 20%; }
.decorative-dot:nth-child(4) { bottom: 30%; right: 10%; }

.tea-content > * {
    position: relative;
    z-index: 1;
}

/* ====== 响应式设计 ====== */
@media (max-width: 767px) {
    .header-banner {
        height: 56px;
        padding: 0 16px;
        flex-direction: column;
        gap: 8px;
    }
    
    .content-wrapper {
        padding: 0 16px;
    }
    
    .tea-content {
        padding: 40px 16px;
    }
    
    .app-info {
        padding: 40px 20px;
    }
    
    .app-title {
        font-size: 32px;
    }
    
    .page-title {
        font-size: 28px;
    }
    
    .helper-section {
        padding: 24px;
    }
    
    .tea-links,
    .link-group {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .tea-btn,
    .helper-link {
        width: 100%;
    }
}
