/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: #3498db;
    color: #fff;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-secondary {
    background-color: #95a5a6;
    color: #fff;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
}

.btn-success {
    background-color: #2ecc71;
    color: #fff;
}

.btn-success:hover {
    background-color: #27ae60;
}

.btn-danger {
    background-color: #e74c3c;
    color: #fff;
}

.btn-danger:hover {
    background-color: #c0392b;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid #3498db;
    color: #3498db;
}

.btn-outline:hover {
    background-color: #3498db;
    color: #fff;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 16px;
}

.btn-block {
    display: block;
    width: 100%;
}

/* 头部样式 */
.header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    font-size: 22px;
    font-weight: 700;
    color: #2c3e50;
}

.nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 8px 16px;
    color: #555;
    font-size: 14px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    background-color: #3498db;
    color: #fff;
}

.user-info {
    color: #888;
    font-size: 14px;
    margin-left: 8px;
}

/* 主要内容区 */
.main {
    padding: 40px 0;
    min-height: calc(100vh - 140px);
}

/* Hero区域 */
.hero {
    text-align: center;
    padding: 60px 0;
    background: linear-gradient(135deg, #e0f2f7 0%, #c8e6c9 100%);
    border-radius: 12px;
    margin-bottom: 50px;
}

.hero-title {
    font-size: 42px;
    color: #2c3e50;
    margin-bottom: 16px;
    font-weight: 700;
}

.hero-desc {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
}

/* 功能特性 */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
}

.feature-item {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    color: #fff;
}

.feature-item:nth-child(2) .feature-icon {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.feature-item:nth-child(3) .feature-icon {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.feature-item:nth-child(4) .feature-icon {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.feature-item:nth-child(5) .feature-icon {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.feature-item:nth-child(6) .feature-icon {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    color: #666;
}

.feature-title {
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 12px;
}

.feature-desc {
    font-size: 14px;
    color: #777;
    line-height: 1.7;
}

/* 快速开始 */
.section {
    margin-bottom: 50px;
}

.section-title {
    font-size: 28px;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 40px;
    font-weight: 600;
}

.quick-start {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
}

.quick-start-item {
    background: #fff;
    border-radius: 12px;
    padding: 30px 25px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    width: 220px;
    transition: all 0.3s ease;
}

.quick-start-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.quick-start-num {
    font-size: 36px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    font-family: 'Arial Black', Arial, sans-serif;
}

.quick-start-item h3 {
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 10px;
}

.quick-start-item p {
    font-size: 13px;
    color: #888;
    line-height: 1.6;
}

.quick-start-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    color: #ccc;
    padding-top: 60px;
}

/* 底部 */
.footer {
    background-color: #2c3e50;
    padding: 30px 0;
    text-align: center;
}

.copyright {
    color: #95a5a6;
    font-size: 14px;
}

/* 卡片样式 */
.card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
    overflow: hidden;
}

.card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 20px 25px;
}

.card-header h2,
.card-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.card-body {
    padding: 25px;
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #3498db;
}

.form-hint {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

/* 提示框 */
.alert {
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* 表格样式 */
.table-responsive {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #555;
}

.table-actions {
    white-space: nowrap;
}

.table-actions .btn {
    margin-right: 5px;
}

.table-actions .btn:last-child {
    margin-right: 0;
}

/* 模态框 */
.modal-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-mask.show {
    display: flex;
}

.modal {
    background: #fff;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
}

.modal-close {
    font-size: 24px;
    cursor: pointer;
    color: #999;
    line-height: 1;
}

.modal-close:hover {
    color: #333;
}

.modal-body {
    padding: 25px;
    overflow-y: auto;
}

.modal-footer {
    padding: 20px 25px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 20px;
}

.pagination a,
.pagination span {
    padding: 8px 14px;
    border-radius: 4px;
    color: #555;
    font-size: 14px;
    transition: all 0.3s ease;
}

.pagination a {
    background: #fff;
    border: 1px solid #ddd;
}

.pagination a:hover {
    background: #3498db;
    border-color: #3498db;
    color: #fff;
}

.pagination span {
    background: #3498db;
    border-color: #3498db;
    color: #fff;
}

/* 状态标签 */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.badge-success {
    background: #d4edda;
    color: #155724;
}

.badge-warning {
    background: #fff3cd;
    color: #856404;
}

.badge-danger {
    background: #f8d7da;
    color: #721c24;
}

.badge-info {
    background: #d1ecf1;
    color: #0c5460;
}

/* 授权详情 */
.license-card {
    background: #fff;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.license-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.license-target {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
}

.license-meta {
    display: flex;
    gap: 15px;
    color: #888;
    font-size: 14px;
}

.license-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

/* 统计信息 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: #fff;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.stat-value {
    font-size: 36px;
    font-weight: 700;
    color: #3498db;
    margin-bottom: 5px;
}

.stat-label {
    color: #888;
    font-size: 14px;
}

/* 响应式设计 */
@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-buttons {
        flex-direction: column;
        align-items: center;
    }

    .quick-start {
        flex-direction: column;
        align-items: center;
    }

    .quick-start-arrow {
        transform: rotate(90deg);
        padding: 15px 0;
    }

    .quick-start-item {
        width: 100%;
        max-width: 300px;
    }
}
