/**
 * 轩辕插件授权系统 - 古风主题样式
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "LiSu", "隶书", "STLiti", "KaiTi", "楷体", serif;
    background: 
        /* 远山层次 - 浅淡墨色 */
        radial-gradient(ellipse at 20% 80%, rgba(139, 111, 71, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 60%, rgba(107, 86, 57, 0.12) 0%, transparent 50%),
        /* 中景山峦 - 中墨色 */
        radial-gradient(ellipse at 40% 70%, rgba(93, 74, 47, 0.1) 0%, transparent 60%),
        /* 近景水波 - 淡青色 */
        linear-gradient(180deg, 
            rgba(229, 232, 220, 0.3) 0%,
            rgba(245, 241, 232, 0.2) 30%,
            rgba(232, 224, 211, 0.15) 70%,
            rgba(220, 210, 195, 0.2) 100%
        ),
        /* 云彩效果 */
        radial-gradient(ellipse at 60% 20%, rgba(200, 195, 180, 0.15) 0%, transparent 40%),
        radial-gradient(ellipse at 30% 30%, rgba(180, 175, 160, 0.12) 0%, transparent 35%),
        /* 基础纸张底色 */
        linear-gradient(135deg, #f5f1e8 0%, #e8e0d3 50%, #f0ebe0 100%);
    background-attachment: fixed;
    color: #3d2817;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* 山水画装饰 - 添加远景山峦 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        /* 左侧远山 */
        linear-gradient(135deg, 
            transparent 0%,
            rgba(139, 111, 71, 0.08) 20%,
            transparent 40%
        ),
        /* 右侧远山 */
        linear-gradient(225deg, 
            transparent 0%,
            rgba(107, 86, 57, 0.08) 25%,
            transparent 45%
        ),
        /* 水波纹效果 */
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(200, 195, 180, 0.03) 2px,
            rgba(200, 195, 180, 0.03) 4px
        );
    pointer-events: none;
    z-index: 0;
    opacity: 0.6;
}

/* 云彩装饰 */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 300px;
    background: 
        radial-gradient(ellipse 800px 200px at 20% 50%, rgba(200, 195, 180, 0.12) 0%, transparent 70%),
        radial-gradient(ellipse 600px 150px at 80% 30%, rgba(180, 175, 160, 0.1) 0%, transparent 65%),
        radial-gradient(ellipse 500px 180px at 50% 20%, rgba(190, 185, 170, 0.08) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
    opacity: 0.8;
}

/* 侧边栏 - 古典风格（带山水画意境） */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 260px;
    background: 
        /* 远山效果 */
        radial-gradient(ellipse at 0% 100%, rgba(93, 74, 47, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 100% 80%, rgba(107, 86, 57, 0.2) 0%, transparent 40%),
        /* 基础渐变 */
        linear-gradient(180deg, #8b6f47 0%, #6b5639 100%);
    color: #f5f1e8;
    display: flex;
    flex-direction: column;
    box-shadow: 
        6px 0 30px rgba(0,0,0,0.3),
        2px 0 12px rgba(139, 111, 71, 0.4),
        inset -2px 0 10px rgba(0,0,0,0.15),
        inset 2px 0 0 rgba(212, 165, 116, 0.2);
    z-index: 1000;
    border-right: 4px solid rgba(93, 74, 47, 0.9);
}

/* 侧边栏装饰 - 山水画边框 */
.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        /* 右侧过渡效果，与主内容区融合 */
        linear-gradient(90deg, 
            transparent 0%,
            transparent calc(100% - 8px),
            rgba(212, 165, 116, 0.3) calc(100% - 8px),
            rgba(139, 111, 71, 0.2) calc(100% - 4px),
            transparent 100%
        ),
        /* 整体装饰 */
        linear-gradient(90deg, 
            transparent 0%,
            rgba(212, 165, 116, 0.1) 50%,
            transparent 100%
        );
    pointer-events: none;
    opacity: 0.3;
    z-index: 1;
}

.sidebar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: 
        radial-gradient(ellipse at 50% 0%, rgba(139, 111, 71, 0.15) 0%, transparent 70%),
        linear-gradient(0deg, 
            rgba(93, 74, 47, 0.2) 0%,
            transparent 100%
        );
    pointer-events: none;
    z-index: 1;
}

.sidebar-header {
    padding: 35px 20px;
    text-align: center;
    border-bottom: 2px solid rgba(245,241,232,0.2);
    background: 
        radial-gradient(ellipse at 50% 50%, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0.1) 100%),
        linear-gradient(180deg, rgba(0,0,0,0.12) 0%, transparent 100%);
    position: relative;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.sidebar-header h2 {
    font-size: 26px;
    font-weight: 600;
    letter-spacing: 3px;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.4);
    line-height: 1.4;
}

.sidebar-nav {
    flex: 1;
    padding: 25px 0;
    position: relative;
    z-index: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar-nav::-webkit-scrollbar {
    width: 6px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.1);
    border-radius: 3px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(139,111,71,0.5);
    border-radius: 3px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(139,111,71,0.7);
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 18px 25px;
    color: rgba(245,241,232,0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    gap: 14px;
    margin: 6px 12px;
    border-radius: 8px;
    position: relative;
    z-index: 2;
    font-size: 15px;
}

.nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: rgba(255,255,255,0.1);
    transition: width 0.3s;
    border-radius: 6px;
}

.nav-item:hover::before {
    width: 100%;
}

.nav-item:hover {
    color: #fff;
    transform: translateX(6px);
    background: rgba(255,255,255,0.08);
}

.nav-item.active {
    background: rgba(139,111,71,0.45);
    color: #fff;
    border-left-color: #d4a574;
    font-weight: 600;
    box-shadow: 
        0 3px 10px rgba(0,0,0,0.25),
        inset 0 1px 0 rgba(255,255,255,0.15);
    transform: translateX(3px);
}

.nav-item.active::before {
    width: 100%;
}

.nav-icon {
    font-size: 22px;
    width: 28px;
    text-align: center;
    filter: drop-shadow(1px 1px 3px rgba(0,0,0,0.4));
    transition: transform 0.3s ease;
}

.nav-item:hover .nav-icon {
    transform: scale(1.1);
}

.nav-text {
    font-size: 15px;
    letter-spacing: 1.5px;
    font-weight: 500;
}

/* 侧边栏底部 */
.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    background: rgba(0,0,0,0.1);
    position: relative;
    z-index: 2;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    margin-bottom: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: rgba(139,111,71,0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.user-details {
    flex: 1;
    min-width: 0;
}

.user-name {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role {
    color: rgba(245,241,232,0.7);
    font-size: 12px;
}

.logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    background: rgba(220,53,69,0.8);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s;
    font-weight: 500;
}

.logout-btn:hover {
    background: rgba(220,53,69,1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220,53,69,0.4);
}

/* 主内容区 - 古风背景（带山水画效果） */
.main-content {
    margin-left: 260px;
    padding: 50px 60px;
    min-height: 100vh;
    position: relative;
    z-index: 1;
    background: 
        /* 左侧过渡阴影，与侧边栏融合 */
        linear-gradient(90deg, 
            rgba(93, 74, 47, 0.08) 0%,
            rgba(93, 74, 47, 0.04) 30px,
            transparent 60px
        ),
        /* 水波纹效果 */
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 100px,
            rgba(200, 195, 180, 0.02) 100px,
            rgba(200, 195, 180, 0.02) 101px
        ),
        /* 淡墨渲染 */
        radial-gradient(ellipse at 50% 100%, rgba(139, 111, 71, 0.05) 0%, transparent 70%);
    max-width: 1600px;
}

/* 主内容区左侧装饰线 */
.main-content::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, 
        rgba(212, 165, 116, 0.4) 0%,
        rgba(139, 111, 71, 0.5) 20%,
        rgba(139, 111, 71, 0.5) 80%,
        rgba(212, 165, 116, 0.4) 100%
    );
    box-shadow: 
        2px 0 8px rgba(139, 111, 71, 0.3),
        -2px 0 8px rgba(139, 111, 71, 0.2);
    z-index: 0;
}

.page-header {
    margin-bottom: 45px;
    padding: 30px 35px;
    padding-bottom: 25px;
    border-bottom: 3px double rgba(139, 111, 71, 0.4);
    position: relative;
    background: 
        linear-gradient(90deg, 
            transparent 0%,
            rgba(139, 111, 71, 0.05) 20%,
            rgba(139, 111, 71, 0.08) 50%,
            rgba(139, 111, 71, 0.05) 80%,
            transparent 100%
        );
    border-radius: 12px;
    box-shadow: 
        0 2px 10px rgba(0,0,0,0.05),
        inset 0 1px 0 rgba(255,255,255,0.3);
}

.page-header::before {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 10%;
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(139, 111, 71, 0.3) 20%,
        #8b6f47 50%,
        rgba(139, 111, 71, 0.3) 80%,
        transparent 100%
    );
    border-radius: 2px;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(139, 111, 71, 0.2) 30%,
        rgba(139, 111, 71, 0.3) 50%,
        rgba(139, 111, 71, 0.2) 70%,
        transparent 100%
    );
}

.page-header h1 {
    font-size: 42px;
    color: #5d4a2f;
    margin-bottom: 12px;
    font-weight: 600;
    letter-spacing: 4px;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.12);
    line-height: 1.3;
}

.page-header p {
    color: #7a6b5a;
    font-size: 17px;
    letter-spacing: 1.5px;
    margin-top: 8px;
}

/* 卡片 - 古风纸张效果（带山水画意境） */
.card {
    background: 
        /* 纸张纹理 */
        repeating-linear-gradient(
            0deg,
            rgba(250, 248, 243, 0.95),
            rgba(250, 248, 243, 0.95) 1px,
            rgba(245, 241, 232, 0.98) 1px,
            rgba(245, 241, 232, 0.98) 2px
        ),
        /* 淡墨晕染 */
        radial-gradient(ellipse at 30% 50%, rgba(200, 195, 180, 0.08) 0%, transparent 60%),
        /* 基础纸张色 */
        linear-gradient(135deg, #faf8f3 0%, #f5f1e8 100%);
    border-radius: 12px;
    padding: 40px 45px;
    box-shadow: 
        0 6px 25px rgba(0,0,0,0.1),
        0 3px 10px rgba(139, 111, 71, 0.12),
        inset 0 1px 0 rgba(255,255,255,0.9),
        inset 0 -1px 0 rgba(139, 111, 71, 0.05);
    margin-bottom: 35px;
    border: 2px solid rgba(212, 196, 168, 0.65);
    position: relative;
    backdrop-filter: blur(2px);
    transition: all 0.4s ease;
}

.card:hover {
    box-shadow: 
        0 8px 30px rgba(0,0,0,0.12),
        0 4px 15px rgba(139, 111, 71, 0.15),
        inset 0 1px 0 rgba(255,255,255,0.95),
        inset 0 -1px 0 rgba(139, 111, 71, 0.08);
    transform: translateY(-2px);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(139, 111, 71, 0.4) 20%,
        #8b6f47 50%,
        rgba(212, 165, 116, 0.6) 50%,
        rgba(139, 111, 71, 0.4) 80%,
        transparent 100%
    );
    border-radius: 8px 8px 0 0;
    opacity: 0.8;
}

/* 卡片装饰 - 山水画印章效果 */
.card::after {
    content: '';
    position: absolute;
    bottom: 15px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, 
        rgba(139, 111, 71, 0.06) 0%,
        rgba(139, 111, 71, 0.03) 50%,
        transparent 100%
    );
    border-radius: 50%;
    opacity: 0.5;
    pointer-events: none;
}

.card-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px;
    color: #5d4a2f;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(212, 196, 168, 0.7);
    letter-spacing: 2.5px;
    position: relative;
}

.card-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #8b6f47, transparent);
}

/* 工具栏 */
.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    gap: 20px;
    flex-wrap: wrap;
    padding: 20px 0;
    border-bottom: 1px solid rgba(212, 196, 168, 0.4);
}

.search-box {
    flex: 1;
    min-width: 300px;
}

.search-box input {
    width: 100%;
    padding: 12px 18px;
    border: 2px solid rgba(212, 196, 168, 0.6);
    border-radius: 6px;
    font-size: 14px;
    background: 
        repeating-linear-gradient(
            0deg,
            rgba(255, 255, 255, 0.98),
            rgba(255, 255, 255, 0.98) 1px,
            rgba(250, 248, 243, 0.99) 1px,
            rgba(250, 248, 243, 0.99) 2px
        ),
        linear-gradient(135deg, #fff 0%, #faf8f3 100%);
    color: #3d2817;
    font-family: inherit;
    transition: all 0.3s;
    box-shadow: 
        inset 0 1px 3px rgba(0,0,0,0.05),
        0 1px 2px rgba(139, 111, 71, 0.05);
}

.search-box input:focus {
    outline: none;
    border-color: rgba(139, 111, 71, 0.7);
    box-shadow: 
        0 0 0 3px rgba(139,111,71,0.1),
        inset 0 1px 3px rgba(0,0,0,0.05),
        0 2px 4px rgba(139, 111, 71, 0.08);
    background: 
        repeating-linear-gradient(
            0deg,
            rgba(255, 255, 255, 1),
            rgba(255, 255, 255, 1) 1px,
            rgba(255, 254, 249, 0.99) 1px,
            rgba(255, 254, 249, 0.99) 2px
        ),
        linear-gradient(135deg, #fffef9 0%, #faf8f3 100%);
}

.toolbar-actions {
    display: flex;
    gap: 12px;
}

/* 按钮 - 古风风格 */
.btn {
    padding: 14px 28px;
    border: 2px solid;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-block;
    font-family: inherit;
    letter-spacing: 1.5px;
    box-shadow: 
        0 3px 8px rgba(0,0,0,0.12),
        inset 0 1px 0 rgba(255,255,255,0.2);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255,255,255,0.2), 
        transparent
    );
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #8b6f47 0%, #6b5639 100%);
    color: #f5f1e8;
    border-color: #5d4a2f;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #6b5639 0%, #5d4a2f 100%);
    transform: translateY(-3px);
    box-shadow: 
        0 6px 16px rgba(139,111,71,0.35),
        inset 0 1px 0 rgba(255,255,255,0.3);
    border-color: #4d3e26;
}

.btn-success {
    background: linear-gradient(135deg, #7a9d54 0%, #5d7a3f 100%);
    color: #fff;
    border-color: #4d6533;
}

.btn-success:hover {
    background: linear-gradient(135deg, #5d7a3f 0%, #4d6533 100%);
    transform: translateY(-2px);
}

.btn-danger {
    background: linear-gradient(135deg, #c85552 0%, #a8423f 100%);
    color: #fff;
    border-color: #8d2f2c;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #a8423f 0%, #8d2f2c 100%);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

/* 表格 - 古风风格（带山水画意境） */
.table-container {
    overflow-x: auto;
    border-radius: 10px;
    border: 2px solid rgba(212, 196, 168, 0.65);
    background: 
        repeating-linear-gradient(
            0deg,
            rgba(255, 255, 255, 0.98),
            rgba(255, 255, 255, 0.98) 1px,
            rgba(250, 248, 243, 0.99) 1px,
            rgba(250, 248, 243, 0.99) 2px
        ),
        linear-gradient(135deg, #fff 0%, #faf8f3 100%);
    box-shadow: 
        inset 0 2px 4px rgba(0,0,0,0.03),
        inset 0 1px 0 rgba(139, 111, 71, 0.05),
        0 3px 12px rgba(0,0,0,0.08);
    position: relative;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.data-table thead {
    background: linear-gradient(135deg, #8b6f47 0%, #6b5639 100%);
}

.data-table th {
    padding: 18px 20px;
    text-align: left;
    font-weight: 600;
    color: #f5f1e8;
    border-bottom: 2px solid #5d4a2f;
    font-size: 15px;
    letter-spacing: 1.5px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.data-table td {
    padding: 18px 20px;
    border-bottom: 1px solid rgba(232, 224, 211, 0.6);
    color: #3d2817;
    font-size: 14px;
    transition: background-color 0.2s;
}

.data-table tbody tr {
    transition: all 0.2s ease;
}

.data-table tbody tr:hover {
    background: linear-gradient(90deg, 
        rgba(250, 248, 243, 0.95) 0%,
        rgba(245, 241, 232, 0.98) 100%
    );
    transform: scale(1.001);
    box-shadow: 0 2px 8px rgba(139, 111, 71, 0.08);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.data-table .loading,
.data-table .empty {
    text-align: center;
    padding: 50px;
    color: #7a6b5a;
    font-size: 16px;
}

.data-table code {
    background: #f5f1e8;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: #8b6f47;
    border: 1px solid #d4c4a8;
}

/* 状态徽章 */
.status-badge {
    padding: 5px 14px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    display: inline-block;
    border: 1px solid;
}

.status-active {
    background: #e8f5e9;
    color: #2e7d32;
    border-color: #81c784;
}

.status-inactive {
    background: #ffebee;
    color: #c62828;
    border-color: #e57373;
}

.status-expired {
    background: #fff8e1;
    color: #f57c00;
    border-color: #ffb74d;
}

.result-success {
    background: #e8f5e9;
    color: #2e7d32;
    border-color: #81c784;
}

.result-fail {
    background: #ffebee;
    color: #c62828;
    border-color: #e57373;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 25px;
    padding: 25px 0;
}

.page-btn {
    padding: 10px 16px;
    border: 2px solid #d4c4a8;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    color: #5d4a2f;
    font-family: inherit;
}

.page-btn:hover:not(:disabled) {
    background: #f5f1e8;
    border-color: #8b6f47;
    color: #3d2817;
    transform: translateY(-2px);
}

.page-btn.active {
    background: linear-gradient(135deg, #8b6f47 0%, #6b5639 100%);
    color: #f5f1e8;
    border-color: #5d4a2f;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 对话框 */
.dialog-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(61,40,23,0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    backdrop-filter: blur(4px);
}

.dialog-overlay.show {
    display: flex;
}

.dialog {
    background: #faf8f3;
    border-radius: 10px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 
        0 10px 40px rgba(0,0,0,0.3),
        inset 0 1px 0 rgba(255,255,255,0.8);
    border: 3px solid #8b6f47;
}

.dialog-header {
    padding: 20px 25px;
    border-bottom: 2px solid #d4c4a8;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #8b6f47 0%, #6b5639 100%);
    color: #f5f1e8;
}

.dialog-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 2px;
}

.dialog-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #f5f1e8;
    line-height: 1;
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 4px;
    transition: all 0.3s;
}

.dialog-close:hover {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

.dialog-body {
    padding: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #5d4a2f;
    font-size: 14px;
    letter-spacing: 1px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid rgba(212, 196, 168, 0.6);
    border-radius: 6px;
    font-size: 14px;
    background: 
        repeating-linear-gradient(
            0deg,
            rgba(255, 255, 255, 0.98),
            rgba(255, 255, 255, 0.98) 1px,
            rgba(250, 248, 243, 0.99) 1px,
            rgba(250, 248, 243, 0.99) 2px
        ),
        linear-gradient(135deg, #fff 0%, #faf8f3 100%);
    color: #3d2817;
    font-family: inherit;
    transition: all 0.3s;
    box-shadow: 
        inset 0 1px 3px rgba(0,0,0,0.05),
        0 1px 2px rgba(139, 111, 71, 0.05);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: rgba(139, 111, 71, 0.7);
    box-shadow: 
        0 0 0 3px rgba(139,111,71,0.1),
        inset 0 1px 3px rgba(0,0,0,0.05),
        0 2px 4px rgba(139, 111, 71, 0.08);
    background: 
        repeating-linear-gradient(
            0deg,
            rgba(255, 255, 255, 1),
            rgba(255, 255, 255, 1) 1px,
            rgba(255, 254, 249, 0.99) 1px,
            rgba(255, 254, 249, 0.99) 2px
        ),
        linear-gradient(135deg, #fffef9 0%, #faf8f3 100%);
}

.input-group {
    display: flex;
    gap: 10px;
}

.input-group input {
    flex: 1;
}

.dialog-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid #e8e0d3;
}

/* Toast 提示 */
.toast {
    position: fixed;
    top: 30px;
    right: 30px;
    background: #faf8f3;
    padding: 18px 24px;
    border-radius: 8px;
    box-shadow: 
        0 4px 20px rgba(0,0,0,0.2),
        inset 0 1px 0 rgba(255,255,255,0.8);
    z-index: 3000;
    display: none;
    animation: slideIn 0.3s;
    min-width: 280px;
    border: 2px solid;
}

.toast.show {
    display: block;
}

.toast-success {
    border-color: #81c784;
    border-left-width: 6px;
}

.toast-error {
    border-color: #e57373;
    border-left-width: 6px;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 教程页面样式 */
.tutorial-content {
    line-height: 1.8;
    color: #3d2817;
}

.tutorial-section {
    margin-bottom: 45px;
    padding-bottom: 30px;
    border-bottom: 2px dashed #d4c4a8;
}

.tutorial-section:last-child {
    border-bottom: none;
}

.tutorial-section h3 {
    color: #8b6f47;
    font-size: 22px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #d4c4a8;
    font-weight: 600;
    letter-spacing: 2px;
}

.tutorial-section h4 {
    color: #6b5639;
    font-size: 18px;
    margin: 25px 0 15px 0;
    font-weight: 600;
    letter-spacing: 1px;
}

.tutorial-section pre {
    background: #2d2817;
    color: #e8e0d3;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.6;
    margin: 20px 0;
    border: 2px solid #5d4a2f;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.3);
}

.tutorial-section code {
    background: #f5f1e8;
    padding: 3px 8px;
    border-radius: 4px;
    color: #8b6f47;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    border: 1px solid #d4c4a8;
}

.tutorial-section pre code {
    background: none;
    padding: 0;
    color: inherit;
    border: none;
}

.tutorial-list {
    line-height: 2.2;
    padding-left: 25px;
    color: #3d2817;
}

.tutorial-list li {
    margin-bottom: 10px;
}

.param-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    border: 2px solid #d4c4a8;
    background: #fff;
}

.param-table th,
.param-table td {
    padding: 14px;
    text-align: left;
    border: 1px solid #e8e0d3;
}

.param-table thead th {
    background: linear-gradient(135deg, #8b6f47 0%, #6b5639 100%);
    font-weight: 600;
    color: #f5f1e8;
    letter-spacing: 1px;
}

.param-table tbody tr:hover {
    background: #faf8f3;
}

.info-box {
    margin: 20px 0;
    padding: 18px;
    background: #fff;
    border-radius: 6px;
    border: 2px solid #e8e0d3;
}

.code-inline {
    display: inline-block;
    background: #f5f1e8;
    padding: 8px 12px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: #8b6f47;
    border: 1px solid #d4c4a8;
    margin-top: 8px;
}

/* 首页样式 */
.welcome-section {
    text-align: center;
    padding: 50px 30px;
}

.welcome-icon {
    font-size: 72px;
    margin-bottom: 25px;
    filter: drop-shadow(3px 3px 8px rgba(0,0,0,0.15));
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-8px) rotate(-2deg);
    }
    50% {
        transform: translateY(-12px) rotate(0deg);
    }
    75% {
        transform: translateY(-8px) rotate(2deg);
    }
}

.welcome-section h2 {
    font-size: 36px;
    color: #5d4a2f;
    margin-bottom: 18px;
    letter-spacing: 4px;
    font-weight: 600;
    line-height: 1.4;
}

.welcome-section p {
    font-size: 19px;
    color: #7a6b5a;
    letter-spacing: 1.5px;
    line-height: 1.6;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.feature-card {
    background: 
        radial-gradient(ellipse at 50% 50%, rgba(255, 255, 255, 0.95) 0%, rgba(250, 248, 243, 0.9) 100%),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 1px,
            rgba(200, 195, 180, 0.03) 1px,
            rgba(200, 195, 180, 0.03) 2px
        );
    border-radius: 12px;
    padding: 40px 35px;
    text-align: center;
    border: 2px solid rgba(212, 196, 168, 0.55);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 12px rgba(0,0,0,0.1),
        0 2px 6px rgba(139, 111, 71, 0.12),
        inset 0 1px 0 rgba(255,255,255,0.9);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, 
        rgba(139, 111, 71, 0.05) 0%,
        transparent 70%
    );
    opacity: 0;
    transition: opacity 0.3s;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 10px 30px rgba(0,0,0,0.15),
        0 5px 15px rgba(139, 111, 71, 0.2),
        inset 0 1px 0 rgba(255,255,255,0.95);
    border-color: rgba(139, 111, 71, 0.75);
    background: 
        radial-gradient(ellipse at 50% 50%, rgba(255, 255, 255, 0.98) 0%, rgba(250, 248, 243, 0.95) 100%),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 1px,
            rgba(200, 195, 180, 0.05) 1px,
            rgba(200, 195, 180, 0.05) 2px
        );
}

.feature-icon {
    font-size: 56px;
    margin-bottom: 25px;
    filter: drop-shadow(2px 2px 6px rgba(0,0,0,0.15));
    transition: all 0.3s ease;
    display: inline-block;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(3px 3px 8px rgba(0,0,0,0.2));
}

.feature-card h3 {
    font-size: 22px;
    color: #5d4a2f;
    margin-bottom: 15px;
    font-weight: 600;
    letter-spacing: 2.5px;
    line-height: 1.4;
}

.feature-card p {
    color: #7a6b5a;
    margin-bottom: 25px;
    line-height: 1.8;
    font-size: 15px;
}

.feature-link {
    color: #8b6f47;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid rgba(139, 111, 71, 0.3);
    background: rgba(255,255,255,0.5);
}

.feature-link:hover {
    color: #6b5639;
    transform: translateX(5px);
    background: rgba(139, 111, 71, 0.1);
    border-color: rgba(139, 111, 71, 0.5);
    box-shadow: 0 2px 8px rgba(139, 111, 71, 0.2);
}

.quick-start {
    margin-top: 20px;
}

.quick-item {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    margin-bottom: 20px;
    padding: 25px 28px;
    background: 
        repeating-linear-gradient(
            0deg,
            rgba(255, 255, 255, 0.95),
            rgba(255, 255, 255, 0.95) 1px,
            rgba(250, 248, 243, 0.98) 1px,
            rgba(250, 248, 243, 0.98) 2px
        ),
        linear-gradient(135deg, #fff 0%, #faf8f3 100%);
    border-radius: 10px;
    border: 2px solid rgba(232, 224, 211, 0.6);
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.quick-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, 
        transparent 0%,
        rgba(139, 111, 71, 0.3) 50%,
        transparent 100%
    );
    opacity: 0;
    transition: opacity 0.3s;
}

.quick-item:hover::before {
    opacity: 1;
}

.quick-item:hover {
    border-color: rgba(139, 111, 71, 0.7);
    background: 
        repeating-linear-gradient(
            0deg,
            rgba(250, 248, 243, 0.98),
            rgba(250, 248, 243, 0.98) 1px,
            rgba(245, 241, 232, 0.99) 1px,
            rgba(245, 241, 232, 0.99) 2px
        ),
        linear-gradient(135deg, #faf8f3 0%, #f5f1e8 100%);
    box-shadow: 
        0 4px 12px rgba(0,0,0,0.1),
        inset 0 1px 0 rgba(255,255,255,0.9);
    transform: translateX(5px);
}

.quick-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #8b6f47 0%, #6b5639 100%);
    color: #f5f1e8;
    border-radius: 50%;
    font-weight: 600;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(139,111,71,0.35);
    transition: all 0.3s ease;
    border: 2px solid rgba(245, 241, 232, 0.3);
}

.quick-item:hover .quick-number {
    transform: scale(1.1) rotate(360deg);
    box-shadow: 0 4px 15px rgba(139,111,71,0.45);
}

.quick-content h4 {
    color: #5d4a2f;
    margin-bottom: 8px;
    font-weight: 600;
    letter-spacing: 1px;
}

.quick-content p {
    color: #7a6b5a;
    line-height: 1.6;
}

.quick-content a {
    color: #8b6f47;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    padding-bottom: 2px;
    display: inline-block;
}

.quick-content a:hover {
    color: #6b5639;
    border-bottom-color: #8b6f47;
    transform: translateX(3px);
}

.system-info {
    margin-top: 20px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    margin-bottom: 15px;
    background: 
        repeating-linear-gradient(
            0deg,
            rgba(255, 255, 255, 0.95),
            rgba(255, 255, 255, 0.95) 1px,
            rgba(250, 248, 243, 0.98) 1px,
            rgba(250, 248, 243, 0.98) 2px
        ),
        linear-gradient(135deg, #fff 0%, #faf8f3 100%);
    border-radius: 8px;
    border: 2px solid rgba(232, 224, 211, 0.6);
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.info-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, 
        transparent 0%,
        rgba(139, 111, 71, 0.3) 50%,
        transparent 100%
    );
    opacity: 0;
    transition: opacity 0.3s;
    border-radius: 6px 0 0 6px;
}

.info-item:hover::before {
    opacity: 1;
}

.info-item:hover {
    border-color: rgba(139, 111, 71, 0.7);
    background: 
        repeating-linear-gradient(
            0deg,
            rgba(250, 248, 243, 0.98),
            rgba(250, 248, 243, 0.98) 1px,
            rgba(245, 241, 232, 0.99) 1px,
            rgba(245, 241, 232, 0.99) 2px
        ),
        linear-gradient(135deg, #faf8f3 0%, #f5f1e8 100%);
    box-shadow: 
        0 3px 10px rgba(0,0,0,0.08),
        inset 0 1px 0 rgba(255,255,255,0.9);
    transform: translateX(3px);
}

.info-label {
    font-weight: 600;
    color: #5d4a2f;
    letter-spacing: 1px;
}

.info-value {
    color: #7a6b5a;
    font-family: 'Courier New', monospace;
}

/* 代码复制按钮样式 */
.code-block-wrapper {
    position: relative;
    margin: 15px 0;
}

.copy-button {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(139, 111, 71, 0.8);
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0.7;
    z-index: 10;
}

.copy-button:hover {
    opacity: 1;
    background: rgba(139, 111, 71, 1);
}

.copy-button.copied {
    background: #2e7d32;
    opacity: 1;
}

.copy-all-button {
    background: rgba(139, 111, 71, 0.8);
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 5px 12px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 15px;
    white-space: nowrap;
}

.copy-all-button:hover {
    background: rgba(139, 111, 71, 1);
}

.copy-all-button.copied {
    background: #2e7d32;
}

.tutorial-section pre {
    padding-top: 35px;
    position: relative;
    overflow-x: auto;
}

.tutorial-subsection {
    margin: 25px 0;
    border: 1px solid rgba(139, 111, 71, 0.2);
    border-radius: 8px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(250, 248, 243, 0.7) 0%, rgba(245, 241, 232, 0.7) 100%);
}

.tutorial-subsection h4 {
    margin-top: 0;
    color: #5d4a2f;
    border-bottom: 1px dashed rgba(139, 111, 71, 0.3);
    padding-bottom: 10px;
    margin-bottom: 15px;
}


/* 响应式设计 */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        position: static;
        height: auto;
    }
    
    .main-content {
        margin-left: 0;
        padding: 25px 20px;
        max-width: 100%;
    }
    
    .page-header {
        padding: 25px 20px;
        margin-bottom: 30px;
    }
    
    .page-header h1 {
        font-size: 32px;
    }
    
    .card {
        padding: 25px 20px;
        margin-bottom: 25px;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        min-width: 100%;
    }
    
    .toolbar-actions {
        width: 100%;
    }
    
    .toolbar-actions .btn {
        flex: 1;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    /* 教程页面移动端适配 */
    .tutorial-section pre {
        font-size: 13px;
        padding: 30px 10px 10px;
        white-space: pre-wrap;
        word-break: break-word;
    }
    
    .copy-button {
        top: 2px;
        right: 2px;
        padding: 3px 8px;
        font-size: 11px;
    }
    
    .copy-all-button {
        padding: 3px 8px;
        font-size: 12px;
        margin-left: 5px;
    }
    
    .tutorial-subsection h4 {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .tutorial-subsection h4 .copy-all-button {
        margin-top: 8px;
        margin-left: 0;
    }
}

/* ========== 三套授权业务区分 ========== */
.sidebar-subtitle {
    margin: 6px 0 0;
    font-size: 12px;
    opacity: 0.75;
    letter-spacing: 1px;
}

.nav-section-label {
    padding: 16px 25px 6px;
    font-size: 11px;
    letter-spacing: 2px;
    color: rgba(245, 241, 232, 0.45);
    text-transform: uppercase;
}

.biz-api-hint {
    margin-top: 12px;
    padding: 12px 14px;
    background: rgba(248, 244, 239, 0.9);
    border-radius: 8px;
    font-size: 0.9rem;
    border-left: 4px solid #8b6f47;
}

.biz-api-hint code {
    word-break: break-all;
}

.biz-tag {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    vertical-align: middle;
}

.biz-tag-website { background: #e3f2fd; color: #1565c0; }
.biz-tag-plugin { background: #f3e5f5; color: #7b1fa2; }
.biz-tag-launcher { background: #e8f5e9; color: #2e7d32; }

.biz-overview-grid {
    grid-template-columns: repeat(3, 1fr);
}

.biz-card-website { border-top: 3px solid #1976d2; }
.biz-card-plugin { border-top: 3px solid #7b1fa2; }
.biz-card-launcher { border-top: 3px solid #388e3c; }

.biz-api-mini {
    margin: 10px 0;
    font-size: 0.85rem;
    color: #666;
}

.biz-log-tabs {
    display: flex;
    gap: 8px;
    margin-right: 12px;
}

.biz-log-tab.active {
    background: #8b6f47;
    color: #fff;
}

@media (max-width: 900px) {
    .biz-overview-grid {
        grid-template-columns: 1fr;
    }
}

