/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 基础样式 */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f8f0f5;
    color: #333;
    line-height: 1.6;
}

/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 标题样式 */
h1, h2, h3, h4, h5, h6 {
    color: #ff69b4;
    text-shadow: 2px 2px 4px rgba(255, 105, 180, 0.3);
}

h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

h2 {
    font-size: 2em;
    margin-bottom: 15px;
}

h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

/* 按钮样式 */
.btn {
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1em;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-weight: bold;
}

.btn:hover {
    transform: scale(1.05);
}

.btn-primary {
    background-color: #ff69b4;
    color: white;
}

.btn-primary:hover {
    background-color: #ff1493;
}

.btn-secondary {
    background-color: #f0f0f0;
    color: #666;
}

.btn-secondary:hover {
    background-color: #e0e0e0;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
}

.btn-success {
    background-color: #28a745;
    color: white;
}

.btn-success:hover {
    background-color: #218838;
}

.btn-sm {
    padding: 5px 15px;
    font-size: 0.8em;
}

/* 表单样式 */
.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ff69b4;
    border-radius: 10px;
    font-size: 1em;
    outline: none;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    border-color: #ff1493;
    box-shadow: 0 0 10px rgba(255, 105, 180, 0.3);
}

.form-label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: #333;
}

/* 卡片样式 */
.card {
    background-color: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* 徽章样式 */
.badge {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: bold;
}

.badge-primary {
    background-color: #ff69b4;
    color: white;
}

.badge-secondary {
    background-color: #f0f0f0;
    color: #666;
}

/* 动画效果 */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

.pulse {
    animation: pulse 2s infinite;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    h1 {
        font-size: 2em;
    }
    
    h2 {
        font-size: 1.5em;
    }
    
    .btn {
        width: 100%;
        margin: 5px 0;
        text-align: center;
    }
    
    .card {
        padding: 20px;
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #ff69b4;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ff1493;
}

/* 选择文本样式 */
::selection {
    background-color: #ff69b4;
    color: white;
}

/* 链接样式 */
a {
    color: #ff69b4;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #ff1493;
    text-decoration: underline;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 105, 180, 0.3);
    border-radius: 50%;
    border-top-color: #ff69b4;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 提示框样式 */
.alert {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-color: #bee5eb;
}

/* 标签样式 */
.tag {
    display: inline-block;
    padding: 5px 12px;
    background-color: #f0f0f0;
    border-radius: 15px;
    font-size: 0.8em;
    color: #666;
    margin: 5px;
    transition: all 0.3s ease;
}

.tag:hover {
    background-color: #ff69b4;
    color: white;
    transform: scale(1.05);
}

/* 网格布局 */
.grid {
    display: grid;
    gap: 20px;
    margin: 20px 0;
}

.grid-cols-1 {
    grid-template-columns: 1fr;
}

.grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 768px) {
    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: 1fr;
    }
}

/* 工具类 */
.text-center {
    text-align: center;
}

.mt-1 {
    margin-top: 10px;
}

.mt-2 {
    margin-top: 20px;
}

.mt-3 {
    margin-top: 30px;
}

.mb-1 {
    margin-bottom: 10px;
}

.mb-2 {
    margin-bottom: 20px;
}

.mb-3 {
    margin-bottom: 30px;
}

.p-1 {
    padding: 10px;
}

.p-2 {
    padding: 20px;
}

.p-3 {
    padding: 30px;
}

/* 动画效果增强 */
.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

.hover-glow {
    transition: all 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 20px rgba(255, 105, 180, 0.5);
}

/* 背景渐变 */
.bg-gradient {
    background: linear-gradient(135deg, #ff69b4, #ff1493);
    color: white;
}

/* 边框效果 */
.border-pink {
    border: 2px solid #ff69b4;
}

.border-dashed {
    border-style: dashed;
}

.border-radius {
    border-radius: 15px;
}

/* 鼠标指针 */
.cursor-pointer {
    cursor: pointer;
}

/* 文本效果 */
.text-pink {
    color: #ff69b4;
}

.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

/* 遮罩效果 */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.overlay-container {
    position: relative;
    overflow: hidden;
    border-radius: inherit;
}

.overlay-container:hover .overlay {
    opacity: 1;
}

/* 响应式字体大小 */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
}

/* 打印样式 */
@media print {
    .no-print {
        display: none;
    }
    
    .container {
        width: 100%;
        max-width: 100%;
        padding: 0;
    }
}

/* 无障碍访问 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    body {
        background-color: #000;
        color: #fff;
    }
    
    .card {
        background-color: #222;
        border: 1px solid #fff;
    }
}