/* Monetag Clone - Custom Styles */

/* 动画效果 */
.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Blob动画 */
.animate-blob {
    animation: blob 7s infinite;
}

@keyframes blob {
    0% {
        transform: translate(0px, 0px) scale(1);
    }
    33% {
        transform: translate(30px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
    100% {
        transform: translate(0px, 0px) scale(1);
    }
}

.animation-delay-2000 {
    animation-delay: 2s;
}

/* 浮动动画 */
.floating {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* 玻璃效果 */
.glass-panel {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 导航栏样式 */
.ds-nav {
    background: rgba(15, 23, 42, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
}

.nav-link {
    position: relative;
    font-weight: 700;
    color: #ffffff;
    padding-bottom: 4px;
    border-bottom: 3px solid transparent;
    transition: border-color 0.3s ease;
    cursor: pointer;
}

.nav-link:hover,
.nav-link.active {
    border-bottom-color: #FACC15;
    color: #FACC15;
}

/* 侧边栏导航 */
.nav-item {
    position: relative;
    display: flex;
    align-items: center;
    padding: 12px 24px;
    color: #94A3B8;
    font-weight: 500;
    transition: all 0.2s;
    border-left: 3px solid transparent;
    cursor: pointer;
}

.nav-item:hover,
.nav-item.active {
    background: rgba(250, 204, 21, 0.05);
    color: #FACC15;
    border-left-color: #FACC15;
}

.nav-item svg {
    transition: stroke 0.2s;
}

.nav-item:hover svg,
.nav-item.active svg {
    stroke: #FACC15;
}

/* 表单样式 */
.form-select,
.form-input {
    background-color: #1E293B;
    border: 1px solid #374151;
    color: #E2E8F0;
    transition: all 0.2s;
}

.form-select:focus,
.form-input:focus {
    border-color: #FACC15;
    outline: none;
    box-shadow: 0 0 0 2px rgba(250, 204, 21, 0.2);
}

/* 按钮组 */
.group-btn {
    border: 1px solid #374151;
    color: #94A3B8;
    transition: all 0.2s;
}

.group-btn:hover {
    border-color: #FACC15;
    color: #FACC15;
}

.group-btn.active {
    background-color: rgba(250, 204, 21, 0.1);
    border-color: #FACC15;
    color: #FACC15;
}

/* CPM卡片悬停效果 */
.cpm-card {
    transition: all 0.3s ease;
}

.cpm-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.4);
    border-color: #FACC15;
}

/* 操作卡片 */
.action-card {
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.action-card:hover {
    transform: translateY(-5px);
    border-color: #FACC15;
    box-shadow: 0 10px 30px -10px rgba(250, 204, 21, 0.15);
}

/* 表格行 */
.table-row {
    transition: background-color 0.2s;
}

.table-row:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

/* 视图切换 */
.view-section {
    display: block;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

.view-section.hidden {
    display: none;
    opacity: 0;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #0B1120;
}

::-webkit-scrollbar-thumb {
    background: #2d3748;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4a5568;
}

/* 语言切换 */
.toggle-checkbox:checked {
    right: 0;
    border-color: #FACC15;
}

.toggle-checkbox:checked + .toggle-label {
    background-color: #FACC15;
}

[data-i18n] {
    transition: opacity 0.3s ease;
}

.lang-fade {
    opacity: 0;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .nav-link {
        font-size: 0.875rem;
    }
}

/* 加载动画 */
.spinner {
    border: 3px solid rgba(250, 204, 21, 0.1);
    border-top: 3px solid #FACC15;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 提示消息 */
.alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: rgba(16, 185, 129, 0.1);
    border: 1px solid #10B981;
    color: #10B981;
}

.alert-error {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid #EF4444;
    color: #EF4444;
}

.alert-warning {
    background-color: rgba(250, 204, 21, 0.1);
    border: 1px solid #FACC15;
    color: #FACC15;
}

.alert-info {
    background-color: rgba(79, 70, 229, 0.1);
    border: 1px solid #4F46E5;
    color: #4F46E5;
}
