/* 糖心论坛网站样式 - 粉红紫色系现代设计 */

/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Noto Sans SC', sans-serif;
    line-height: 1.6;
    color: #2d3748;
    overflow-x: hidden;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 182, 193, 0.1);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #ff6b9d, #c084fc);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #e11d48, #a855f7);
}

/* 选择文本样式 */
::selection {
    background: rgba(255, 107, 157, 0.3);
    color: white;
}

::-moz-selection {
    background: rgba(255, 107, 157, 0.3);
    color: white;
}

/* 动画效果 */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(0,0,0);
    }
    40%, 43% {
        transform: translate3d(0, -30px, 0);
    }
    70% {
        transform: translate3d(0, -15px, 0);
    }
    90% {
        transform: translate3d(0, -4px, 0);
    }
}

/* 工具类 */
.float-animation {
    animation: float 3s ease-in-out infinite;
}

.pulse-animation {
    animation: pulse 2s ease-in-out infinite;
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.slide-in-left {
    animation: slideInLeft 0.8s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.8s ease-out;
}

.bounce-animation {
    animation: bounce 2s infinite;
}

/* 渐变背景 */
.gradient-bg {
    background: linear-gradient(135deg, #ff6b9d 0%, #c084fc 50%, #60a5fa 100%);
}

.gradient-text {
    background: linear-gradient(135deg, #ff6b9d, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 玻璃拟态效果 */
.glass-effect {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

/* 阴影效果 */
.shadow-glow {
    box-shadow: 0 0 20px rgba(255, 107, 157, 0.3);
}

.shadow-glow:hover {
    box-shadow: 0 0 30px rgba(255, 107, 157, 0.5);
}

/* 按钮样式 */
.btn-primary {
    background: linear-gradient(135deg, #ff6b9d, #c084fc);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.4);
}

.btn-outline {
    background: transparent;
    color: #ff6b9d;
    padding: 12px 24px;
    border: 2px solid #ff6b9d;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-outline:hover {
    background: #ff6b9d;
    color: white;
    transform: translateY(-2px);
}

/* 卡片样式 */
.card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 107, 157, 0.2);
    border-radius: 20px;
    padding: 24px;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 107, 157, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* 导航栏样式 */
.navbar {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.3s ease;
}

.navbar-link {
    position: relative;
    color: #6b7280;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.navbar-link:hover {
    color: #ff6b9d;
}

.navbar-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #ff6b9d, #c084fc);
    transition: width 0.3s ease;
}

.navbar-link:hover::after {
    width: 100%;
}

.navbar-link.active {
    color: #ff6b9d;
}

.navbar-link.active::after {
    width: 100%;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }
    
    .text-6xl {
        font-size: 3rem;
    }
    
    .text-5xl {
        font-size: 2.5rem;
    }
    
    .text-4xl {
        font-size: 2rem;
    }
    
    .grid-cols-3 {
        grid-template-columns: 1fr;
    }
    
    .grid-cols-2 {
        grid-template-columns: 1fr;
    }
    
    .space-x-4 > * + * {
        margin-left: 0;
        margin-top: 1rem;
    }
}

@media (max-width: 640px) {
    .text-8xl {
        font-size: 3rem;
    }
    
    .text-6xl {
        font-size: 2.5rem;
    }
    
    .text-5xl {
        font-size: 2rem;
    }
    
    .px-12 {
        padding-left: 2rem;
        padding-right: 2rem;
    }
    
    .py-5 {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
}

/* 特殊效果 */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.border-gradient {
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, #ff6b9d, #c084fc) border-box;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 107, 157, 0.3);
    border-radius: 50%;
    border-top-color: #ff6b9d;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 输入框样式 */
.input-field {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(255, 107, 157, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    transition: all 0.3s ease;
}

.input-field:focus {
    outline: none;
    border-color: #ff6b9d;
    box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.1);
}

/* 标签样式 */
.tag {
    display: inline-block;
    padding: 6px 12px;
    background: linear-gradient(135deg, #ff6b9d, #c084fc);
    color: white;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    margin: 4px;
    transition: all 0.3s ease;
}

.tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.3);
}

/* 进度条 */
.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 107, 157, 0.2);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #ff6b9d, #c084fc);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* 工具提示 */
.tooltip {
    position: relative;
    cursor: pointer;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.tooltip:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-8px);
}

/* 模态框 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 32px;
    max-width: 500px;
    width: 90%;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.modal.active .modal-content {
    transform: scale(1);
}

/* 返回顶部按钮 */
#back-to-top {
    transition: all 0.3s ease;
}

#back-to-top.show {
    opacity: 1;
    transform: translateY(0);
}

/* 计数器动画 */
.counter {
    font-variant-numeric: tabular-nums;
}

/* 特殊布局 */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.1), rgba(192, 132, 252, 0.1));
    z-index: -1;
}

/* 粒子效果背景 */
.particles-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 107, 157, 0.6);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.particle:nth-child(2n) {
    background: rgba(192, 132, 252, 0.6);
    animation-delay: -2s;
    animation-duration: 8s;
}

.particle:nth-child(3n) {
    background: rgba(96, 165, 250, 0.6);
    animation-delay: -4s;
    animation-duration: 10s;
}

/* 自定义复选框 */
.custom-checkbox {
    position: relative;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.custom-checkbox input {
    opacity: 0;
    position: absolute;
    width: 100%;
    height: 100%;
    margin: 0;
    cursor: pointer;
}

.custom-checkbox .checkmark {
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    background: white;
    border: 2px solid rgba(255, 107, 157, 0.3);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.custom-checkbox input:checked + .checkmark {
    background: linear-gradient(135deg, #ff6b9d, #c084fc);
    border-color: #ff6b9d;
}

.custom-checkbox .checkmark::after {
    content: '';
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.custom-checkbox input:checked + .checkmark::after {
    display: block;
}

/* 自定义单选按钮 */
.custom-radio {
    position: relative;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.custom-radio input {
    opacity: 0;
    position: absolute;
    width: 100%;
    height: 100%;
    margin: 0;
    cursor: pointer;
}

.custom-radio .radiomark {
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    background: white;
    border: 2px solid rgba(255, 107, 157, 0.3);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.custom-radio input:checked + .radiomark {
    border-color: #ff6b9d;
}

.custom-radio .radiomark::after {
    content: '';
    position: absolute;
    display: none;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #ff6b9d, #c084fc);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.custom-radio input:checked + .radiomark::after {
    display: block;
}

/* 面包屑导航 */
.breadcrumb {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #6b7280;
}

.breadcrumb a {
    color: #ff6b9d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #e11d48;
}

.breadcrumb .separator {
    margin: 0 8px;
    color: #d1d5db;
}

/* 分页器 */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 32px 0;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination a {
    background: white;
    color: #6b7280;
    border: 1px solid #e5e7eb;
}

.pagination a:hover {
    background: #ff6b9d;
    color: white;
    border-color: #ff6b9d;
}

.pagination .current {
    background: linear-gradient(135deg, #ff6b9d, #c084fc);
    color: white;
    border: 1px solid #ff6b9d;
}

/* 表格样式 */
.table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.table th,
.table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid #f3f4f6;
}

.table th {
    background: linear-gradient(135deg, #ff6b9d, #c084fc);
    color: white;
    font-weight: 600;
}

.table tr:hover {
    background: rgba(255, 107, 157, 0.05);
}

/* 徽章 */
.badge {
    display: inline-block;
    padding: 4px 8px;
    background: linear-gradient(135deg, #ff6b9d, #c084fc);
    color: white;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge.secondary {
    background: #6b7280;
}

.badge.success {
    background: #10b981;
}

.badge.warning {
    background: #f59e0b;
}

.badge.danger {
    background: #ef4444;
}

/* 警告框 */
.alert {
    padding: 16px;
    border-radius: 12px;
    margin: 16px 0;
    border-left: 4px solid;
}

.alert.info {
    background: rgba(59, 130, 246, 0.1);
    border-color: #3b82f6;
    color: #1e40af;
}

.alert.success {
    background: rgba(16, 185, 129, 0.1);
    border-color: #10b981;
    color: #065f46;
}

.alert.warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: #f59e0b;
    color: #92400e;
}

.alert.danger {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
    color: #991b1b;
}

/* 手风琴 */
.accordion {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}

.accordion-item {
    border-bottom: 1px solid #e5e7eb;
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    padding: 16px;
    background: #f9fafb;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
}

.accordion-header:hover {
    background: rgba(255, 107, 157, 0.05);
}

.accordion-content {
    padding: 16px;
    display: none;
}

.accordion-item.active .accordion-content {
    display: block;
}

/* 选项卡 */
.tabs {
    border-bottom: 1px solid #e5e7eb;
}

.tab-list {
    display: flex;
    gap: 0;
}

.tab-button {
    padding: 12px 24px;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 500;
    color: #6b7280;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.tab-button:hover {
    color: #ff6b9d;
}

.tab-button.active {
    color: #ff6b9d;
    border-bottom-color: #ff6b9d;
}

.tab-content {
    padding: 24px 0;
    display: none;
}

.tab-content.active {
    display: block;
}

/* 下拉菜单 */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 12px 16px;
    color: #374151;
    text-decoration: none;
    transition: background 0.3s ease;
}

.dropdown-item:hover {
    background: rgba(255, 107, 157, 0.05);
    color: #ff6b9d;
}

/* 步骤器 */
.stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 32px 0;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 60%;
    width: 80%;
    height: 2px;
    background: #e5e7eb;
    z-index: -1;
}

.step.completed:not(:last-child)::after {
    background: linear-gradient(135deg, #ff6b9d, #c084fc);
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.step.completed .step-number {
    background: linear-gradient(135deg, #ff6b9d, #c084fc);
    color: white;
}

.step.active .step-number {
    background: #ff6b9d;
    color: white;
    box-shadow: 0 0 0 4px rgba(255, 107, 157, 0.2);
}

.step-title {
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    text-align: center;
}

.step.completed .step-title,
.step.active .step-title {
    color: #ff6b9d;
}

/* 时间轴 */
.timeline {
    position: relative;
    padding-left: 32px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(135deg, #ff6b9d, #c084fc);
}

.timeline-item {
    position: relative;
    margin-bottom: 32px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 8px;
    width: 12px;
    height: 12px;
    background: #ff6b9d;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 2px #ff6b9d;
}

.timeline-content {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

.timeline-date {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 8px;
}

.timeline-title {
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.timeline-description {
    color: #6b7280;
    line-height: 1.6;
}

/* 评分星星 */
.rating {
    display: flex;
    gap: 4px;
}

.star {
    width: 20px;
    height: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.star.filled {
    color: #fbbf24;
}

.star.empty {
    color: #d1d5db;
}

.star:hover {
    transform: scale(1.2);
}

/* 价格标签 */
.price {
    font-size: 24px;
    font-weight: 700;
    color: #ff6b9d;
}

.price .currency {
    font-size: 18px;
    vertical-align: top;
}

.price .period {
    font-size: 16px;
    font-weight: 400;
    color: #6b7280;
}

.price.old {
    text-decoration: line-through;
    color: #9ca3af;
    font-size: 18px;
}

/* 统计卡片 */
.stat-card {
    background: white;
    padding: 24px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: #ff6b9d;
    margin-bottom: 8px;
}

.stat-label {
    color: #6b7280;
    font-weight: 500;
}

/* 社交媒体按钮 */
.social-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.social-button {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.social-button.facebook { background: #1877f2; }
.social-button.twitter { background: #1da1f2; }
.social-button.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-button.linkedin { background: #0077b5; }
.social-button.youtube { background: #ff0000; }

/* 代码块 */
.code-block {
    background: #1f2937;
    color: #f9fafb;
    padding: 20px;
    border-radius: 12px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 14px;
    line-height: 1.6;
    overflow-x: auto;
    position: relative;
}

.code-block::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 12px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 20px 0 0 #f59e0b, 40px 0 0 #10b981;
}

/* 引用块 */
.quote {
    border-left: 4px solid #ff6b9d;
    padding: 16px 20px;
    background: rgba(255, 107, 157, 0.05);
    border-radius: 0 12px 12px 0;
    font-style: italic;
    position: relative;
}

.quote::before {
    content: '"';
    font-size: 48px;
    color: #ff6b9d;
    position: absolute;
    top: -8px;
    left: 16px;
    line-height: 1;
}

.quote-author {
    text-align: right;
    margin-top: 12px;
    font-weight: 600;
    color: #6b7280;
}

.quote-author::before {
    content: '— ';
}

/* 图片画廊 */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin: 32px 0;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: white;
    font-size: 24px;
}

/* 搜索框 */
.search-box {
    position: relative;
    max-width: 400px;
}

.search-input {
    width: 100%;
    padding: 12px 48px 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 25px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #ff6b9d;
    box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.1);
}

.search-button {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #ff6b9d, #c084fc);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-button:hover {
    transform: translateY(-50%) scale(1.1);
}

/* 切换开关 */
.toggle {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 34px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

.toggle input:checked + .toggle-slider {
    background: linear-gradient(135deg, #ff6b9d, #c084fc);
}

.toggle input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

/* 范围滑块 */
.range-slider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #e5e7eb;
    outline: none;
    -webkit-appearance: none;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b9d, #c084fc);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.range-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b9d, #c084fc);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* 文件上传 */
.file-upload {
    position: relative;
    display: inline-block;
    cursor: pointer;
    overflow: hidden;
    border: 2px dashed #e5e7eb;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    transition: all 0.3s ease;
}

.file-upload:hover {
    border-color: #ff6b9d;
    background: rgba(255, 107, 157, 0.05);
}

.file-upload input[type="file"] {
    position: absolute;
    left: -9999px;
}

.file-upload-icon {
    font-size: 48px;
    color: #d1d5db;
    margin-bottom: 16px;
}

.file-upload-text {
    color: #6b7280;
    font-weight: 500;
}

.file-upload.dragover {
    border-color: #ff6b9d;
    background: rgba(255, 107, 157, 0.1);
}

/* 颜色选择器 */
.color-picker {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.color-option {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
}

.color-option:hover {
    transform: scale(1.1);
}

.color-option.selected {
    border-color: #374151;
    box-shadow: 0 0 0 2px white, 0 0 0 4px #374151;
}

/* 日历 */
.calendar {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    max-width: 350px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.calendar-nav {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #6b7280;
    transition: color 0.3s ease;
}

.calendar-nav:hover {
    color: #ff6b9d;
}

.calendar-title {
    font-weight: 600;
    color: #374151;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.calendar-day.header {
    font-weight: 600;
    color: #6b7280;
    cursor: default;
}

.calendar-day.other-month {
    color: #d1d5db;
}

.calendar-day:hover:not(.header) {
    background: rgba(255, 107, 157, 0.1);
}

.calendar-day.selected {
    background: linear-gradient(135deg, #ff6b9d, #c084fc);
    color: white;
}

.calendar-day.today {
    background: #f3f4f6;
    font-weight: 600;
}

/* 通知 */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    max-width: 350px;
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    border-left: 4px solid #10b981;
}

.notification.error {
    border-left: 4px solid #ef4444;
}

.notification.warning {
    border-left: 4px solid #f59e0b;
}

.notification.info {
    border-left: 4px solid #3b82f6;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.notification-title {
    font-weight: 600;
    color: #374151;
}

.notification-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #6b7280;
    transition: color 0.3s ease;
}

.notification-close:hover {
    color: #374151;
}

.notification-content {
    color: #6b7280;
    line-height: 1.5;
}

/* 加载骨架屏 */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.skeleton-text {
    height: 16px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.skeleton-text.title {
    height: 24px;
    width: 60%;
}

.skeleton-text.subtitle {
    height: 20px;
    width: 80%;
}

.skeleton-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.skeleton-image {
    width: 100%;
    height: 200px;
    border-radius: 8px;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}

.empty-state-icon {
    font-size: 64px;
    color: #d1d5db;
    margin-bottom: 20px;
}

.empty-state-title {
    font-size: 20px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.empty-state-description {
    margin-bottom: 24px;
    line-height: 1.6;
}

/* 错误页面 */
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

.error-code {
    font-size: 120px;
    font-weight: 900;
    color: #ff6b9d;
    line-height: 1;
    margin-bottom: 20px;
}

.error-title {
    font-size: 32px;
    font-weight: 700;
    color: #374151;
    margin-bottom: 16px;
}

.error-description {
    font-size: 18px;
    color: #6b7280;
    margin-bottom: 32px;
    max-width: 500px;
}

/* 打印样式 */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .card {
        border: 1px solid #ccc !important;
        box-shadow: none !important;
    }
    
    .btn-primary,
    .btn-outline {
        border: 1px solid #ccc !important;
        background: white !important;
        color: black !important;
    }
}

/* 高对比度模式 */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid #000;
    }
    
    .btn-primary {
        background: #000 !important;
        color: #fff !important;
        border: 2px solid #000 !important;
    }
    
    .btn-outline {
        border: 2px solid #000 !important;
        color: #000 !important;
    }
}

/* 减少动画模式 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 深色模式 */
@media (prefers-color-scheme: dark) {
    body {
        background: #1f2937;
        color: #f9fafb;
    }
    
    .card {
        background: rgba(31, 41, 55, 0.9);
        border-color: rgba(255, 107, 157, 0.3);
    }
    
    .navbar {
        background: rgba(31, 41, 55, 0.9);
    }
    
    .input-field {
        background: #374151;
        border-color: #4b5563;
        color: #f9fafb;
    }
    
    .table {
        background: #374151;
        color: #f9fafb;
    }
    
    .table th {
        background: linear-gradient(135deg, #ff6b9d, #c084fc);
    }
    
    .table td {
        border-color: #4b5563;
    }
}