:root {
    --primary-color: #4a90d9;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --light-bg: #f8f9fa;
}

body {
    background-color: var(--light-bg);
    min-height: 100vh;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.hero-section {
    padding: 60px 0;
    text-align: center;
}

.hero-section h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #333;
}

.hero-section p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
}

.upload-area {
    border: 3px dashed #ccc;
    border-radius: 15px;
    padding: 50px 30px;
    background: #fff;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-area:hover, .upload-area.dragover {
    border-color: var(--primary-color);
    background: #f0f7ff;
}

.upload-area .upload-icon {
    font-size: 4rem;
    color: #ccc;
    margin-bottom: 20px;
}

.upload-area h4 {
    color: #333;
    margin-bottom: 10px;
}

.upload-area p {
    color: #999;
    margin-bottom: 20px;
}

.expire-select {
    max-width: 200px;
    margin: 0 auto;
}

.result-card {
    display: none;
    margin-top: 30px;
}

.result-card.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.link-box {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.link-box input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 1rem;
}

.link-box button {
    white-space: nowrap;
}

.stats-section {
    padding: 40px 0;
}

.stat-card {
    text-align: center;
    padding: 30px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.stat-card .stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.stat-card .stat-label {
    color: #666;
    margin-top: 10px;
}

/* 管理页面样式 */
.page-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.page-card .title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
}

.page-card .meta {
    color: #666;
    font-size: 0.9rem;
}

.status-badge {
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: 20px;
}

.status-normal { background: #d4edda; color: #155724; }
.status-expiring { background: #fff3cd; color: #856404; }
.status-expired { background: #f8d7da; color: #721c24; }

/* 编辑器样式 */
.editor-container {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
}

.code-editor {
    width: 100%;
    min-height: 400px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    resize: vertical;
}

/* 统计页面样式 */
.chart-container {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.visit-table {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
}

/* 预览页面 */
.view-container {
    width: 100%;
    min-height: 100vh;
}

.error-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
}

.error-container h1 {
    font-size: 3rem;
    color: #dc3545;
    margin-bottom: 20px;
}

/* 提示消息 */
.alert {
    animation: fadeIn 0.3s ease;
}

.btn-copy {
    position: relative;
}

.btn-copy::after {
    content: "已复制";
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-copy.copied::after {
    opacity: 1;
}
