*{margin:0;padding:0;box-sizing:border-box}
body{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI','PingFang SC','Microsoft YaHei',sans-serif;background:#f0f2f5;color:#1a1a2e;line-height:1.6}
.t-container{max-width:880px;margin:0 auto;padding:20px 16px 60px}

/* Breadcrumb */
.t-breadcrumb{font-size:13px;color:#9ca3af;margin-bottom:16px}
.t-breadcrumb a{color:#6366f1;text-decoration:none}
.t-breadcrumb a:hover{text-decoration:underline}

/* Hero */
.t-hero{text-align:center;padding:24px 20px 16px;margin-bottom:8px}
.t-hero h1{font-size:28px;margin-bottom:6px}
.t-hero p{font-size:14px;color:#6b7280}

/* Search */
.t-search-wrap{margin-bottom:20px}
.t-search{width:100%;padding:12px 18px;border:2px solid #e5e7eb;border-radius:12px;font-size:15px;outline:none;transition:border-color .2s;font-family:inherit}
.t-search:focus{border-color:#6366f1}

/* Category tabs */
.t-cats{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:24px;justify-content:center}
.t-cat{padding:7px 16px;border-radius:20px;border:1px solid #e5e7eb;background:#fff;cursor:pointer;font-size:13px;font-weight:600;color:#6b7280;transition:all .15s;white-space:nowrap}
.t-cat:hover{background:#ede9fe;color:#6366f1;border-color:#c4b5fd}
.t-cat.active{background:#6366f1;color:#fff;border-color:#6366f1}

/* Featured */
.t-featured{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:10px;margin-bottom:24px}
.t-feature-card{background:#fff;color:inherit;border-radius:10px;padding:16px;display:flex;align-items:center;gap:12px;text-decoration:none;transition:transform .15s,box-shadow .15s;border:2px solid #6366f1;border-left:4px solid #6366f1}
.t-feature-card:hover{transform:translateY(-2px);box-shadow:0 4px 16px rgba(99,102,241,.15)}
.t-fc-logo{font-size:28px;flex-shrink:0;width:40px;height:40px;display:flex;align-items:center;justify-content:center;background:#ede9fe;border-radius:8px}
.t-fc-info{flex:1;min-width:0}
.t-fc-name{font-size:15px;font-weight:700;margin-bottom:3px}
.t-fc-desc{font-size:12px;color:#6b7280;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:none}
.t-fc-badge{display:inline-block;background:#6366f1;color:#fff;padding:1px 8px;border-radius:4px;font-size:10px;font-weight:700;margin-left:6px;vertical-align:middle}
.t-fc-arrow{font-size:18px;flex-shrink:0;color:#6366f1}

/* Grid */
.t-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:10px}
.t-card{background:#fff;border-radius:10px;padding:16px;border:1px solid #e5e7eb;transition:transform .15s,box-shadow .15s;text-decoration:none;color:inherit;display:flex;flex-direction:column;gap:8px}
.t-card:hover{transform:translateY(-2px);box-shadow:0 4px 16px rgba(0,0,0,.08);border-color:#c4b5fd}
.t-card-header{display:flex;align-items:center;gap:10px}
.t-card-logo{font-size:24px;flex-shrink:0;width:36px;height:36px;display:flex;align-items:center;justify-content:center;background:#f5f6fa;border-radius:8px}
.t-card-name{font-size:15px;font-weight:700}
.t-card-desc{font-size:12px;color:#6b7280;line-height:1.6;flex:1}
.t-card-tags{display:flex;flex-wrap:wrap;gap:4px}
.t-tag{padding:2px 8px;background:#ede9fe;color:#6366f1;border-radius:4px;font-size:11px;font-weight:600}

/* Empty */
.t-empty{text-align:center;padding:40px;color:#9ca3af;grid-column:1/-1;font-size:14px}


/* Intro */
.t-intro{text-align:center;padding:4px 20px 8px;margin-bottom:20px}
.t-intro p{font-size:13px;color:#6b7280;margin-bottom:8px}
.t-intro strong{color:#6366f1;font-weight:600}
.t-intro-link{display:inline-block;color:#6366f1;font-weight:600;font-size:13px;text-decoration:none;padding:6px 16px;background:#ede9fe;border-radius:8px;transition:background .15s}
.t-intro-link:hover{background:#ddd6fe}
body.t-dark .t-intro p{color:#9ca3af}
body.t-dark .t-intro-link{background:#2d2d5e}

/* Footer */
.t-foot{text-align:center;padding:32px 16px 16px;font-size:13px;color:#9ca3af}
.t-foot a{color:#6366f1;text-decoration:none;margin:0 8px}
.t-foot a:hover{text-decoration:underline}
.t-foot-note{font-size:11px;margin-top:8px;color:#d1d5db}

/* Dark mode */
body.t-dark{background:#1a1a2e;color:#e5e7eb}
body.t-dark .t-card{background:#242444;border-color:#333}
body.t-dark .t-card:hover{border-color:#6366f1}
body.t-dark .t-feature-card{background:#242444;border-color:#6366f1}
body.t-dark .t-fc-logo{background:#2d2d5e}
body.t-dark .t-fc-desc{color:#9ca3af}
body.t-dark .t-search{background:#242444;color:#e5e7eb;border-color:#333}
body.t-dark .t-search:focus{border-color:#6366f1}
body.t-dark .t-cat{background:#242444;border-color:#333;color:#9ca3af}
body.t-dark .t-cat:hover{background:#2d2d5e;color:#a5b4fc}
body.t-dark .t-card-logo{background:#2d2d5e}
body.t-dark .t-card-desc{color:#9ca3af}
body.t-dark .t-breadcrumb{color:#6b7280}
body.t-dark .t-hero p{color:#9ca3af}
body.t-dark .t-foot{color:#6b7280}
body.t-dark .t-empty{color:#6b7280}

@media(max-width:600px){
  .t-form-row{flex-direction:column}
  .t-feature-card{padding:12px}
  .t-hero h1{font-size:22px}
  .t-grid{grid-template-columns:repeat(2,1fr)}
  .t-featured{grid-template-columns:1fr}
  .t-card{padding:12px}
  .t-card-name{font-size:14px}
  .t-card-logo{font-size:20px;width:32px;height:32px}
}

/* Submit form */
.t-submit{background:#fff;border-radius:12px;padding:24px;margin-top:24px;border:1px solid #e5e7eb}
.t-submit h2{font-size:17px;margin-bottom:6px}
.t-submit-desc{font-size:13px;color:#9ca3af;margin-bottom:16px}
.t-form{display:flex;flex-direction:column;gap:10px}
.t-form-row{display:flex;gap:10px}
.t-input{flex:1;padding:10px 14px;border:1px solid #e5e7eb;border-radius:8px;font-size:14px;outline:none;font-family:inherit;transition:border-color .15s}
.t-input:focus{border-color:#6366f1}
.t-textarea{min-height:80px;resize:vertical}
.t-submit-btn{padding:12px 28px;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;border-radius:10px;font-size:14px;font-weight:600;cursor:pointer;align-self:flex-start;transition:transform .15s,box-shadow .15s}
.t-submit-btn:hover{transform:translateY(-1px);box-shadow:0 4px 12px rgba(99,102,241,.3)}
.t-submit-btn:disabled{opacity:.5;cursor:not-allowed;transform:none}
.t-submit-msg{font-size:13px}
.t-submit-msg.success{color:#10b981}
.t-submit-msg.error{color:#ef4444}
body.t-dark .t-submit{background:#242444;border-color:#333}
body.t-dark .t-input{background:#1a1a2e;color:#e5e7eb;border-color:#333}
body.t-dark .t-input:focus{border-color:#6366f1}

.t-submit{display:none}