

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: linear-gradient(135deg, #07C160, #06ad56);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #06ad56, #05994c);
    box-shadow: 0 4px 16px rgba(7, 193, 96, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, #fa5151, #e14848);
    color: white;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #e14848, #cc3f3f);
    box-shadow: 0 4px 16px rgba(250, 81, 81, 0.3);
}

.btn-secondary {
    background-color: #f0f0f0;
    color: #666;
}

.btn-secondary:hover {
    background-color: #e0e0e0;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

/* 卡片样式 */
.card {
    background-color: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #333;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: border-color 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: #07C160;
}

.form-textarea {
    width: 100%;
    min-height: 300px;
    padding: 12px 16px;
    font-size: 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    resize: vertical;
    line-height: 1.8;
}

.form-textarea:focus {
    outline: none;
    border-color: #07C160;
}

/* 头部样式 */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    margin-bottom: 24px;
    border-bottom: 1px solid #f0f0f0;
}

.header-title {
    font-size: 26px;
    font-weight: bold;
    background: linear-gradient(135deg, #07C160, #06ad56);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* 页面头部（带返回按钮） */
.page-header {
    display: flex;
    align-items: center;
    margin-bottom: 28px;
    padding: 8px 0;
}

.back-btn {
    width: 44px;
    height: 44px;
    margin-right: 16px;
    color: #666;
    font-size: 22px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #f8f8f8;
    transition: all 0.2s;
}

.back-btn:hover {
    background-color: #07C160;
    color: white;
}

.page-title {
    font-size: 22px;
    font-weight: bold;
    color: #333;
}

/* 用户信息显示 */
.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: #f8f8f8;
    border-radius: 20px;
    font-size: 14px;
    color: #666;
}

.user-info-icon {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #07C160, #06ad56);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}

/* 链接按钮样式 */
.link-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    color: #07C160;
    text-decoration: none;
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.2s;
    background-color: #f0fff5;
}

.link-btn:hover {
    background-color: #07C160;
    color: white;
}

/* 空状态 */
.empty {
    text-align: center;
    padding: 80px 20px;
    color: #999;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.empty-text {
    font-size: 16px;
}

/* 网址块 */
.url-block {
    display: inline-flex;
    align-items: center;
    background-color: #f0f9ff;
    border: 1px solid #d1e8ff;
    border-radius: 6px;
    padding: 4px 12px;
    margin: 2px 0;
    gap: 8px;
}

.url-text {
    color: #0066cc;
    word-break: break-all;
    font-size: 14px;
}

.open-btn {
    font-size: 12px;
    color: white;
    background-color: #07C160;
    padding: 4px 12px;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
}

.open-btn:hover {
    background-color: #06ad56;
}

/* 浮动按钮 */
.fab {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #07C160, #06ad56);
    color: white;
    font-size: 32px;
    border: none;
    box-shadow: 0 8px 24px rgba(7, 193, 96, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
    z-index: 100;
}

.fab:hover {
    transform: scale(1.1);
}

/* 底部操作栏 */
.action-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: white;
    padding: 16px 20px;
    display: flex;
    gap: 16px;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
}

.action-bar .btn {
    flex: 1;
}

/* 加载状态 */
.loading {
    text-align: center;
    padding: 40px;
    color: #999;
}

/* 通知 */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 16px 32px;
    border-radius: 8px;
    z-index: 1000;
    display: none;
}

.toast.show {
    display: block;
}

/* ==============================
   移动端响应式优化
   ============================== */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    .header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
        padding: 15px 0;
    }

    .header-title {
        font-size: 22px;
        text-align: center;
    }

    .header-actions {
        justify-content: center;
        width: 100%;
    }

    .link-btn {
        font-size: 13px;
        padding: 7px 12px;
    }

    .user-info {
        font-size: 13px;
        padding: 6px 12px;
    }

    .btn {
        padding: 10px 18px;
        font-size: 15px;
    }

    .btn-sm {
        padding: 6px 12px;
        font-size: 13px;
    }

    .card {
        padding: 18px;
    }

    .fab {
        width: 56px;
        height: 56px;
        font-size: 28px;
        bottom: 30px;
        right: 30px;
    }

    .page-header {
        margin-bottom: 20px;
    }

    .page-title {
        font-size: 20px;
    }

    .back-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 12px 0;
    }

    .header-title {
        font-size: 20px;
    }

    .header-actions {
        gap: 8px;
        flex-wrap: wrap;
    }

    .link-btn {
        font-size: 12px;
        padding: 6px 10px;
    }

    .user-info {
        font-size: 12px;
    }

    .container {
        padding: 12px;
    }

    .fab {
        width: 52px;
        height: 52px;
        font-size: 26px;
        bottom: 24px;
        right: 24px;
    }
}

