/* 我的页面样式 - 参考首页设计 */

/* 头部样式 - 参考首页设计 */
.header {
    width: 100% !important;
    padding: 0.5rem 1rem !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important; /* 更明显的阴影 */
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin: 0 auto !important;
    position: relative !important;
    z-index: 1000 !important;
}

.header .nav {
    display: flex;
    align-items: center;
}

/* Logo样式 - 参考首页设计 */
.header .logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-direction: row;
    flex-wrap: nowrap;
}

.header .logo img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.header .logo h1 {
    margin: 0;
    font-size: 1.8rem;
    color: #333;
    font-weight: 600;
    white-space: nowrap;
    writing-mode: horizontal-tb;
    text-orientation: mixed;
}

/* 主内容区域 - 与首页保持一致 */
.main-content {
    flex: 1 0 auto;
    padding: 2rem 0;
    background-color: #fff;
}

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

/* 区块样式 - 参考首页工具项设计 */
.account-section,
.plugin-section {
    background: #fff;
    border-radius: 5px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
    /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); */
}

.account-section:hover,
.plugin-section:hover {
    /* transform: translateY(-2px); */
    /* box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15); */
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

/* 账户信息卡片 - 优化间距和字体 */
.info-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-item {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #f5f5f5;
}

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

.info-item label {
    font-weight: 500;
    color: #666;
    width: 6rem;
    flex-shrink: 0;
    font-size: 1rem;
}

.info-value {
    color: #333;
    font-weight: 500;
    flex: 1;
    font-size: 1rem;
}

/* 插件功能卡片 - 优化间距和字体 */
.plugin-card {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.plugin-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    /* background: #f8f9fa; */
    border-radius: 5px;
    border-bottom: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

/* .plugin-item:hover {
    background: #f0f0f0;
    transform: translateY(-1px);
} */

.plugin-info h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.plugin-info p {
    color: #666;
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.5;
}

.plugin-status {
    display: flex;
    align-items: center;
    gap: 15px;
}

.status-text {
    font-size: 14px;
    font-weight: 500;
}

.status-text.active {
    color: #28a745;
}

.status-text.inactive {
    color: #6c757d;
}

/* 按钮样式已迁移到 base.css，项目范围内通用 */

/* 响应式设计 - 参考基础样式 */
@media (max-width: 768px) {
    .main-content {
        padding: 1.5rem 0;
    }

    .container {
        padding: 0 1rem;
    }

    .account-section,
    .plugin-section {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .plugin-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .plugin-status {
        width: 100%;
        justify-content: space-between;
    }

    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .info-item label {
        width: auto;
    }
}

/* 加载状态 */
.loading {
    color: #6c757d;
    font-style: italic;
}

.error {
    color: #dc3545;
    font-weight: 500;
}

/* 页面标题 */
.page-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 2rem;
    padding: 1rem 0;
}

/* 状态标签样式优化 */
.status-text {
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    background-color: #f8f9fa;
}

.status-text.active {
    color: #28a745;
    background-color: rgba(40, 167, 69, 0.1);
}

.status-text.inactive {
    color: #6c757d;
    background-color: rgba(108, 117, 125, 0.1);
}
