* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #f5f7fa;
    color: #333;
    line-height: 1.6;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
a { text-decoration: none; color: inherit; }

/* 头部 */
.header {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    position: sticky;
    top: 0;
    z-index: 100;
}
/* 替换原有的.header .container样式 */
.header .container {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 20px;
    font-weight: 600;
    color: #409eff;
    line-height: 1;
}
.btn-submit {
    background: #409eff;
    color: #fff;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    transition: all .3s;
}
.btn-submit:hover { background: #66b1ff; }

/* 主体 */
.main { padding: 30px 0; }
.cate-section { margin-bottom: 35px; }
.cate-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    padding-left: 12px;
    border-left: 4px solid #409eff;
}

/* 网站卡片网格 */
.site-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 15px;
}
.site-card {
    background: #fff;
    border-radius: 10px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all .3s;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.site-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,.1);
}
.site-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #f0f2f5;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}
.site-icon img { width: 100%; height: 100%; object-fit: contain; }
.site-info { flex: 1; min-width: 0; }
.site-name {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.site-desc {
    font-size: 12px;
    color: #909399;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 提交页 */
.submit-page { max-width: 600px; margin: 0 auto; }
.submit-page h1 { font-size: 24px; margin-bottom: 25px; text-align: center; }
.msg {
    padding: 12px;
    background: #f0f9eb;
    color: #67c23a;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}
.submit-form {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.form-item { margin-bottom: 20px; }
.form-item label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #606266;
}
.form-item input,
.form-item select,
.form-item textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #dcdfe6;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    box-sizing: border-box;
}
.form-item input:focus,
.form-item select:focus,
.form-item textarea:focus {
    outline: none;
    border-color: #409eff;
}
.form-item .tip {
    font-size: 12px;
    color: #909399;
    margin-top: 5px;
    display: block;
}
.btn-full { width: 100%; padding: 12px; border: none; cursor: pointer; font-size: 16px; }

/* 底部 */
.footer {
    background: #fff;
    padding: 20px 0;
    text-align: center;
    color: #909399;
    font-size: 13px;
    margin-top: 40px;
}

/* 响应式 */
@media (max-width: 768px) {
    .site-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .site-card { padding: 12px; }
    .site-name { font-size: 13px; }
}