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

/* ===== Base ===== */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: #fafafa;
    color: #1a1a1a;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ===== Animations ===== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* ===== Header ===== */
header {
    padding: 80px 24px 40px;
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
    animation: fadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

header h1 {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
    animation: slideDown 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

header p {
    color: #888;
    font-size: 15px;
    animation: fadeIn 0.6s ease 0.3s both;
}

/* ===== Container ===== */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px 80px;
}

/* ===== Plugin Card ===== */
.plugin {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 16px;
    border: 1px solid #eee;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.plugin:nth-child(1) { animation-delay: 0.15s; }
.plugin:nth-child(2) { animation-delay: 0.3s; }
.plugin:nth-child(3) { animation-delay: 0.45s; }

.plugin:hover {
    border-color: #ddd;
    box-shadow: 0 8px 32px rgba(0,0,0,0.06);
    transform: translateY(-3px);
}

.plugin-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.plugin-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.plugin:hover .plugin-icon {
    transform: scale(1.08) rotate(-3deg);
}

.plugin-name {
    font-size: 18px;
    font-weight: 600;
    transition: color 0.2s;
}

.plugin:hover .plugin-name {
    color: #333;
}

.plugin-ver {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}

.plugin-desc {
    color: #666;
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 20px;
    transition: color 0.2s;
}

.plugin:hover .plugin-desc {
    color: #555;
}

.plugin-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.tag {
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 100px;
    background: #f5f5f5;
    color: #666;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: default;
}

.tag:hover {
    background: #eee;
    color: #333;
    transform: translateY(-1px);
}

.plugin-actions {
    display: flex;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-main {
    background: #1a1a1a;
    color: #fff;
}

.btn-main::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
}

.btn-main:hover::after {
    width: 200px;
    height: 200px;
}

.btn-main:hover {
    background: #333;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.btn-main:active {
    transform: translateY(0) scale(0.98);
    transition-duration: 0.1s;
}

.btn-sub {
    background: #fff;
    color: #1a1a1a;
    border: 1px solid #e5e5e5;
}

.btn-sub:hover {
    background: #fafafa;
    border-color: #ccc;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.btn-sub:active {
    transform: translateY(0) scale(0.98);
    transition-duration: 0.1s;
}

/* ===== Footer ===== */
footer {
    text-align: center;
    padding: 40px 24px;
    color: #aaa;
    font-size: 13px;
    border-top: 1px solid #eee;
    opacity: 0;
    animation: fadeIn 0.6s ease 0.8s forwards;
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
    header {
        padding: 60px 20px 32px;
    }

    header h1 {
        font-size: 24px;
    }

    .container {
        padding: 0 16px 60px;
    }

    .plugin {
        padding: 24px;
        border-radius: 14px;
    }

    .plugin:hover {
        transform: translateY(-2px);
    }

    .plugin-actions {
        flex-direction: column;
    }

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

    .btn:hover {
        transform: translateY(-1px);
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
