/**
 * 现代卡片主题 - 附加样式
 */

/* 全局动画 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 全局文字优化 */
h1, h2, h3, h4, h5, h6 {
    color: #000000;
    font-weight: 700;
    letter-spacing: -0.5px;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p {
    color: #000000;
    line-height: 1.8;
}

a {
    color: #000000;
    font-weight: 600;
}

a:hover {
    color: #666666;
}

/* 输入框统一样式 - 圆角设计 */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select,
textarea {
    border: 2px solid #e0e0e0 !important;
    border-radius: 10px !important;
    background-color: #ffffff !important;
    color: #000000 !important;
    font-weight: 500;
    transition: all 0.3s !important;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #000000 !important;
    background-color: #fafafa !important;
    outline: none !important;
    box-shadow: 0 0 0 4px rgba(0,0,0,0.05) !important;
    transform: translateY(-1px);
}

/* 表单组优化 */
.form-group {
    margin-bottom: 1.75rem;
}

.form-group label {
    color: #000000;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
}

/* 分隔线 - 柔和 */
hr {
    border: none;
    border-top: 2px solid #f0f0f0;
    margin: 2rem 0;
}

/* 链接按钮化 */
.link-button {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 2px solid #000000;
    color: #000000;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.link-button:hover {
    background-color: #000000;
    color: #ffffff;
}

/* 表格样式 - 圆角卡片 */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

table th {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    color: #ffffff;
    padding: 1rem 1.5rem;
    text-align: left;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
}

table td {
    padding: 1rem 1.5rem;
    border-top: 1px solid #f0f0f0;
    color: #000000;
    transition: background-color 0.3s;
}

table tr:hover td {
    background-color: #fafafa;
}

/* 标签 - 圆润设计 */
.tag {
    display: inline-block;
    padding: 0.375rem 1rem;
    background-color: #000000;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 0.5rem;
    border-radius: 20px;
    transition: all 0.3s;
}

.tag:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* 容器优化 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* 页面标题 */
.page-title {
    font-size: 3rem;
    font-weight: 900;
    color: #000000;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.page-subtitle {
    font-size: 1.2rem;
    color: #666666;
    margin-bottom: 2rem;
}

/* 面包屑导航 */
.breadcrumb {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.breadcrumb a {
    color: #000000;
    text-decoration: none;
    font-weight: 600;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb-separator {
    color: #000000;
    font-weight: 700;
}

/* 网格布局优化 */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

/* 响应式 */
@media (max-width: 768px) {
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .page-title {
        font-size: 2rem;
    }
}

/* 阴影效果（极少使用）*/
.shadow-sm {
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.shadow {
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* 间距工具类 */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

/* 文本工具类 */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.font-bold { font-weight: 700; }
.font-normal { font-weight: 400; }

.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }

/* 颜色工具类 */
.text-black { color: #000000; }
.text-gray { color: #666666; }
.text-white { color: #ffffff; }

.bg-black { background-color: #000000; }
.bg-white { background-color: #ffffff; }
.bg-gray { background-color: #f9f9f9; }

