/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background-color: #f5f7fa;
}

a {
    color: #3498db;
    text-decoration: none;
}

a:hover {
    color: #2980b9;
}

.container {
    width: 1200px;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 15px;
}

/* 头部导航 */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.logo {
    font-size: 20px;
    font-weight: bold;
    color: #2c3e50;
}

.nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-link {
    color: #666;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: #3498db;
    background: rgba(52, 152, 219, 0.1);
}

.user-info {
    color: #666;
    padding: 8px 16px;
}

/* 主内容区 */
.main {
    min-height: calc(100vh - 140px);
    padding: 40px 0;
}

/* 底部 */
.footer {
    background: #fff;
    border-top: 1px solid #e5e9f2;
    padding: 20px 0;
    text-align: center;
    color: #999;
}

/* 卡片样式 */
.card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    padding: 30px;
    margin-bottom: 20px;
}

.card-header {
    border-bottom: 1px solid #e5e9f2;
    padding-bottom: 15px;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    background: #fff;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-control.error {
    border-color: #e74c3c;
}

.form-hint {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

.form-error {
    font-size: 12px;
    color: #e74c3c;
    margin-top: 5px;
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: #3498db;
    color: #fff;
}

.btn-primary:hover {
    background: #2980b9;
}

.btn-success {
    background: #27ae60;
    color: #fff;
}

.btn-success:hover {
    background: #219a52;
}

.btn-danger {
    background: #e74c3c;
    color: #fff;
}

.btn-danger:hover {
    background: #c0392b;
}

.btn-secondary {
    background: #95a5a6;
    color: #fff;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 12px;
}

/* 表格样式 */
.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e5e9f2;
}

.table th {
    background: #f8fafc;
    font-weight: 600;
    color: #555;
}

.table tr:hover {
    background: #f8fafc;
}

/* 状态标签 */
.badge {
    display: inline-block;
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 4px;
}

.badge-success {
    background: #d4edda;
    color: #155724;
}

.badge-warning {
    background: #fff3cd;
    color: #856404;
}

.badge-danger {
    background: #f8d7da;
    color: #721c24;
}

.badge-info {
    background: #d1ecf1;
    color: #0c5460;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid #e5e9f2;
    border-radius: 4px;
    color: #666;
    transition: all 0.3s;
}

.pagination a:hover,
.pagination .active {
    background: #3498db;
    border-color: #3498db;
    color: #fff;
}

/* 提示消息 */
.alert {
    padding: 15px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.alert-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert-danger {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.alert-warning {
    background: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
}

.alert-info {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

/* 模态框覆盖层 */
.modal-mask {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-mask.show {
    display: flex;
}

.modal {
    background: #fff;
    border-radius: 8px;
    width: 500px;
    max-width: 90%;
    max-height: 90vh;
    overflow: auto;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #e5e9f2;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
}

.modal-close {
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #e5e9f2;
    text-align: right;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* 首页样式 */
.hero {
    text-align: center;
    padding: 80px 0;
}

.hero-title {
    font-size: 42px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
}

.hero-desc {
    font-size: 18px;
    color: #666;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.feature-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.feature-card-header {
    background: #2c3e50;
    color: #fff;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
}

.feature-card-body {
    padding: 20px;
}

.feature-card-body p {
    color: #666;
    font-size: 14px;
    line-height: 1.8;
    margin: 0;
}

/* 步骤样式 */
.section {
    margin-top: 80px;
    padding-top: 60px;
    border-top: 1px solid #e5e9f2;
}

.section-title {
    font-size: 28px;
    font-weight: 600;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 50px;
}

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.step {
    position: relative;
    text-align: center;
}

.step-number {
    width: 60px;
    height: 60px;
    background: #3498db;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    margin: 0 auto 20px;
}

.step-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
}

.step-content p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* 授权列表样式 */
.license-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    padding: 25px;
    margin-bottom: 20px;
    position: relative;
}

.license-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #e5e9f2;
}

.license-type {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
}

.license-status {
    font-size: 12px;
}

.license-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.license-info-item {
    display: flex;
    gap: 10px;
}

.license-info-label {
    color: #999;
    white-space: nowrap;
}

.license-info-value {
    color: #333;
    word-break: break-all;
}

.license-actions {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px dashed #e5e9f2;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        height: auto;
        padding: 15px 0;
        gap: 15px;
    }
    
    .nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-desc {
        font-size: 14px;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
    
    .license-info {
        grid-template-columns: 1fr;
    }
}

/* 分段切换器 */
.segment-control {
    display: inline-flex;
    background: #f0f0f0;
    border-radius: 8px;
    padding: 4px;
    gap: 4px;
}

.segment-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    transition: all 0.3s ease;
    border: none;
    background: transparent;
}

.segment-item:hover {
    color: #333;
    background: rgba(0, 0, 0, 0.05);
}

.segment-item.active {
    background: #fff;
    color: #3498db;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.segment-item svg {
    flex-shrink: 0;
}

 .segment-item.active svg {
     color: #3498db;
 }

 /* 下拉菜单样式 */
 .dropdown-wrapper {
     position: relative;
     display: inline-block;
 }

 .dropdown-btn {
     display: inline-flex;
     align-items: center;
 }

 .dropdown-menu {
     position: absolute;
     top: 100%;
     left: 0;
     margin-top: 5px;
     min-width: 160px;
     background: #fff;
     border-radius: 8px;
     box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
     display: none;
     z-index: 100;
     overflow: hidden;
 }

 .dropdown-menu.show {
     display: block;
     animation: dropdownFadeIn 0.2s ease;
 }

 @keyframes dropdownFadeIn {
     from {
         opacity: 0;
         transform: translateY(-10px);
     }
     to {
         opacity: 1;
         transform: translateY(0);
     }
 }

 .dropdown-menu a {
     display: flex;
     align-items: center;
     gap: 8px;
     padding: 12px 16px;
     color: #555;
     font-size: 14px;
     transition: all 0.2s ease;
     border: none;
     background: transparent;
     cursor: pointer;
     text-decoration: none;
 }

 .dropdown-menu a:hover {
     background: #f5f7fa;
     color: #3498db;
 }

 .dropdown-menu a:first-child {
     border-radius: 8px 8px 0 0;
 }

 .dropdown-menu a:last-child {
     border-radius: 0 0 8px 8px;
 }

 .dropdown-menu a svg {
     flex-shrink: 0;
 }

