/* ====== 通用基础样式 ====== */
* {
    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: #1A1816;
    position: relative;
    overflow: hidden;
}

.container.helper-container {
    overflow-x: hidden;
}

/* ====== 顶部装饰性横幅 ====== */
.header-banner {
    background: linear-gradient(to right, transparent, #2A5CAA, transparent);
    height: 3px;
    position: relative;
    z-index: 1;
}

.header-banner::before,
.header-banner::after {
    content: "❈";
    position: absolute;
    top: -12px;
    color: #D4AF37;
    font-size: 20px;
}

.header-banner::before {
    left: 0;
}

.header-banner::after {
    right: 0;
}

/* ====== 内容包装器 ====== */
.content-wrapper {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.tea-content {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

/* ====== 背景卡片 ====== */
.app-info,
.helper-section {
    background: rgba(30, 28, 26, 0.9);
    border: 1px solid #3A332E;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
}

.app-info {
    border-radius: 12px;
    padding: 60px 50px;
    text-align: center;
}

.app-info::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 20%;
    right: 20%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #D4AF37, transparent);
}

.app-info::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 20%;
    right: 20%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #D4AF37, transparent);
}

.helper-section {
    padding: 30px;
    margin-bottom: 25px;
}

/* ====== 标题样式 ====== */
.app-title {
    font-size: 3.5rem;
    color: #FFFFFF;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    letter-spacing: 3px;
}

.page-title {
    font-size: 2.5rem;
    color: #FFFFFF;
    margin: 20px 0;
    text-align: center;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    letter-spacing: 2px;
}

.section-title {
    font-size: 1.5rem;
    color: #D4AF37;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}

/* ====== 描述文本 ====== */
.description {
    color: #B8B6B3;
    font-size: 0.95rem;
    margin: 10px 0;
    line-height: 1.6;
}

/* ====== 代码块 ====== */
.code-block {
    background: rgba(20, 18, 16, 0.9);
    border: 1px solid #3A332E;
    padding: 15px;
    border-radius: 4px;
    overflow-x: auto;
    margin: 10px 0;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #90EE90;
}

/* ====== API 端点 ====== */
.api-endpoint {
    background: rgba(20, 18, 16, 0.8);
    border-left: 3px solid #2A5CAA;
    padding: 15px;
    margin: 15px 0;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
}

/* ====== 方法徽章 ====== */
.method-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-weight: 600;
    margin-right: 10px;
    font-size: 0.85rem;
}

.method-get {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
    border: 1px solid #4CAF50;
}

.method-post {
    background: rgba(33, 150, 243, 0.2);
    color: #2196F3;
    border: 1px solid #2196F3;
}

/* ====== 按钮样式 ====== */
.tea-btn,
.helper-link {
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
}

.tea-btn {
    padding: 16px 24px;
    background: linear-gradient(135deg, rgba(30, 28, 26, 0.9), rgba(40, 36, 34, 0.9));
    border: 1px solid rgba(212, 175, 55, 0.2);
    font-size: 1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.tea-btn:hover {
    background: linear-gradient(135deg, rgba(40, 36, 34, 0.95), rgba(30, 28, 26, 0.95));
    border-color: #D4AF37;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.2);
}

.helper-link {
    padding: 12px 20px;
    background: linear-gradient(135deg, rgba(40, 36, 34, 0.9), rgba(30, 28, 26, 0.9));
    border: 1px solid rgba(212, 175, 55, 0.2);
    font-size: 0.95rem;
}

.helper-link:hover {
    background: linear-gradient(135deg, rgba(50, 46, 44, 0.95), rgba(40, 36, 34, 0.95));
    border-color: #D4AF37;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
}

/* ====== 链接组 ====== */
.link-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.tea-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
}

/* ====== 特性列表 ====== */
.feature-list {
    list-style: none;
    margin: 15px 0;
}

.feature-list li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: #B8B6B3;
}

.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #4CAF50;
    font-weight: 600;
}

/* ====== 返回链接 ====== */
.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: #2A5CAA;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.back-link:hover {
    color: #D4AF37;
}

/* ====== 底部样式 ====== */
.footer,
.footer-decoration {
    margin-top: 4rem;
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid #3A332E;
    position: relative;
    z-index: 1;
}

.footer {
    color: #888;
    font-size: 0.9rem;
    margin-top: 40px;
}

.footer-decoration::before {
    content: "❦";
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #1A1816;
    color: #D4AF37;
    font-size: 24px;
    padding: 0 20px;
}

/* ====== 状态指示器 ====== */
.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 30px;
    background: rgba(30, 28, 26, 0.8);
    border: 1px solid rgba(42, 92, 170, 0.4);
    border-radius: 25px;
    backdrop-filter: blur(10px);
    margin-bottom: 4rem;
}

.status-dot {
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    border-radius: 50%;
    animation: pulse 2s infinite;
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.5);
}

/* ====== 动画效果 ====== */
@keyframes pulse {
    0%, 100% { 
        opacity: 1; 
        box-shadow: 0 0 8px rgba(76, 175, 80, 0.5);
    }
    50% { 
        opacity: 0.7; 
        box-shadow: 0 0 12px rgba(76, 175, 80, 0.8);
    }
}

@keyframes fadeInUp {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.app-info {
    animation: fadeInUp 0.8s ease-out;
}

/* ====== 装饰元素 ====== */
.decorative-dot {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    z-index: 0;
}

.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: 768px) {
    .app-info {
        padding: 40px 20px;
    }
    
    .app-title {
        font-size: 2.5rem;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
    
    .helper-section {
        padding: 20px;
    }
    
    .tea-links,
    .link-group {
        grid-template-columns: 1fr;
    }
    
    .version-grid {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
        gap: 10px;
    }
}
