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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: #0b1526;
    color: #fff;
    min-height: 100vh;
}

#rain-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.app-container {
    max-width: 640px;
    margin: 0 auto;
    padding: 16px 12px 40px;
}

.app-header {
    text-align: center;
    margin-bottom: 16px;
}

.app-header h1 {
    font-size: 22px;
    margin-bottom: 4px;
}

.app-header p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.card {
    background: rgba(10, 20, 40, 0.9);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.card h2 {
    font-size: 16px;
    margin-bottom: 8px;
}

.user-info {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4f9dff, #7b6cff);
    margin-right: 10px;
}

.meta {
    display: flex;
    flex-direction: column;
}

.sub-text {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.btn {
    display: inline-block;
    padding: 9px 14px;
    border-radius: 999px;
    border: none;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    outline: none;
    transition: background 0.2s, transform 0.1s;
}

.btn.primary {
    background: linear-gradient(135deg, #4f9dff, #7b6cff);
}

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

.btn-group {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.btn-group .btn {
    flex: 1;
}

.history-list {
    list-style: none;
}

.history-item {
    padding: 8px 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.history-item-title {
    font-size: 14px;
}

.history-item-meta {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.hidden {
    display: none !important;
}

@media (max-width: 375px) {
    .app-container {
        padding: 12px 8px 24px;
    }

    .card {
        padding: 10px 10px;
    }
}

