/* TeamSpeak 频道管理 - 样式表 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    min-height: 100vh;
    font-family: "HarmonyOS Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    overflow-y: auto;
    overflow-x: hidden;
}

.bg-all #bg {
    filter: none !important;
    transform: scale(1) !important;
}

section.tab-content {
    position: static;
    width: auto;
    height: auto;
    min-height: 0;
    transform: none;
    opacity: 1;
    filter: none;
    transition: none;
}

/* 导航栏 */
.navbar-custom {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 0 !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.back-link {
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.back-link:hover {
    color: #f0f0f0;
    transform: translateX(-3px);
}

.navbar-text {
    font-weight: 600;
    font-size: 0.95rem;
}

/* 主容器 */
.ts-wrapper {
    display: flex;
    height: calc(100vh - 70px);
    overflow: hidden;
}

/* 侧边栏 */
.ts-sidebar {
    width: 280px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 0;
    color: white;
    overflow-y: auto;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.15);
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 1.5rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1.5rem;
}

.sidebar-header i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #a8d8ff;
}

.sidebar-header h2 {
    font-size: 1.2rem;
    font-weight: 700;
    text-align: center;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    cursor: pointer;
}

.sidebar-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-left-color: #a8d8ff;
}

.sidebar-item.active {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border-left-color: #fff;
    font-weight: 600;
}

.sidebar-item i {
    font-size: 1.1rem;
    min-width: 1.2rem;
}

/* 内容区域 */
.ts-content {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.1);
}

.dev-notice {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
    padding: 1rem 1.1rem;
    border-radius: 12px;
    color: #fff;
    background: rgba(220, 53, 69, 0.35);
    border: 2px solid rgba(255, 120, 120, 0.8);
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.2);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 10px;
    z-index: 20;
}

.dev-notice i {
    color: #ffd6d6;
    font-size: 1.1rem;
    margin-top: 0.1rem;
}

.dev-notice-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.dev-notice-text strong {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.dev-notice-text span {
    font-size: 0.9rem;
    opacity: 0.95;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-header {
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.section-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

/* 表单 */
.form-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-row.full {
    grid-template-columns: 1fr;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-label i {
    margin-right: 0.5rem;
    color: #667eea;
}

.form-control {
    padding: 0.75rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
}

.form-control::placeholder {
    color: #999;
}

.form-hint {
    color: #999;
    font-size: 0.85rem;
    margin-top: 0.3rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-submit {
    flex: 1;
    padding: 0.9rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(102, 126, 234, 0.4);
}

.btn-submit:active {
    transform: translateY(0);
}

.loading-spinner {
    display: none;
    text-align: center;
}

.loading-spinner .spinner-border {
    width: 2rem;
    height: 2rem;
    border-color: #667eea;
    border-right-color: transparent;
}

.loading-spinner p {
    margin-top: 0.5rem;
    color: #667eea;
    font-size: 0.9rem;
}

/* 频道网格 */
.channels-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.empty-state {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 4rem 2rem;
    text-align: center;
    color: #999;
}

.empty-state i {
    font-size: 3rem;
    color: #ddd;
    margin-bottom: 1rem;
    display: block;
}

.empty-state p {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #666;
}

.empty-state small {
    color: #999;
}

.channel-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #667eea;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.channel-card:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.2);
}

.channel-info {
    flex: 1;
}

.channel-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.3rem;
}

.channel-detail {
    font-size: 0.85rem;
    color: #999;
    margin-top: 0.3rem;
}

.channel-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.badge-password {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    white-space: nowrap;
}

.btn-delete {
    padding: 0.5rem 1rem;
    background: #ff6b6b;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-delete:hover {
    background: #ee5a52;
    transform: scale(1.05);
}

/* 使用指南 */
.guide-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.step-item {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    gap: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.step-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.2);
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.step-content h4 {
    font-size: 1rem;
    color: #333;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.step-content i {
    margin-right: 0.5rem;
    color: #667eea;
}

.step-content p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

.link-highlight {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.link-highlight:hover {
    color: #764ba2;
    text-decoration: underline;
}

.code-highlight {
    background: #f0f0f0;
    color: #667eea;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-weight: 600;
}

/* 提示框 */
.guide-tips {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.tip-item {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tip-item i {
    font-size: 1.5rem;
    color: #667eea;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.tip-item h5 {
    font-size: 0.95rem;
    color: #333;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.tip-item p {
    color: #666;
    font-size: 0.85rem;
    margin: 0;
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* 响应式布局 */
@media (max-width: 1024px) {
    .ts-sidebar {
        width: 240px;
    }

    .ts-content {
        padding: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .guide-tips {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .ts-wrapper {
        flex-direction: column;
    }

    .ts-sidebar {
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 1rem 0;
    }

    .sidebar-nav {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0;
    }

    .sidebar-item {
        padding: 0.8rem 1rem;
        justify-content: center;
        flex-direction: column;
        text-align: center;
        border-left: none;
        border-bottom: 3px solid transparent;
    }

    .sidebar-item:hover,
    .sidebar-item.active {
        border-left: none;
        border-bottom-color: #a8d8ff;
    }

    .sidebar-item span {
        font-size: 0.8rem;
    }

    .ts-content {
        padding: 1rem;
    }

    .dev-notice {
        padding: 0.8rem 0.9rem;
        top: 6px;
    }

    .dev-notice-text strong {
        font-size: 0.95rem;
    }

    .dev-notice-text span {
        font-size: 0.84rem;
    }

    .section-header h2 {
        font-size: 1.3rem;
    }

    .form-container {
        padding: 1.5rem;
    }

    .form-row {
        gap: 1rem;
        margin-bottom: 1rem;
    }

    .step-item {
        padding: 1rem;
        gap: 1rem;
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .step-content h4 {
        font-size: 0.95rem;
    }

    .channel-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .channel-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

@media (max-width: 480px) {
    .sidebar-nav {
        grid-template-columns: 1fr;
    }

    .sidebar-item {
        justify-content: flex-start;
        padding: 0.8rem 1rem;
        flex-direction: row;
    }

    .sidebar-item span {
        font-size: 0.9rem;
    }

    .section-header h2 {
        font-size: 1.1rem;
    }

    .form-container {
        padding: 1rem;
    }

    .guide-tips {
        grid-template-columns: 1fr;
    }

    .tip-item {
        padding: 1rem;
    }

    .step-item {
        flex-direction: column;
        gap: 0.8rem;
    }
}

