/* Pin (品由我) 主样式 */

/* 基础设置 */
:root {
    --pin-primary: #e74c3c;
    --pin-primary-light: #fce4e4;
    --pin-secondary: #2c3e50;
    --pin-accent: #3498db;
    --pin-bg: #f5f6fa;
    --pin-success: #27ae60;
    --font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "WenQuanYi Micro Hei", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
    font-family: var(--font-family);
}

body {
    background-color: var(--pin-bg);
    min-height: 100vh;
}

/* 导航栏 */
.navbar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.navbar-item, .navbar-link {
    color: white !important;
}

/* 卡片增强 */
.card {
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

/* 按钮优化 */
.button {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s;
}

.button.is-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
}

.button.is-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    border: none;
    color: white;
}

/* 徽章样式 */
.badge {
    width: 150px;
    height: 150px;
    border-radius: 12px;
    object-fit: contain;
}

.badge-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #764ba2;
}

/* 容器 */
.container {
    padding: 20px;
}

@media screen and (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .badge {
        width: 100px;
        height: 100px;
    }
    
    .badge-image {
        width: 60px;
        height: 60px;
    }
}

/* 头像预览 */
.image-preview {
    max-width: 300px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
}

.image-preview img {
    border-radius: 12px;
}

/* 页脚 */
.footer {
    background: var(--pin-secondary);
    color: white;
    padding: 2rem 1.5rem 2rem;
    margin-top: 40px;
}

.footer a {
    color: #a29bfe;
}

/* 消息样式 */
.message {
    border-radius: 10px;
}

.message-header {
    border-radius: 10px 10px 0 0;
}

.message-body {
    border-radius: 0 0 10px 10px;
    line-height: 1.8;
}

/* 剪贴板按钮 */
.clip {
    cursor: pointer;
    transition: all 0.2s;
}

.clip:hover {
    opacity: 0.8;
}

/* 通知 */
.notification {
    border-radius: 10px;
}

/* 表单优化 */
.input, .textarea {
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    transition: border-color 0.3s;
}

.input:focus, .textarea:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.label {
    font-weight: 600;
    color: var(--pin-secondary);
}

/* 响应式表格 */
.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
}

/* 居中辅助 */
.center {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 文字换行 */
.word-wrap {
    white-space: normal;
    word-wrap: break-word;
    text-align: left;
    height: auto;
    min-height: 2.5em;
}

/* 二维码容器 */
.qr-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.qr-item {
    text-align: center;
}

/* 动画 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.card, .box {
    animation: fadeIn 0.3s ease-out;
}

/* 深色链接 */
a.has-text-grey {
    color: #666 !important;
}

/* 文件上传美化 */
.file-cta {
    border-radius: 8px;
}

.file-name {
    border-radius: 0 8px 8px 0;
}

/* 移动端适配 */
@media screen and (max-width: 480px) {
    .title {
        font-size: 1.5rem !important;
    }
    
    .subtitle {
        font-size: 1rem !important;
    }
    
    .button {
        font-size: 0.85rem;
        padding: 0.4em 0.8em;
    }
    
    .columns {
        margin-left: 0;
        margin-right: 0;
    }
}
