/* ============================================
   Member 页面通用样式
   奶油白风格
   ============================================ */

.member-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px;
}

.tabs-wrapper {
    background: #fff;
    border-radius: 20px 20px 0 0;
    padding: 0 32px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-bottom: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    overflow-x: auto;
}

.tabs-nav {
    display: flex;
    gap: 0;
    border-bottom: 1px solid #f0ece0;
    scrollbar-width: none;
}

.tabs-nav::-webkit-scrollbar {
    display: none;
}

.tab-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 20px;
    background: transparent;
    border: none;
    color: #8a8a96;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    white-space: nowrap;
    cursor: pointer;
}

.tab-link .icon {
    display: inline-flex;
    width: 18px;
    height: 18px;
}

.tab-link .icon svg {
    width: 100%;
    height: 100%;
    stroke-width: 1.8;
}

.tab-link:hover {
    color: #b8953d;
    background: rgba(184, 149, 61, 0.04);
}

.tab-link.active {
    color: #b8953d;
    border-bottom-color: #b8953d;
    background: rgba(184, 149, 61, 0.06);
    font-weight: 600;
}

.tab-link .icon {
    margin-right: 8px;
}

.content-area {
    background: #fff;
    border-radius: 0 0 20px 20px;
    padding: 32px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-top: none;
    min-height: 400px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.section-title {
    color: #1a1a1f;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.01em;
}

/* ===== 历史记录页 ===== */
.history-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.history-item {
    background: #faf8f3;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.history-item:hover {
    background: #f5f1e8;
    border-color: rgba(184, 149, 61, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.history-type {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(184, 149, 61, 0.1);
    color: #b8953d;
    font-weight: 500;
}

.history-type.rewrite {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.history-date {
    font-size: 13px;
    color: #9a9aa6;
}

.history-product {
    font-size: 17px;
    font-weight: 600;
    color: #1a1a1f;
    margin-bottom: 6px;
}

.history-meta {
    font-size: 13px;
    color: #8a8a96;
}

.history-preview {
    font-size: 13px;
    color: #8a8a96;
    margin-top: 10px;
    line-height: 1.7;
    max-height: 56px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #9a9aa6;
}

.empty-state .icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.history-detail {
    display: none;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f0ece0;
}

.history-detail.show {
    display: block;
}

.detail-copy {
    background: #faf8f3;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.7;
    white-space: pre-wrap;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
    color: #1a1a1f;
}

.detail-copy .copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(184, 149, 61, 0.15);
    border: none;
    color: #b8953d;
    padding: 5px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.2s;
    font-weight: 500;
}

.detail-copy .copy-btn:hover {
    background: rgba(184, 149, 61, 0.25);
}

.detail-label {
    font-size: 12px;
    color: #b8953d;
    margin-bottom: 6px;
    font-weight: 500;
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .member-container {
        padding: 24px 16px;
    }
    
    .tabs-wrapper {
        padding: 0 16px;
        border-radius: 16px 16px 0 0;
    }
    
    .tab-link {
        padding: 14px 16px;
        font-size: 13px;
    }
    
    .content-area {
        padding: 24px 20px;
        border-radius: 0 0 16px 16px;
    }
}
