/* FontSea License 字体使用许可展示 - 统一风格版 */
:root {
    --fontsea-primary-color: #3b82f6;
    --fontsea-primary-hover: #2563eb;
    --fontsea-slider-bg: #e2e8f0;
    --fontsea-text-color: #334155;
    --fontsea-border-color: #e2e8f0;
    --fontsea-container-bg: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    --fontsea-container-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

/* 主容器 */
.fontsea-license-container {
    width: 100%;
    margin: 20px auto;
    padding: 20px;
    background: var(--fontsea-container-bg);
    border-radius: 12px;
    box-shadow: var(--fontsea-container-shadow);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: var(--fontsea-text-color);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.fontsea-license-container:hover {
    box-shadow: 0 12px 45px rgba(0,0,0,0.12);
    transform: translateY(-1px);
}

/* 头部区域 - 已移除底部边框 */
.fontsea-license-header {
    margin-bottom: 20px;
}

.fontsea-license-title {
    margin: 0 0 12px 0;
    font-size: 1.3em;
    font-weight: 700;
    color: #1e293b;
}

.fontsea-license-intro {
    font-size: 0.95em;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

/* 授权内容网格 */
.fontsea-license-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

/* 授权卡片 */
.fontsea-license-card {
    background: rgba(255, 255, 255, 0.7);
    padding: 16px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--fontsea-border-color);
    backdrop-filter: blur(5px);
}

.fontsea-license-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.9);
}

.fontsea-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* 现代SVG图标 - 方案二：圆形检查标记和圆形关闭标记 */
.fontsea-card-icon {
    width: 24px;
    height: 24px;
    margin-right: 12px;
    flex-shrink: 0;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* 允许事项 - 圆形检查标记 */
.fontsea-allowed-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2310b981'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z'/%3E%3C/svg%3E");
}

/* 禁止事项 - 圆形关闭标记 */
.fontsea-forbidden-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ef4444'%3E%3Cpath d='M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z'/%3E%3C/svg%3E");
}

.fontsea-card-title {
    margin: 0;
    font-size: 1.15em;
    font-weight: 700;
    color: #1e293b;
}

.fontsea-license-list {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

.fontsea-license-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 14px;
    padding: 10px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.fontsea-license-list li:hover {
    background-color: rgba(0, 0, 0, 0.03);
}

.fontsea-license-list li:last-child {
    margin-bottom: 0;
}

.fontsea-list-content {
    flex: 1;
}

.fontsea-list-title {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.95em;
    margin-bottom: 4px;
}

.fontsea-list-desc {
    font-size: 0.85em;
    color: #64748b;
    line-height: 1.4;
}

/* 授权备注 */
.fontsea-license-note {
    background: rgba(255, 255, 255, 0.7);
    padding: 16px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid var(--fontsea-border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(5px);
}

.fontsea-license-note p {
    margin: 0;
    color: #64748b;
    font-size: 0.9em;
    line-height: 1.5;
}

/* 参考资料区域 */
.fontsea-references-section {
    background: rgba(255, 255, 255, 0.7);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--fontsea-border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
}

.fontsea-references-title {
    font-size: 1.3em;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 16px;
}

.fontsea-references-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* 参考资料链接 */
.fontsea-reference-link {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border: 1px solid var(--fontsea-border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(5px);
}

.fontsea-reference-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: inherit;
    border-color: var(--fontsea-primary-color);
    background: rgba(255, 255, 255, 1);
}

.fontsea-reference-icon {
    font-size: 1.5em;
    margin-right: 12px;
    flex-shrink: 0;
}

.fontsea-reference-content {
    flex: 1;
}

.fontsea-reference-title {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.95em;
    margin-bottom: 4px;
}

.fontsea-reference-url {
    font-size: 0.85em;
    color: #64748b;
    word-break: break-all;
}

/* 兼容性优化：增加特异性，避免主题冲突 */
body .fontsea-license-container {
    box-sizing: border-box;
}

/* 重置可能受主题影响的样式 */
.fontsea-license-container * {
    box-sizing: border-box;
}

/* 响应式设计 - 平板和手机 */
@media (max-width: 768px) {
    .fontsea-license-container {
        padding: 15px;
        margin: 15px auto;
    }
    
    .fontsea-license-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .fontsea-license-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .fontsea-references-grid {
        grid-template-columns: 1fr;
    }
    
    .fontsea-license-card {
        padding: 12px 14px;
    }
    
    .fontsea-reference-link {
        padding: 12px 14px;
    }
    
    .fontsea-references-section {
        padding: 16px;
    }
}

/* 移动端优化 */
@media (max-width: 480px) {
    .fontsea-license-title,
    .fontsea-references-title {
        font-size: 1.2em;
    }
    
    .fontsea-card-title {
        font-size: 1.1em;
    }
    
    .fontsea-license-list li {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .fontsea-reference-link {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    
    .fontsea-reference-icon {
        margin-right: 0;
        margin-bottom: 8px;
    }
}