*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{font-size:16px;-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;background:#FFF5EE;color:#2c2c2e;line-height:1.6;min-height:100vh;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
.container{max-width:640px;margin:0 auto;padding:0 16px}
a{color:#007AFF;text-decoration:none;transition:color .2s ease}
a:hover{color:#0056b3}
img{max-width:100%;height:auto;display:block}
header{background:#fff;border-bottom:1px solid rgba(0,0,0,.08);padding:16px 0;position:sticky;top:0;z-index:100;backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);background:rgba(255,255,255,.85)}
header .container{display:flex;align-items:center;justify-content:space-between}
.logo{font-size:1.25rem;font-weight:700;color:#2c2c2e;display:flex;align-items:center;gap:8px}
.logo img{width:36px;height:36px;border-radius:8px}
nav{display:flex;gap:16px;align-items:center}
nav a{color:#8e8e93;font-size:.875rem;font-weight:500;transition:color .2s ease}
nav a:hover,nav a.active{color:#007AFF}
.hero{padding:40px 0 24px;text-align:center}
.hero h1{font-size:1.75rem;font-weight:700;margin-bottom:8px;color:#1c1c1e}
.hero p{color:#8e8e93;font-size:.9375rem;max-width:400px;margin:0 auto}
.section-title{font-size:1.125rem;font-weight:600;margin:32px 0 16px;color:#1c1c1e;display:flex;align-items:center;justify-content:space-between}
.section-title .count{font-size:.8125rem;color:#8e8e93;font-weight:400}
.package-grid{display:grid;grid-template-columns:1fr;gap:12px;margin-bottom:32px}
@media(min-width:480px){.package-grid{grid-template-columns:1fr 1fr}}
.package-card{background:#fff;border-radius:12px;padding:16px;display:flex;gap:12px;transition:transform .2s ease,box-shadow .2s ease;cursor:pointer;border:1px solid rgba(0,0,0,.04)}
.package-card:hover{transform:translateY(-2px);box-shadow:0 8px 24px rgba(0,0,0,.08)}
.package-card:active{transform:translateY(0)}
.package-icon{width:52px;height:52px;border-radius:12px;flex-shrink:0;background:#f2f2f7;display:flex;align-items:center;justify-content:center;overflow:hidden}
.package-icon img{width:100%;height:100%;object-fit:cover}
.package-info{flex:1;min-width:0}
.package-name{font-size:.9375rem;font-weight:600;color:#1c1c1e;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.package-desc{font-size:.8125rem;color:#8e8e93;margin-top:2px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.package-meta{display:flex;gap:8px;margin-top:6px;align-items:center}
.package-version{font-size:.75rem;color:#007AFF;background:rgba(0,122,255,.08);padding:2px 8px;border-radius:4px;font-weight:500}
.package-section{font-size:.75rem;color:#8e8e93}
.package-detail{background:#fff;border-radius:16px;padding:24px;margin-bottom:24px}
.package-detail .pkg-header{display:flex;gap:16px;margin-bottom:20px}
.package-detail .pkg-icon{width:72px;height:72px;border-radius:16px;flex-shrink:0;background:#f2f2f7;overflow:hidden}
.package-detail .pkg-icon img{width:100%;height:100%;object-fit:cover}
.package-detail .pkg-title{flex:1;min-width:0}
.package-detail .pkg-title h1{font-size:1.375rem;font-weight:700;color:#1c1c1e;margin-bottom:4px}
.package-detail .pkg-title .pkg-id{font-size:.8125rem;color:#8e8e93;font-family:"SF Mono",Menlo,monospace}
.pkg-info-table{width:100%;border-collapse:collapse;margin-bottom:20px}
.pkg-info-table tr{border-bottom:1px solid rgba(0,0,0,.06)}
.pkg-info-table td{padding:10px 0;font-size:.875rem}
.pkg-info-table td:first-child{color:#8e8e93;width:100px;font-weight:500}
.pkg-info-table td:last-child{color:#1c1c1e}
.pkg-description{font-size:.9375rem;line-height:1.7;color:#3c3c43;margin-bottom:24px}
.pkg-description h2,.pkg-description h3{font-size:1rem;font-weight:600;margin:16px 0 8px;color:#1c1c1e}
.pkg-description ul,.pkg-description ol{padding-left:20px;margin:8px 0}
.pkg-description li{margin:4px 0}
.pkg-description code{background:#f2f2f7;padding:2px 6px;border-radius:4px;font-size:.8125rem;font-family:"SF Mono",Menlo,monospace}
.pkg-description pre{background:#1c1c1e;color:#fff;padding:16px;border-radius:8px;overflow-x:auto;margin:12px 0}
.pkg-description pre code{background:none;padding:0;color:inherit}
.screenshot-gallery{display:flex;gap:12px;overflow-x:auto;padding:4px 0 16px;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;scrollbar-width:none}
.screenshot-gallery::-webkit-scrollbar{display:none}
.screenshot-gallery img{height:360px;border-radius:12px;scroll-snap-align:start;flex-shrink:0;box-shadow:0 2px 12px rgba(0,0,0,.1);transition:transform .2s ease}
.screenshot-gallery img:hover{transform:scale(1.02)}
.compatibility-badge{display:inline-flex;align-items:center;gap:6px;font-size:.8125rem;font-weight:500;padding:6px 12px;border-radius:8px;margin-bottom:16px}
.compatibility-badge.compatible{background:rgba(52,199,89,.1);color:#34c759}
.compatibility-badge.incompatible{background:rgba(255,59,48,.1);color:#ff3b30}
.compatibility-badge::before{content:"";width:8px;height:8px;border-radius:50%;background:currentColor}
.changelog{margin-bottom:24px}
.changelog h2{font-size:1rem;font-weight:600;margin-bottom:12px;color:#1c1c1e}
.changelog-entry{padding:12px 0;border-bottom:1px solid rgba(0,0,0,.06)}
.changelog-entry:last-child{border-bottom:none}
.changelog-version{font-size:.875rem;font-weight:600;color:#007AFF}
.changelog-date{font-size:.75rem;color:#8e8e93;margin-left:8px}
.changelog-text{font-size:.8125rem;color:#3c3c43;margin-top:4px}
.source-info{background:#fff;border-radius:12px;padding:20px;margin-bottom:24px}
.source-info h2{font-size:1rem;font-weight:600;margin-bottom:12px;color:#1c1c1e}
.source-info .url-box{background:#f2f2f7;border-radius:8px;padding:12px 16px;font-family:"SF Mono",Menlo,monospace;font-size:.8125rem;color:#007AFF;word-break:break-all;display:flex;align-items:center;justify-content:space-between;gap:12px}
.source-info .copy-btn{background:none;border:none;color:#007AFF;font-size:.8125rem;font-weight:600;cursor:pointer;white-space:nowrap;padding:4px 8px;border-radius:6px;transition:background .2s ease}
.source-info .copy-btn:hover{background:rgba(0,122,255,.08)}
footer{padding:32px 0;text-align:center;color:#8e8e93;font-size:.8125rem;border-top:1px solid rgba(0,0,0,.06);margin-top:24px}
footer a{color:#8e8e93}
footer a:hover{color:#007AFF}
.back-to-top{position:fixed;bottom:24px;right:24px;width:44px;height:44px;border-radius:50%;background:#007AFF;color:#fff;border:none;cursor:pointer;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 16px rgba(0,122,255,.3);opacity:0;transform:translateY(16px);transition:opacity .3s ease,transform .3s ease;pointer-events:none;z-index:99}
.back-to-top.visible{opacity:1;transform:translateY(0);pointer-events:auto}
.back-to-top:hover{background:#0056b3}
.back-to-top svg{width:20px;height:20px}
.load-more-btn{display:block;width:100%;padding:14px;background:#fff;border:1px solid rgba(0,0,0,.08);border-radius:12px;font-size:.9375rem;font-weight:600;color:#007AFF;cursor:pointer;transition:background .2s ease;margin-bottom:32px}
.load-more-btn:hover{background:rgba(0,122,255,.04)}
.load-more-btn:disabled{color:#8e8e93;cursor:default;background:#f2f2f7}
.loading-spinner{display:inline-block;width:20px;height:20px;border:2px solid rgba(0,122,255,.2);border-top-color:#007AFF;border-radius:50%;animation:spin .6s linear infinite;margin-right:8px;vertical-align:middle}
@keyframes spin{to{transform:rotate(360deg)}}
.fade-in{animation:fadeIn .3s ease forwards}
@keyframes fadeIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:480px){.hero h1{font-size:1.375rem}.package-detail{padding:16px}.package-detail .pkg-header{gap:12px}.package-detail .pkg-icon{width:56px;height:56px;border-radius:12px}.screenshot-gallery img{height:280px}}
