/* 腾讯云风格 - 用户区统一样式（满屏布局 + 直角设计） */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 腾讯云主色调 */
    --tc-primary: #0052d9;
    --tc-primary-hover: #266fe8;
    --tc-primary-active: #003eb3;
    --tc-primary-light: #e8f4ff;
    --tc-primary-lighter: #f0f7ff;
    
    /* 辅助色 */
    --tc-success: #00a854;
    --tc-success-light: #e8f8f0;
    --tc-warning: #ffa726;
    --tc-warning-light: #fff7e6;
    --tc-error: #ff4d4f;
    --tc-error-light: #fff1f0;
    --tc-info: #1890ff;
    --tc-info-light: #e6f7ff;
    
    /* 中性色 */
    --tc-bg: #f5f7fa;
    --tc-bg-secondary: #fafbfc;
    --tc-white: #ffffff;
    --tc-border: #e4e7ed;
    --tc-border-light: #ebeef5;
    --tc-border-lighter: #f2f6fc;
    
    /* 文字颜色 */
    --tc-text-primary: #303133;
    --tc-text-regular: #606266;
    --tc-text-secondary: #909399;
    --tc-text-placeholder: #c0c4cc;
    --tc-text-disabled: #c0c4cc;
    
    /* 阴影 */
    --tc-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --tc-shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.06);
    --tc-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --tc-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --tc-shadow-xl: 0 12px 32px rgba(0, 0, 0, 0.16);
    
    /* 间距 */
    --tc-spacing-xs: 4px;
    --tc-spacing-sm: 8px;
    --tc-spacing-md: 16px;
    --tc-spacing-lg: 24px;
    --tc-spacing-xl: 32px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: var(--tc-bg);
    color: var(--tc-text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 12px;
}

/* 导航栏 - 满屏 */
.tc-header {
    background: var(--tc-white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid var(--tc-border-light);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.tc-navbar {
    width: 100%;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 56px;
}

.tc-logo {
    display: flex;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
    color: var(--tc-primary);
    text-decoration: none;
    gap: 8px;
    transition: opacity 0.3s;
}

.tc-logo:hover {
    opacity: 0.8;
}

.tc-logo i {
    font-size: 20px;
    color: var(--tc-primary);
}

.tc-nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
    align-items: center;
}

.tc-nav-links a {
    color: var(--tc-text-regular);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
    padding: 6px 0;
}

.tc-nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--tc-primary);
    transition: width 0.3s;
}

.tc-nav-links a:hover {
    color: var(--tc-primary);
}

.tc-nav-links a:hover::after {
    width: 100%;
}

/* 主容器 - 满屏 */
.tc-container {
    width: 100%;
    padding: 0;
}

/* 用户布局 - 满屏 */
.tc-user-layout {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 0;
    min-height: calc(100vh - 56px);
}

/* 侧边栏 - 深色主题设计（参考腾讯云） */
.tc-sidebar {
    background: #1d1e24;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0;
    height: 100%;
    position: sticky;
    top: 56px;
    overflow-y: auto;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.3);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.tc-sidebar::-webkit-scrollbar {
    width: 4px;
}

.tc-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.tc-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 0;
}

.tc-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.tc-sidebar-menu {
    list-style: none;
    padding: 12px 0;
    margin: 0;
}

.tc-sidebar-menu li {
    margin: 0;
    padding: 0 8px;
}

.tc-sidebar-menu li + li {
    margin-top: 2px;
}

.tc-sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    font-size: 13px;
    line-height: 1.5;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    font-weight: 400;
    border-radius: 0;
    margin: 0;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    letter-spacing: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}

.tc-sidebar-menu a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: var(--tc-primary);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

.tc-sidebar-menu a i {
    font-size: 14px;
    width: 18px;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.2s;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.tc-sidebar-menu a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.tc-sidebar-menu a:hover::before {
    width: 2px;
    opacity: 1;
}

.tc-sidebar-menu a:hover i {
    color: #ffffff;
    opacity: 1;
}

.tc-sidebar-menu a.active {
    color: #ffffff;
    font-weight: 500;
    background: var(--tc-primary);
    border-left: 2px solid var(--tc-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    letter-spacing: 0;
    text-shadow: none;
}

.tc-sidebar-menu a.active::before {
    width: 2px;
    height: 100%;
    opacity: 1;
    background: var(--tc-primary);
}

.tc-sidebar-menu a.active i {
    color: #ffffff;
    opacity: 1;
    font-weight: normal;
}

/* 主内容区 - 满屏 */
.tc-main-content {
    background: var(--tc-bg);
    padding: 20px 24px;
    min-height: calc(100vh - 56px);
    width: 100%;
}

.tc-page-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--tc-text-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.3px;
}

.tc-page-title i {
    color: var(--tc-primary);
    font-size: 18px;
}

/* 统计卡片 - 直角 */
.tc-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.tc-stat-card {
    background: linear-gradient(135deg, var(--tc-primary) 0%, var(--tc-primary-active) 100%);
    color: var(--tc-white);
    padding: 16px 20px;
    border-radius: 0;
    box-shadow: var(--tc-shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tc-stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.1); }
}

.tc-stat-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: var(--tc-shadow-xl);
}

.tc-stat-card h3 {
    font-size: 12px;
    opacity: 0.95;
    margin-bottom: 8px;
    font-weight: 500;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.tc-stat-card .value {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tc-stat-card.success {
    background: linear-gradient(135deg, var(--tc-success) 0%, #008f4c 100%);
}

.tc-stat-card.warning {
    background: linear-gradient(135deg, var(--tc-warning) 0%, #ff9800 100%);
}

.tc-stat-card.error {
    background: linear-gradient(135deg, var(--tc-error) 0%, #e63946 100%);
}

.tc-stat-card.purple {
    background: linear-gradient(135deg, #722ed1 0%, #531dab 100%);
}

/* 表格 - 腾讯云风格 */
.tc-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 0;
    background: var(--tc-white);
    border: none;
}

.tc-table th,
.tc-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid var(--tc-border-light);
}

.tc-table th {
    background: #fafbfc;
    font-weight: 600;
    color: var(--tc-text-primary);
    font-size: 12px;
    padding: 10px 12px;
    position: sticky;
    top: 0;
    z-index: 10;
    white-space: nowrap;
}

.tc-table td {
    color: var(--tc-text-primary);
    font-size: 12px;
    padding: 10px 12px;
    background: var(--tc-white);
}

.tc-table tbody tr {
    transition: background 0.2s;
}

.tc-table tbody tr:hover {
    background: #f5f7fa;
}

.tc-table tbody tr:last-child td {
    border-bottom: none;
}

.tc-table a {
    color: var(--tc-primary);
    text-decoration: none;
    transition: color 0.2s;
}

.tc-table a:hover {
    color: var(--tc-primary-hover);
    text-decoration: underline;
}

/* 按钮 - 直角 */
.tc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px 16px;
    border: none;
    border-radius: 0;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    height: 32px;
}

.tc-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.tc-btn:hover::before {
    width: 300px;
    height: 300px;
}

.tc-btn-primary {
    background: var(--tc-primary);
    color: var(--tc-white);
    box-shadow: 0 2px 8px rgba(0, 82, 217, 0.2);
}

.tc-btn-primary:hover {
    background: var(--tc-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 82, 217, 0.3);
}

.tc-btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 82, 217, 0.2);
}

.tc-btn-success {
    background: var(--tc-success);
    color: var(--tc-white);
    box-shadow: 0 2px 8px rgba(0, 168, 84, 0.2);
}

.tc-btn-success:hover {
    background: #00c060;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 168, 84, 0.3);
}

.tc-btn-outline {
    background: transparent;
    color: var(--tc-primary);
    border: 1px solid var(--tc-primary);
}

.tc-btn-outline:hover {
    background: var(--tc-primary-light);
    border-color: var(--tc-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 82, 217, 0.1);
}

.tc-btn-sm {
    padding: 4px 12px;
    font-size: 12px;
    height: 28px;
}

/* 状态标签 - 直角 */
.tc-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 0;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
}

.tc-badge-success {
    background: var(--tc-success-light);
    color: var(--tc-success);
    border: 1px solid rgba(0, 168, 84, 0.2);
}

.tc-badge-warning {
    background: var(--tc-warning-light);
    color: #d48806;
    border: 1px solid rgba(255, 167, 38, 0.2);
}

.tc-badge-error {
    background: var(--tc-error-light);
    color: var(--tc-error);
    border: 1px solid rgba(255, 77, 79, 0.2);
}

.tc-badge-info {
    background: var(--tc-info-light);
    color: var(--tc-info);
    border: 1px solid rgba(24, 144, 255, 0.2);
}

.tc-badge-default {
    background: var(--tc-bg-secondary);
    color: var(--tc-text-secondary);
    border: 1px solid var(--tc-border);
}

/* 卡片 - 直角 */
.tc-card {
    background: var(--tc-white);
    border-radius: 0;
    box-shadow: var(--tc-shadow-sm);
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid var(--tc-border-light);
    transition: all 0.3s;
}

.tc-card:hover {
    box-shadow: var(--tc-shadow-md);
    border-color: var(--tc-border);
}

.tc-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--tc-border-lighter);
}

.tc-card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--tc-text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.tc-card-title i {
    color: var(--tc-primary);
    font-size: 14px;
}

/* 表单 - 直角 */
.tc-form-group {
    margin-bottom: 24px;
}

.tc-form-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--tc-text-primary);
    font-size: 14px;
}

.tc-form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--tc-border);
    border-radius: 0;
    font-size: 14px;
    transition: all 0.3s;
    background: var(--tc-white);
    color: var(--tc-text-primary);
}

.tc-form-input:focus {
    outline: none;
    border-color: var(--tc-primary);
    box-shadow: 0 0 0 3px var(--tc-primary-light);
}

.tc-form-input:disabled {
    background: var(--tc-bg-secondary);
    color: var(--tc-text-disabled);
    cursor: not-allowed;
    border-color: var(--tc-border-light);
}

.tc-form-input::placeholder {
    color: var(--tc-text-placeholder);
}

/* 筛选栏 - 腾讯云风格 */
.tc-filter-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    align-items: center;
    padding: 12px;
    background: var(--tc-white);
    border: 1px solid var(--tc-border-light);
    border-radius: 0;
}

.tc-filter-bar select,
.tc-filter-bar input {
    padding: 6px 10px;
    border: 1px solid var(--tc-border);
    border-radius: 0;
    font-size: 12px;
    background: var(--tc-white);
    color: var(--tc-text-primary);
    transition: all 0.2s;
    height: 32px;
}

.tc-filter-bar select:focus,
.tc-filter-bar input:focus {
    outline: none;
    border-color: var(--tc-primary);
    box-shadow: 0 0 0 2px var(--tc-primary-light);
}

.tc-filter-bar input {
    flex: 1;
    max-width: 300px;
}

.tc-filter-bar input::placeholder {
    color: var(--tc-text-placeholder);
}

/* 空状态 */
.tc-empty {
    text-align: center;
    padding: 80px 20px;
    color: var(--tc-text-secondary);
}

.tc-empty i {
    font-size: 72px;
    color: var(--tc-border);
    margin-bottom: 20px;
    opacity: 0.4;
    display: block;
}

.tc-empty p {
    font-size: 14px;
    color: var(--tc-text-secondary);
}

/* 分页 - 腾讯云风格 */
.tc-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 12px;
    background: var(--tc-white);
    border: 1px solid var(--tc-border-light);
    border-radius: 0;
}

.tc-pagination span {
    color: var(--tc-text-primary);
    font-size: 12px;
}

/* 快捷操作卡片 - 直角 */
.tc-quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.tc-quick-card {
    background: linear-gradient(135deg, var(--tc-primary) 0%, var(--tc-primary-active) 100%);
    color: var(--tc-white);
    padding: 32px 24px;
    border-radius: 0;
    text-align: center;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--tc-shadow-md);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tc-quick-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

.tc-quick-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--tc-shadow-xl);
}

.tc-quick-card i {
    font-size: 40px;
    margin-bottom: 16px;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.tc-quick-card .title {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.tc-quick-card.success {
    background: linear-gradient(135deg, var(--tc-success) 0%, #008f4c 100%);
}

.tc-quick-card.purple {
    background: linear-gradient(135deg, #722ed1 0%, #531dab 100%);
}

.tc-quick-card.warning {
    background: linear-gradient(135deg, var(--tc-warning) 0%, #ff9800 100%);
}

/* 警告提示 - 直角 */
.tc-alert {
    padding: 16px 20px;
    border-radius: 0;
    margin-bottom: 24px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border-left: 4px solid;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.tc-alert-warning {
    background: var(--tc-warning-light);
    border-left-color: var(--tc-warning);
    color: #d48806;
}

.tc-alert-warning i {
    color: var(--tc-warning);
    font-size: 20px;
    margin-top: 2px;
    flex-shrink: 0;
}

/* 响应式 */
@media (max-width: 1200px) {
    .tc-user-layout {
        grid-template-columns: 160px 1fr;
    }
    
    .tc-main-content {
        padding: 20px 24px;
    }
}

@media (max-width: 768px) {
    .tc-user-layout {
        grid-template-columns: 1fr;
    }
    
    .tc-sidebar {
        position: static;
        border-right: none;
        border-bottom: 1px solid var(--tc-border-light);
    }
    
    .tc-main-content {
        padding: 20px;
    }
    
    .tc-stats-grid,
    .tc-quick-actions {
        grid-template-columns: 1fr;
    }
    
    .tc-navbar {
        padding: 0 16px;
    }
    
    .tc-nav-links {
        gap: 20px;
        font-size: 13px;
    }
}

/* 加载动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tc-main-content > * {
    animation: fadeIn 0.4s ease-out;
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--tc-bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--tc-border);
    transition: background 0.3s;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--tc-text-secondary);
}
