/**
 * main.css
 * 主样式文件，包含全局样式定义
 */

/* 隐藏重复的订阅控制按钮 */
.subscription-controls {
    display: none !important;
}

/* 移除固定宽度限制，使用更灵活的布局 */
.container {
    width: 95% !important;
    max-width: none !important;
}

/* 增加内容区域的内边距和流体布局 */
.section {
    padding: 1.5rem 1.5rem;
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .container {
        width: 100% !important;
        padding: 0 0.75rem;
    }
}

/* 系统按钮样式 */
.system-buttons {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.system-buttons .button {
    margin-left: 0.5rem;
    color: white !important;
}

#clear-cache-btn {
    background-color: #f39c12 !important;
}

#clear-nodes-btn {
    background-color: #e74c3c !important;
}

#clear-subs-btn {
    background-color: #c0392b !important;
}

/* 标签页样式 */
.tabs-content > div {
    display: none;
}

.tabs-content > div.is-active {
    display: block;
}

/* 加载指示器样式 */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 页面头部样式 */
.app-header {
    background-color: var(--primary-color, #3273dc);
    color: white;
    padding: 1rem 0;
}

.app-title {
    display: flex;
    align-items: center;
}

.app-title h1 {
    font-size: 1.5rem;
    margin-left: 0.5rem;
    font-weight: bold;
}

/* 页脚样式 */
.footer {
    background-color: #f5f5f5;
    padding: 2rem 1.5rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.footer-icon {
    margin-right: 0.5rem;
    color: var(--primary-color, #3273dc);
}

.footer-title {
    font-size: 1.2rem;
}

.footer-copyright {
    margin-bottom: 1rem;
    color: #777;
}

.footer-divider {
    margin: 0 0.5rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.footer-link {
    color: #666;
    transition: color 0.2s;
}

.footer-link:hover {
    color: var(--primary-color, #3273dc);
}

/* 模态框样式修复 */
.modal {
    display: none;
}

.modal.is-active {
    display: flex !important;
}

.large-modal {
    width: 90%;
    max-width: 980px;
    max-height: 90vh;
}

.modal .tab-content {
    display: none;
}

.modal .tab-content.is-active {
    display: block;
}

.modal-card-body {
    max-height: 70vh;
    overflow-y: auto;
}

.node-list-container {
    overflow-x: auto;
}

.content-viewer textarea {
    font-family: monospace;
    min-height: 300px;
}